yaml_record 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/yaml_record/base.rb +3 -6
- data/lib/yaml_record/version.rb +1 -1
- metadata +3 -3
data/lib/yaml_record/base.rb
CHANGED
@@ -252,12 +252,9 @@ module YamlRecord
|
|
252
252
|
# Post.all => [@post1, @post2, ...]
|
253
253
|
# Post.all(true) => (...force reload...)
|
254
254
|
#
|
255
|
-
def self.all
|
256
|
-
|
257
|
-
|
258
|
-
raw_items = YAML.load_file(source) || []
|
259
|
-
raw_items.map { |item| self.new(item.merge(:persisted => true)) }
|
260
|
-
end
|
255
|
+
def self.all
|
256
|
+
raw_items = YAML.load_file(source) || []
|
257
|
+
raw_items.map { |item| self.new(item.merge(:persisted => true)) }
|
261
258
|
end
|
262
259
|
|
263
260
|
# Find last YamlRecord instance given a limit
|
data/lib/yaml_record/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaml_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nico Taing
|