xml-smart 0.3.17 → 0.3.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xml/smart.rb +1 -1
  3. data/xml-smart.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee2f9f5c987de1be57b943890b4d222a7e8ab198
4
- data.tar.gz: 0a403023e5ec5e0aad8954027052d2cc1fd25dfb
3
+ metadata.gz: 811c9bcaf859068540db8993295edf9b5687b8b9
4
+ data.tar.gz: 2211073f067c264599e7aa7a2ed4ac2abc8ae25a
5
5
  SHA512:
6
- metadata.gz: 608a0f2c90289d7fb5d774f3b95158894db4dd37d0f95a45696895b1f082fa7babf006c0ee46356949f08471af88681f869871152ed97551f410a15149d6e3ba
7
- data.tar.gz: e0f16532e1a55c5dc91c03814f100fce0d27d21ae3bade67acc138d86dc514c018bc622f7f66728f007908b0f1f8c8f64dedf4d0e63443e9c0adb64505a2fd10
6
+ metadata.gz: fb1ed71badd8282dcb6dd48f26ab1a4d76bd06f4b46307be1f19cb1454dfc14699caada083dfd9b1bcd115ef698c81e3e6e7665688c768594b46ae67f81dfd4f
7
+ data.tar.gz: 41a91a6914488065fde7d33bb92447bc5d6b045ab753b3edcbec40ed959a932fad37610e003b1dfd7e327f85637dc831b3faf55677f4acfedd1aeaf0f15140aa
data/lib/xml/smart.rb CHANGED
@@ -99,7 +99,7 @@ module Nokogiri
99
99
  ctx.register_namespaces "xi"=>"http://www.w3.org/2001/XInclude"
100
100
  ctx.evaluate('.//xi:include').each do |ele|
101
101
  name = ele.attributes['href'].value
102
- name = path + name if name !~ /^(https?:|ftp:)/
102
+ name = path + name if name !~ /^(https?:|ftp:|\/)/
103
103
  content = open(name,{ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE}).read
104
104
  insert = begin
105
105
  Nokogiri::XML::parse(content).root # {|config| config.noblanks.noent.strict }.root
data/xml-smart.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "xml-smart"
3
- s.version = "0.3.17"
3
+ s.version = "0.3.18"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
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.17
4
+ version: 0.3.18
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: 2015-07-27 00:00:00.000000000 Z
11
+ date: 2015-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri