nom-xml 0.6.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 014aacabf359763825e7eed07089ed3e080df7f7
4
- data.tar.gz: 3196afd25586b81fda37a98535c2e55f4b1e0f9b
3
+ metadata.gz: 68d13170b175503be9096bf39f8d8604447b274b
4
+ data.tar.gz: 1718b2a0026a09625081d988a3dffb1dac6a1df8
5
5
  SHA512:
6
- metadata.gz: ba98c65fe282f957254e7fdd803a62bdc6692ed17d928b3c8666802c069259cb18f0e115c4ba9235c92ca75477cb0e978fc6e1a4d18a084b7343eb46014caeaf
7
- data.tar.gz: d2f3b9757f83d81ac615ee5c6b2b317611324c75fc7265c2cbf9b42df2e1da5736a095673f7d154083df9bf3d3327a3a87e9c85ba23ed14e3471ec59ad213f96
6
+ metadata.gz: d33bf38dbdf85b56e2e1834f061cd679293b05726a036d8f458913e8cd03b4015ef7138f0391e4b6a1d6b9297ebea91b57d38a5dca74dec565da089cd28ab451
7
+ data.tar.gz: 3015b4cefb164f7e273dfa2111eeb3d672029f22144aea9a84c11461a56a61c29a3a86555800fc4b8a85079aa619851a49bb5a01cbf371110a9cd8a9c54cd3fb
@@ -1,13 +1,7 @@
1
1
  notifications:
2
2
  email: false
3
3
 
4
- gemfile:
5
- - gemfiles/rails3.gemfile
6
- - gemfiles/rails4.gemfile
7
-
8
4
  rvm:
9
- - 1.9.3
10
- - jruby-19mode
11
- - rbx-19mode
12
- - 2.0.0
13
- - 2.1.2
5
+ - 2.4.4
6
+ - 2.5.1
7
+ - jruby-9.2.0.0
data/Gemfile CHANGED
@@ -2,8 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'simplecov', :platform => :ruby_19
6
- gem 'rcov', :platform => :ruby_18
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 :default => :ci
13
+ task default: :spec
14
14
 
15
15
  require 'rspec/core/rake_task'
16
16
  desc "Run specs"
17
- RSpec::Core::RakeTask.new do |t|
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)
@@ -1,5 +1,5 @@
1
1
  module Nom
2
2
  module XML
3
- VERSION = '0.6.0'
3
+ VERSION = '1.0.0'
4
4
  end
5
5
  end
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.6.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: 2016-09-21 00:00:00.000000000 Z
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.5.1
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.
@@ -1,6 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path=>"../"
4
-
5
- gem 'activesupport', '~> 3.2', '>= 3.2.18'
6
-
@@ -1,6 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path=>"../"
4
-
5
- gem 'activesupport', '~> 4.1'
6
-