Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
json-minify-rb gem issue
JSON.minify('{ "PolicyName": { "Fn::Join" : [ "", [ "AblySnsPublish-", { "Ref" : "AWS::Region" }, "-", { "Ref" : "DataCenterID" } ] ] } }')
SyntaxError: Unable to pre-scan string: AblySnsPublish-", { "Ref" : "AWS::Region" }, "-", { "Ref" : "DataCenterID" } ] ] } }
from /Users/matthew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/json-minify-0.0.1/lib/json/minify.rb:43:in `minify'
from (irb):2
from /Users/matthew/Projects/Ably/infrastructure/lib/ably_env/cli.rb:70:in `console'
from /Users/matthew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Users/matthew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/matthew/Projects/Ably/infrastructure/lib/ably_env/cli.rb:105:in `block in invoke_command'
from /Users/matthew/Projects/Ably/infrastructure/lib/ably_env/exception_reporting.rb:28:in `catch_and_report'
from /Users/matthew/Projects/Ably/infrastructure/lib/ably_env/cli.rb:104:in `invoke_command'
from /Users/matthew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /Users/matthew/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from ./bin/ably-env:10:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment