store-active_record 0.0.4 → 0.0.5

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: b7abe63975f357775d815d41143e4f528a280769
4
- data.tar.gz: b00ea1ffb17681a143da988ce78e12b00faa2f78
3
+ metadata.gz: d6b4efdcbfa9194f5ec8161940ce18fb5830ce4d
4
+ data.tar.gz: edc7d1311c79d32f7de93d3eae58bd103c463702
5
5
  SHA512:
6
- metadata.gz: 79a510dc34f35d82d56eb613e0dc42efd9271dc1d0e7e749f16b79b351224d0decbae888298ae4dca7fe7c8d3ce5c5f775c29548078fab4d923512ed833280f5
7
- data.tar.gz: bb5b035a0ff2f45efe7f0fc209ecc78023708f961d0482e922c2ddec1fc0a19b358815fbcc840b248be8ded94c17d4e023378aac85a676f8531e3c10249a7741
6
+ metadata.gz: 154642183b91bff7974e80e1a298c3e00f968c6f4f584b5b6f7a1f7ea29ce10a60c56ef2ad3806be8aa207f876e638fb6a750f94a4860ff7b1b4389e7bb7b829
7
+ data.tar.gz: be899db40b4371c901e3a7c2722ea5ccb5041c8de867eab5a7ced5c59324e6a80053d9ea61818531816497d244690aafa7375473116f9229c2c7b9b9d9ae2e57
@@ -1,5 +1,5 @@
1
1
  class Store
2
2
  class ActiveRecord
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -46,8 +46,18 @@ class Store
46
46
  cls.count
47
47
  end
48
48
 
49
+ def all
50
+ items.map do |item|
51
+ item.to_hash
52
+ end
53
+ end
54
+
49
55
  private
50
56
 
57
+ def items
58
+ cls.all
59
+ end
60
+
51
61
  class StoredEntity < ::ActiveRecord::Base
52
62
  def uid
53
63
  id.to_s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: store-active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Owiesniak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-12 00:00:00.000000000 Z
11
+ date: 2013-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler