redis_collection 0.1.0 → 0.2.0

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: 07e47b0f3e2daa373237c88cd56023e9d9ce2406
4
- data.tar.gz: 1e744dadcd3429875218d9c7cf3a4fcf2fe0e560
3
+ metadata.gz: 0e1b8cff1b21887cd63e9f43aa71487e343c3e0a
4
+ data.tar.gz: 8398a2b72d15b0e7f19b21f3fb6019ad3e3d2742
5
5
  SHA512:
6
- metadata.gz: ad0579ff02defb74a9bb335e352ab5cafbd085b8ac3fc2c232c125d914b8476846f8ae1dffb9358c61f48dd814a53b75fcc3d446addad155f6079fc43624c571
7
- data.tar.gz: d07d7822a1a1b22c4a6c75f9f734855515ba96753ae7d53830cda12b77eb5b583987a6ebfbd18fa329a7e4ddf7f470554b4109b2cb4f325f411f10f3cd5013bd
6
+ metadata.gz: c61b4ab214cbaac35eb6d8e4658741bce50752bdb864995814d22142fcbfca7d7b3b878a770be673ce34acf77cacb28e19a7ea6c8e2f225041ffd2bce5ab0cd0
7
+ data.tar.gz: c3d6294b5562ed6f8ddf45ba185672c30d452c5be88d290ce2da3a3d285dd36746f105bb14caf20224799b83b06efad618bde866e5701614a031640a22374fd6
@@ -0,0 +1,7 @@
1
+ ### 0.2.0
2
+
3
+ - Switch `object['id']` to `object[:id]` as default key
4
+
5
+ ### 0.1.0
6
+
7
+ - First release
data/README.md CHANGED
@@ -29,8 +29,8 @@ Or install it yourself as:
29
29
 
30
30
  ```ruby
31
31
  books = [
32
- { 'id' => 1, 'title' => 'Programming Elixir' },
33
- { 'id' => 2, 'title' => 'Programming Phoenix' }
32
+ { id: 1, title: 'Programming Elixir' },
33
+ { id: 2, title: 'Programming Phoenix' }
34
34
  ]
35
35
 
36
36
  redis = Redis.new(url: ENV['REDIS_URL'])
@@ -7,7 +7,7 @@ class RedisCollection
7
7
  namespace: '',
8
8
  load: -> string { Marshal.load(string) },
9
9
  dump: -> object { Marshal.dump(object) },
10
- make_key: -> object { object['id'] }
10
+ make_key: -> object { object[:id] }
11
11
  )
12
12
 
13
13
  @redis = redis
@@ -1,3 +1,3 @@
1
1
  class RedisCollection
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_collection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Chernyak
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-23 00:00:00.000000000 Z
11
+ date: 2016-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,6 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
77
  - ".travis.yml"
78
+ - CHANGELOG.md
78
79
  - CODE_OF_CONDUCT.md
79
80
  - Gemfile
80
81
  - LICENSE.txt
@@ -110,4 +111,3 @@ signing_key:
110
111
  specification_version: 4
111
112
  summary: Sync an iterable ruby object with a redis namespace.
112
113
  test_files: []
113
- has_rdoc: