Sha256: a3d3ecd997cf11249839327229d912fe3ab86806489830c6f14c0d2b5689afb3

Contents?: true

Size: 405 Bytes

Versions: 43

Compression:

Stored size: 405 Bytes

Contents

# require 'crack/json'
#
# module Crack
#   class JSON
#
#     def self.parse_with_tumblr(json)
#       cleaned_json = json.gsub(/^var\s+.+\s+=\s+/, '').gsub(/;$/, '')
#       parse_without_tumblr(cleaned_json)
#     rescue ArgumentError => e
#       raise ParseError, "Invalid JSON string #{e.inspect}"
#     end
#
#     class << self
#       alias_method_chain :parse, :tumblr
#     end
#
#   end
# end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
locomotive_cms-2.5.7 lib/locomotive/httparty/patches.rb
locomotive_cms-2.5.6 lib/locomotive/httparty/patches.rb
locomotive_cms-2.5.6.rc2 lib/locomotive/httparty/patches.rb
locomotive_cms-2.5.6.rc1 lib/locomotive/httparty/patches.rb
locomotive_cms-2.5.5 lib/locomotive/httparty/patches.rb
locomotive_cms-2.5.4 lib/locomotive/httparty/patches.rb
locomotive_cms-2.5.3 lib/locomotive/httparty/patches.rb
locomotive_cms-2.5.2 lib/locomotive/httparty/patches.rb
locomotive_cms-2.5.1 lib/locomotive/httparty/patches.rb
locomotive_cms-2.5.0 lib/locomotive/httparty/patches.rb
locomotive_cms-2.5.0.rc3 lib/locomotive/httparty/patches.rb
locomotive_cms-2.5.0.rc2 lib/locomotive/httparty/patches.rb
locomotive_cms-2.5.0.rc1 lib/locomotive/httparty/patches.rb
locomotive_cms-2.4.1 lib/locomotive/httparty/patches.rb
locomotive_cms-2.4.0 lib/locomotive/httparty/patches.rb
locomotive_cms-2.3.1 lib/locomotive/httparty/patches.rb
locomotive_cms-2.3.0 lib/locomotive/httparty/patches.rb
locomotive_cms-2.2.3 lib/locomotive/httparty/patches.rb
locomotive_cms-2.2.2 lib/locomotive/httparty/patches.rb
locomotive_cms-2.2.1 lib/locomotive/httparty/patches.rb