oga 0.1.2 → 0.1.3

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: d7e6862730c7a4e17048c73f5d3656060cdbd1cb
4
- data.tar.gz: bd9b3215aeff301a46606b63911f60ffc246aed5
3
+ metadata.gz: 8b60359c51f8e8eb14fb35fbc7ffdd6da99a6d50
4
+ data.tar.gz: b7c569316e309823375f84dc628c1f170d3f2540
5
5
  SHA512:
6
- metadata.gz: 531e732ec31ddfd9f2f94d9ba422154607a8901881126cba42ca790e09e06ac3e8992ad5e47dee866c6723c583d2b939bdcb1708cd81bd6844c854f57d9c6c8f
7
- data.tar.gz: cb46703bcabaf49ddc23ff568730f01c3120dedb20804c8107f6616713fafeb6825a2e80a13618b5f31b37d41ab8aac960680f4a5f5de16229af1684ca5ea65d
6
+ metadata.gz: 57224b74df2f069a99826dcbc49d1bf4efdb7d31c5568c23e8b817952d3708b365198fcbafdd82d95e0e1f7af9b221d6b6a71cc1d09fd4cf2951d177fa4ed456
7
+ data.tar.gz: b7103802563321ebe4174a328e65d99a00df973abca79e1ef02544e0bcf2484e679db8009c9de98cb971d8912bfe573f0d0250bbbc25f77c5764e6d43f190d6c
@@ -3,6 +3,12 @@
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.1.3 - 2014-09-24
7
+
8
+ This release fixes a problem with serializing attributes using the namespace
9
+ prefix "xmlns". See <https://github.com/YorickPeterse/oga/issues/47> for more
10
+ information.
11
+
6
12
  ## 0.1.2 - 2014-09-23
7
13
 
8
14
  ### SAX API
@@ -1305,19 +1305,14 @@ case 64:
1305
1305
  #line 1306 "ext/c/lexer.c"
1306
1306
  if ( (*p) == 60 )
1307
1307
  goto tr95;
1308
- goto tr94;
1309
- tr94:
1310
- #line 304 "ext/ragel/base_lexer.rl"
1311
- { mark = p; }
1312
1308
  goto st65;
1313
1309
  st65:
1314
1310
  if ( ++p == pe )
1315
1311
  goto _test_eof65;
1316
1312
  case 65:
1317
- #line 1318 "ext/c/lexer.c"
1318
1313
  if ( (*p) == 60 )
1319
1314
  goto tr97;
1320
- goto tr94;
1315
+ goto st65;
1321
1316
  tr97:
1322
1317
  #line 304 "ext/ragel/base_lexer.rl"
1323
1318
  { mark = p; }
@@ -1326,7 +1321,7 @@ st66:
1326
1321
  if ( ++p == pe )
1327
1322
  goto _test_eof66;
1328
1323
  case 66:
1329
- #line 1330 "ext/c/lexer.c"
1324
+ #line 1325 "ext/c/lexer.c"
1330
1325
  switch( (*p) ) {
1331
1326
  case 33: goto tr98;
1332
1327
  case 45: goto tr98;
@@ -1342,7 +1337,7 @@ case 66:
1342
1337
  goto tr98;
1343
1338
  } else
1344
1339
  goto tr98;
1345
- goto tr94;
1340
+ goto st65;
1346
1341
  tr95:
1347
1342
  #line 304 "ext/ragel/base_lexer.rl"
1348
1343
  { mark = p; }
@@ -1351,7 +1346,7 @@ st67:
1351
1346
  if ( ++p == pe )
1352
1347
  goto _test_eof67;
1353
1348
  case 67:
1354
- #line 1355 "ext/c/lexer.c"
1349
+ #line 1350 "ext/c/lexer.c"
1355
1350
  switch( (*p) ) {
1356
1351
  case 33: goto tr99;
1357
1352
  case 45: goto tr99;
@@ -1367,7 +1362,7 @@ case 67:
1367
1362
  goto tr99;
1368
1363
  } else
1369
1364
  goto tr99;
1370
- goto tr94;
1365
+ goto st65;
1371
1366
  }
1372
1367
  _test_eof35: cs = 35; goto _test_eof;
1373
1368
  _test_eof36: cs = 36; goto _test_eof;
@@ -216,7 +216,7 @@ private static byte[] init__java_lexer_trans_actions_0()
216
216
  67, 0, 73, 81, 75, 0, 89, 11, 0, 13, 9, 19,
217
217
  86, 21, 0, 0, 0, 25, 23, 0, 0, 0, 0, 83,
218
218
  0, 0, 0, 0, 31, 7, 7, 0, 0, 35, 33, 27,
219
- 0, 41, 39, 43, 0, 0, 0, 51, 55, 47, 1, 1,
219
+ 0, 41, 39, 43, 0, 0, 0, 51, 55, 47, 0, 1,
220
220
  61, 1, 59, 57
221
221
  };
222
222
  }
@@ -301,7 +301,7 @@
301
301
  };
302
302
 
303
303
  # Text followed by a special tag, such as "foo<!--"
304
- allowed_text @{ mark = p; } terminate_text => {
304
+ allowed_text %{ mark = p; } terminate_text => {
305
305
  callback("on_text", data, encoding, ts, mark);
306
306
 
307
307
  p = mark - 1;
@@ -1,3 +1,3 @@
1
1
  module Oga
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end # Oga
@@ -82,7 +82,7 @@ module Oga
82
82
  #
83
83
  def to_xml
84
84
  if namespace_name
85
- full_name = "#{namespace.name}:#{name}"
85
+ full_name = "#{namespace_name}:#{name}"
86
86
  else
87
87
  full_name = name
88
88
  end
@@ -307,8 +307,7 @@ module Oga
307
307
  private
308
308
 
309
309
  ##
310
- # Registers namespaces based on any "xmlns" attributes. Once a namespace
311
- # has been registered the corresponding attribute is removed.
310
+ # Registers namespaces based on any "xmlns" attributes.
312
311
  #
313
312
  def register_namespaces_from_attributes
314
313
  attributes.each do |attr|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yorick Peterse
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  version: '0'
217
217
  requirements: []
218
218
  rubyforge_project:
219
- rubygems_version: 2.4.1
219
+ rubygems_version: 2.2.2
220
220
  signing_key:
221
221
  specification_version: 4
222
222
  summary: Oga is an XML/HTML parser written in Ruby.