buckybox-api 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eddc621c620c97843ad053d126702065533328ad
4
- data.tar.gz: 0e70bb1f93018be394f50db785d251c49111f8b9
3
+ metadata.gz: 32c3ee5e31a05ff66a47ff1689e0f76e63d5934f
4
+ data.tar.gz: 7ce1f576acbb66c4bfa55585496d155a3747c0e2
5
5
  SHA512:
6
- metadata.gz: cabf1ebd86c3f67e9a005a933914b7d64332156a31f80bbbd6b747166f7ab0c9230a0b54f7b01ff5a16e17f1da6babd6b9e627f9cdfebc98e16960d5590d5413
7
- data.tar.gz: c6efdface4bfa4199b73c1d5ee19e513ce2fb6d049a8bc18e78c623ac8183f58d77ce172bb6b1948f968f7948a6a20a72e10d8b9085bbab33b3e922c763cd2dc
6
+ metadata.gz: 74c55358134ab2169c877b8d3b72971267df401d61f410f4db284663099d6e154da7f66a38976a3db966bc6f0b20a12ebba858462562f7da7f475623a5d8e33a
7
+ data.tar.gz: 4a048e845fb2e9977ad330b2e4308eaeeb6afbf10bbc2df7ab583dacb7a161c50d7a0c6f3275b0f58c59e350503b42ab4af2cf525222e2cb1efa692e15a9ed49
data/buckybox-api.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "buckybox-api"
7
- spec.version = "1.2.0"
7
+ spec.version = "1.2.1"
8
8
  spec.authors = ["Cédric Félizard"]
9
9
  spec.email = ["cedric@felizard.fr"]
10
10
  spec.summary = %q{RubyGem wrapper for the Bucky Box API}
data/lib/buckybox/api.rb CHANGED
@@ -95,7 +95,7 @@ module BuckyBox
95
95
  }
96
96
 
97
97
  if type == :get # NOTE: only cache GET method
98
- cache_key = [uri, to_query(params)].join
98
+ cache_key = [self.class.headers.hash, uri, to_query(params)].join
99
99
 
100
100
  @cache ||= {}
101
101
  @cache[cache_key] ||= query_fresh.call
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buckybox-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cédric Félizard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-30 00:00:00.000000000 Z
11
+ date: 2014-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty