oga 0.2.1-java → 0.2.2-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7eba2093654a3446533c54c2077185581ba77553
4
- data.tar.gz: fb6a501ec0e2fd789022cc04650d38bcf632b3d6
3
+ metadata.gz: cac3dd20a675f61df95e40826873ab84368fdb16
4
+ data.tar.gz: 65c3ed0c9d23c6bc30ba5fade5e00d1ed86cd93c
5
5
  SHA512:
6
- metadata.gz: ace82fa4d37e5d310c973f6ddcf370555f3019363c293614d530674aba6b335deba67b4ad9b7e63fe765835e68b13b3b7c6e3d73c264ec50a09f1bef988025f1
7
- data.tar.gz: 54de717743d17f300bf29ac3383a26f090a44a2801b9fbf258cb4cd9afd927c5739cd3f42b35b6657ebccf1b76679e03b1dd66bcf2087208fcffdc40e8478fa1
6
+ metadata.gz: 5eefa66c37fd2bee1560f39eda16b38bd7a59ebf5265afca68b711bc46336ca6fdb47fcaba8d5aa7cfb54e8683a1423d6e84bdff7eb1793b461b1f3e3a977c6a
7
+ data.tar.gz: f8705a85b19a5be1a17e4a754e56af34a039250411bebd5345faeebde4def88233d0e6d416a0950160c7d3c8265f7eef51a47c1c6399d648dfa76125bbd55ba5
@@ -3,6 +3,19 @@
3
3
  This document contains details of the various releases and their release dates.
4
4
  Dates are in the format `yyyy-mm-dd`.
5
5
 
6
+ ## 0.2.2 - 2015-03-03
7
+
8
+ This release fixes a bug where setting the text of an element using
9
+ `Oga::XML::Element#inner_text=` would not set the parent element of the newly
10
+ created text node. This would result in the following:
11
+
12
+ some_element.inner_text = 'foo'
13
+
14
+ some_element.children[0].parent # => nil
15
+
16
+ Here `parent` is supposed to return `some_element` instead. See commit
17
+ 142b467277dc9864df8279347ba737ddf60f4836 for more information.
18
+
6
19
  ## 0.2.1 - 2015-03-02
7
20
 
8
21
  ### Proper HTML serializing support for script tags
Binary file
@@ -1,3 +1,3 @@
1
1
  module Oga
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end # Oga
@@ -213,7 +213,7 @@ module Oga
213
213
  #
214
214
  def inner_text=(text)
215
215
  text_node = XML::Text.new(:text => text)
216
- @children = NodeSet.new([text_node])
216
+ @children = NodeSet.new([text_node], self)
217
217
  end
218
218
 
219
219
  ##
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: java
6
6
  authors:
7
7
  - Yorick Peterse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-02 00:00:00.000000000 Z
11
+ date: 2015-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: racc
@@ -148,54 +148,54 @@ executables: []
148
148
  extensions: []
149
149
  extra_rdoc_files: []
150
150
  files:
151
- - doc/xml_namespaces.md
152
151
  - doc/manually_creating_documents.md
153
- - doc/changelog.md
152
+ - doc/DCO.md
153
+ - doc/xml_namespaces.md
154
154
  - doc/css_selectors.md
155
155
  - doc/migrating_from_nokogiri.md
156
- - doc/DCO.md
156
+ - doc/changelog.md
157
157
  - doc/css/common.css
158
158
  - lib/oga.rb
159
- - lib/oga/version.rb
160
159
  - lib/oga/oga.rb
160
+ - lib/oga/version.rb
161
161
  - lib/oga/css/lexer.rb
162
162
  - lib/oga/css/parser.rb
163
- - lib/oga/xml/namespace.rb
163
+ - lib/oga/html/sax_parser.rb
164
+ - lib/oga/html/parser.rb
164
165
  - lib/oga/xml/lexer.rb
166
+ - lib/oga/xml/namespace.rb
167
+ - lib/oga/xml/processing_instruction.rb
168
+ - lib/oga/xml/character_node.rb
169
+ - lib/oga/xml/sax_parser.rb
170
+ - lib/oga/xml/doctype.rb
171
+ - lib/oga/xml/document.rb
172
+ - lib/oga/xml/comment.rb
173
+ - lib/oga/xml/text.rb
165
174
  - lib/oga/xml/querying.rb
175
+ - lib/oga/xml/attribute.rb
176
+ - lib/oga/xml/pull_parser.rb
166
177
  - lib/oga/xml/parser.rb
167
- - lib/oga/xml/traversal.rb
168
- - lib/oga/xml/text.rb
178
+ - lib/oga/xml/entities.rb
179
+ - lib/oga/xml/html_void_elements.rb
169
180
  - lib/oga/xml/node.rb
170
- - lib/oga/xml/document.rb
171
- - lib/oga/xml/pull_parser.rb
172
181
  - lib/oga/xml/node_set.rb
173
- - lib/oga/xml/sax_parser.rb
174
- - lib/oga/xml/cdata.rb
175
182
  - lib/oga/xml/element.rb
176
- - lib/oga/xml/character_node.rb
177
- - lib/oga/xml/doctype.rb
178
- - lib/oga/xml/html_void_elements.rb
179
- - lib/oga/xml/entities.rb
180
- - lib/oga/xml/attribute.rb
181
183
  - lib/oga/xml/xml_declaration.rb
182
- - lib/oga/xml/processing_instruction.rb
183
- - lib/oga/xml/comment.rb
184
- - lib/oga/html/parser.rb
185
- - lib/oga/html/sax_parser.rb
184
+ - lib/oga/xml/cdata.rb
185
+ - lib/oga/xml/traversal.rb
186
186
  - lib/oga/xpath/lexer.rb
187
- - lib/oga/xpath/parser.rb
188
187
  - lib/oga/xpath/evaluator.rb
189
- - ext/ragel/base_lexer.rl
190
- - ext/java/Liboga.java
191
- - ext/java/org/liboga/xml/Lexer.java
192
- - ext/java/org/liboga/xml/Lexer.rl
193
- - ext/c/extconf.rb
188
+ - lib/oga/xpath/parser.rb
189
+ - ext/c/lexer.c
194
190
  - ext/c/lexer.rl
195
191
  - ext/c/lexer.h
196
192
  - ext/c/liboga.c
197
- - ext/c/lexer.c
193
+ - ext/c/extconf.rb
198
194
  - ext/c/liboga.h
195
+ - ext/ragel/base_lexer.rl
196
+ - ext/java/Liboga.java
197
+ - ext/java/org/liboga/xml/Lexer.java
198
+ - ext/java/org/liboga/xml/Lexer.rl
199
199
  - README.md
200
200
  - LICENSE
201
201
  - oga.gemspec