requestor 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 36a8107487ca1061f58e6e0ff8aa6927f681b740
4
+ data.tar.gz: ceb3f49b666549a7328b2a3e15a69b593af420ef
5
+ SHA512:
6
+ metadata.gz: 55a5f7c08ebe01fc439fbf9342088745d15d81a4b09792c708c232d2ba12a8d9e0ab5922baf83fb96b3dbe069d62e4867c149e4b99d7c23ff5dfda548db8fe38
7
+ data.tar.gz: 4c6cb8cbe067ccdf4e5ddcbe1d37fb85aea9e75b6ad15989de0c8b6a4e19dc227be88fff4842aa45fa42e232c4ccd3d68c0a96b70d98cff2e974103bc682b936
checksums.yaml.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+ p>�`R�O���k0���C��"��� f�º���4��
2
+ u���sg#�l���w�c�<0���4��JIO����a�!�
data.tar.gz.sig CHANGED
Binary file
data/lib/requestor.rb CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/ruby
1
+ #!/usr/bin/env ruby
2
2
 
3
3
  # file: requestor.rb
4
4
 
@@ -28,7 +28,7 @@ class Requestor
28
28
  end
29
29
 
30
30
  if code == '200' then
31
- buffer = open(url, 'UserAgent' => 'Ruby-Requestor').read
31
+ buffer = open(url, 'UserAgent' => 'Ruby-Requestor'){|f| f.read}
32
32
  @file_list = true if buffer[/#{pattern}/i]
33
33
  end
34
34
 
@@ -39,7 +39,7 @@ class Requestor
39
39
 
40
40
  if url.file_list? then
41
41
  @file_list = true
42
- @doc = Document.new(open(url, 'UserAgent' => 'Ruby-REXML').read)
42
+ @doc = Document.new(open(url, 'UserAgent' => 'Ruby-REXML'){|f| f.read})
43
43
  end
44
44
  end
45
45
 
@@ -53,7 +53,7 @@ class Requestor
53
53
  url = @url + file
54
54
  end
55
55
  @names << file
56
- @code << open(url, 'UserAgent' => 'Ruby-Requestor v0.1').read
56
+ @code << open(url, 'UserAgent' => 'Ruby-Requestor'){|f| f.read}
57
57
  end
58
58
  end
59
59
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: requestor
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.1.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.6
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - James Robertson
9
8
  autorequire:
10
9
  bindir: bin
11
- cert_chain:
10
+ cert_chain:
12
11
  - |
13
12
  -----BEGIN CERTIFICATE-----
14
13
  MIIDRDCCAiygAwIBAgIBADANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
@@ -30,46 +29,36 @@ cert_chain:
30
29
  O6IjL82QWSIPSdpoRwIWpkDR22UzX3DhHm27pNrn3GT6KyLZI98FZQJaXC6jTIgj
31
30
  bIA4qJJPh8UF+dX6FXTPnrVCKQ5ZsjCZ
32
31
  -----END CERTIFICATE-----
33
-
34
- date: 2013-02-06 00:00:00 Z
32
+ date: 2013-05-04 00:00:00.000000000 Z
35
33
  dependencies: []
36
-
37
34
  description:
38
35
  email:
39
36
  executables: []
40
-
41
37
  extensions: []
42
-
43
38
  extra_rdoc_files: []
44
-
45
- files:
39
+ files:
46
40
  - lib/requestor.rb
47
41
  homepage:
48
42
  licenses: []
49
-
43
+ metadata: {}
50
44
  post_install_message:
51
45
  rdoc_options: []
52
-
53
- require_paths:
46
+ require_paths:
54
47
  - lib
55
- required_ruby_version: !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: "0"
61
- required_rubygems_version: !ruby/object:Gem::Requirement
62
- none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: "0"
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
67
58
  requirements: []
68
-
69
59
  rubyforge_project:
70
- rubygems_version: 1.8.23
60
+ rubygems_version: 2.0.0.rc.2
71
61
  signing_key:
72
- specification_version: 3
62
+ specification_version: 4
73
63
  summary: requestor
74
64
  test_files: []
75
-
metadata.gz.sig CHANGED
Binary file