rxfhelper 0.4.2 → 0.4.3

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: a2ae74d2b3d3a1820f4966e09aedc114f5c06427
4
- data.tar.gz: 57a881b423980554474f45e6fbc7f0e9cb9cc9a6
3
+ metadata.gz: 195986b86e0d60bb9346adfc4925779c669c9d29
4
+ data.tar.gz: 872c5ae619b89fc1d2747c69ea6923b7dffab3ad
5
5
  SHA512:
6
- metadata.gz: 10c1b911d3a409e19b202eefb4ea1588ca6f7d2f14894ddb38b46207aee542bebb50189ac4b194e5d7f1a4c2c84144ce140defd87c4b27d89411cc27bf5e12b1
7
- data.tar.gz: 0b5770a4c8f34310d814daa11a45c32578640462f9b7029a7e9cc5c1f7a82b799966dca1126cf9df5869145d3be0a406292e746ec2490a15c2e4be39e84f8de7
6
+ metadata.gz: b6d8a8edf06a122eca55879da55d84cb89c664d2be684f458926418b221214f111c5348079c1cc7d4c156ca5b20a506cd3f267bde331788982ba0d9eb0fbd6af
7
+ data.tar.gz: 2b0d8493c271390ac1a2e6ea6a7f45ebce027ddfa599e2591449768adb12fc353fa30abbddd7254a6ee3b087df2bf9a32ea62121f1713af534de3b26f77ee61e
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rxfhelper.rb CHANGED
@@ -36,7 +36,14 @@ class RXFHelper
36
36
  if x[/\bhttps?:\/\//] then
37
37
 
38
38
  r = GPDRequest.new(opt[:username], opt[:password]).get(x)
39
- raise("RXFHelper: 404 %s not found" % x) if r.code == '404'
39
+
40
+ case r.code
41
+ when '404'
42
+ raise(RXFHelperException, "404 %s not found" % x)
43
+ when '401'
44
+ raise(RXFHelperException, "401 %s unauthorized access" % x)
45
+ end
46
+
40
47
  [r.body, :url]
41
48
 
42
49
  elsif x[/^file:\/\//] or File.exists?(x) then
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rxfhelper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -12,26 +12,26 @@ cert_chain:
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE2MDMyMDEwMzMzOVoXDTE3MDMyMDEwMzMzOVowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE3MDkyNTE0MzA0MloXDTE4MDkyNTE0MzA0MlowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBALcxQKOXwL9ZPa/thp+F+s4nqbiO+QkcJWV6TZ/3iIka7/S8epEsEGUWxnrS
19
- ii6yKBWDjM1MyqJbVHV3P4Ew69o15crEH8Emh0T1e4Auyp4YkAV5VqQEFcQF7WI+
20
- OYQz4pXPK+oLtMotbrH7vEjjuPJH7dG0TtG15L4Y6DtaIY9S4mKDwV2n3Uowa5fp
21
- GZ2dcZEaswhczyj/hUHLVdhXwlTVO/Cj20NJAFtcF+XVzjgBAaNcQbXkTF84XnpE
22
- PWie6GzSDR8Q7ovWz6LhdjMhgjSRxg29ieZKJ/Oqozb2ZOWm+EQ4TeGbyGrfefuL
23
- 2Ggr5VatDoPH5rxi9DCPm21/HZcCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
24
- DwQEAwIEsDAdBgNVHQ4EFgQUAyS919kCANIDxSASTBhv5XSlUgIwJgYDVR0RBB8w
18
+ ggEBAMdACA54a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rJUKk7ktBoNzdTnsTN1E9T9ccmQJPx/W4C
28
+ eX0oxwBZfJXxc1h9Y4KxN9L8yvz1EaCDYEDBLgD4Qfo0WLKifEdV6Q+66JwuqtD0
29
+ yFh2EfrZO+Sd4wwgfAoUwwjLLCOYJ18lngofgyNaAGLML51+ihU/D1N2kZ3IpC2e
30
+ l6JpH8ibBE1LkvveLH6/vaW3zNNqmv3/XUNdhjGi7Uo/2zlvTdqAsJ3+QUSRjjnN
31
+ 8rLqizynNftXvmwVftEH2yQKlc6bsltIk+l2sNVht38tWANd/Zs0H6abD5zkVp2e
32
+ h6ZEatzAI88gwQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-01-20 00:00:00.000000000 Z
34
+ date: 2017-09-25 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: gpd-request
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.6.8
83
+ rubygems_version: 2.6.13
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Helpful library for primarily reading the contents of a file either from
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- �ڞg,��C,8FZS�DJ6_Q��_��L��<
1
+ FuM��� ���w�/��, Gnk��a=�:/�aV� ����D� ��ǔ�΃� d&��\�}��p]
2
+ �Bԟ)��Z���ƲL�Z@���h�V����8N��hr��6� m����f� �"�4�{�0�x�����'�A��4W�����QeB����|;X��e���y��6����T^�ݜ�s�)�H0�H��˷�S �^ qT�0��$�$�k��q{��0�����A�.�����y��?�a8)��