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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cce0a91adff15fdea2ddfc83ff2b1b9647a470a
4
- data.tar.gz: 22e7f6ee0362cd2d5a86ed7c60aa6165abc776a0
3
+ metadata.gz: 24f190bfb5bf359acf6aeb54b93bea6d2b0b83d9
4
+ data.tar.gz: ced512e2aeffb216c20b59238f9199708a222f85
5
5
  SHA512:
6
- metadata.gz: 5352f5f3b6743c1ed8850ddfeab66f6a77bfd93ae1a5330a8bb841f8a78f80b627bd8421ced99effcc75d943dc2ec0a6b4b7b30da47a9cd3517da9f9ba45cf24
7
- data.tar.gz: ff36559b19a12c9850eb6e0da6465556490d945fda46dcf5434b7c706b0d750cf010614647c9816bbedb56895cd9db2d7c1145b4282167f235292011acffcff0
6
+ metadata.gz: 78a3eaabe76dbae70d776ad913aef615fa0098f28223ac1b70026391316c64ee9efbb4b531ef99eb8f19578c7113f36bc9cac2c7f1cac857ef5eb5a233f6c1a0
7
+ data.tar.gz: edfd42c95b4d6d208a9a2b2384734267365bfe2bba1d8842117c7d04c2684eaf6bc89d21fce3423e0708bc0c666f53d08ac4ae3bd7a13e88481667cd32f3c578
@@ -41,6 +41,10 @@ module Rippersnapper
41
41
  uri.path
42
42
  end
43
43
 
44
+ def port
45
+ uri.port
46
+ end
47
+
44
48
  private
45
49
 
46
50
  def parsed_domain
@@ -1,3 +1,3 @@
1
1
  module Rippersnapper
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -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.5
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: 2013-05-13 00:00:00.000000000 Z
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.0.0
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...