rdf-tabular 0.4.0.beta2 → 0.4.0

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: b34ec5c872bbf6e8d8f13559b255283cd118cd46
4
- data.tar.gz: 08ace967385cb72fdc48e48ad434f7e0bd35753d
3
+ metadata.gz: e84b41fe3c25549c84acc75984afc3c2fdd320b2
4
+ data.tar.gz: fe3b1a0987bb7cc28e3ef9f8f7ed11617a2e6d8e
5
5
  SHA512:
6
- metadata.gz: 55a2305ce14c365631a1f7ad178e4b2c603ef2279c74537cb36f33a47ef81a19b250b1cad64719be5c1921536e06ee2ba4bd2fa2745dff81bfe652ed31ed823d
7
- data.tar.gz: 9a3b83c57938b94ebf1ab86052a0bccd144c9380394150748a6e580bf480e1bf39f835a9b2ff2633b3d6ca09823b782c945f3a40fbeec653d6c0ae61218805af
6
+ metadata.gz: 1c867b3e2abc2b5800b0f53367a1aadb6406471911f275878f9b79ecd00a8d3f7f19a47cdc58c8a7614575be8d993aebc8a3ac893bf04220b907d66833c33106
7
+ data.tar.gz: 7e47390a977454aad3f15765501e56acf587f2aa829deec58bcc6b3857c3bec59e0ac9c136fee57994b6fe9a2ab2fa4d5251527cc18dcd05509600979756ca30
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0.beta2
1
+ 0.4.0
@@ -52,14 +52,19 @@ module RDF::Tabular
52
52
  # @return [Hash{Symbol => Lambda(Array, Hash)}]
53
53
  def self.cli_commands
54
54
  {
55
- :"tabular-json" => ->(argv, opts) do
56
- raise ArgumentError, "Outputting Tabular JSON only allowed when input format is tabular." unless opts[:format] == :tabular
57
- out = opts[:output] || $stdout
58
- out.set_encoding(Encoding::UTF_8) if RUBY_PLATFORM == "java"
59
- RDF::CLI.parse(argv, opts) do |reader|
60
- out.puts reader.to_json
55
+ :"tabular-json" => {
56
+ description: "Generate tabular json output, rather than RDF for Tabular data",
57
+ help: "tabulary-json --input-format tabular files ...",
58
+ prase: false,
59
+ lambda: ->(argv, opts) do
60
+ raise ArgumentError, "Outputting Tabular JSON only allowed when input format is tabular." unless opts[:format] == :tabular
61
+ out = opts[:output] || $stdout
62
+ out.set_encoding(Encoding::UTF_8) if RUBY_PLATFORM == "java"
63
+ RDF::CLI.parse(argv, opts) do |reader|
64
+ out.puts reader.to_json
65
+ end
61
66
  end
62
- end
67
+ }
63
68
  }
64
69
  end
65
70
  end
@@ -60,7 +60,7 @@ describe RDF::Tabular::Format do
60
60
  let(:input) {File.expand_path("../data/countries.json", __FILE__)}
61
61
  describe "#tabular-json" do
62
62
  it "serializes to JSON" do
63
- expect {RDF::CLI.exec_command("tabular-json", [input], format: :tabular)}.to write.to(:output)
63
+ expect {RDF::CLI.exec(["tabular-json", input], format: :tabular)}.to write.to(:output)
64
64
  end
65
65
  end
66
66
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-tabular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.beta2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-23 00:00:00.000000000 Z
11
+ date: 2016-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcp47
@@ -34,82 +34,58 @@ dependencies:
34
34
  name: rdf
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 2.0.0.beta
40
- - - "<"
37
+ - - "~>"
41
38
  - !ruby/object:Gem::Version
42
- version: '3'
39
+ version: '2.0'
43
40
  type: :runtime
44
41
  prerelease: false
45
42
  version_requirements: !ruby/object:Gem::Requirement
46
43
  requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 2.0.0.beta
50
- - - "<"
44
+ - - "~>"
51
45
  - !ruby/object:Gem::Version
52
- version: '3'
46
+ version: '2.0'
53
47
  - !ruby/object:Gem::Dependency
54
48
  name: rdf-vocab
55
49
  requirement: !ruby/object:Gem::Requirement
56
50
  requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: 2.0.0.beta
60
- - - "<"
51
+ - - "~>"
61
52
  - !ruby/object:Gem::Version
62
- version: '3'
53
+ version: '2.0'
63
54
  type: :runtime
64
55
  prerelease: false
65
56
  version_requirements: !ruby/object:Gem::Requirement
66
57
  requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: 2.0.0.beta
70
- - - "<"
58
+ - - "~>"
71
59
  - !ruby/object:Gem::Version
72
- version: '3'
60
+ version: '2.0'
73
61
  - !ruby/object:Gem::Dependency
74
62
  name: rdf-xsd
75
63
  requirement: !ruby/object:Gem::Requirement
76
64
  requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: 2.0.0.beta
80
- - - "<"
65
+ - - "~>"
81
66
  - !ruby/object:Gem::Version
82
- version: '3'
67
+ version: '2.0'
83
68
  type: :runtime
84
69
  prerelease: false
85
70
  version_requirements: !ruby/object:Gem::Requirement
86
71
  requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: 2.0.0.beta
90
- - - "<"
72
+ - - "~>"
91
73
  - !ruby/object:Gem::Version
92
- version: '3'
74
+ version: '2.0'
93
75
  - !ruby/object:Gem::Dependency
94
76
  name: json-ld
95
77
  requirement: !ruby/object:Gem::Requirement
96
78
  requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- version: 2.0.0.beta
100
- - - "<"
79
+ - - "~>"
101
80
  - !ruby/object:Gem::Version
102
- version: '3'
81
+ version: '2.0'
103
82
  type: :runtime
104
83
  prerelease: false
105
84
  version_requirements: !ruby/object:Gem::Requirement
106
85
  requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: 2.0.0.beta
110
- - - "<"
86
+ - - "~>"
111
87
  - !ruby/object:Gem::Version
112
- version: '3'
88
+ version: '2.0'
113
89
  - !ruby/object:Gem::Dependency
114
90
  name: addressable
115
91
  requirement: !ruby/object:Gem::Requirement
@@ -170,82 +146,58 @@ dependencies:
170
146
  name: rdf-isomorphic
171
147
  requirement: !ruby/object:Gem::Requirement
172
148
  requirements:
173
- - - ">="
174
- - !ruby/object:Gem::Version
175
- version: 2.0.0.beta
176
- - - "<"
149
+ - - "~>"
177
150
  - !ruby/object:Gem::Version
178
- version: '3'
151
+ version: '2.0'
179
152
  type: :development
180
153
  prerelease: false
181
154
  version_requirements: !ruby/object:Gem::Requirement
182
155
  requirements:
183
- - - ">="
184
- - !ruby/object:Gem::Version
185
- version: 2.0.0.beta
186
- - - "<"
156
+ - - "~>"
187
157
  - !ruby/object:Gem::Version
188
- version: '3'
158
+ version: '2.0'
189
159
  - !ruby/object:Gem::Dependency
190
160
  name: rdf-spec
191
161
  requirement: !ruby/object:Gem::Requirement
192
162
  requirements:
193
- - - ">="
194
- - !ruby/object:Gem::Version
195
- version: 2.0.0.beta
196
- - - "<"
163
+ - - "~>"
197
164
  - !ruby/object:Gem::Version
198
- version: '3'
165
+ version: '2.0'
199
166
  type: :development
200
167
  prerelease: false
201
168
  version_requirements: !ruby/object:Gem::Requirement
202
169
  requirements:
203
- - - ">="
204
- - !ruby/object:Gem::Version
205
- version: 2.0.0.beta
206
- - - "<"
170
+ - - "~>"
207
171
  - !ruby/object:Gem::Version
208
- version: '3'
172
+ version: '2.0'
209
173
  - !ruby/object:Gem::Dependency
210
174
  name: rdf-turtle
211
175
  requirement: !ruby/object:Gem::Requirement
212
176
  requirements:
213
- - - ">="
214
- - !ruby/object:Gem::Version
215
- version: 2.0.0.beta
216
- - - "<"
177
+ - - "~>"
217
178
  - !ruby/object:Gem::Version
218
- version: '3'
179
+ version: '2.0'
219
180
  type: :development
220
181
  prerelease: false
221
182
  version_requirements: !ruby/object:Gem::Requirement
222
183
  requirements:
223
- - - ">="
224
- - !ruby/object:Gem::Version
225
- version: 2.0.0.beta
226
- - - "<"
184
+ - - "~>"
227
185
  - !ruby/object:Gem::Version
228
- version: '3'
186
+ version: '2.0'
229
187
  - !ruby/object:Gem::Dependency
230
188
  name: sparql
231
189
  requirement: !ruby/object:Gem::Requirement
232
190
  requirements:
233
- - - ">="
234
- - !ruby/object:Gem::Version
235
- version: 2.0.0.beta
236
- - - "<"
191
+ - - "~>"
237
192
  - !ruby/object:Gem::Version
238
- version: '3'
193
+ version: '2.0'
239
194
  type: :development
240
195
  prerelease: false
241
196
  version_requirements: !ruby/object:Gem::Requirement
242
197
  requirements:
243
- - - ">="
244
- - !ruby/object:Gem::Version
245
- version: 2.0.0.beta
246
- - - "<"
198
+ - - "~>"
247
199
  - !ruby/object:Gem::Version
248
- version: '3'
200
+ version: '2.0'
249
201
  - !ruby/object:Gem::Dependency
250
202
  name: webmock
251
203
  requirement: !ruby/object:Gem::Requirement
@@ -326,12 +278,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
326
278
  version: '2.0'
327
279
  required_rubygems_version: !ruby/object:Gem::Requirement
328
280
  requirements:
329
- - - ">"
281
+ - - ">="
330
282
  - !ruby/object:Gem::Version
331
- version: 1.3.1
283
+ version: '0'
332
284
  requirements: []
333
285
  rubyforge_project:
334
- rubygems_version: 2.5.1
286
+ rubygems_version: 2.4.8
335
287
  signing_key:
336
288
  specification_version: 4
337
289
  summary: Tabular Data RDF Reader and JSON serializer.