Discussion:
[rails-oceania] Syntax error: put 0 before dot - ruby '2.4.1'
Luke Connell
2017-04-29 07:44:39 UTC
Permalink
Hello all. Anyone have an idea how to fix this issue?

My first error said:

Lukes-MacBook-Pro:ruby-getting-started lukeconnell$ bundle install

Your Ruby version is 2.4.1, but your Gemfile specified 2.3.4


To fix this I edited the gemfile to update the ruby version. The new error
I receive is below:

Lukes-MacBook-Pro:ruby-getting-started lukeconnell$ bundle install


[!] There was an error parsing `Gemfile`: no .<digit> floating literal
anymore; put 0 before dot - ruby ‘2.4.1’

^

/Users/lukeconnell/ruby-getting-started/Gemfile:2: syntax error, unexpected
tFLOAT, expecting '('

ruby ‘2.4.1’

^. Bundler cannot continue.


# from /Users/lukeconnell/ruby-getting-started/Gemfile:2

# -------------------------------------------

# source 'https://rubygems.org'
ruby ‘2.4.1’
#

# -------------------------------------------

Lukes-MacBook-Pro:ruby-getting-started lukeconnell$
--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+***@googlegroups.com.
To post to this group, send email to rails-***@googlegroups.com.
Visit this group at https://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/d/optout.
Pat Allan
2017-04-29 08:01:05 UTC
Permalink
Hi Luke

It looks like you’re using the wrong quote type around the version number - they should be straight (like you’ve got around the source value), rather than angled/curly quotes.

—
Pat
Post by Luke Connell
Hello all. Anyone have an idea how to fix this issue?
Lukes-MacBook-Pro:ruby-getting-started lukeconnell$ bundle install
Your Ruby version is 2.4.1, but your Gemfile specified 2.3.4
Lukes-MacBook-Pro:ruby-getting-started lukeconnell$ bundle install
[!] There was an error parsing `Gemfile`: no .<digit> floating literal anymore; put 0 before dot - ruby ‘2.4.1’
^
/Users/lukeconnell/ruby-getting-started/Gemfile:2: syntax error, unexpected tFLOAT, expecting '('
ruby ‘2.4.1’
^. Bundler cannot continue.
# from /Users/lukeconnell/ruby-getting-started/Gemfile:2
# -------------------------------------------
# source 'https://rubygems.org <https://rubygems.org/>'
Post by Luke Connell
ruby ‘2.4.1’
#
# -------------------------------------------
Lukes-MacBook-Pro:ruby-getting-started lukeconnell$
--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
Visit this group at https://groups.google.com/group/rails-oceania <https://groups.google.com/group/rails-oceania>.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+***@googlegroups.com.
To post to this group, send email to rails-***@googlegroups.com.
Visit this group at https://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Search results for '[rails-oceania] Syntax error: put 0 before dot - ruby '2.4.1'' (Questions and Answers)
5
replies
what are programming languages?
started 2007-11-14 02:15:22 UTC
programming & design
Loading...