xml-smart 0.3.21 → 0.3.22

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: 40c589008681cdbad9093b1c87f76c021844e754
4
- data.tar.gz: '00709426bbf58d6bf3443588ea0d4b2494160367'
3
+ metadata.gz: 436398fe01b5b7e12cac131af5937f796433212f
4
+ data.tar.gz: dc8092d1d79a2c30cbcbc5cd6cfe55efd8b83853
5
5
  SHA512:
6
- metadata.gz: fca7278e5139558178a7831c9017b300ae0a93d188420630b4d684545709acb29669b02e970435cf3e970f5aad1a65568b76d5b71501300148a346c6eba9be99
7
- data.tar.gz: 7db350cd7a2b1cae4dfc17d0e0fae606cd7ebaa54cbc273fbcd483e2b7330145f12c210469fbc8e90b831776d4bb26b90b0d3a823fb7d6322b8d32084a185b06
6
+ metadata.gz: eb004bcfdb5fc2eb70cc321610d0c694d99997f562d14584fcdb0633db7ae477813da2308d6bfe92bd56d8ef39f151359d20e21e6d429486ee6a200ddd7b5538
7
+ data.tar.gz: 494fadfcf6d91a20835059dec07b54973e42944d9f64dad09b4c8d60a96162cc032d2d01b7921ec2394f2858bedb27ed4e7a848704ea5491fe3a0cd722a434a1
data/Rakefile CHANGED
@@ -18,8 +18,8 @@ end
18
18
 
19
19
  task :push => :gem do |r|
20
20
  `gem push pkg/xml-smart.gem`
21
- end
21
+ end
22
22
 
23
23
  task :install => :gem do |r|
24
- `sudo gem install pkg/xml-smart.gem`
25
- end
24
+ `gem install pkg/xml-smart.gem`
25
+ end
@@ -36,9 +36,9 @@ module Nokogiri
36
36
  end
37
37
 
38
38
  def xpath_fast(path)
39
- @ctx = XPathContext.new(self) unless defined? @ctx
40
- ctx = @ctx
41
- #ctx = XPathContext.new(self)
39
+ #@ctx = XPathContext.new(self) unless defined? @ctx
40
+ #ctx = @ctx
41
+ ctx = XPathContext.new(self)
42
42
  ctx.register_namespaces(self.document.custom_namespace_prefixes.merge(self.document.user_custom_namespace_prefixes))
43
43
  path = path.gsub(/xmlns:/, ' :') unless Nokogiri.uses_libxml?
44
44
  ctx.evaluate(path)
@@ -88,9 +88,9 @@ module Nokogiri
88
88
  # return xpath(path,self.document.custom_namespace_prefixes.merge(self.document.user_custom_namespace_prefixes))
89
89
  return NodeSet.new(document) unless document
90
90
 
91
- @ctx = XPathContext.new(self) unless defined? @ctx
92
- ctx = @ctx
93
- #ctx = XPathContext.new(self)
91
+ #@ctx = XPathContext.new(self) unless defined? @ctx
92
+ #ctx = @ctx
93
+ ctx = XPathContext.new(self)
94
94
  ctx.register_namespaces(self.document.custom_namespace_prefixes.merge(self.document.user_custom_namespace_prefixes))
95
95
  path = path.gsub(/xmlns:/, ' :') unless Nokogiri.uses_libxml?
96
96
  ctx.evaluate(path)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "xml-smart"
3
- s.version = "0.3.21"
3
+ s.version = "0.3.22"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "An xml library that doesn't suck - since 2004."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml-smart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.21
4
+ version: 0.3.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-01 00:00:00.000000000 Z
11
+ date: 2017-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri