ox 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ox might be problematic. Click here for more details.

Files changed (4) hide show
  1. data/ext/ox/ox.c +1 -1
  2. data/lib/ox/version.rb +1 -1
  3. data/test/bug3.rb +23 -0
  4. metadata +4 -5
data/ext/ox/ox.c CHANGED
@@ -485,7 +485,7 @@ parse_dump_options(VALUE ropts, Options copts) {
485
485
  static VALUE
486
486
  dump(int argc, VALUE *argv, VALUE self) {
487
487
  char *xml;
488
- struct _Options copts;
488
+ struct _Options copts = default_options;
489
489
  VALUE rstr;
490
490
 
491
491
  if (2 == argc) {
data/lib/ox/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Ox
3
3
  # Current version of the module.
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
  end
data/test/bug3.rb ADDED
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env ruby -wW1
2
+
3
+ $: << '../lib'
4
+ $: << '../ext'
5
+
6
+ if __FILE__ == $0
7
+ if (i = ARGV.index('-I'))
8
+ x,path = ARGV.slice!(i, 2)
9
+ $: << path
10
+ end
11
+ end
12
+
13
+ require 'ox'
14
+
15
+ def dump(cnt = 100000)
16
+ cnt.times do |i|
17
+ xml = Ox.dump([:inc, 1])
18
+ #puts xml
19
+
20
+ end
21
+ end
22
+
23
+ dump()
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ox
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.1
5
+ version: 1.2.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Peter Ohler
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-12 00:00:00 +09:00
14
- default_executable:
13
+ date: 2011-07-14 00:00:00 Z
15
14
  dependencies: []
16
15
 
17
16
  description: A fast XML parser and object serializer that uses only standard C lib.
@@ -49,6 +48,7 @@ files:
49
48
  - ext/ox/parse.c
50
49
  - test/bug1.rb
51
50
  - test/bug2.rb
51
+ - test/bug3.rb
52
52
  - test/cache16_test.rb
53
53
  - test/cache8_test.rb
54
54
  - test/cache_test.rb
@@ -78,7 +78,6 @@ files:
78
78
  - test/Sample.graffle
79
79
  - LICENSE
80
80
  - README.rdoc
81
- has_rdoc: true
82
81
  homepage: https://github.com/ohler55/ox
83
82
  licenses: []
84
83
 
@@ -104,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
103
  requirements: []
105
104
 
106
105
  rubyforge_project: ox
107
- rubygems_version: 1.6.2
106
+ rubygems_version: 1.8.5
108
107
  signing_key:
109
108
  specification_version: 3
110
109
  summary: A fast XML parser and object serializer.