active-triples 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +10 -3
- data/Gemfile +22 -0
- data/active-triples.gemspec +6 -1
- data/lib/active_triples/version.rb +1 -1
- data/spec/active_triples/list_spec.rb +1 -1
- data/spec/pragmatic_context_spec.rb +3 -1
- metadata +82 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afe7dc3e6a03d9813db24e04c17dcad6217ed566
|
4
|
+
data.tar.gz: bf3ee7f705aaf8f9e8e6172c1036b5dde382648d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ea193783cfafcff37b3726544cbc11b17bf956f6e9f272bfd755bd332384f75a50a9b95826ee90ab977e6bd4ceadebf40f1d1f5ef18eaad928c9cdf8fbcfe62
|
7
|
+
data.tar.gz: 35d643a57725687c70b5c74a715828972b445f90a4d79cce02a4c2b875945f5b84e6859a3dd39c1dc432138be1e2805fe89e2f918bd98d6748bc3581b5bfb7c0
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,12 +1,19 @@
|
|
1
1
|
anguage: ruby
|
2
2
|
bundler_args: --without debug
|
3
3
|
script: "bundle exec rspec spec"
|
4
|
+
env:
|
5
|
+
- CI=true
|
4
6
|
rvm:
|
5
7
|
- 1.9.3
|
6
8
|
- 2.0.0
|
7
|
-
- 2.1
|
8
|
-
- 2.
|
9
|
+
- 2.1
|
10
|
+
- 2.2
|
11
|
+
- 2.3
|
12
|
+
- 2.4
|
9
13
|
- jruby-19mode
|
14
|
+
cache: bundler
|
15
|
+
sudo: false
|
10
16
|
matrix:
|
11
17
|
allow_failures:
|
12
|
-
- rvm: jruby-19mode
|
18
|
+
- rvm: jruby-19mode
|
19
|
+
dist: trusty
|
data/Gemfile
CHANGED
@@ -1,3 +1,25 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
3
|
gemspec
|
4
|
+
|
5
|
+
version = Gem::Version.new(RUBY_VERSION)
|
6
|
+
|
7
|
+
if (version <= Gem::Version.new('2.2.4')) &&
|
8
|
+
(version >= Gem::Version.new('2.0.0'))
|
9
|
+
gem 'ruby_dep', '< 1.4.0'
|
10
|
+
end
|
11
|
+
|
12
|
+
gem 'listen', '< 3.1' if version <= Gem::Version.new('2.2.3')
|
13
|
+
gem 'activesupport', '< 5' if version <= Gem::Version.new('2.2.2')
|
14
|
+
|
15
|
+
if version <= Gem::Version.new('2.1.0')
|
16
|
+
gem 'deprecation', '< 0.3.0'
|
17
|
+
gem 'nokogiri', '< 1.7'
|
18
|
+
end
|
19
|
+
|
20
|
+
if version <= Gem::Version.new('2.0.0')
|
21
|
+
gem 'public_suffix', '< 1.5'
|
22
|
+
gem 'json-ld', '< 1.8'
|
23
|
+
gem 'linkeddata', '<= 1.1.11'
|
24
|
+
gem 'webmock', '< 2.3'
|
25
|
+
end
|
data/active-triples.gemspec
CHANGED
@@ -15,13 +15,18 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.required_ruby_version = '>= 1.9.3'
|
16
16
|
|
17
17
|
s.add_dependency('rdf', '~> 1.1')
|
18
|
-
s.add_dependency('
|
18
|
+
s.add_dependency('rdf-vocab', '~> 0.8')
|
19
19
|
s.add_dependency('activemodel', '>= 3.0.0')
|
20
20
|
s.add_dependency('deprecation', '~> 0.1')
|
21
21
|
s.add_dependency('activesupport', '>= 3.0.0')
|
22
22
|
|
23
23
|
s.add_development_dependency('rdoc')
|
24
24
|
s.add_development_dependency('rspec')
|
25
|
+
s.add_development_dependency('rdf-spec', '~> 1.99')
|
26
|
+
s.add_development_dependency('rdf-rdfxml', '>= 1.1.5', '~> 1.1')
|
27
|
+
s.add_development_dependency('rdf-turtle', '~> 1.99')
|
28
|
+
s.add_development_dependency('rdf-isomorphic', '~> 1.99')
|
29
|
+
s.add_development_dependency('json-ld', '~> 1.99')
|
25
30
|
s.add_development_dependency('guard-rspec')
|
26
31
|
s.add_development_dependency('webmock')
|
27
32
|
s.add_development_dependency('nokogiri')
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'pragmatic_context'
|
3
|
+
require 'json/ld'
|
3
4
|
|
4
5
|
describe 'PragmaticContext integration' do
|
5
6
|
before do
|
@@ -41,7 +42,8 @@ describe 'PragmaticContext integration' do
|
|
41
42
|
end
|
42
43
|
|
43
44
|
it 'should have contexts' do
|
44
|
-
expect(subject.as_jsonld['@context'].keys)
|
45
|
+
expect(subject.as_jsonld['@context'].keys)
|
46
|
+
.to contain_exactly("license", "title")
|
45
47
|
end
|
46
48
|
|
47
49
|
it 'should use context with dump' do
|
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.
|
4
|
+
version: 0.4.1
|
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-07-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdf
|
@@ -26,19 +26,19 @@ dependencies:
|
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '1.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: rdf-vocab
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '0.8'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '0.8'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: activemodel
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,6 +109,82 @@ dependencies:
|
|
109
109
|
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: rdf-spec
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - "~>"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '1.99'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '1.99'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rdf-rdfxml
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 1.1.5
|
133
|
+
- - "~>"
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '1.1'
|
136
|
+
type: :development
|
137
|
+
prerelease: false
|
138
|
+
version_requirements: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 1.1.5
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '1.1'
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: rdf-turtle
|
148
|
+
requirement: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '1.99'
|
153
|
+
type: :development
|
154
|
+
prerelease: false
|
155
|
+
version_requirements: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '1.99'
|
160
|
+
- !ruby/object:Gem::Dependency
|
161
|
+
name: rdf-isomorphic
|
162
|
+
requirement: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '1.99'
|
167
|
+
type: :development
|
168
|
+
prerelease: false
|
169
|
+
version_requirements: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '1.99'
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: json-ld
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '1.99'
|
181
|
+
type: :development
|
182
|
+
prerelease: false
|
183
|
+
version_requirements: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '1.99'
|
112
188
|
- !ruby/object:Gem::Dependency
|
113
189
|
name: guard-rspec
|
114
190
|
requirement: !ruby/object:Gem::Requirement
|
@@ -227,9 +303,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
303
|
version: '0'
|
228
304
|
requirements: []
|
229
305
|
rubyforge_project:
|
230
|
-
rubygems_version: 2.
|
306
|
+
rubygems_version: 2.6.8
|
231
307
|
signing_key:
|
232
308
|
specification_version: 4
|
233
309
|
summary: RDF graphs in ActiveModel wrappers.
|
234
310
|
test_files: []
|
235
|
-
has_rdoc:
|