shoebox 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzM5ZTE1MmFlNTQ2NTllNGE0NDUzOTQ2NjljNDQ1NjYxOGI4MjMzNA==
4
+ MGNiYzg4ZjY2OTJmMzBlYTFlMjc2MDRkNTc2NzY0YzlhNGZlZWVmZQ==
5
5
  data.tar.gz: !binary |-
6
- MDlhOWE3ZDk2YWJkYTE1NWIyYzcxOTMwZTkxY2EyMmYzODQ4NjMzNA==
6
+ MWJkYzBlOTMzZDU4NjBlODY4MzU2N2QwNzc3YzM3MjYxNzVkZWM2Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODBhOGEwYmJhYmZlOWFkNWFhOTk1ZTFhMjE2MTBmMzI1ZjIyNTgyY2Q2MzYw
10
- M2M3NTYzMDRkOTUyNDczMDZiMmE5OWUzNjAwOTQ5ZGZlNzA5OTRmNmQ3ZjFi
11
- ODk5MzFjYjRlYTY1Y2M0ZGJjNTY4MGFlMGVmODYwOWQzNTg1NTE=
9
+ YjMwNTlmMzNjZTViMjNlODI0MjM2YjhiZTg5NGZhMGE1ZDhmOTZlMjdkMTEz
10
+ YTRiZjM5ZTFhOGRiYTVhZDAzZjQyMzNiMTQ4YTE5YTI2YmJiM2EwOTViMTQ3
11
+ YTcxZTYxZDRjM2ZiMWMxNWE1Y2I1YzFmNjhiMzE2M2VlZWY0MzM=
12
12
  data.tar.gz: !binary |-
13
- ZTg5NjcxMmE1NmZjMThmYWYyMzM1NDk1NGIzYTgxNGJiZTU4ZDRlMGZjN2Zm
14
- MTFlNjk1MGNjMTBlOGJmYmZkZTA4Y2I0YmQ3NjhmMjY0NzVmYWUzZTFkNzQ3
15
- ZWMwZDE4NmUzZWE5MTEzOGU5MjA5OWEyNzgyYWY5YmJkYzMwMGM=
13
+ NWNlMjE4NGVhYWEzMjZjNDU1NTU5OTdiZmE1M2ZjMWQ2OTNmZDhiZmRiYWUw
14
+ YWQyOTg3MjI3OTA5Mjc0ZjgzYTU1MDlhODljYzRhZGQ1MzcyNGE5NmZiMmM2
15
+ ZTEwY2U3YmE4NGQ3ZWExN2E2M2RhNjI3ZWM3YzgwZTU5NzNiMTc=
@@ -27,6 +27,12 @@ module Shoebox
27
27
  data[resource_type][resource_id]
28
28
  end
29
29
 
30
+ def all(resource_type)
31
+ validate_resource_type(resource_type)
32
+
33
+ data[resource_type].values
34
+ end
35
+
30
36
  def reset
31
37
  @data = Hash.new
32
38
  resource_types.each do |resource_type|
@@ -1,3 +1,3 @@
1
1
  module Shoebox
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoebox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Walters
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-07 00:00:00.000000000 Z
11
+ date: 2016-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler