active-triples 0.11.0 → 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/active-triples.gemspec +2 -1
- data/lib/active_triples/configuration.rb +22 -11
- data/lib/active_triples/extension_strategy.rb +1 -1
- data/lib/active_triples/list.rb +0 -2
- data/lib/active_triples/node_config.rb +64 -8
- data/lib/active_triples/persistable.rb +2 -12
- data/lib/active_triples/persistence_strategies/parent_strategy.rb +16 -15
- data/lib/active_triples/property.rb +36 -11
- data/lib/active_triples/rdf_source.rb +86 -9
- data/lib/active_triples/relation.rb +61 -42
- data/lib/active_triples/schema.rb +20 -1
- data/lib/active_triples/version.rb +1 -1
- data/spec/active_triples/extension_strategy_spec.rb +12 -1
- data/spec/active_triples/node_config_spec.rb +54 -0
- data/spec/active_triples/persistence_strategies/parent_strategy_spec.rb +24 -17
- data/spec/active_triples/property_spec.rb +10 -0
- data/spec/active_triples/rdf_source_spec.rb +103 -122
- data/spec/active_triples/relation_spec.rb +199 -12
- data/spec/active_triples/resource_spec.rb +115 -0
- data/spec/active_triples/schema_spec.rb +6 -0
- metadata +21 -7
@@ -12,5 +12,11 @@ RSpec.describe ActiveTriples::Schema do
|
|
12
12
|
expect(property.name).to eq :title
|
13
13
|
expect(property.predicate).to eq RDF::Vocab::DC.title
|
14
14
|
end
|
15
|
+
|
16
|
+
it 'should hold a block' do
|
17
|
+
subject.property :title, :predicate => RDF::Vocab::DC.title do
|
18
|
+
configure
|
19
|
+
end
|
20
|
+
end
|
15
21
|
end
|
16
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active-triples
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Johnson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdf
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 3.0.0
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
|
-
name:
|
77
|
+
name: yard
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
@@ -101,6 +101,20 @@ dependencies:
|
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: guard-rspec
|
106
|
+
requirement: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
104
118
|
- !ruby/object:Gem::Dependency
|
105
119
|
name: rdf-spec
|
106
120
|
requirement: !ruby/object:Gem::Requirement
|
@@ -267,6 +281,7 @@ files:
|
|
267
281
|
- spec/active_triples/identifiable_spec.rb
|
268
282
|
- spec/active_triples/list_spec.rb
|
269
283
|
- spec/active_triples/nested_attributes_spec.rb
|
284
|
+
- spec/active_triples/node_config_spec.rb
|
270
285
|
- spec/active_triples/persistable_spec.rb
|
271
286
|
- spec/active_triples/persistence_strategies/parent_strategy_spec.rb
|
272
287
|
- spec/active_triples/persistence_strategies/persistence_strategy_spec.rb
|
@@ -310,14 +325,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
310
325
|
version: 2.1.0
|
311
326
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
312
327
|
requirements:
|
313
|
-
- - "
|
328
|
+
- - ">"
|
314
329
|
- !ruby/object:Gem::Version
|
315
|
-
version:
|
330
|
+
version: 1.3.1
|
316
331
|
requirements: []
|
317
332
|
rubyforge_project:
|
318
|
-
rubygems_version: 2.
|
333
|
+
rubygems_version: 2.6.13
|
319
334
|
signing_key:
|
320
335
|
specification_version: 4
|
321
336
|
summary: RDF graphs in ActiveModel wrappers.
|
322
337
|
test_files: []
|
323
|
-
has_rdoc:
|