librato / librato-metrics

Ruby wrapper to make it easy to interact with Librato's API.
https://librato.com
Other
108 stars 51 forks source link

JSON, wrong number of arguments (given 0, expected 1+) #122

Closed carlhoerberg closed 7 years ago

carlhoerberg commented 7 years ago
#<ArgumentError: wrong number of arguments (given 0, expected 1+)> 
  /app/vendor/ruby-2.3.1/lib/ruby/2.3.0/json/common.rb:467:in `JSON' 
  /app/vendor/bundle/ruby/2.3.0/gems/librato-metrics-2.0.0/lib/librato/metrics/persistence/direct.rb:21:in `block in persist' 
  /app/vendor/bundle/ruby/2.3.0/gems/librato-metrics-2.0.0/lib/librato/metrics/persistence/direct.rb:20:in `each' 
  /app/vendor/bundle/ruby/2.3.0/gems/librato-metrics-2.0.0/lib/librato/metrics/persistence/direct.rb:20:in `persist' 
  /app/vendor/bundle/ruby/2.3.0/gems/librato-metrics-2.0.0/lib/librato/metrics/processor.rb:34:in `submit'

started happening when upgrading to 2.0.0

nextmat commented 7 years ago

Thanks for the bug report, @chancefeick assume you're taking a look at this?

chancefeick commented 7 years ago

Patched in 2.0.1 (#123). Thanks for the report, we've added 2.3.1 to our build matrix as a result.