nom-xml 0.6.0 → 1.0.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 +3 -9
- data/Gemfile +2 -5
- data/Rakefile +2 -19
- data/lib/nom/xml/decorators/nodeset.rb +6 -1
- data/lib/nom/xml/version.rb +1 -1
- metadata +3 -5
- data/gemfiles/rails3.gemfile +0 -6
- data/gemfiles/rails4.gemfile +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68d13170b175503be9096bf39f8d8604447b274b
|
4
|
+
data.tar.gz: 1718b2a0026a09625081d988a3dffb1dac6a1df8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d33bf38dbdf85b56e2e1834f061cd679293b05726a036d8f458913e8cd03b4015ef7138f0391e4b6a1d6b9297ebea91b57d38a5dca74dec565da089cd28ab451
|
7
|
+
data.tar.gz: 3015b4cefb164f7e273dfa2111eeb3d672029f22144aea9a84c11461a56a61c29a3a86555800fc4b8a85079aa619851a49bb5a01cbf371110a9cd8a9c54cd3fb
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -2,8 +2,5 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
gem 'simplecov'
|
6
|
-
gem '
|
7
|
-
gem 'debugger', :platform => :mri_19
|
8
|
-
gem "redcarpet", :platform => :ruby_19
|
9
|
-
gem 'byebug'
|
5
|
+
gem 'simplecov'
|
6
|
+
gem 'byebug', platform: :mri
|
data/Rakefile
CHANGED
@@ -10,25 +10,8 @@ rescue Bundler::BundlerError => e
|
|
10
10
|
exit e.status_code
|
11
11
|
end
|
12
12
|
|
13
|
-
task :
|
13
|
+
task default: :spec
|
14
14
|
|
15
15
|
require 'rspec/core/rake_task'
|
16
16
|
desc "Run specs"
|
17
|
-
RSpec::Core::RakeTask.new
|
18
|
-
|
19
|
-
if ENV['COVERAGE'] and RUBY_VERSION =~ /^1.8/
|
20
|
-
t.rcov = true
|
21
|
-
t.rcov_opts = %w{--exclude spec\/*,gems\/*,ruby\/* --aggregate coverage.data}
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
require 'yard'
|
26
|
-
YARD::Rake::YardocTask.new do |t|
|
27
|
-
t.options = ["--readme", "README.md"]
|
28
|
-
end
|
29
|
-
|
30
|
-
desc "Continuous Integration build"
|
31
|
-
task :ci do
|
32
|
-
Rake::Task['spec'].invoke
|
33
|
-
# Rake::Task['yard'].invoke
|
34
|
-
end
|
17
|
+
RSpec::Core::RakeTask.new(:spec)
|
@@ -31,7 +31,12 @@ module Nom::XML::Decorators::NodeSet
|
|
31
31
|
def method_missing sym, *args, &block
|
32
32
|
if self.all? { |node| node.respond_to? sym }
|
33
33
|
result = self.collect { |node| node.send(sym, *args, &block) }.flatten
|
34
|
-
self.class.new(self.document, result) rescue result
|
34
|
+
nodeset = self.class.new(self.document, result) rescue result
|
35
|
+
|
36
|
+
# hack around some lazy initialization in the jruby version of Nokogiri
|
37
|
+
# https://github.com/sparklemotion/nokogiri/issues/1782
|
38
|
+
nodeset | self.class.new(self.document) if defined?(JRUBY_VERSION) && result.empty?
|
39
|
+
nodeset
|
35
40
|
else
|
36
41
|
begin
|
37
42
|
self.document.template_registry.send(sym, self, *args, &block)
|
data/lib/nom/xml/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nom-xml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -125,8 +125,6 @@ files:
|
|
125
125
|
- LICENSE
|
126
126
|
- README.md
|
127
127
|
- Rakefile
|
128
|
-
- gemfiles/rails3.gemfile
|
129
|
-
- gemfiles/rails4.gemfile
|
130
128
|
- lib/nom.rb
|
131
129
|
- lib/nom/xml.rb
|
132
130
|
- lib/nom/xml/decorators.rb
|
@@ -172,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
170
|
version: '0'
|
173
171
|
requirements: []
|
174
172
|
rubyforge_project:
|
175
|
-
rubygems_version: 2.
|
173
|
+
rubygems_version: 2.6.11
|
176
174
|
signing_key:
|
177
175
|
specification_version: 4
|
178
176
|
summary: A library to help you tame sprawling XML schemas.
|
data/gemfiles/rails3.gemfile
DELETED