http_response_code-test 0.0.11 → 0.0.12

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: a0061bca033fe1974acd9639971097a93663703d
4
- data.tar.gz: 850eec90a1633ca6fa80fd1498e165d98b8b601f
3
+ metadata.gz: f9d1c7999727546e80b2c76b5d24a8f5498c6f07
4
+ data.tar.gz: 8c438b126d188df2706b3caafbe9857065fcda21
5
5
  SHA512:
6
- metadata.gz: 50320eef7fdecf303863ae93518c5c1dcaa67d8fbd385fa9fc5cb61fdcc59ed143e23078f4696984b2a27b226bd8fe0042af33b88b5bbd29616bfe9c53670073
7
- data.tar.gz: 76f957da02d11f4c64b512530ee86eb960783d1a6369be54e9b8ac624b6e037733b4b2e79410044ada6a84e3c512d506de5d590e9e6e16894e73f6ae8721701e
6
+ metadata.gz: f7ac1ec3f95a679d8d7ab03d714bdc96fb9c10bd5639f3ceeb6d1d0d86294731b107a4b755115ac26dcaf9704912366f0e3efe58ced808f81ce6a92cfa60acb4
7
+ data.tar.gz: d8fd78cd05ad46b44cadde7cbb9f1d67d23c1e29ae610dab21e9c96942f503bb205c93ef223f42896978c6ff73f6602ce2da47afd70eaef7e05138e0e0961275
@@ -2,3 +2,4 @@ require "http_response_code/test/version"
2
2
  require "http_response_code/test/presence_tester"
3
3
  require "net/http"
4
4
  require "colorize"
5
+ require "open-uri"
@@ -27,8 +27,9 @@ module HTTPResponseCode
27
27
  protected
28
28
 
29
29
  def text_to_array(file)
30
- File.read(file).split(/\n/).each do |site|
31
- site[0] = ''
30
+ file_contents = open(file).read
31
+ file_contents.split(/\n/).each do |site|
32
+ site[0] = '' if site[0] = '/'
32
33
  end
33
34
  end
34
35
 
@@ -48,6 +49,7 @@ module HTTPResponseCode
48
49
  end
49
50
 
50
51
  def create_link(site)
52
+ site.chop! if site.end_with? '/'
51
53
  URI.parse "#{@domain}#{site}"
52
54
  end
53
55
 
@@ -1,5 +1,5 @@
1
1
  module HTTPResponseCode
2
2
  module Test
3
- VERSION = "0.0.11"
3
+ VERSION = "0.0.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_response_code-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Ker-Seymer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-09 00:00:00.000000000 Z
11
+ date: 2014-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: colorize
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description:
@@ -60,7 +60,7 @@ executables:
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - .gitignore
63
+ - ".gitignore"
64
64
  - Gemfile
65
65
  - LICENSE.txt
66
66
  - README.md
@@ -80,17 +80,17 @@ require_paths:
80
80
  - lib
81
81
  required_ruby_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - '>='
83
+ - - ">="
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - '>='
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  requirements: []
92
92
  rubyforge_project:
93
- rubygems_version: 2.0.14
93
+ rubygems_version: 2.2.2
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Tests HTTP response codes of given .txt file