ratelimit-ruby 0.1.9 → 0.1.10

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: fbbd5fcf9076e26ffc4bbd198cd5b070de24673b
4
- data.tar.gz: 8ad171e1bd61f3f20ae662e9435a377b7c43d339
3
+ metadata.gz: e049a2442815416b238c75f42f0dc6f05061fa90
4
+ data.tar.gz: ff77f6029c57298bf27570ab05dac5012b34510a
5
5
  SHA512:
6
- metadata.gz: 61588dfe9eccaa4b832112bcb7f89040622f8ef1b4c9f657536a5a3e89e28be3d6a9ce4fa2ad771306584403cc4f0b8c29fa9662d893e62157fb6792c3907d90
7
- data.tar.gz: 3f65eadad07f66009a6ddc70890dc9f2cc4c4886a899a6bf1e01e3524d054b982de987bf5986df3612e7842cce7059a3f43c4bd2e816d611707d315105c0f49e
6
+ metadata.gz: 3a284c4d6281a528480db2d225e54b3792290a309fa9fc1a61eae3b76d0b65a8adefa346882c03c8835a7bd7d6a9cb8c56dfddd9f4451b21e6a50e03ccc68ef9
7
+ data.tar.gz: 410765381df103ccb7b4665e7d911d0aaacd21b0a5aae68d5256d5f193713d1c1f7cf3e295256f6782ee2eef20a5956e5ebe64e33ebfe370d8cf447f8afa475c
data/README.md CHANGED
@@ -44,9 +44,9 @@ limiter = RateLimit::Limiter.new(
44
44
  ## Full Example with Feature Flags
45
45
  ```ruby
46
46
  @limiter = RateLimit::Limiter.new(apikey: "",
47
- shared_cache = Rails.cache,
48
- logger = Rails.logger,
49
- in_process_cahe = ActiveSupport::Cache::MemoryStore.new(size: 1.megabytes)
47
+ shared_cache: Rails.cache,
48
+ logger: Rails.logger,
49
+ in_process_cache: ActiveSupport::Cache::MemoryStore.new(size: 1.megabytes)
50
50
  )
51
51
 
52
52
  @limiter.create_limit("event:pageload", 1, RateLimIt::HOURLY_ROLLING)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
@@ -27,6 +27,7 @@ module RateLimit
27
27
  @use_expiry_cache = use_expiry_cache
28
28
  @conn = Faraday.new(:url => self.base_url(local)) do |faraday|
29
29
  faraday.request :json # form-encode POST params
30
+ faraday.headers["accept"] = "application/json"
30
31
  faraday.response :logger if debug
31
32
  faraday.options[:open_timeout] = 2
32
33
  faraday.options[:timeout] = 5
@@ -2,16 +2,16 @@
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.9 ruby lib
5
+ # stub: ratelimit-ruby 0.1.10 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "ratelimit-ruby"
9
- s.version = "0.1.9"
9
+ s.version = "0.1.10"
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"]
13
13
  s.authors = ["Jeff Dwyer"]
14
- s.date = "2017-01-30"
14
+ s.date = "2017-02-16"
15
15
  s.description = "rate limit your ruby"
16
16
  s.email = "jdwyah@gmail.com"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratelimit-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Dwyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-30 00:00:00.000000000 Z
11
+ date: 2017-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday