dynarex 1.3.1 → 1.3.2
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/dynarex.rb +5 -2
- metadata +2 -2
- metadata.gz.sig +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e57888db63b06eaf03b2c1f46c299ac6102e555
|
4
|
+
data.tar.gz: 0fb08d028bc2f6e9ea2193287e8b2076186697aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95c84520a2fdde6ee38e0b5feb3c1c22543af6853cfbd1fc51c7571a571c5badda5be72f0b8e4320b5ba90ab965c262d9084faaa3406285f072c6753ae0a42a5
|
7
|
+
data.tar.gz: 75fea716adb4c098a55f006b397f311395c12dc8695a1748605f5a2bc74f9ca976603a143a80e2f6ed48e50ccdba01aa9da2bea860743f872dd9036cd7f11164
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dynarex.rb
CHANGED
@@ -36,7 +36,9 @@ class Dynarex
|
|
36
36
|
#* an XML string
|
37
37
|
# Dynarex.new '<contacts><summary><schema>contacts/contact(name,age,dob)</schema></summary><records/></contacts>'
|
38
38
|
|
39
|
-
def initialize(rawx=nil)
|
39
|
+
def initialize(rawx=nil, opt={})
|
40
|
+
|
41
|
+
@opt = {username: nil, password: nil}.merge opt
|
40
42
|
#puts Rexle.version
|
41
43
|
@delimiter = ''
|
42
44
|
openx(rawx.clone) if rawx
|
@@ -892,7 +894,8 @@ EOF
|
|
892
894
|
elsif s[/[\[\(]/] # schema
|
893
895
|
dynarex_new(s)
|
894
896
|
elsif s[/^https?:\/\//] then # url
|
895
|
-
buffer = Kernel.open(s, 'UserAgent' => 'Dynarex-Reader'
|
897
|
+
buffer = Kernel.open(s, 'UserAgent' => 'Dynarex-Reader',\
|
898
|
+
http_basic_authentication: [@opt[:username], @opt[:password]]).read
|
896
899
|
else # local file
|
897
900
|
@local_filepath = s
|
898
901
|
raise DynarexException, 'file not found: ' + s unless File.exists? s
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynarex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
SLshUY2PSjSnVYx3Gln9vzST8CSTQPZbVpDfzbTqqAZnzqhIe2UaLbzGCMoz8kbw
|
32
32
|
jQ7NXbu03ZrsvQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-01-
|
34
|
+
date: 2015-01-05 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rexle
|
metadata.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
W�����߅^�i���hКP�[���n�{��8/���:�[<'6��)����/G��E[�nYz��ɨ5o9�����3O�� �.��g1��f��\�ez�i�z�P��B~��Fh!�Xܭ&ӏjMU@Fe�]�0�)LY���S����Zy�0���:w����gz��#�G�}kJI�ڴ���S`A-�Ub�"��� ��O���9T�7
|
2
|
+
���"�ح�j_���ƳU����Eq�a���yL��2
|