ip2k / google-api-ruby-client

Automatically exported from code.google.com/p/google-api-ruby-client
Apache License 2.0
0 stars 0 forks source link

Two errors in source code in prediction.rb #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are two errors in the source
Line 11 
require 'datamapper'
should be 
require 'data_mapper'

Line 127
    ::JSON.generate({"status": "success"})
generates a syntax error:
prediction.rb:128: syntax error, unexpected ':', expecting tASSOC
    ::JSON.generate({"status": "success"})

should be
    ::JSON.generate({"status" => "success"})

This was running ruby 1.9 under rvm on Mac OS X Snow Leopard

Original issue reported on code.google.com by jo...@craic.com on 30 Dec 2011 at 11:37

GoogleCodeExporter commented 9 years ago
I think we might have a Python programmer on the loose. :-)

Original comment by bobaman@google.com on 4 Jan 2012 at 6:32

GoogleCodeExporter commented 9 years ago

Original comment by bobaman@google.com on 10 Jan 2012 at 7:41

GoogleCodeExporter commented 9 years ago

Original comment by bobaman@google.com on 10 Jan 2012 at 7:41

GoogleCodeExporter commented 9 years ago
Fixed a while back

Original comment by sba...@google.com on 5 Nov 2012 at 5:50