polyrex 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/polyrex.rb +4 -4
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f4c552bdf18a1178eebdf2d51bef56f85796641
|
4
|
+
data.tar.gz: a5a1dff609a2bffada052dae04b125479b954d4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6cd3de269bea3a44d6008a33acf55862f152e95406f41e98914516fd40108b2a692091d296dabba239f51d9d11f77ef55b6f03c5021dba29f9033ec87aa7ede
|
7
|
+
data.tar.gz: fe48037c37996c74232a9fcc750aee68e3c01e40b808ca90130f4271f87d7c8654de3293b7d4ee62d57b20330cfcd54a4438898e5d6b00771d8dcd3d45c8ddb1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/polyrex.rb
CHANGED
@@ -47,7 +47,7 @@ class Polyrex
|
|
47
47
|
|
48
48
|
if location then
|
49
49
|
self.method(:schema=).call(options[:schema]) if options[:schema]
|
50
|
-
|
50
|
+
openx(location)
|
51
51
|
|
52
52
|
if options[:schema] then
|
53
53
|
fields = @schema[/\/.*/].scan(/\[([^\]]+)/).map \
|
@@ -153,7 +153,7 @@ class Polyrex
|
|
153
153
|
|
154
154
|
def schema=(s)
|
155
155
|
|
156
|
-
|
156
|
+
openx(s)
|
157
157
|
summary_h = Hash[*@doc.root.xpath("summary/*").map {|x| [x.name, x.text]}.flatten]
|
158
158
|
#@summary = OpenStruct.new summary_h
|
159
159
|
|
@@ -480,14 +480,14 @@ EOF
|
|
480
480
|
|
481
481
|
end
|
482
482
|
|
483
|
-
def
|
483
|
+
def openx(s)
|
484
484
|
|
485
485
|
if s[/</] # xml
|
486
486
|
buffer = s
|
487
487
|
elsif s[/\[/] then # schema
|
488
488
|
buffer = polyrex_new s
|
489
489
|
elsif s[/^https?:\/\//] then # url
|
490
|
-
buffer =
|
490
|
+
buffer = open(s, 'UserAgent' => 'Polyrex-Reader'){|x| x.read}
|
491
491
|
else # local file
|
492
492
|
buffer = File.open(s,'r').read
|
493
493
|
@local_filepath = s
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyrex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
7hfiCsNv+0o/OwBNlpn8pTTpd3jV6o1Qq0Y7QiFomKd6XWlaHT4ZNtZdb/XTpC7W
|
30
30
|
ZUZv+oXV5L4FrLlOrnTUhA+cZRntSyHs
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2014-01-
|
32
|
+
date: 2014-01-05 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: polyrex-schema
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.1
|
159
|
+
rubygems_version: 2.2.0.rc.1
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: polyrex
|
metadata.gz.sig
CHANGED
Binary file
|