Return-Path: Delivered-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Received: (qmail 29266 invoked from network); 15 Jul 2010 16:37:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jul 2010 16:37:45 -0000 Received: (qmail 75645 invoked by uid 500); 15 Jul 2010 16:37:45 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 75613 invoked by uid 500); 15 Jul 2010 16:37:45 -0000 Mailing-List: contact deltacloud-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltacloud-dev@incubator.apache.org Delivered-To: mailing list deltacloud-dev@incubator.apache.org Received: (qmail 75601 invoked by uid 99); 15 Jul 2010 16:37:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 16:37:45 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jason.guiditta@gmail.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-iw0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 16:37:36 +0000 Received: by iwn34 with SMTP id 34so1190047iwn.6 for ; Thu, 15 Jul 2010 09:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=X6q92Lvo6krAadR+FHOodovECtoGO9SqUj30wVswpMc=; b=jZaiyJgVuy8p/vfORyC21yQsJQsTYIjB1w1cwUybkIaGe4jNXKxAYoQI+kN664Bhrl nUw5KTRl1wrIHeFJfr+1+MrigBz530wS2ek7PgpuswrlrltPdDxL9VtFf4a4xnuqedSz dROetCjBArsGr5f5QcZyrGBQT9qmEr4YbLFZA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=QzNqrg9KIFBgH1hOFv/wsZ6RNGbWP4wMaAWPUIuhU9NuzHqtzP0EaEMeAMDHsEolph pgHpLiHU2e/gSBfPPZIBCbZoosTxbQVtXuPHDxArzP1be5j8gEfYa5b8mpyhcIwJ+wOW p+mW+QcuA5m9pq1RgRN9u2puCDslH6wqdVeIg= MIME-Version: 1.0 Received: by 10.231.13.199 with SMTP id d7mr20180237iba.167.1279211774363; Thu, 15 Jul 2010 09:36:14 -0700 (PDT) Received: by 10.231.141.222 with HTTP; Thu, 15 Jul 2010 09:36:14 -0700 (PDT) In-Reply-To: References: <1279182626-23359-1-git-send-email-mfojtik@redhat.com> <1279182626-23359-2-git-send-email-mfojtik@redhat.com> Date: Thu, 15 Jul 2010 12:36:14 -0400 Message-ID: Subject: Re: [PATCH core] Fixed rest-client 1.6.0 incompatibility for deltacloud client From: Jason Guiditta To: deltacloud-dev@incubator.apache.org Cc: Michal Fojtik Content-Type: multipart/alternative; boundary=00235452eebc674935048b6fb35a X-Virus-Checked: Checked by ClamAV on apache.org --00235452eebc674935048b6fb35a Content-Type: text/plain; charset=UTF-8 fyi, changing the two instances of '&block' to 'block' seems to fix the errors, so RestClient.send(:post, conf[:path], conf[:form_data], default_headers) do |response, request, &block| becomes RestClient.send(:post, conf[:path], conf[:form_data], default_headers) do |response, request, block| and same for the other one. On Thu, Jul 15, 2010 at 11:55 AM, Jason Guiditta wrote: > This fails for me with: > > /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.0.6/lib/deltacloud.rb:311: > warning: else without rescue is useless > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require': > /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.0.6/lib/deltacloud.rb:297: > syntax error, unexpected tAMPER, expecting '|' (SyntaxError) > ...ders) do |response, request, &block| > ^ > /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.0.6/lib/deltacloud.rb:305: > syntax error, unexpected tAMPER, expecting '|' > ...ders) do |response, request, &block| > ^ > /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.0.6/lib/deltacloud.rb:379: > syntax error, unexpected kEND, expecting $end > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in > `require' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in > `new_constants_in' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in > `require' > from > /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:208:in > `load' > from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:307:in > `load_gems' > from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:307:in > `each' > from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:307:in > `load_gems' > ... 15 levels... > from /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:78 > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' > from ./script/server:3 > --00235452eebc674935048b6fb35a--