ld-patch 3.1.1 → 3.1.2

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
  SHA256:
3
- metadata.gz: fb352bd5bbc3691896fc9db702efc945b23f1c788839a0b0455ba353f4b37ae8
4
- data.tar.gz: b07b9e419fd2dc3b290af7d399c4b05b3e2e81c5edd2a8fc22cfb483892240b9
3
+ metadata.gz: fe7a4c97dcc0221199b7b13feb6dbb1b1b391382e5e7a0658d3909927841d911
4
+ data.tar.gz: 400b59467e176a6486751a1652470383083250999f157d233377027b1bc7a045
5
5
  SHA512:
6
- metadata.gz: dfa6ad6e3127cc6d0ce8827675e9ee223c7dd68d513c2c86588b0b53ec145e08c514cef5aa20a613ad939c607f4bb80e33a8ecd6a0692980ac742275f4e35198
7
- data.tar.gz: bf91d175b92ebd050bf9f6f77b5e9482e9fec9421d4f52d241b82fc4bb2d7781db49ee2cf371bbe1d205d34d5a9067b48024b822d3bd853801b6e5d0cdfebfeb
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)](http://badge.fury.io/rb/ld-patch)
6
- [![Build Status](https://travis-ci.org/ruby-rdf/ld-patch.png?branch=master)](http://travis-ci.org/ruby-rdf/ld-patch)
7
- [![Coverage Status](https://coveralls.io/repos/ruby-rdf/ld-patch/badge.svg)](https://coveralls.io/r/ruby-rdf/ld-patch)
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
 
@@ -94,7 +95,11 @@ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange develo
94
95
  * Do document every method you add using [YARD][] annotations. Read the [tutorial][YARD-GS] or just look at the existing code for examples.
95
96
  * Don't touch the `.gemspec`, `VERSION` or `AUTHORS` files. If you need to change them, do so on your private branch only.
96
97
  * Do feel free to add yourself to the `CREDITS` file and the corresponding list in the the `README`. Alphabetical order applies.
97
- * Do note that in order for us to merge any non-trivial changes (as a rule of thumb, additions larger than about 15 lines of code), we need an explicit [public domain dedication][PDD] on record from you.
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.
98
103
 
99
104
  ## License
100
105
  This is free and unencumbered public domain software. For more information,
@@ -106,7 +111,7 @@ A copy of the [LD Patch EBNF](file:etc/ld-patch.ebnf) and derived parser files a
106
111
  [RDF]: http://www.w3.org/RDF/
107
112
  [YARD]: http://yardoc.org/
108
113
  [YARD-GS]: http://rubydoc.info/docs/yard/file/docs/GettingStarted.md
109
- [PDD]: http://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
114
+ [PDD]: https://unlicense.org/#unlicensing-contributions
110
115
  [RDF.rb]: https://rubygems.org/gems/rdf
111
116
  [RDF::XSD]: https://rubygems.org/gems/rdf-xsd
112
117
  [EBNF]: https://rubygems.org/gems/ebnf
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.1
1
+ 3.1.2
@@ -23,10 +23,17 @@ module LD::Patch::Algebra
23
23
  def execute(graph, options = {})
24
24
  debug(options) {"Delete"}
25
25
 
26
- graph.transaction(mutable: true) do |tx|
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(tx, options.merge(bindings: bindings))
36
+ op.execute(graph, options.merge(bindings: bindings))
30
37
  end
31
38
  end
32
39
  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: 3.1.1
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: 2020-07-10 00:00:00.000000000 Z
11
+ date: 2020-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '2.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '2.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sparql
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '2.0'
103
+ version: '2.2'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '2.0'
110
+ version: '2.2'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rdf-spec
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -148,14 +148,14 @@ dependencies:
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: '3.9'
151
+ version: '3.10'
152
152
  type: :development
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: '3.9'
158
+ version: '3.10'
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: rspec-its
161
161
  requirement: !ruby/object:Gem::Requirement
@@ -176,28 +176,28 @@ dependencies:
176
176
  requirements:
177
177
  - - "~>"
178
178
  - !ruby/object:Gem::Version
179
- version: 0.9.20
179
+ version: '0.9'
180
180
  type: :development
181
181
  prerelease: false
182
182
  version_requirements: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - "~>"
185
185
  - !ruby/object:Gem::Version
186
- version: 0.9.20
186
+ version: '0.9'
187
187
  - !ruby/object:Gem::Dependency
188
188
  name: webmock
189
189
  requirement: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - "~>"
192
192
  - !ruby/object:Gem::Version
193
- version: '3.7'
193
+ version: '3.11'
194
194
  type: :development
195
195
  prerelease: false
196
196
  version_requirements: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - "~>"
199
199
  - !ruby/object:Gem::Version
200
- version: '3.7'
200
+ version: '3.11'
201
201
  description: |2-
202
202
 
203
203
  Implements the W3C Linked Data Patch Format and operations for RDF.rb.
@@ -234,7 +234,7 @@ homepage: https://github.com/ruby-rdf/ld-patch
234
234
  licenses:
235
235
  - Unlicense
236
236
  metadata: {}
237
- post_install_message:
237
+ post_install_message:
238
238
  rdoc_options: []
239
239
  require_paths:
240
240
  - lib
@@ -249,8 +249,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  requirements: []
252
- rubygems_version: 3.1.3
253
- signing_key:
252
+ rubygems_version: 3.1.4
253
+ signing_key:
254
254
  specification_version: 4
255
255
  summary: W3C Linked Data Patch Format for RDF.rb.
256
256
  test_files: []