spacialdb/gcm — pull request #1 by alokat (2012-07-04 14:37:08+00:00)
Title: little bug in example code

Hi sabman,

if I use your example code in a script ruby says there is an error with the following line
options = {body: data: {key: "value"}}

./trigger_push.rb:5: odd number list for Hash
options = {body: data:{key: "value"}}
^
./trigger_push.rb:5: syntax error, unexpected ':', expecting '}'
options = {body: data:{key: "value"}}
^
./trigger_push.rb:5: odd number list for Hash
options = {body: data:{key: "value"}}
^
./trigger_push.rb:5: syntax error, unexpected '}', expecting $end
options = {body: data:{key: "value"}}

Both Ruby 1.8.7 and 1.9.3

I fixed it by changing your example script a little. If you want feel free to pull.

Regards,
fritjof