rdf-isomorphic 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/VERSION +1 -1
  4. data/lib/rdf/isomorphic.rb +5 -5
  5. metadata +12 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d714d7b459fdfb27d50eb4e23e6a3bf072e4b82f57c03bed4d6fabfeb131158b
4
- data.tar.gz: 8e7f4db3878d2c33896cdec9feffbdbf9d4fa367241198f999044f1346e6fce8
3
+ metadata.gz: e25f1613aa5b3314793fc7580133ffc1fac6c339e030fef988247bbefcaecd68
4
+ data.tar.gz: eee5b445570acb74b91d168f56a17388cf80282220d41f87547bbd92aa9119d4
5
5
  SHA512:
6
- metadata.gz: bdd1d92135c36fa11803b23821b64c008ba8884bb99ff8bcfb9551044b2fbf6c75dd232befd29c771c49e6d449409c30d179e7a128f9814b89f238cf611f1f5d
7
- data.tar.gz: 206eb8c499223a59eff52e31572546cc086d22cffb811708981a8322e537092b15ce5bf18c111edf8a20fa51c16ffd7c71461c884f4286adf61756641e09461c
6
+ metadata.gz: 4ecbe77b671e660c26b12a55b5641b253968c0c840263df5723fdf55a6be71dba729bd12b4583c12ec70bdf3ccf50d9de52d42ae948a5646ac425cf83aacbb0f
7
+ data.tar.gz: 9ada5a5bf99875835776da02a709b644a1482d5b8bd2a12e748fde8848470d155d2287ba9ce6184de758758b20df7b526036a4b91a33d888fcb42148c9bcefe2
data/README.md CHANGED
@@ -66,8 +66,8 @@ specs in RDF libraries. Try this in your tests:
66
66
  ### Information
67
67
  * Author: Ben Lavender <blavender@gmail.com> - <http://bhuga.net>
68
68
  * Author: Arto Bendiken <arto.bendiken@gmail.com> - <http://ar.to>
69
- * Source: <http://github.com/bhuga/RDF-Isomorphic>
70
- * Issues: <http://github.com/bhuga/RDF-Isomorphic/issues>
69
+ * Source: <http://github.com/ruby-rdf/rdf-isomorphic>
70
+ * Issues: <http://github.com/ruby-rdf/rdf-isomorphic/issues>
71
71
 
72
72
  ### See also
73
73
  * RDF.rb: <http://ruby-rdf.github.com>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0
1
+ 3.1.0
@@ -26,8 +26,8 @@ module RDF
26
26
  # @return [Boolean]
27
27
  # @example
28
28
  # repository_a.isomorphic_with repository_b #=> true
29
- def isomorphic_with?(other, opts = {})
30
- !(bijection_to(other, opts).nil?)
29
+ def isomorphic_with?(other, **opts)
30
+ !(bijection_to(other, **opts).nil?)
31
31
  end
32
32
 
33
33
  alias_method :isomorphic?, :isomorphic_with?
@@ -47,7 +47,7 @@ module RDF
47
47
  # @param other [RDF::Enumerable]
48
48
  # @param opts [Hash<Symbol => Any>] options
49
49
  # @return [Hash, nil]
50
- def bijection_to(other, opts = {})
50
+ def bijection_to(other, **opts)
51
51
 
52
52
  grounded_stmts_match = (count == other.count)
53
53
 
@@ -65,7 +65,7 @@ module RDF
65
65
 
66
66
  nodes = RDF::Isomorphic.blank_nodes_in(blank_stmts)
67
67
  other_nodes = RDF::Isomorphic.blank_nodes_in(other_blank_stmts)
68
- build_bijection_to blank_stmts, nodes, other_blank_stmts, other_nodes, {}, {}, opts
68
+ build_bijection_to blank_stmts, nodes, other_blank_stmts, other_nodes, {}, {}, **opts
69
69
  else
70
70
  nil
71
71
  end
@@ -91,7 +91,7 @@ module RDF
91
91
  # @param [Hash] opts
92
92
  # @return [nil,Hash]
93
93
  # @private
94
- def build_bijection_to(anon_stmts, nodes, other_anon_stmts, other_nodes, these_grounded_hashes = {}, other_grounded_hashes = {}, opts = {})
94
+ def build_bijection_to(anon_stmts, nodes, other_anon_stmts, other_nodes, these_grounded_hashes = {}, other_grounded_hashes = {}, **opts)
95
95
 
96
96
  # Create a hash signature of every node, based on the signature of
97
97
  # statements it exists in.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-isomorphic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Lavender
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-12-29 00:00:00.000000000 Z
12
+ date: 2019-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdf
@@ -17,56 +17,56 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '3.0'
20
+ version: '3.1'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '3.0'
27
+ version: '3.1'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rdf-spec
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '3.0'
34
+ version: '3.1'
35
35
  type: :development
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: '3.0'
41
+ version: '3.1'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '3.7'
48
+ version: '3.9'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '3.7'
55
+ version: '3.9'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: yard
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: 0.9.12
62
+ version: 0.9.20
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: 0.9.12
69
+ version: 0.9.20
70
70
  description: RDF.rb extension for graph bijections and isomorphic equivalence.
71
71
  email: public-rdf-ruby@w3.org
72
72
  executables: []
@@ -91,15 +91,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
- version: 2.2.2
94
+ version: '2.4'
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubyforge_project:
102
- rubygems_version: 2.7.3
101
+ rubygems_version: 3.0.6
103
102
  signing_key:
104
103
  specification_version: 4
105
104
  summary: RDF Graph/Dataset Isomorphism as defined in RDF 1.1 Concepts.