hoodie 0.3.2 → 0.3.21

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: 72da7061ddffd40ba6ccad448c34634baab1e69c
4
- data.tar.gz: 73ef7fcc64bf155b523921a9752f5931915b79cf
3
+ metadata.gz: aa629d2fbc64caec2a47adfdfbd5d0930f223926
4
+ data.tar.gz: 15954ba0a1aa24f20a862d4cbd44f2e3e5c8fc69
5
5
  SHA512:
6
- metadata.gz: 4e5bc5b23bd40ba1e8865d8b2919659b7d69a5e17578f6b21cdb97bd0d13de1dd5c48f546d00d13ef316d53f0fae9f481205a5353dbfa082dd5a5d42753f7a87
7
- data.tar.gz: 6aa8ae1b4a342d492f1ec1ebfa1dd15fa6cfebfb8658e9694944ce5733a7f37f51a3d6d5ce02685225cc56e88c7ac6dd2dea7c10b312c17e0489e4944048d456
6
+ metadata.gz: 4f477b059a41adb9ebd0cdc32fcf35cb05c14061ba7bdd219710440d58645beb8ccb39bee84bd90a21e3694a617c8c8c54e0de222e09cdab9c998eae7cfba5e5
7
+ data.tar.gz: 0637b892a292050aff2dc3f1ac5ba64a5ea30d58f53406c8e4d0bf17304e68ef84c08e0c8bc205a8820a5c69dcc0e9a0b126d21dddbc086eb525d300c1b41eb4
data/lib/hoodie/rash.rb CHANGED
@@ -47,6 +47,20 @@ class Rash
47
47
  @store[key]
48
48
  end
49
49
 
50
+ # Store the given value with the given key, either an an argument
51
+ # or block. If a previous value was set it will be overwritten
52
+ # with the new value.
53
+ #
54
+ # @param key [Symbol, String] string or symbol representing the key
55
+ # @param value [Object] any object that represents the value (optional)
56
+ # @param block [&block] that returns the value to set (optional)
57
+ #
58
+ # @return nothing.
59
+ #
60
+ def []=(key, value)
61
+ @store[key] = value
62
+ end
63
+
50
64
  # return the size of the store as an integer
51
65
  #
52
66
  # @return [Fixnum]
@@ -18,5 +18,5 @@
18
18
  #
19
19
 
20
20
  module Hoodie
21
- VERSION = '0.3.2'
21
+ VERSION = '0.3.21'
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoodie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Harding
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-18 00:00:00.000000000 Z
11
+ date: 2014-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anemone