rippersnapper 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rippersnapper/url.rb +4 -0
- data/lib/rippersnapper/version.rb +1 -1
- data/spec/rippersnapper/url_spec.rb +6 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24f190bfb5bf359acf6aeb54b93bea6d2b0b83d9
|
4
|
+
data.tar.gz: ced512e2aeffb216c20b59238f9199708a222f85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78a3eaabe76dbae70d776ad913aef615fa0098f28223ac1b70026391316c64ee9efbb4b531ef99eb8f19578c7113f36bc9cac2c7f1cac857ef5eb5a233f6c1a0
|
7
|
+
data.tar.gz: edfd42c95b4d6d208a9a2b2384734267365bfe2bba1d8842117c7d04c2684eaf6bc89d21fce3423e0708bc0c666f53d08ac4ae3bd7a13e88481667cd32f3c578
|
data/lib/rippersnapper/url.rb
CHANGED
@@ -12,17 +12,18 @@ module Rippersnapper
|
|
12
12
|
it { should respond_to :url }
|
13
13
|
it { should respond_to :suffix }
|
14
14
|
it { should respond_to :subdomain }
|
15
|
-
|
15
|
+
it { should respond_to :port }
|
16
16
|
|
17
17
|
context "with a scheme" do
|
18
|
-
subject { Url.new "http://drive.google.com/micah" }
|
19
|
-
its(:url) { should eq "http://drive.google.com/micah" }
|
18
|
+
subject { Url.new "http://drive.google.com:91/micah" }
|
19
|
+
its(:url) { should eq "http://drive.google.com:91/micah" }
|
20
20
|
its(:path) { should eq "/micah" }
|
21
21
|
its(:scheme) { should eq "http" }
|
22
22
|
its(:host) { should eq "drive.google.com" }
|
23
23
|
its(:suffix) { should eq "com" }
|
24
24
|
its(:domain) { should eq "google" }
|
25
25
|
its(:subdomain) { should eq "drive" }
|
26
|
+
its(:port) { should eq 91 }
|
26
27
|
end
|
27
28
|
|
28
29
|
context "without a scheme" do
|
@@ -34,6 +35,7 @@ module Rippersnapper
|
|
34
35
|
its(:suffix) { should eq "com" }
|
35
36
|
its(:domain) { should eq "google" }
|
36
37
|
its(:subdomain) { should eq "www" }
|
38
|
+
its(:port) { should eq 80 }
|
37
39
|
end
|
38
40
|
|
39
41
|
context "with a query string" do
|
@@ -52,6 +54,7 @@ module Rippersnapper
|
|
52
54
|
its(:suffix) { should eq "" }
|
53
55
|
its(:domain) { should eq "" }
|
54
56
|
its(:subdomain) { should eq "" }
|
57
|
+
its(:port) { should be_nil }
|
55
58
|
end
|
56
59
|
end
|
57
60
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rippersnapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Woods
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.1.11
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Named after the worst decepticon ever, a shark with T-Rex arms...
|