requestor 0.2.0 → 0.4.0

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
  SHA256:
3
- metadata.gz: 816f271c279797a403b9f90ede58b2601d4334426597e24ab6d742478289861b
4
- data.tar.gz: 740ab5623009f6373296b0fd42fbf65ff92fb6b9a86098b7cc6ba4a8508369dd
3
+ metadata.gz: d9ee3a5222ca60392953a1d229e07c017c5b1e59e4e0d28a2b2447090ee89ae9
4
+ data.tar.gz: bfba0da5986e8f4e7b586a4b67e1c503d212ed3209015fdce1662dbe3cc34e51
5
5
  SHA512:
6
- metadata.gz: c7fac6d5b722e8d54f7953e6c3f636648da70c513e2f9d114eb42d6d3fff830f20b72e75614c2d23c73ae26dd6cf562094e83668dd9c89405919c2d55f301101
7
- data.tar.gz: 04bfa4604789698c20183b775dda556e85c71aa0935c1aaabed6e7360e2670a44ca02a0919acb70c8f32767e6d4b647f8572cad1a8f55bc3a310c1ca3b56006b
6
+ metadata.gz: 6c81d56f71ab3a52178671db1254d7530e1db5f05a949792cf6b489327f32a7b57186d0def5ecaa7e8143c0734ea0aa88a9b22ea90eac8b54288062c6ec5d7e5
7
+ data.tar.gz: 59d60b6b35d54c022796461fa36cffa88724e4a54f710646a9904fc250534910d072ec3ec44de0672957e43a66fdc67bfeac54038311350ead853549c7c71923
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/requestor.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # file: requestor.rb
4
4
 
5
- require 'open-uri'
5
+ require 'rxfhelper'
6
6
 
7
7
 
8
8
  class Requestor
@@ -11,7 +11,7 @@ class Requestor
11
11
 
12
12
  def initialize(url, debug=false)
13
13
 
14
- @url = url.sub(/\/$/,'\0')
14
+ @url = url.sub(/\/$/,'\0')
15
15
  @code = []
16
16
  @debug = debug
17
17
 
@@ -23,16 +23,16 @@ class Requestor
23
23
 
24
24
  def require(name)
25
25
 
26
- url = "%s/%s.rb" % [@url, name]
26
+ url = "%s/%s" % [@url, name.sub(/\.rb$|$/,'.rb')]
27
27
  puts 'RequireX url: ' + url.inspect if @debug
28
- @code << open(url, 'UserAgent' => 'Ruby-Requestor').read
28
+ @code << RXFHelper.read(url).first
29
29
 
30
30
  end
31
31
  end
32
32
 
33
33
  def self.read(url, debug: false)
34
-
35
- req = RequireX.new(url.sub(/^(?!http)/,'http://'), debug)
34
+
35
+ req = RequireX.new(url.sub(/^(?!http|dfs)/,'http://'), debug)
36
36
  yield(req)
37
37
  req.code
38
38
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: requestor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -11,34 +11,54 @@ cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
14
- YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTgwODI3MDkwMDQyWhcN
15
- MTkwODI3MDkwMDQyWjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
16
- cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC0WO35
17
- C1+UAh0skpx8Qo0hSnrKa8bAdmCNDbHDtOmpqAESBbsRoav1CRoc/tx75zRqCmpm
18
- v23Fw4A1zfBM3waE133hxO0psIR2HZImSiMYSoe9jaWAAcZXZz56rGFRNZ7hcxKM
19
- KdO8wxeOShbplBskKvuKc2VJAD3m1bJvNYKnFCje9rmE1Ynlia+W9dWY8E9y6/ct
20
- +NNuvDtb8BOUREKGWqJXN606tdyaFqCTpkLDhDahLjJM1qLlVAnVuad0qu0HmdEy
21
- LxJ68Yiy2k+32w/TagNeAQIEg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jo73tMo1crqmte
31
+ zGKx18WfoUKg1v06U7Y+vKYvUc9VIJPwGaHXQQRIZNOKIZ9ntZVohthimncgYARr
32
+ wUxxaviLcEu+kwDHmCHZkqZH9JPriqEAEceoC486ow+/Zop8+5Oo2UK/5COZG7RG
33
+ ChRXK7B09Nxbam42GlzQXaY4J/uFEViTxDAjisrSlsPnsv9jPS/wmfUMHQyKeXfN
34
+ dSMKirEpkcWnOSTcqQsuytax1e2UGqDB6VYeuItDsBfKVA5DE65A952rWupVHV38
35
+ bqBfMkLBco/LfjEPRGs7xaQCdH2dldtI0PNXCCU8Lz81HRlxC6K/kiMhBRr9/c1K
36
+ RZOrC0QVRB1wN/Ae32FtQnfk
37
37
  -----END CERTIFICATE-----
38
- date: 2018-08-27 00:00:00.000000000 Z
39
- dependencies: []
38
+ date: 2022-02-11 00:00:00.000000000 Z
39
+ dependencies:
40
+ - !ruby/object:Gem::Dependency
41
+ name: rxfhelper
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.3'
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 1.3.1
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '1.3'
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: 1.3.1
40
60
  description:
41
- email: james@jamesrobertson.eu
61
+ email: digital.robertson@gmail.com
42
62
  executables: []
43
63
  extensions: []
44
64
  extra_rdoc_files: []
@@ -56,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
56
76
  requirements:
57
77
  - - ">="
58
78
  - !ruby/object:Gem::Version
59
- version: 2.1.2
79
+ version: 3.0.2
60
80
  required_rubygems_version: !ruby/object:Gem::Requirement
61
81
  requirements:
62
82
  - - ">="
@@ -64,9 +84,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
84
  version: '0'
65
85
  requirements: []
66
86
  rubyforge_project:
67
- rubygems_version: 2.7.6
87
+ rubygems_version: 2.7.10
68
88
  signing_key:
69
89
  specification_version: 4
70
- summary: Reads a gem (under development) from an HTTP location. Ideal for working
71
- on a gem in the development environment.
90
+ summary: Reads a gem (in the development environment) from an HTTP location. Ideal
91
+ for working on a gem in the development environment.
72
92
  test_files: []
metadata.gz.sig CHANGED
Binary file