rdf-trix 2.0.0 → 2.2.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: 0b7a98eb57bb3db315b00dace720932f6fde56ad
4
- data.tar.gz: 6b5255cdcf6c7288419f330036a8864b2ec45d82
3
+ metadata.gz: 9f4d3626bb11b89693bf2bb817e62621873cec9d
4
+ data.tar.gz: 0eac6967d3e5ebf92862a852ec72f81daa3b73d2
5
5
  SHA512:
6
- metadata.gz: 69579b1fd576b13a417cd3eb41b415c5f5a16049af5e3f1bc778108f089548594ee3c232b03002717cc1b13e2f32c83e27fd202f8bd84209c28bf1b3137374f6
7
- data.tar.gz: 3db4f238bd51935124dffc44253775889767e93bc4038b1408ab37024f3d7a728fe5c2ad7164ed8a4d0c69f32a673b0bc7d173c6545c6458155569e430c7048f
6
+ metadata.gz: b54b6a7ee00d9e039237fcdd15e2487b6fd49d1a8a533df1c422ebca8419de6b23241f7837e142d43a8fb7bbf38898fe2265d07ed0601c69d6f1c6eab917be78
7
+ data.tar.gz: 282b1b60aa9df13c1809175578a77a506112aa7d287c1e88dbb27342ee0faa5b07660d070f2de14e44ba137d1b58bb5561e121e75c37c343f86def7c5e5cec90
data/README.md CHANGED
@@ -22,7 +22,7 @@ Documentation
22
22
  Dependencies
23
23
  ------------
24
24
 
25
- * [RDF.rb](http://rubygems.org/gems/rdf) (>= 2.0)
25
+ * [RDF.rb](http://rubygems.org/gems/rdf) (>= 2.2.2)
26
26
  [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.6.0)
27
27
 
28
28
  Installation
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.2.0
@@ -44,7 +44,7 @@
44
44
  <triple>
45
45
  <uri>http://rubygems.org/gems/rdf-trix</uri>
46
46
  <uri>http://usefulinc.com/ns/doap#download-page</uri>
47
- <uri>http://rubyforge.org/projects/rdf/</uri>
47
+ <uri>http://rubygems.org/gems/rdf-trix/</uri>
48
48
  </triple>
49
49
  <triple>
50
50
  <uri>http://rubygems.org/gems/rdf-trix</uri>
@@ -1,4 +1,4 @@
1
- require 'rdf' # @see http://rubygems.org/gems/rdf
1
+ require 'rdf'
2
2
 
3
3
  module RDF
4
4
  ##
@@ -21,7 +21,7 @@ module RDF
21
21
  # end
22
22
  # end
23
23
  #
24
- # @see http://rdf.rubyforge.org/
24
+ # @see http://rubygems.org/gems/rdf
25
25
  # @see http://www.w3.org/2004/03/trix/
26
26
  # @see http://www.hpl.hp.com/techreports/2004/HPL-2004-56.pdf
27
27
  # @see http://swdev.nokia.com/trix/trix.html
@@ -105,7 +105,15 @@ module RDF::TriX
105
105
 
106
106
  @encoding = (options[:encoding] || 'utf-8').to_s
107
107
  initialize_xml(options)
108
- super
108
+
109
+ super do
110
+ if block_given?
111
+ case block.arity
112
+ when 0 then instance_eval(&block)
113
+ else block.call(self)
114
+ end
115
+ end
116
+ end
109
117
  end
110
118
 
111
119
  ##
@@ -30,6 +30,7 @@ module RDF::TriX
30
30
  # @return [void]
31
31
  def write_prologue
32
32
  @xml << (@trix = create_element(:TriX, nil, :xmlns => Format::XMLNS))
33
+ super
33
34
  end
34
35
 
35
36
  ##
@@ -30,6 +30,7 @@ module RDF::TriX
30
30
  # @return [void]
31
31
  def write_prologue
32
32
  @trix = @xml.add_element('TriX', 'xmlns' => Format::XMLNS)
33
+ super
33
34
  end
34
35
 
35
36
  ##
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-trix
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arto Bendiken
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-10 00:00:00.000000000 Z
11
+ date: 2017-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '2.2'
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: '2.0'
26
+ version: '2.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rdf-spec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '2.2'
34
34
  type: :development
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.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.4'
47
+ version: '3.6'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.4'
54
+ version: '3.6'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec-its
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,42 +72,42 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.8'
75
+ version: '0.9'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.8'
82
+ version: '0.9'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: nokogiri
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.6'
89
+ version: '1.8'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.6'
96
+ version: '1.8'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: libxml-ruby
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '2.8'
103
+ version: '3.0'
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.8'
110
+ version: '3.0'
111
111
  description: RDF.rb extension for parsing/serializing TriX data.
112
112
  email: public-rdf-ruby@w3.org
113
113
  executables: []
@@ -142,17 +142,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: '2.0'
145
+ version: 2.2.2
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - ">="
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubyforge_project: rdf
153
- rubygems_version: 2.4.8
152
+ rubyforge_project:
153
+ rubygems_version: 2.6.12
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: TriX support for RDF.rb.
157
157
  test_files: []
158
- has_rdoc: false