lexurl 0.0.2 → 0.0.3

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: ccc76903fb5080ceae86a9c01aa1de31ff5c55de
4
- data.tar.gz: 67b216c9d2a2b37bf00b410c55049810750622e3
3
+ metadata.gz: 3dcac58efa4955264158a22bfb610738988a28c5
4
+ data.tar.gz: c2e1d45cd02aa84f1d8fba10bf39c453bdb9ef5d
5
5
  SHA512:
6
- metadata.gz: 5e67d9bd47afeff63c1c69ed44c1e5f0fb6b543abc2aebaa4a96c9dc1e389d294149d500c3bb6e7e16286cdacfc4378e2c86c88a26f4ec98d22b0baa9c60c80b
7
- data.tar.gz: 05ff65198376f8acf27bbab7a9d6620cda93200aa62f5eac295b58ecdba1e43fcd1933d91952f71616fd9a288ef3c23c84726e219f3031ee6b13a29996dc5aba
6
+ metadata.gz: 7c0902905240931055822e7c6311d673edc44b20f5a78cbd396ac6d1eb4654f9b8da6ca69a269db941cdf89c7667e0f2bb605d07579f22151276f252b4558528
7
+ data.tar.gz: 0c905e5c7685c60359e28f6708573299a7a0cd14fb99903d9b5bf0d4fb4240ebf41714ca30e77c83d2bfeae8099fdae34fc9d33efed054feb8936715d7d8ebd7
@@ -1,3 +1,3 @@
1
1
  module Lexurl
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/lexurl.rb CHANGED
@@ -8,8 +8,8 @@ module Lexurl
8
8
  end
9
9
 
10
10
  def get_domain
11
- url = 'http://' + @url unless @url.match(/^http:\/\//)
12
- host = URI.parse(url).host
11
+ @url = 'http://' + @url unless @url.match(/^http:\/\//)
12
+ host = URI.parse(@url).host
13
13
  host.gsub(/\Awww\./, "")
14
14
  end
15
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lexurl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - astorre