canistor 0.5.0 → 0.5.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
  SHA256:
3
- metadata.gz: a6c462186c93c3bac4903417214765c33f95816760224eec56c1fb704cf7d5f2
4
- data.tar.gz: 29ae2992af7256c0b4d86de177c61626f5ebf413b51f04c0ed69ba80e7df2db6
3
+ metadata.gz: 2edb558a153237b48ed0e9438b9e77d6f9d1f8e8c6435b56e51fb79c4fd32fc8
4
+ data.tar.gz: 8993f393d9e18e7fd2f95873babdbf261e3fc27d4e736c7b8993d42baa797c12
5
5
  SHA512:
6
- metadata.gz: 53b6b59d4f5260cc6393996a48b7c20a533bc0f2d5723cba82722044be0bd093184bc666b81e0a6363bf60418a536b62a1d4eb2d5c1859118309ecc2792b2eb5
7
- data.tar.gz: 5341e4bef20532532f6f2e7b3669b1fd5130b6bc46fa3f45a851d9fd260d2cf4533f488b1675275f57977e1eb306fdc56e8027d884d8690ed7712a3a48c691a3
6
+ metadata.gz: 9cfd41769d311b131c28fd1515e3bfdec9fc1ca3912eb37ade3e00fe0796423adad0b9c7a7b4952d84a13b4fff0d163046ca4b8e1dad181f6879fb58e97c16fb
7
+ data.tar.gz: 8c2ee77d44457b16fe37dffc1e85cb3e381a873a28f1d3c8112f2a5acfc3d69b7332e0031f00d9b7c591dc1f528312cd22c8d447159917585f781b2fa96198ac
@@ -140,7 +140,7 @@ module Canistor
140
140
  end
141
141
 
142
142
  def allow_access_to(access_key_ids)
143
- access_keys.merge(access_key_ids)
143
+ settings.allow_access_keys(access_key_ids)
144
144
  end
145
145
 
146
146
  def store_replica(object)
@@ -29,19 +29,19 @@ module Canistor
29
29
  end
30
30
 
31
31
  def access_keys
32
- @access_keys || []
32
+ @access_keys
33
33
  end
34
34
 
35
35
  def replicates_to
36
- @replicates_to || []
36
+ @replicates_to
37
37
  end
38
38
 
39
39
  def versioned?
40
40
  !!@versioned
41
41
  end
42
42
 
43
- def allow_access_keys(access_keys)
44
- @access_keys = access_keys
43
+ def allow_access_keys(access_key_ids)
44
+ @access_keys.merge(access_key_ids)
45
45
  end
46
46
 
47
47
  def replicated?
@@ -73,7 +73,7 @@ module Canistor
73
73
  end
74
74
 
75
75
  def clear
76
- @access_keys = []
76
+ @access_keys = Set.new
77
77
  @replicates_to = []
78
78
  @versioned = false
79
79
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Canistor
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canistor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manfred Stienstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-31 00:00:00.000000000 Z
11
+ date: 2018-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler