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 +4 -4
- data/.travis.yml +1 -2
- data/README.md +3 -3
- data/lib/saxy/element.rb +1 -0
- data/lib/saxy/version.rb +1 -1
- data/lib/saxy.rb +0 -1
- data/saxy.gemspec +2 -2
- data/spec/saxy/parser_spec.rb +1 -1
- data/spec/saxy_spec.rb +1 -1
- metadata +9 -9
- data/lib/saxy/ostruct.rb +0 -9
- data/spec/saxy/ostruct_spec.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 134c308ec032a7fd67bcde3a744f8f75bd656da9
|
4
|
+
data.tar.gz: 11d8785e94c498dfd91b0ef0d2656ffb97fc314d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c76931d22bee9d2f6723f1d6587a8af51ca510df4d74c15304b06a9b80e7bec63a1330993573af7a2e697f07d174f358a51e18b1a339b1e91953ac027695e17a
|
7
|
+
data.tar.gz: 38a2eaee5c237f4c46fe463e13e777a9978557e2483150cad4cbb930c505c4577d7604a5dabdb7f226fe24daa9c9743947472b0b88b7dbeb25af60435bed6a01
|
data/.travis.yml
CHANGED
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.
|
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.
|
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.
|
24
|
+
$ gem install saxy --version '~> 0.4.0'
|
25
25
|
|
26
26
|
## Usage
|
27
27
|
|
data/lib/saxy/element.rb
CHANGED
data/lib/saxy/version.rb
CHANGED
data/lib/saxy.rb
CHANGED
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"
|
22
|
+
gem.add_dependency "nokogiri"
|
23
23
|
gem.add_development_dependency "rspec"
|
24
24
|
end
|
data/spec/saxy/parser_spec.rb
CHANGED
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
|
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.
|
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:
|
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:
|
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:
|
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