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.
@@ -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(reload=false)
256
- @records = nil if reload
257
- @records ||= begin
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
@@ -1,3 +1,3 @@
1
1
  module YamlRecord
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nico Taing