Updated Gemfile to fix syntax #513

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants
@neogenix

Hey Guys,

The Gemfile seems to have bad syntax. Ive fixed it according to : http://gembundler.com/man/gemfile.5.html

Here's the test of the working one :

/root/travis-ci/Gemfile:3: syntax error, unexpected ':', expecting $end
gem 'travis-core',    git: 'git://github.com/travis-ci/t...
                          ^ (SyntaxError)
       /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:18:in `build'
       /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler.rb:135:in `definition'
       /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/cli.rb:220:in `install'
       /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/vendor/thor/task.rb:22:in `send'
       /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/vendor/thor/task.rb:22:in `run'
       /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
       /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/vendor/thor.rb:263:in `dispatch'
       /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/vendor/thor/base.rb:386:in `start'
       /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/bin/bundle:13
       /usr/local/bin/bundle:19:in `load'
       /usr/local/bin/bundle:19
There was an error in your Gemfile, and Bundler cannot continue.
root@travis-ci-n01:~/travis-ci# git pull origin master
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 3 (delta 2), reused 3 (delta 2)
Unpacking objects: 100% (3/3), done.
From git://github.com/neogenix/travis-ci
 * branch            master     -> FETCH_HEAD
Updating 2b8baf3..2ccba1b
Fast-forward
 Gemfile |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
root@travis-ci-n01:~/travis-ci# bundle install 
Fetching gem metadata from http://rubygems.org/.......

Let me know if you have any questions!

@bry4n

This comment has been minimized.

Show comment Hide comment
@bry4n

bry4n Apr 25, 2012

@neogenix, just FYI, the Gemfile on master is using Ruby 1.9.x's new Hash syntax.

bry4n commented Apr 25, 2012

@neogenix, just FYI, the Gemfile on master is using Ruby 1.9.x's new Hash syntax.

@neogenix

This comment has been minimized.

Show comment Hide comment
@neogenix

neogenix Apr 25, 2012

Ah, that makes more sense then. I had noticed that some of them were using that format, others were not. I hadn't seen anywhere that it required 1.9, so I didn't even check.

Ah, that makes more sense then. I had noticed that some of them were using that format, others were not. I hadn't seen anywhere that it required 1.9, so I didn't even check.

@roidrage

This comment has been minimized.

Show comment Hide comment
@roidrage

roidrage Apr 25, 2012

Owner

Travis CI is meant to be deployed on 1.9, so there's 1.9 hash syntax in several places. Other parts of travis are still aimed at 1.8 because of some JRuby issues we've had in 1.9 mode, but we'll move everything to 1.9 and adopt 1.9 syntax eventually.

Owner

roidrage commented Apr 25, 2012

Travis CI is meant to be deployed on 1.9, so there's 1.9 hash syntax in several places. Other parts of travis are still aimed at 1.8 because of some JRuby issues we've had in 1.9 mode, but we'll move everything to 1.9 and adopt 1.9 syntax eventually.

@roidrage roidrage closed this Apr 25, 2012

@neogenix

This comment has been minimized.

Show comment Hide comment
@neogenix

neogenix Apr 25, 2012

Thanks for the clarification. I'll shuffle my dev environment to 1.9 shortly.

Thanks for the clarification. I'll shuffle my dev environment to 1.9 shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment