bootic_client 0.0.12 → 0.0.13

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: 3ffc22cb79a7dd6547c654277f79f4378430bb40
4
- data.tar.gz: dc0359cafd1b9f3725eea8a91a7119d868e513c0
3
+ metadata.gz: 1e814afcd60c951637016f9a3435104816be4420
4
+ data.tar.gz: 37287bbd0a9d96c8fbd9bd5f05be64558ab125a9
5
5
  SHA512:
6
- metadata.gz: 3b39b0bdc1ec0e14397b7edbbac05476f14865656eedbb40b64d44879cf6f4ab94ec6a8dc51f748a234c3873b4876a830dcc8c4e4d49305ba2f3c4b1ed36b45f
7
- data.tar.gz: 68e20485190e6717dbb2557bc32d7c0cb8a0f4092780bf77fcb8aaa100809c847f2ac46b6228a99b01a02e8d36405a46fe520f6b2628bc3b110801f5eef353dd
6
+ metadata.gz: 696f4e4e34eb96ae1160c8b13520080ea99d79a75bef73280714b16978a84bfc119177025f4daebd5828c4f2e00afeb4d7483a0cde4b68a6e9366d16e23253f2
7
+ data.tar.gz: bc751c6bbb19f08012f38770c9365af27fdbd61bb1278b35be81e8340c751f024c8f94f892642327fd9bd87aca6150a3f572027c1039d1518b3292e3f50f5b4a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.0.12](https://github.com/bootic/bootic_client.rb/tree/v0.0.12) (2016-01-11)
4
+ [Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.11...v0.0.12)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - Faraday http cache 1.2.2, Vary header support. [\#4](https://github.com/bootic/bootic_client.rb/pull/4) ([ismasan](https://github.com/ismasan))
9
+
3
10
  ## [v0.0.11](https://github.com/bootic/bootic_client.rb/tree/v0.0.11) (2015-10-28)
4
11
  [Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.10...v0.0.11)
5
12
 
@@ -21,6 +21,10 @@ module BooticClient
21
21
  @client.get key
22
22
  end
23
23
 
24
+ def delete(key)
25
+ @client.delete key
26
+ end
27
+
24
28
  def set(key, data, ttl = nil)
25
29
  @client.set key, data, ttl
26
30
  end
@@ -30,4 +34,4 @@ module BooticClient
30
34
  end
31
35
  end
32
36
  end
33
- end
37
+ end
@@ -1,3 +1,3 @@
1
1
  module BooticClient
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
@@ -23,6 +23,13 @@ describe BooticClient::Stores::Memcache do
23
23
  end
24
24
  end
25
25
 
26
+ shared_examples_for 'dalli :delete' do |method_name|
27
+ it 'delegates to Dalli client #delete' do
28
+ expect(dalli).to receive(:delete).with('foo').and_return true
29
+ expect(store.send(method_name, 'foo')).to be true
30
+ end
31
+ end
32
+
26
33
  describe '#initialize' do
27
34
  it 'creates a Dalli instance' do
28
35
  expect(Dalli::Client).to receive(:new).with(['localhost:1112'], foo: 'bar').and_return dalli
@@ -46,10 +53,14 @@ describe BooticClient::Stores::Memcache do
46
53
  it_behaves_like 'dalli :set', :set
47
54
  end
48
55
 
56
+ describe '#delete' do
57
+ it_behaves_like 'dalli :delete', :delete
58
+ end
59
+
49
60
  describe '#stats' do
50
61
  it 'delegates to Dalli client #stats' do
51
62
  expect(dalli).to receive(:stats).and_return 'foobar'
52
63
  expect(store.stats).to eql('foobar')
53
64
  end
54
65
  end
55
- end
66
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootic_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ismael Celis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday