saxy 0.3.0 → 0.4.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: f0e96cc425bd1fe4c375deb9588cdd21a84c3856
4
- data.tar.gz: 47046544a7e65c47b03c530cfd247a24afa9d6f7
3
+ metadata.gz: 134c308ec032a7fd67bcde3a744f8f75bd656da9
4
+ data.tar.gz: 11d8785e94c498dfd91b0ef0d2656ffb97fc314d
5
5
  SHA512:
6
- metadata.gz: 25ca49ac3e6c18431e8753ad5c1e6675aace9454b34e9e850ae9238700c037751e39976ccb07b04047b7464f3e15140504d4568b08d05083a781af053197c8c8
7
- data.tar.gz: 63019da2ae2fdfe0fec2428dda34c7b59a4b6e811f44fb693e39c888fa5d6d77410f052667dae38844157440fe381625679779f6a3ea1c7011336f1a3ca12866
6
+ metadata.gz: c76931d22bee9d2f6723f1d6587a8af51ca510df4d74c15304b06a9b80e7bec63a1330993573af7a2e697f07d174f358a51e18b1a339b1e91953ac027695e17a
7
+ data.tar.gz: 38a2eaee5c237f4c46fe463e13e777a9978557e2483150cad4cbb930c505c4577d7604a5dabdb7f226fe24daa9c9743947472b0b88b7dbeb25af60435bed6a01
data/.travis.yml CHANGED
@@ -2,5 +2,4 @@ script: "bundle exec rspec ./spec/"
2
2
  sudo: false
3
3
  language: ruby
4
4
  rvm:
5
- - 1.8.7
6
- - ree
5
+ - 1.9.2
data/README.md CHANGED
@@ -9,11 +9,11 @@ It uses SAX parser under the hood, which means that it doesn't load the whole XM
9
9
 
10
10
  ## Installation
11
11
 
12
- This version supports only ruby 1.8, it is not maintained anymore. See master branch if you're looking for support of different ruby versions.
12
+ This version supports only ruby 1.9.2, it is not maintained anymore. See master branch if you're looking for support of different ruby versions.
13
13
 
14
14
  Add this line to your application's Gemfile:
15
15
 
16
- gem 'saxy', '~> 0.3.0'
16
+ gem 'saxy', '~> 0.4.0'
17
17
 
18
18
  And then execute:
19
19
 
@@ -21,7 +21,7 @@ And then execute:
21
21
 
22
22
  Or install it yourself as:
23
23
 
24
- $ gem install saxy --version '~> 0.3.0'
24
+ $ gem install saxy --version '~> 0.4.0'
25
25
 
26
26
  ## Usage
27
27
 
data/lib/saxy/element.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'active_support/core_ext/string/inflections'
2
+ require 'ostruct'
2
3
 
3
4
  module Saxy
4
5
  class Element
data/lib/saxy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Saxy
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
data/lib/saxy.rb CHANGED
@@ -15,6 +15,5 @@ module Saxy
15
15
  end
16
16
 
17
17
  require 'saxy/element'
18
- require 'saxy/ostruct'
19
18
  require 'saxy/parser'
20
19
  require 'saxy/parsing_error'
data/saxy.gemspec CHANGED
@@ -15,10 +15,10 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Saxy::VERSION
17
17
 
18
- gem.required_ruby_version = "< 1.9"
18
+ gem.required_ruby_version = [">= 1.9.0", "< 1.9.3"]
19
19
 
20
20
  gem.add_dependency "activesupport", "< 4.0.0"
21
21
  gem.add_dependency "i18n", "< 0.7.0"
22
- gem.add_dependency "nokogiri", "< 1.6.0"
22
+ gem.add_dependency "nokogiri"
23
23
  gem.add_development_dependency "rspec"
24
24
  end
@@ -156,6 +156,6 @@ describe Saxy::Parser do
156
156
  end
157
157
 
158
158
  it "should return Enumerator when calling #each without a block" do
159
- parser.each.should be_instance_of Enumerable::Enumerator
159
+ parser.each.should be_instance_of Enumerator
160
160
  end
161
161
  end
data/spec/saxy_spec.rb CHANGED
@@ -32,6 +32,6 @@ describe Saxy do
32
32
  end
33
33
 
34
34
  it "should return Enumerator when calling #parse without a block" do
35
- Saxy.parse(fixture_file("webstore.xml"), "product").each.should be_instance_of Enumerable::Enumerator
35
+ Saxy.parse(fixture_file("webstore.xml"), "product").each.should be_instance_of Enumerator
36
36
  end
37
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Szajbe
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "<"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 1.6.0
47
+ version: '0'
48
48
  type: :runtime
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: 1.6.0
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -85,7 +85,6 @@ files:
85
85
  - Rakefile
86
86
  - lib/saxy.rb
87
87
  - lib/saxy/element.rb
88
- - lib/saxy/ostruct.rb
89
88
  - lib/saxy/parser.rb
90
89
  - lib/saxy/parsing_error.rb
91
90
  - lib/saxy/version.rb
@@ -94,7 +93,6 @@ files:
94
93
  - spec/fixtures/webstore.xml
95
94
  - spec/fixtures_helper.rb
96
95
  - spec/saxy/element_spec.rb
97
- - spec/saxy/ostruct_spec.rb
98
96
  - spec/saxy/parser_spec.rb
99
97
  - spec/saxy_spec.rb
100
98
  - spec/spec_helper.rb
@@ -107,9 +105,12 @@ require_paths:
107
105
  - lib
108
106
  required_ruby_version: !ruby/object:Gem::Requirement
109
107
  requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 1.9.0
110
111
  - - "<"
111
112
  - !ruby/object:Gem::Version
112
- version: '1.9'
113
+ version: 1.9.3
113
114
  required_rubygems_version: !ruby/object:Gem::Requirement
114
115
  requirements:
115
116
  - - ">="
@@ -127,7 +128,6 @@ test_files:
127
128
  - spec/fixtures/webstore.xml
128
129
  - spec/fixtures_helper.rb
129
130
  - spec/saxy/element_spec.rb
130
- - spec/saxy/ostruct_spec.rb
131
131
  - spec/saxy/parser_spec.rb
132
132
  - spec/saxy_spec.rb
133
133
  - spec/spec_helper.rb
data/lib/saxy/ostruct.rb DELETED
@@ -1,9 +0,0 @@
1
- require 'ostruct'
2
-
3
- module Saxy
4
- class OpenStruct < ::OpenStruct
5
- define_method :id do
6
- @table[:id]
7
- end
8
- end
9
- end
@@ -1,10 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Saxy::OpenStruct do
4
- let(:object) { Saxy::OpenStruct.new }
5
-
6
- it "should correctly set id attribute" do
7
- object.id = 1
8
- object.id.should == 1
9
- end
10
- end