ld-patch 0.3.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +38 -20
- data/VERSION +1 -1
- data/bin/ldpatch +5 -5
- data/lib/ld/patch.rb +4 -4
- data/lib/ld/patch/algebra/patch.rb +9 -2
- data/lib/ld/patch/format.rb +24 -10
- data/lib/ld/patch/parser.rb +11 -8
- metadata +32 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fe7a4c97dcc0221199b7b13feb6dbb1b1b391382e5e7a0658d3909927841d911
|
4
|
+
data.tar.gz: 400b59467e176a6486751a1652470383083250999f157d233377027b1bc7a045
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 299a418ac2b089e17943e67f21ee8edb49e972d71f878f3cf082291aa42aa95455cffe974f7826be99c11c83e52c26ececcaddb7379f9b516b60384485700323
|
7
|
+
data.tar.gz: 4c6cb57eeddbdf30f070dd9ecd0422460d939efe534f4b3df97e356aff99af93502365b9b6ebde4d26bbc86fb327e0ff8dcb1c90533e1b89a82d28becbeb1cc4
|
data/README.md
CHANGED
@@ -2,9 +2,10 @@
|
|
2
2
|
|
3
3
|
This is a [Ruby][] implementation of [LD Patch][] for [RDF.rb][].
|
4
4
|
|
5
|
-
[![Gem Version](https://badge.fury.io/rb/ld-patch.png)](
|
6
|
-
[![Build Status](https://
|
7
|
-
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/ld-patch/badge.svg)](https://coveralls.io/
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/ld-patch.png)](https://badge.fury.io/rb/ld-patch)
|
6
|
+
[![Build Status](https://github.com/ruby-rdf/ld-patch/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/ld-patch/actions?query=workflow%3ACI)
|
7
|
+
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/ld-patch/badge.svg)](https://coveralls.io/github/ruby-rdf/ld-patch)
|
8
|
+
[![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
|
8
9
|
|
9
10
|
## Description
|
10
11
|
|
@@ -24,7 +25,7 @@ This gem implements the [LD Patch][] specification with a couple of changes and/
|
|
24
25
|
* 100% free and unencumbered [public domain](http://unlicense.org/) software.
|
25
26
|
* Complete [Linked Data Patch Format][LD Patch] parsing and execution
|
26
27
|
* Implementation Report: {file:etc/earl.html EARL}
|
27
|
-
* Compatible with Ruby >= 2.
|
28
|
+
* Compatible with Ruby >= 2.4.
|
28
29
|
|
29
30
|
## Documentation
|
30
31
|
Full documentation available on [Rubydoc.info][LD-Patch doc]
|
@@ -50,9 +51,22 @@ Full documentation available on [Rubydoc.info][LD-Patch doc]
|
|
50
51
|
Bind ?ruby <> / doap:programming-language .
|
51
52
|
Cut ?ruby .
|
52
53
|
)
|
53
|
-
operator = LD::Patch.parse(patch, base_uri: "
|
54
|
+
operator = LD::Patch.parse(patch, base_uri: "https://rubygems.org/gems/ld-patch")
|
54
55
|
operator.execute(queryable) # alternatively queryable.query(operator)
|
55
56
|
|
57
|
+
## Command Line
|
58
|
+
When the `linkeddata` gem is installed, RDF.rb includes a `rdf` executable which acts as a wrapper to perform a number of different
|
59
|
+
operations on RDF files, including LD::Patch, which is used as a stream command and must be followed by serialize to see the results. The commands specific to LD::Patch is
|
60
|
+
|
61
|
+
* `ld-patch`: Patch the current graph using a patch file
|
62
|
+
|
63
|
+
Using this command requires either a `patch-input` where the patch is URI encoded, or `patch-file`, which references a URI or file path to the patch.
|
64
|
+
Example usage:
|
65
|
+
|
66
|
+
rdf patch serialize https://raw.githubusercontent.com/ruby-rdf/ld-patch/develop/etc/doap.ttl \
|
67
|
+
--patch-input Add%20%7B%20%3Chttp://example.org/s2%3E%20%3Chttp://example.org/p2%3E%20%3Chttp://example.org/o2%3E%20%7D%20. \
|
68
|
+
--output-format ttl
|
69
|
+
|
56
70
|
## Implementation Notes
|
57
71
|
The reader uses the [EBNF][] gem to generate first, follow and branch tables, and uses the `Parser` and `Lexer` modules to implement the LD Patch parser.
|
58
72
|
|
@@ -60,18 +74,18 @@ The parser takes branch and follow tables generated from the [LD Patch Grammar](
|
|
60
74
|
|
61
75
|
## Dependencies
|
62
76
|
|
63
|
-
* [Ruby](http://ruby-lang.org/) (>= 2.
|
64
|
-
* [RDF.rb](
|
65
|
-
* [EBNF][] (~> 1.
|
66
|
-
* [SPARQL][] (~>
|
67
|
-
* [SXP][] (~>
|
68
|
-
* [RDF::XSD][] (~>
|
77
|
+
* [Ruby](http://ruby-lang.org/) (>= 2.4)
|
78
|
+
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.1)
|
79
|
+
* [EBNF][] (~> 1.2)
|
80
|
+
* [SPARQL][] (~> 3.1)
|
81
|
+
* [SXP][] (~> 1.1)
|
82
|
+
* [RDF::XSD][] (~> 3.1)
|
69
83
|
|
70
84
|
## Mailing List
|
71
85
|
* <http://lists.w3.org/Archives/Public/public-rdf-ruby/>
|
72
86
|
|
73
87
|
## Author
|
74
|
-
* [Gregg Kellogg](
|
88
|
+
* [Gregg Kellogg](https://github.com/gkellogg) - <http://greggkellogg.net/>
|
75
89
|
|
76
90
|
## Contributing
|
77
91
|
This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange development and release activity. All submissions _must_ be on a feature branch based on the _develop_ branch to ease staging and integration.
|
@@ -81,7 +95,11 @@ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange develo
|
|
81
95
|
* Do document every method you add using [YARD][] annotations. Read the [tutorial][YARD-GS] or just look at the existing code for examples.
|
82
96
|
* Don't touch the `.gemspec`, `VERSION` or `AUTHORS` files. If you need to change them, do so on your private branch only.
|
83
97
|
* Do feel free to add yourself to the `CREDITS` file and the corresponding list in the the `README`. Alphabetical order applies.
|
84
|
-
* Do note that in order for us to merge any non-trivial changes (as a rule
|
98
|
+
* Do note that in order for us to merge any non-trivial changes (as a rule
|
99
|
+
of thumb, additions larger than about 15 lines of code), we need an
|
100
|
+
explicit [public domain dedication][PDD] on record from you,
|
101
|
+
which you will be asked to agree to on the first commit to a repo within the organization.
|
102
|
+
Note that the agreement applies to all repos in the [Ruby RDF](https://github.com/ruby-rdf/) organization.
|
85
103
|
|
86
104
|
## License
|
87
105
|
This is free and unencumbered public domain software. For more information,
|
@@ -93,13 +111,13 @@ A copy of the [LD Patch EBNF](file:etc/ld-patch.ebnf) and derived parser files a
|
|
93
111
|
[RDF]: http://www.w3.org/RDF/
|
94
112
|
[YARD]: http://yardoc.org/
|
95
113
|
[YARD-GS]: http://rubydoc.info/docs/yard/file/docs/GettingStarted.md
|
96
|
-
[PDD]:
|
97
|
-
[RDF.rb]:
|
98
|
-
[RDF::XSD]:
|
99
|
-
[EBNF]:
|
100
|
-
[SPARQL]:
|
101
|
-
[Linked Data]:
|
114
|
+
[PDD]: https://unlicense.org/#unlicensing-contributions
|
115
|
+
[RDF.rb]: https://rubygems.org/gems/rdf
|
116
|
+
[RDF::XSD]: https://rubygems.org/gems/rdf-xsd
|
117
|
+
[EBNF]: https://rubygems.org/gems/ebnf
|
118
|
+
[SPARQL]: https://rubygems.org/gems/sparql
|
119
|
+
[Linked Data]: https://rubygems.org/gems/linkeddata
|
102
120
|
[SSE]: http://openjena.org/wiki/SSE
|
103
|
-
[SXP]:
|
121
|
+
[SXP]: https://rubygems.org/gems/sxp-ruby
|
104
122
|
[LD Patch]: http://www.w3.org/TR/ldpatch/
|
105
123
|
[LD-Patch doc]: http://rubydoc.info/github/ruby-rdf/ld-patch
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.1.2
|
data/bin/ldpatch
CHANGED
@@ -22,9 +22,9 @@ def run(graph, options = {})
|
|
22
22
|
|
23
23
|
patch = LD::Patch.parse(options[:patch], options)
|
24
24
|
|
25
|
-
puts ("\
|
25
|
+
puts ("\nSXP:\n" + patch.to_sse) if options[:debug] || options[:to_sxp]
|
26
26
|
|
27
|
-
unless options[:
|
27
|
+
unless options[:to_sxp]
|
28
28
|
res = patch.execute(graph, options)
|
29
29
|
puts res.dump(:ttl, base_uri: patch.base_uri, prefixes: patch.prefixes, standard_prefixes: true)
|
30
30
|
end
|
@@ -35,7 +35,7 @@ opts = GetoptLong.new(
|
|
35
35
|
["--execute", "-e", GetoptLong::REQUIRED_ARGUMENT],
|
36
36
|
["--patch", GetoptLong::REQUIRED_ARGUMENT],
|
37
37
|
["--progress", GetoptLong::NO_ARGUMENT],
|
38
|
-
["--to-
|
38
|
+
["--to-sxp", GetoptLong::NO_ARGUMENT],
|
39
39
|
["--validate", GetoptLong::NO_ARGUMENT],
|
40
40
|
["--verbose", GetoptLong::NO_ARGUMENT],
|
41
41
|
["--help", "-?", GetoptLong::NO_ARGUMENT]
|
@@ -50,7 +50,7 @@ opts.each do |opt, arg|
|
|
50
50
|
when '--execute' then options[:patch] = arg
|
51
51
|
when '--patch' then options[:patch] = RDF::Util::File.open_file(arg).read
|
52
52
|
when '--progress' then options[:debug] ||= 2
|
53
|
-
when '--to-
|
53
|
+
when '--to-sxp' then options[:to_sxp] = true
|
54
54
|
when '--validate' then options[:validate] = true
|
55
55
|
when '--verbose' then options[:verbose] = true
|
56
56
|
when "--help"
|
@@ -61,7 +61,7 @@ opts.each do |opt, arg|
|
|
61
61
|
puts " --execute,-e: Use option argument as the patch input"
|
62
62
|
puts " --patch: Location of patch document"
|
63
63
|
puts " --progress Display parse tree"
|
64
|
-
puts " --to-
|
64
|
+
puts " --to-sxp: Generate S-Expression for patch instead of running query"
|
65
65
|
puts " --validate: Validate patch document"
|
66
66
|
puts " --verbose: Display details of processing"
|
67
67
|
puts " --help,-?: This message"
|
data/lib/ld/patch.rb
CHANGED
@@ -28,8 +28,8 @@ module LD
|
|
28
28
|
# the base URI to use when resolving relative URIs
|
29
29
|
# @option (see LD::Patch::Parser#initialize)
|
30
30
|
# @return [SPARQL::Algebra::Operator] The executable parsed Patch
|
31
|
-
def self.parse(input, options
|
32
|
-
LD::Patch::Parser.new(input, options).parse
|
31
|
+
def self.parse(input, **options)
|
32
|
+
LD::Patch::Parser.new(input, **options).parse
|
33
33
|
end
|
34
34
|
|
35
35
|
class Error < StandardError
|
@@ -42,7 +42,7 @@ module LD
|
|
42
42
|
# @param [String, #to_s] message
|
43
43
|
# @param [Hash{Symbol => Object}] options
|
44
44
|
# @option options [Integer] :code (422)
|
45
|
-
def initialize(message, options
|
45
|
+
def initialize(message, **options)
|
46
46
|
@code = options.fetch(:status_code, 422)
|
47
47
|
super(message.to_s)
|
48
48
|
end
|
@@ -70,7 +70,7 @@ module LD
|
|
70
70
|
# @option options [String] :token (nil)
|
71
71
|
# @option options [Integer] :lineno (nil)
|
72
72
|
# @option options [Integer] :code (400)
|
73
|
-
def initialize(message, options
|
73
|
+
def initialize(message, **options)
|
74
74
|
@token = options[:token]
|
75
75
|
@lineno = options[:lineno] || (@token.lineno if @token.respond_to?(:lineno))
|
76
76
|
super(message.to_s, code: options.fetch(:code, 400))
|
@@ -23,10 +23,17 @@ module LD::Patch::Algebra
|
|
23
23
|
def execute(graph, options = {})
|
24
24
|
debug(options) {"Delete"}
|
25
25
|
|
26
|
-
graph.
|
26
|
+
if graph.respond_to?(:transaction)
|
27
|
+
graph.transaction(mutable: true) do |tx|
|
28
|
+
operands.inject(RDF::Query::Solutions.new([RDF::Query::Solution.new])) do |bindings, op|
|
29
|
+
# Invoke operand using bindings from prvious operation
|
30
|
+
op.execute(tx, options.merge(bindings: bindings))
|
31
|
+
end
|
32
|
+
end
|
33
|
+
else
|
27
34
|
operands.inject(RDF::Query::Solutions.new([RDF::Query::Solution.new])) do |bindings, op|
|
28
35
|
# Invoke operand using bindings from prvious operation
|
29
|
-
op.execute(
|
36
|
+
op.execute(graph, options.merge(bindings: bindings))
|
30
37
|
end
|
31
38
|
end
|
32
39
|
end
|
data/lib/ld/patch/format.rb
CHANGED
@@ -20,29 +20,43 @@ module LD::Patch
|
|
20
20
|
def self.cli_commands
|
21
21
|
{
|
22
22
|
patch: {
|
23
|
-
description: "Patch the current graph using a
|
24
|
-
help: "patch [--patch 'patch'] [--patch-file file]",
|
23
|
+
description: "Patch the current graph using a patch file",
|
24
|
+
help: "patch [--patch-input 'patch'] [--patch-file file]",
|
25
|
+
control: :button,
|
25
26
|
parse: true,
|
26
27
|
lambda: -> (argv, opts) do
|
27
|
-
opts[:
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
opts[:patch_input] ||= case opts[:patch_file]
|
29
|
+
when IO, StringIO then opts[:patch_file]
|
30
|
+
else RDF::Util::File.open_file(opts[:patch_file]) {|f| f.read}
|
31
|
+
end
|
32
|
+
raise ArgumentError, "Patching requires a patch or reference to patch resource" unless opts[:patch_input]
|
33
|
+
opts[:logger].info "Patch"
|
34
|
+
patch = LD::Patch.parse(opts[:patch_input], base_uri: opts.fetch(:patch_file, "https://rubygems.org/gems/ld-patch"))
|
35
|
+
opts[:messages][:reasoner] = {"S-Expression": [patch.to_sse]} if opts[:to_sxp]
|
31
36
|
RDF::CLI.repository.query(patch)
|
32
37
|
end,
|
33
38
|
options: [
|
34
39
|
RDF::CLI::Option.new(
|
35
|
-
symbol: :
|
40
|
+
symbol: :patch_input,
|
36
41
|
datatype: String,
|
37
|
-
|
42
|
+
control: :none,
|
43
|
+
on: ["--patch-input STRING"],
|
38
44
|
description: "Patch in URI encoded format"
|
39
|
-
) {|v|
|
45
|
+
) {|v| CGI.decode(v)},
|
40
46
|
RDF::CLI::Option.new(
|
41
47
|
symbol: :patch_file,
|
42
48
|
datatype: String,
|
49
|
+
control: :url2,
|
43
50
|
on: ["--patch-file URI"],
|
44
|
-
description: "
|
51
|
+
description: "Patch file"
|
45
52
|
) {|v| RDF::URI(v)},
|
53
|
+
RDF::CLI::Option.new(
|
54
|
+
symbol: :to_sxp,
|
55
|
+
datatype: String,
|
56
|
+
control: :checkbox,
|
57
|
+
on: ["--to-sxp"],
|
58
|
+
description: "Instead of patching repository, display parsed patch as an S-Expression"
|
59
|
+
),
|
46
60
|
]
|
47
61
|
}
|
48
62
|
}
|
data/lib/ld/patch/parser.rb
CHANGED
@@ -295,7 +295,7 @@ module LD::Patch
|
|
295
295
|
str = lit.delete(:string)
|
296
296
|
lit[:datatype] = lit.delete(:iri) if lit[:iri]
|
297
297
|
lit[:language] = lit.delete(:language).last.downcase if lit[:language]
|
298
|
-
input[:literal] = RDF::Literal.new(str, lit) if str
|
298
|
+
input[:literal] = RDF::Literal.new(str, **lit) if str
|
299
299
|
end
|
300
300
|
end
|
301
301
|
|
@@ -323,7 +323,7 @@ module LD::Patch
|
|
323
323
|
# @yield [parser] `self`
|
324
324
|
# @yieldparam [LD::Patch::Parser] parser
|
325
325
|
# @return [LD::Patch::Parser] The parser instance, or result returned from block
|
326
|
-
def initialize(input = nil, options
|
326
|
+
def initialize(input = nil, **options, &block)
|
327
327
|
@input = case input
|
328
328
|
when IO, StringIO then input.read
|
329
329
|
else input.to_s.dup
|
@@ -366,10 +366,13 @@ module LD::Patch
|
|
366
366
|
# @return [SPARQL::Algebra::Operator, Object]
|
367
367
|
# @raise [ParseError] when illegal grammar detected.
|
368
368
|
def parse(prod = START)
|
369
|
-
ll1_parse(@input,
|
370
|
-
|
371
|
-
|
372
|
-
|
369
|
+
ll1_parse(@input,
|
370
|
+
prod.to_sym,
|
371
|
+
branch: BRANCH,
|
372
|
+
first: FIRST,
|
373
|
+
follow: FOLLOW,
|
374
|
+
whitespace: WS,
|
375
|
+
**@options
|
373
376
|
) do |context, *data|
|
374
377
|
case context
|
375
378
|
when :trace
|
@@ -545,7 +548,7 @@ module LD::Patch
|
|
545
548
|
end
|
546
549
|
|
547
550
|
# Create a literal
|
548
|
-
def literal(value, options
|
551
|
+
def literal(value, **options)
|
549
552
|
options = options.dup
|
550
553
|
# Internal representation is to not use xsd:string, although it could arguably go the other way.
|
551
554
|
options.delete(:datatype) if options[:datatype] == RDF::XSD.string
|
@@ -554,7 +557,7 @@ module LD::Patch
|
|
554
557
|
"options: #{options.inspect}, " +
|
555
558
|
"validate: #{validate?.inspect}, "
|
556
559
|
end
|
557
|
-
RDF::Literal.new(value,
|
560
|
+
RDF::Literal.new(value, validate: validate?, **options)
|
558
561
|
end
|
559
562
|
end
|
560
563
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ld-patch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdf
|
@@ -16,118 +16,112 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ebnf
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1
|
34
|
-
- - ">="
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: 1.0.1
|
33
|
+
version: '2.1'
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
38
|
- - "~>"
|
42
39
|
- !ruby/object:Gem::Version
|
43
|
-
version: '1
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 1.0.1
|
40
|
+
version: '2.1'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: sparql
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
45
|
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
47
|
+
version: '3.1'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
58
52
|
- - "~>"
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
54
|
+
version: '3.1'
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
56
|
name: sxp
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
64
58
|
requirements:
|
65
59
|
- - "~>"
|
66
60
|
- !ruby/object:Gem::Version
|
67
|
-
version: '1.
|
61
|
+
version: '1.1'
|
68
62
|
type: :runtime
|
69
63
|
prerelease: false
|
70
64
|
version_requirements: !ruby/object:Gem::Requirement
|
71
65
|
requirements:
|
72
66
|
- - "~>"
|
73
67
|
- !ruby/object:Gem::Version
|
74
|
-
version: '1.
|
68
|
+
version: '1.1'
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
70
|
name: rdf-xsd
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
78
72
|
requirements:
|
79
73
|
- - "~>"
|
80
74
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
75
|
+
version: '3.1'
|
82
76
|
type: :runtime
|
83
77
|
prerelease: false
|
84
78
|
version_requirements: !ruby/object:Gem::Requirement
|
85
79
|
requirements:
|
86
80
|
- - "~>"
|
87
81
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
82
|
+
version: '3.1'
|
89
83
|
- !ruby/object:Gem::Dependency
|
90
84
|
name: json-ld
|
91
85
|
requirement: !ruby/object:Gem::Requirement
|
92
86
|
requirements:
|
93
87
|
- - "~>"
|
94
88
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
89
|
+
version: '3.1'
|
96
90
|
type: :development
|
97
91
|
prerelease: false
|
98
92
|
version_requirements: !ruby/object:Gem::Requirement
|
99
93
|
requirements:
|
100
94
|
- - "~>"
|
101
95
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
96
|
+
version: '3.1'
|
103
97
|
- !ruby/object:Gem::Dependency
|
104
98
|
name: rack
|
105
99
|
requirement: !ruby/object:Gem::Requirement
|
106
100
|
requirements:
|
107
101
|
- - "~>"
|
108
102
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
103
|
+
version: '2.2'
|
110
104
|
type: :development
|
111
105
|
prerelease: false
|
112
106
|
version_requirements: !ruby/object:Gem::Requirement
|
113
107
|
requirements:
|
114
108
|
- - "~>"
|
115
109
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
110
|
+
version: '2.2'
|
117
111
|
- !ruby/object:Gem::Dependency
|
118
112
|
name: rdf-spec
|
119
113
|
requirement: !ruby/object:Gem::Requirement
|
120
114
|
requirements:
|
121
115
|
- - "~>"
|
122
116
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
117
|
+
version: '3.1'
|
124
118
|
type: :development
|
125
119
|
prerelease: false
|
126
120
|
version_requirements: !ruby/object:Gem::Requirement
|
127
121
|
requirements:
|
128
122
|
- - "~>"
|
129
123
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
124
|
+
version: '3.1'
|
131
125
|
- !ruby/object:Gem::Dependency
|
132
126
|
name: open-uri-cached
|
133
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,56 +148,56 @@ dependencies:
|
|
154
148
|
requirements:
|
155
149
|
- - "~>"
|
156
150
|
- !ruby/object:Gem::Version
|
157
|
-
version: '3.
|
151
|
+
version: '3.10'
|
158
152
|
type: :development
|
159
153
|
prerelease: false
|
160
154
|
version_requirements: !ruby/object:Gem::Requirement
|
161
155
|
requirements:
|
162
156
|
- - "~>"
|
163
157
|
- !ruby/object:Gem::Version
|
164
|
-
version: '3.
|
158
|
+
version: '3.10'
|
165
159
|
- !ruby/object:Gem::Dependency
|
166
160
|
name: rspec-its
|
167
161
|
requirement: !ruby/object:Gem::Requirement
|
168
162
|
requirements:
|
169
163
|
- - "~>"
|
170
164
|
- !ruby/object:Gem::Version
|
171
|
-
version: '1.
|
165
|
+
version: '1.3'
|
172
166
|
type: :development
|
173
167
|
prerelease: false
|
174
168
|
version_requirements: !ruby/object:Gem::Requirement
|
175
169
|
requirements:
|
176
170
|
- - "~>"
|
177
171
|
- !ruby/object:Gem::Version
|
178
|
-
version: '1.
|
172
|
+
version: '1.3'
|
179
173
|
- !ruby/object:Gem::Dependency
|
180
174
|
name: yard
|
181
175
|
requirement: !ruby/object:Gem::Requirement
|
182
176
|
requirements:
|
183
177
|
- - "~>"
|
184
178
|
- !ruby/object:Gem::Version
|
185
|
-
version: '0.
|
179
|
+
version: '0.9'
|
186
180
|
type: :development
|
187
181
|
prerelease: false
|
188
182
|
version_requirements: !ruby/object:Gem::Requirement
|
189
183
|
requirements:
|
190
184
|
- - "~>"
|
191
185
|
- !ruby/object:Gem::Version
|
192
|
-
version: '0.
|
186
|
+
version: '0.9'
|
193
187
|
- !ruby/object:Gem::Dependency
|
194
188
|
name: webmock
|
195
189
|
requirement: !ruby/object:Gem::Requirement
|
196
190
|
requirements:
|
197
191
|
- - "~>"
|
198
192
|
- !ruby/object:Gem::Version
|
199
|
-
version: '
|
193
|
+
version: '3.11'
|
200
194
|
type: :development
|
201
195
|
prerelease: false
|
202
196
|
version_requirements: !ruby/object:Gem::Requirement
|
203
197
|
requirements:
|
204
198
|
- - "~>"
|
205
199
|
- !ruby/object:Gem::Version
|
206
|
-
version: '
|
200
|
+
version: '3.11'
|
207
201
|
description: |2-
|
208
202
|
|
209
203
|
Implements the W3C Linked Data Patch Format and operations for RDF.rb.
|
@@ -236,11 +230,11 @@ files:
|
|
236
230
|
- lib/ld/patch/parser.rb
|
237
231
|
- lib/ld/patch/terminals.rb
|
238
232
|
- lib/ld/patch/version.rb
|
239
|
-
homepage:
|
233
|
+
homepage: https://github.com/ruby-rdf/ld-patch
|
240
234
|
licenses:
|
241
235
|
- Unlicense
|
242
236
|
metadata: {}
|
243
|
-
post_install_message:
|
237
|
+
post_install_message:
|
244
238
|
rdoc_options: []
|
245
239
|
require_paths:
|
246
240
|
- lib
|
@@ -248,16 +242,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
248
242
|
requirements:
|
249
243
|
- - ">="
|
250
244
|
- !ruby/object:Gem::Version
|
251
|
-
version: 2.
|
245
|
+
version: '2.4'
|
252
246
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
253
247
|
requirements:
|
254
248
|
- - ">="
|
255
249
|
- !ruby/object:Gem::Version
|
256
250
|
version: '0'
|
257
251
|
requirements: []
|
258
|
-
|
259
|
-
|
260
|
-
signing_key:
|
252
|
+
rubygems_version: 3.1.4
|
253
|
+
signing_key:
|
261
254
|
specification_version: 4
|
262
255
|
summary: W3C Linked Data Patch Format for RDF.rb.
|
263
256
|
test_files: []
|