dbd 0.0.17 → 0.0.18

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: 773a87ca1d81804dd5485d37043d26b2b2deb470
4
- data.tar.gz: a8af3a92f1c45d5d61bcfddd2b987f6505ec04a9
3
+ metadata.gz: 13af9d019e4b27d4833ee8630d0c5bf039a7aaab
4
+ data.tar.gz: ed9e32664574ea16ae259b5ba86e22b4692a8609
5
5
  SHA512:
6
- metadata.gz: 05f2b248a0e4316582283386c0cd99e897dd2e75f249ad23c27cd58b1aff475dc966cd8fe095e109e092273b1267db38ac710dd8547241682e538a542257ff87
7
- data.tar.gz: 86dd48f0e85afa879f54bbb7190fc4c66ebf6a9039767b5adb8d1362d48b15128760ff7e512598ea1d4e842ddd0141e5d674ed4855cf2a31e3ed10b2859af923
6
+ metadata.gz: 97555491b38015176f6e0fbef78653203da669090da4e0d778e85c7045138e106f10558b02c526db7c97166f3da46ae90917f7be0557ac6e36ff1210972d5a78
7
+ data.tar.gz: 01a111a1f113c469d95749dcdc68ddaaf806295be267ca47c14bcae4a82e013837ae79160f8eabb4e05f223a73c02346a1f03d6dd55f4a4437004d3ad6939d05
@@ -107,3 +107,8 @@
107
107
  ======
108
108
 
109
109
  * update dependency on neography >= 1.1.3
110
+
111
+ 0.0.18 (1 Sept 2013)
112
+ ======
113
+
114
+ * add Fact::Collection#subjects (all subjects for contexts and resources)
@@ -47,6 +47,10 @@ module Dbd
47
47
  @hash_by_subject[fact_subject].map{ |index| @internal_collection[index]}
48
48
  end
49
49
 
50
+ def subjects
51
+ @hash_by_subject.keys
52
+ end
53
+
50
54
  private
51
55
 
52
56
  def validate_time_stamp(fact)
@@ -1,3 +1,3 @@
1
1
  module Dbd
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
@@ -167,6 +167,18 @@ module Dbd
167
167
  end
168
168
  end
169
169
 
170
+ describe 'subjects : ' do
171
+ it 'finds all subjects' do
172
+ subject << context_fact_visibility
173
+ subject << context_fact_created_by # same subject as previous line
174
+ subject << fact_2_with_subject
175
+ subject << fact_3_with_subject
176
+ subject.subjects.first.should == context_fact_visibility.subject
177
+ subject.subjects.last.should == fact_3_with_subject.subject
178
+ subject.subjects.size.should == 3
179
+ end
180
+ end
181
+
170
182
  describe 'TestFactories::Fact::Collection' do
171
183
  describe '.fact_2_3' do
172
184
  it 'has the given context_subject with explicit subject arg' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Vandenabeele
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-30 00:00:00.000000000 Z
11
+ date: 2013-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler