fedux_org-stdlib 0.0.20 → 0.0.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.
@@ -43,6 +43,10 @@ module FeduxOrg
43
43
  name == other.name
44
44
  end
45
45
 
46
+ def hash
47
+ self.name.to_s.hash
48
+ end
49
+
46
50
  class << self
47
51
  #attr_accessor :instances
48
52
 
@@ -1,6 +1,6 @@
1
1
  #main FeduxOrg
2
2
  module FeduxOrg
3
3
  module Stdlib
4
- VERSION = '0.0.20'
4
+ VERSION = '0.0.21'
5
5
  end
6
6
  end
@@ -134,4 +134,14 @@ describe Models::FilesystemBasedModel do
134
134
  )
135
135
  end
136
136
  end
137
+
138
+ context "#init" do
139
+ it "init should only add unknown instances" do
140
+ @model.init
141
+ count1 = @model.all.size
142
+ @model.init
143
+ count2 = @model.all.size
144
+ expect(count2).to eq(count1)
145
+ end
146
+ end
137
147
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fedux_org-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-05 00:00:00.000000000 Z
12
+ date: 2013-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler