diametric 0.1.2-java → 0.1.3-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -3
  3. data/Jarfile +13 -6
  4. data/LICENSE.txt +2 -2
  5. data/README.md +57 -26
  6. data/Rakefile +1 -0
  7. data/bin/datomic-rest +1 -1
  8. data/bin/download-datomic +1 -1
  9. data/datomic_version.yml +2 -2
  10. data/diametric-java.gemspec +11 -10
  11. data/ext/diametric/DiametricCollection.java +45 -38
  12. data/ext/diametric/DiametricConnection.java +16 -15
  13. data/ext/diametric/DiametricDatabase.java +9 -8
  14. data/ext/diametric/DiametricEntity.java +104 -21
  15. data/ext/diametric/DiametricObject.java +12 -1
  16. data/ext/diametric/DiametricPeer.java +52 -31
  17. data/ext/diametric/DiametricService.java +2 -0
  18. data/ext/diametric/DiametricSet.java +11 -4
  19. data/ext/diametric/DiametricUUID.java +8 -1
  20. data/ext/diametric/DiametricUtils.java +90 -62
  21. data/lib/diametric.rb +1 -0
  22. data/lib/diametric/associations/collection.rb +103 -0
  23. data/lib/diametric/entity.rb +166 -103
  24. data/lib/diametric/persistence/common.rb +0 -44
  25. data/lib/diametric/persistence/peer.rb +53 -2
  26. data/lib/diametric/persistence/rest.rb +27 -1
  27. data/lib/diametric/query.rb +49 -31
  28. data/lib/diametric/rest_service.rb +8 -9
  29. data/lib/diametric/service_base.rb +7 -7
  30. data/lib/diametric/transactor.rb +6 -5
  31. data/lib/diametric/version.rb +1 -1
  32. data/lib/diametric_service.jar +0 -0
  33. data/spec/config/free-transactor-template.properties +6 -6
  34. data/spec/developer_query_spec.rb +17 -6
  35. data/spec/diametric/entity_spec.rb +62 -139
  36. data/spec/diametric/peer_api_spec.rb +23 -23
  37. data/spec/diametric/persistence/peer_spec.rb +73 -11
  38. data/spec/diametric/persistence/rest_spec.rb +108 -16
  39. data/spec/diametric/query_spec.rb +3 -3
  40. data/spec/diametric/rest_service_spec.rb +4 -4
  41. data/spec/diametric/schema_spec.rb +526 -0
  42. data/spec/diametric/transactor_spec.rb +5 -6
  43. data/spec/integration_spec.rb +7 -7
  44. data/spec/peer_integration_spec.rb +25 -1
  45. data/spec/peer_seattle_spec.rb +1 -2
  46. data/spec/spec_helper.rb +31 -4
  47. data/spec/support/cardinarity_many_example.rb +37 -0
  48. data/spec/support/entities.rb +127 -0
  49. data/spec/support/has_a_example.rb +31 -0
  50. data/spec/support/has_many_example.rb +79 -0
  51. data/spec/support/persistence_examples.rb +13 -5
  52. data/spec/support/various_types_examples.rb +163 -0
  53. data/spec/test_version_file.yml +2 -2
  54. metadata +147 -75
@@ -65,7 +65,8 @@ shared_examples "persistence API" do
65
65
  end
66
66
 
67
67
  it "can find it by attribute" do
68
- model2 = model_class.first({:name => "Wilbur"}, nil, true)
68
+ model2 = model_class.first({:name => "Wilbur"}, nil, true) if model_class.ancestors.include? Diametric::Persistence::Peer
69
+ model2 = model_class.first({:name => "Wilbur"}) if model_class.ancestors.include? Diametric::Persistence::REST
69
70
  model2.should_not be_nil
70
71
  model2.dbid.should == model.dbid
71
72
  model2.should == model if model2.is_a? Rat
@@ -73,23 +74,30 @@ shared_examples "persistence API" do
73
74
  end
74
75
 
75
76
  it "can find all matching conditions" do
76
- mice = model_class.where({:name => "Wilbur"}, nil, true).where(:age => 2).all
77
+ if model_class.ancestors.include? Diametric::Persistence::Peer
78
+ mice = model_class.where({:name => "Wilbur"}, nil, true).where(:age => 2).all
79
+ else
80
+ mice = model_class.where({:name => "Wilbur"}).where(:age => 2).all
81
+ end
77
82
  mice.should == [model]
78
83
  mice.should include(model)
79
84
  end
80
85
 
81
86
  it "can filter entities" do
82
- mice = model_class.filter(:<, :age, 3).all
87
+ mice = model_class.filter(nil, :<, :age, 3).all if model_class.ancestors.include? Diametric::Persistence::Peer
88
+ mice = model_class.filter(:<, :age, 3).all if model_class.ancestors.include? Diametric::Persistence::REST
83
89
  mice.should == [model]
84
90
  mice.should include(model)
85
91
 
86
- mice = model_class.filter(:>, :age, 3).all
92
+ mice = model_class.filter(nil, :>, :age, 3).all if model_class.ancestors.include? Diametric::Persistence::Peer
93
+ mice = model_class.filter(:>, :age, 3).all if model_class.ancestors.include? Diametric::Persistence::REST
87
94
  mice.should == []
88
95
  end
89
96
 
90
97
  it "can find all" do
91
98
  model_class.new(:name => "Smith", :age => 5).save
92
- mice = model_class.all(nil, true)
99
+ mice = model_class.all(nil, true) if model_class.ancestors.include? Diametric::Persistence::Peer
100
+ mice = model_class.all if model_class.ancestors.include? Diametric::Persistence::REST
93
101
  mice.should_not be_nil
94
102
  mice.size.should == 2
95
103
  names = ["Smith", "Wilbur"]
@@ -0,0 +1,163 @@
1
+ require 'uuid'
2
+
3
+ shared_examples "supports various types" do
4
+ describe "entity instance" do
5
+ let(:model) { model_class.new }
6
+
7
+ it "can save" do
8
+ model.name = "Wilbur"
9
+ model.description = "This bird has a lot of colors on its body which draws other animals' attentions"
10
+ model.talkative = true
11
+ model.colors = 200
12
+ model.average_speed = 12.34
13
+ model.observed = DateTime.parse("2013-12-24T07:18:29")
14
+ # REST failes to save UUID
15
+ if model_class.ancestors.include? Diametric::Persistence::Peer
16
+ model.case_no = UUID.new.generate
17
+ model.serial = UUID.new.generate
18
+ end
19
+ model.save.should be_true
20
+ model.should be_persisted
21
+ end
22
+
23
+ describe '#update_attributes' do
24
+ let(:bird) {
25
+ model.name = "William"
26
+ model.description = "This bird is famous for its colorful body."
27
+ model.talkative = false
28
+ model.colors = 150
29
+ model.average_speed = 6.99
30
+ model.observed = DateTime.parse("2010-11-12T05:16:27")
31
+ # REST failes to save UUID
32
+ if model_class.ancestors.include? Diametric::Persistence::Peer
33
+ model.case_no = UUID.new.generate
34
+ model.serial = UUID.new.generate
35
+ end
36
+ model.save
37
+ model
38
+ }
39
+
40
+ it "saves and updates name" do
41
+ new_values = { "name" => "Stuart" }
42
+ bird.update_attributes(new_values)
43
+
44
+ bird.should_not be_changed
45
+ bird.name.should == "Stuart"
46
+ if model_class.ancestors.include? Diametric::Persistence::Peer
47
+ result = model_class.where({:name => new_values["name"]}, nil, true).first
48
+ else
49
+ result = model_class.where({:name => new_values["name"]}).first
50
+ end
51
+ result.dbid.should == model.dbid
52
+ end
53
+
54
+ it "saves and updates description" do
55
+ new_values = { "description" => "Many words should be here to replace the value of description." }
56
+ bird.update_attributes(new_values)
57
+
58
+ bird.should_not be_changed
59
+ bird.description.should include("Many words")
60
+ if model_class.ancestors.include? Diametric::Persistence::Peer
61
+ result = model_class.where({:description => new_values["description"]}, nil, true).first
62
+ else
63
+ result = model_class.where({:description => new_values["description"]}).first
64
+ end
65
+ result.dbid.should == model.dbid
66
+ end
67
+
68
+ it "saves and updates talkative" do
69
+ new_values = { "talkative" => true }
70
+ bird.update_attributes(new_values)
71
+
72
+ bird.should_not be_changed
73
+ bird.talkative.should be_true
74
+ if model_class.ancestors.include? Diametric::Persistence::Peer
75
+ result = model_class.where({:talkative => new_values["talkative"]}, nil, true).first
76
+ else
77
+ result = model_class.where({:talkative => new_values["talkative"]}).first
78
+ end
79
+ result.dbid.should == model.dbid
80
+ end
81
+
82
+ it "saves and updates colors" do
83
+ new_values = { "colors" => 345 }
84
+ bird.update_attributes(new_values)
85
+
86
+ bird.should_not be_changed
87
+ bird.colors.should be_true
88
+ if model_class.ancestors.include? Diametric::Persistence::Peer
89
+ result = model_class.where({:colors => new_values["colors"]}, nil, true).first
90
+ else
91
+ result = model_class.where({:colors => new_values["colors"]}).first
92
+ end
93
+ result.dbid.should == model.dbid
94
+ end
95
+
96
+ it "saves and updates average_speed" do
97
+ new_values = { "average_speed" => 1.58 }
98
+ bird.update_attributes(new_values)
99
+
100
+ bird.should_not be_changed
101
+ bird.average_speed.should be_true
102
+ if model_class.ancestors.include? Diametric::Persistence::Peer
103
+ result = model_class.where({:average_speed => new_values["average_speed"]}, nil, true).first
104
+ else
105
+ result = model_class.where({:average_speed => new_values["average_speed"]}).first
106
+ end
107
+ result.dbid.should == model.dbid
108
+ end
109
+
110
+ it "saves and updates observed" do
111
+ new_values = { "observed" => DateTime.parse("2012-11-23T06:17:28") }
112
+ bird.update_attributes(new_values)
113
+
114
+ bird.should_not be_changed
115
+ bird.observed.should be_true
116
+ if model_class.ancestors.include? Diametric::Persistence::Peer
117
+ result = model_class.where({:observed => new_values["observed"]}, nil, true).first
118
+ else
119
+ result = model_class.where({:observed => new_values["observed"]}).first
120
+ end
121
+ result.dbid.should == model.dbid
122
+ end
123
+
124
+ it "saves and updates case_no" do
125
+ if model_class.ancestors.include? Diametric::Persistence::REST
126
+ pending "REST fails to save UUID type"
127
+ else
128
+ no = UUID.new.generate
129
+ new_values = { "case_no" => no }
130
+ bird.update_attributes(new_values)
131
+
132
+ bird.should_not be_changed
133
+ bird.case_no.should be_true
134
+ if model_class.ancestors.include? Diametric::Persistence::Peer
135
+ result = model_class.where({:case_no => new_values["case_no"]}, nil, true).first
136
+ else
137
+ result = model_class.where({:case_no => new_values["case_no"]}).first
138
+ end
139
+ result.dbid.should == model.dbid
140
+ end
141
+ end
142
+
143
+ it "saves and updates serial" do
144
+ if model_class.ancestors.include? Diametric::Persistence::REST
145
+ pending "REST fails to save UUID type"
146
+ else
147
+ no = UUID.new.generate
148
+ new_values = { "serial" => no }
149
+ bird.update_attributes(new_values)
150
+
151
+ bird.should_not be_changed
152
+ bird.serial.should be_true
153
+ if model_class.ancestors.include? Diametric::Persistence::Peer
154
+ result = model_class.where({:serial => new_values["serial"]}, nil, true).first
155
+ else
156
+ result = model_class.where({:serial => new_values["serial"]}).first
157
+ end
158
+ result.dbid.should == model.dbid
159
+ end
160
+ end
161
+ end
162
+ end
163
+ end
@@ -1,4 +1,4 @@
1
1
  free:
2
- datomic-free-0.8.4122
2
+ 0.9.4497
3
3
  pro:
4
- datomic-pro-0.8.4122
4
+ 0.9.4497
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diametric
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: java
6
6
  authors:
7
7
  - Clinton N. Dreisbach
@@ -10,148 +10,208 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-11-10 00:00:00.000000000 Z
13
+ date: 2014-02-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- version_requirements: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - ~>
19
- - !ruby/object:Gem::Version
20
- version: 1.0.2
21
16
  requirement: !ruby/object:Gem::Requirement
22
17
  requirements:
23
18
  - - ~>
19
+ - !ruby/object:Gem::Version
20
+ version: '1.0'
21
+ - - '>='
24
22
  - !ruby/object:Gem::Version
25
23
  version: 1.0.2
24
+ name: edn
26
25
  prerelease: false
27
26
  type: :runtime
28
- name: edn
29
- - !ruby/object:Gem::Dependency
30
27
  version_requirements: !ruby/object:Gem::Requirement
31
28
  requirements:
32
29
  - - ~>
33
30
  - !ruby/object:Gem::Version
34
- version: 3.2.14
31
+ version: '1.0'
32
+ - - '>='
33
+ - !ruby/object:Gem::Version
34
+ version: 1.0.2
35
+ - !ruby/object:Gem::Dependency
35
36
  requirement: !ruby/object:Gem::Requirement
36
37
  requirements:
37
38
  - - ~>
38
39
  - !ruby/object:Gem::Version
39
- version: 3.2.14
40
+ version: '3.2'
41
+ - - '>='
42
+ - !ruby/object:Gem::Version
43
+ version: 3.2.16
44
+ name: activesupport
40
45
  prerelease: false
41
46
  type: :runtime
42
- name: activesupport
43
- - !ruby/object:Gem::Dependency
44
47
  version_requirements: !ruby/object:Gem::Requirement
45
48
  requirements:
46
49
  - - ~>
47
50
  - !ruby/object:Gem::Version
48
- version: 3.2.14
51
+ version: '3.2'
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: 3.2.16
55
+ - !ruby/object:Gem::Dependency
49
56
  requirement: !ruby/object:Gem::Requirement
50
57
  requirements:
51
58
  - - ~>
52
59
  - !ruby/object:Gem::Version
53
- version: 3.2.14
60
+ version: '3.2'
61
+ - - '>='
62
+ - !ruby/object:Gem::Version
63
+ version: 3.2.16
64
+ name: activemodel
54
65
  prerelease: false
55
66
  type: :runtime
56
- name: activemodel
57
- - !ruby/object:Gem::Dependency
58
67
  version_requirements: !ruby/object:Gem::Requirement
59
68
  requirements:
60
69
  - - ~>
61
70
  - !ruby/object:Gem::Version
62
- version: 0.4.1
71
+ version: '3.2'
72
+ - - '>='
73
+ - !ruby/object:Gem::Version
74
+ version: 3.2.16
75
+ - !ruby/object:Gem::Dependency
63
76
  requirement: !ruby/object:Gem::Requirement
64
77
  requirements:
65
78
  - - ~>
79
+ - !ruby/object:Gem::Version
80
+ version: '0.4'
81
+ - - '>='
66
82
  - !ruby/object:Gem::Version
67
83
  version: 0.4.1
84
+ name: datomic-client
68
85
  prerelease: false
69
86
  type: :runtime
70
- name: datomic-client
71
- - !ruby/object:Gem::Dependency
72
87
  version_requirements: !ruby/object:Gem::Requirement
73
88
  requirements:
74
89
  - - ~>
75
90
  - !ruby/object:Gem::Version
76
- version: 0.9.9
91
+ version: '0.4'
92
+ - - '>='
93
+ - !ruby/object:Gem::Version
94
+ version: 0.4.1
95
+ - !ruby/object:Gem::Dependency
77
96
  requirement: !ruby/object:Gem::Requirement
78
97
  requirements:
79
98
  - - ~>
99
+ - !ruby/object:Gem::Version
100
+ version: '0.9'
101
+ - - '>='
80
102
  - !ruby/object:Gem::Version
81
103
  version: 0.9.9
104
+ name: rubyzip
82
105
  prerelease: false
83
106
  type: :runtime
84
- name: rubyzip
85
- - !ruby/object:Gem::Dependency
86
107
  version_requirements: !ruby/object:Gem::Requirement
87
108
  requirements:
88
109
  - - ~>
89
110
  - !ruby/object:Gem::Version
90
- version: 0.7.5
111
+ version: '0.9'
112
+ - - '>='
113
+ - !ruby/object:Gem::Version
114
+ version: 0.9.9
115
+ - !ruby/object:Gem::Dependency
91
116
  requirement: !ruby/object:Gem::Requirement
92
117
  requirements:
93
118
  - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: '0.7'
121
+ - - '>='
94
122
  - !ruby/object:Gem::Version
95
123
  version: 0.7.5
124
+ name: lock_jar
96
125
  prerelease: false
97
126
  type: :runtime
98
- name: lock_jar
99
- - !ruby/object:Gem::Dependency
100
127
  version_requirements: !ruby/object:Gem::Requirement
101
128
  requirements:
102
129
  - - ~>
103
130
  - !ruby/object:Gem::Version
104
- version: 0.8.8
131
+ version: '0.7'
132
+ - - '>='
133
+ - !ruby/object:Gem::Version
134
+ version: 0.7.5
135
+ - !ruby/object:Gem::Dependency
105
136
  requirement: !ruby/object:Gem::Requirement
106
137
  requirements:
107
138
  - - ~>
139
+ - !ruby/object:Gem::Version
140
+ version: '0.8'
141
+ - - '>='
108
142
  - !ruby/object:Gem::Version
109
143
  version: 0.8.8
144
+ name: jruby-openssl
110
145
  prerelease: false
111
146
  type: :runtime
112
- name: jruby-openssl
113
- - !ruby/object:Gem::Dependency
114
147
  version_requirements: !ruby/object:Gem::Requirement
115
148
  requirements:
116
149
  - - ~>
117
150
  - !ruby/object:Gem::Version
118
- version: 2.3.7
151
+ version: '0.8'
152
+ - - '>='
153
+ - !ruby/object:Gem::Version
154
+ version: 0.8.8
155
+ - !ruby/object:Gem::Dependency
119
156
  requirement: !ruby/object:Gem::Requirement
120
157
  requirements:
121
158
  - - ~>
159
+ - !ruby/object:Gem::Version
160
+ version: '2.3'
161
+ - - '>='
122
162
  - !ruby/object:Gem::Version
123
163
  version: 2.3.7
164
+ name: uuid
124
165
  prerelease: false
125
166
  type: :runtime
126
- name: uuid
127
- - !ruby/object:Gem::Dependency
128
167
  version_requirements: !ruby/object:Gem::Requirement
129
168
  requirements:
130
169
  - - ~>
131
170
  - !ruby/object:Gem::Version
132
- version: 2.14.1
171
+ version: '2.3'
172
+ - - '>='
173
+ - !ruby/object:Gem::Version
174
+ version: 2.3.7
175
+ - !ruby/object:Gem::Dependency
133
176
  requirement: !ruby/object:Gem::Requirement
134
177
  requirements:
135
178
  - - ~>
179
+ - !ruby/object:Gem::Version
180
+ version: '2.14'
181
+ - - '>='
136
182
  - !ruby/object:Gem::Version
137
183
  version: 2.14.1
184
+ name: rspec
138
185
  prerelease: false
139
186
  type: :runtime
140
- name: rspec
141
- - !ruby/object:Gem::Dependency
142
187
  version_requirements: !ruby/object:Gem::Requirement
143
188
  requirements:
144
189
  - - ~>
145
190
  - !ruby/object:Gem::Version
146
- version: 0.9.1
191
+ version: '2.14'
192
+ - - '>='
193
+ - !ruby/object:Gem::Version
194
+ version: 2.14.1
195
+ - !ruby/object:Gem::Dependency
147
196
  requirement: !ruby/object:Gem::Requirement
148
197
  requirements:
149
198
  - - ~>
199
+ - !ruby/object:Gem::Version
200
+ version: '0.9'
201
+ - - '>='
150
202
  - !ruby/object:Gem::Version
151
203
  version: 0.9.1
204
+ name: rake-compiler
152
205
  prerelease: false
153
206
  type: :runtime
154
- name: rake-compiler
207
+ version_requirements: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - ~>
210
+ - !ruby/object:Gem::Version
211
+ version: '0.9'
212
+ - - '>='
213
+ - !ruby/object:Gem::Version
214
+ version: 0.9.1
155
215
  description: |
156
216
  Diametric is a library for building schemas, queries, and transactions
157
217
  for Datomic from Ruby objects. It is also used to map Ruby objects
@@ -172,44 +232,62 @@ files:
172
232
  - LICENSE.txt
173
233
  - README.md
174
234
  - Rakefile
235
+ - bin/datomic-rest
236
+ - bin/download-datomic
175
237
  - datomic_version.yml
176
238
  - diametric-java.gemspec
239
+ - ext/diametric/DiametricCollection.java
240
+ - ext/diametric/DiametricCommon.java
241
+ - ext/diametric/DiametricConnection.java
242
+ - ext/diametric/DiametricDatabase.java
243
+ - ext/diametric/DiametricEntity.java
244
+ - ext/diametric/DiametricListenableFuture.java
245
+ - ext/diametric/DiametricObject.java
246
+ - ext/diametric/DiametricPeer.java
247
+ - ext/diametric/DiametricService.java
248
+ - ext/diametric/DiametricSet.java
249
+ - ext/diametric/DiametricUUID.java
250
+ - ext/diametric/DiametricUtils.java
177
251
  - lib/boolean_type.rb
178
252
  - lib/diametric.rb
179
- - lib/diametric_service.jar
180
- - lib/value_enums.rb
253
+ - lib/diametric/associations/collection.rb
181
254
  - lib/diametric/config.rb
255
+ - lib/diametric/config/environment.rb
182
256
  - lib/diametric/entity.rb
183
257
  - lib/diametric/errors.rb
258
+ - lib/diametric/generators/active_model.rb
184
259
  - lib/diametric/persistence.rb
260
+ - lib/diametric/persistence/common.rb
261
+ - lib/diametric/persistence/peer.rb
262
+ - lib/diametric/persistence/rest.rb
185
263
  - lib/diametric/query.rb
186
264
  - lib/diametric/railtie.rb
187
265
  - lib/diametric/rest_service.rb
188
266
  - lib/diametric/service_base.rb
189
267
  - lib/diametric/transactor.rb
190
268
  - lib/diametric/version.rb
191
- - lib/diametric/config/environment.rb
192
- - lib/diametric/generators/active_model.rb
193
- - lib/diametric/persistence/common.rb
194
- - lib/diametric/persistence/peer.rb
195
- - lib/diametric/persistence/rest.rb
269
+ - lib/diametric_service.jar
196
270
  - lib/tasks/create_schema.rb
197
271
  - lib/tasks/diametric_config.rb
198
- - ext/diametric/DiametricCollection.java
199
- - ext/diametric/DiametricCommon.java
200
- - ext/diametric/DiametricConnection.java
201
- - ext/diametric/DiametricDatabase.java
202
- - ext/diametric/DiametricEntity.java
203
- - ext/diametric/DiametricListenableFuture.java
204
- - ext/diametric/DiametricObject.java
205
- - ext/diametric/DiametricPeer.java
206
- - ext/diametric/DiametricService.java
207
- - ext/diametric/DiametricSet.java
208
- - ext/diametric/DiametricUtils.java
209
- - ext/diametric/DiametricUUID.java
272
+ - lib/value_enums.rb
210
273
  - spec/conf_helper.rb
274
+ - spec/config/free-transactor-template.properties
275
+ - spec/config/logback.xml
276
+ - spec/data/seattle-data0.dtm
277
+ - spec/data/seattle-data1.dtm
211
278
  - spec/developer_create_sample.rb
212
279
  - spec/developer_query_spec.rb
280
+ - spec/diametric/config_spec.rb
281
+ - spec/diametric/entity_spec.rb
282
+ - spec/diametric/peer_api_spec.rb
283
+ - spec/diametric/persistence/peer_many2many_spec.rb
284
+ - spec/diametric/persistence/peer_spec.rb
285
+ - spec/diametric/persistence/rest_spec.rb
286
+ - spec/diametric/persistence_spec.rb
287
+ - spec/diametric/query_spec.rb
288
+ - spec/diametric/rest_service_spec.rb
289
+ - spec/diametric/schema_spec.rb
290
+ - spec/diametric/transactor_spec.rb
213
291
  - spec/integration_spec.rb
214
292
  - spec/parent_child_sample.rb
215
293
  - spec/peer_integration_spec.rb
@@ -220,28 +298,17 @@ files:
220
298
  - spec/seattle_integration_spec.rb
221
299
  - spec/simple_validation_sample.rb
222
300
  - spec/spec_helper.rb
223
- - spec/test_version_file.yml
224
- - spec/config/free-transactor-template.properties
225
- - spec/config/logback.xml
226
- - spec/data/seattle-data0.dtm
227
- - spec/data/seattle-data1.dtm
228
- - spec/diametric/config_spec.rb
229
- - spec/diametric/entity_spec.rb
230
- - spec/diametric/peer_api_spec.rb
231
- - spec/diametric/persistence_spec.rb
232
- - spec/diametric/query_spec.rb
233
- - spec/diametric/rest_service_spec.rb
234
- - spec/diametric/transactor_spec.rb
235
- - spec/diametric/persistence/peer_many2many_spec.rb
236
- - spec/diametric/persistence/peer_spec.rb
237
- - spec/diametric/persistence/rest_spec.rb
301
+ - spec/support/cardinarity_many_example.rb
238
302
  - spec/support/entities.rb
239
303
  - spec/support/gen_entity_class.rb
304
+ - spec/support/has_a_example.rb
305
+ - spec/support/has_many_example.rb
240
306
  - spec/support/persistence_examples.rb
241
- - bin/datomic-rest
242
- - bin/download-datomic
307
+ - spec/support/various_types_examples.rb
308
+ - spec/test_version_file.yml
243
309
  homepage: https://github.com/relevance/diametric
244
- licenses: []
310
+ licenses:
311
+ - MIT
245
312
  metadata: {}
246
313
  post_install_message:
247
314
  rdoc_options: []
@@ -259,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
326
  version: '0'
260
327
  requirements: []
261
328
  rubyforge_project:
262
- rubygems_version: 2.0.7
329
+ rubygems_version: 2.2.2
263
330
  signing_key:
264
331
  specification_version: 4
265
332
  summary: ActiveModel for Datomic (JRuby)
@@ -283,10 +350,15 @@ test_files:
283
350
  - spec/diametric/persistence_spec.rb
284
351
  - spec/diametric/query_spec.rb
285
352
  - spec/diametric/rest_service_spec.rb
353
+ - spec/diametric/schema_spec.rb
286
354
  - spec/diametric/transactor_spec.rb
287
355
  - spec/diametric/persistence/peer_many2many_spec.rb
288
356
  - spec/diametric/persistence/peer_spec.rb
289
357
  - spec/diametric/persistence/rest_spec.rb
358
+ - spec/support/cardinarity_many_example.rb
290
359
  - spec/support/entities.rb
291
360
  - spec/support/gen_entity_class.rb
361
+ - spec/support/has_a_example.rb
362
+ - spec/support/has_many_example.rb
292
363
  - spec/support/persistence_examples.rb
364
+ - spec/support/various_types_examples.rb