ratelimit-ruby 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 699b74d25c3c4a0e75a2df4291fb4c27f467934e
4
- data.tar.gz: 5120014a25e3ab5d0d8fa5c9553197a3f4843057
3
+ metadata.gz: 43427f3947afbd27f3442b8e596ef162df7bc8dc
4
+ data.tar.gz: f1e16ac5ba6e6ff4826ae5ad08f97bdcc152da4d
5
5
  SHA512:
6
- metadata.gz: 869ae5168b2afd864b6cb0500b41b41f45d3e262e63a84384ec48305168b49df0b7ff836b12064960f1a23d5ed3637ee4e59162f9b1bd9c9ba07b48e4e0b4807
7
- data.tar.gz: fdf0009bee2d67ef7e5a2e6c6b0b80312e825dde79a56b1ec7776c2fe26cd3bc92ad61f5db2fdf5f8c3d7a1735da7f4618bd4635e746731e7d17a16e2de8625e
6
+ metadata.gz: 6e16d55c21f69910cbfbb0ce899201df13edc892dc30ebd0350aac428e8f427d3d1f7d475c18355cf70eed0c3525b6dfe2af9daf19cdb4a5d4c9f02fe1007316
7
+ data.tar.gz: b0e1778a92eedff7d738e309672643662f2d91c4ddab559722a83648350149bf084a40576886f46143223db56e8f6a96e2c692c1b58baf3ce3c20a29a1d4db30
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -60,7 +60,7 @@ module RateLimit
60
60
  handle_failure(result) unless result.success?
61
61
  res =JSON.parse(result.body, object_class: OpenStruct)
62
62
  res.amount ||= 0
63
- @stats.increment("it.ratelim.limitcheck", tags: { policy_group: res.policyGroup, pass: res.passed })
63
+ @stats.increment("it.ratelim.limitcheck", tags: ["policy_group:#{res.policyGroup}", "pass:#{res.passed}"])
64
64
  res
65
65
  rescue => e
66
66
  handle_error(e)
@@ -1,7 +1,7 @@
1
1
  module RateLimit
2
2
 
3
3
  class NoopStats
4
- # receives increment("it.ratelim.limitcheck", {:tags=>{:policy_group=>"page_view", :pass=>true}}
4
+ # receives increment("it.ratelim.limitcheck", {:tags=>["policy_group:page_view", "pass:true"]})
5
5
  def increment(name, opts)
6
6
  end
7
7
  end
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: ratelimit-ruby 0.1.4 ruby lib
5
+ # stub: ratelimit-ruby 0.1.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "ratelimit-ruby"
9
- s.version = "0.1.4"
9
+ s.version = "0.1.5"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratelimit-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Dwyer