jobs-referer-parser 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/data/referers.yml CHANGED
@@ -949,7 +949,6 @@ search:
949
949
  - www.google.jo
950
950
  - www.google.co.jp
951
951
  - www.google.co.ke
952
- - www.google.com.kh
953
952
  - www.google.ki
954
953
  - www.google.kg
955
954
  - www.google.co.kr
@@ -1146,7 +1145,6 @@ search:
1146
1145
  - google.jo
1147
1146
  - google.co.jp
1148
1147
  - google.co.ke
1149
- - google.com.kh
1150
1148
  - google.ki
1151
1149
  - google.kg
1152
1150
  - google.co.kr
@@ -1274,6 +1272,26 @@ search:
1274
1272
  - webcache.googleusercontent.com
1275
1273
  - encrypted.google.com
1276
1274
  - googlesyndicatedsearch.com
1275
+ - www.google.al
1276
+ - www.google.co.ao
1277
+ - www.google.bt
1278
+ - www.google.cx
1279
+ - www.google.eu
1280
+ - www.google.com.mm
1281
+ - www.google.nf
1282
+ - www.google.com.pg
1283
+ - www.google.sr
1284
+ - www.google.tn
1285
+ - google.al
1286
+ - google.co.ao
1287
+ - google.bt
1288
+ - google.cx
1289
+ - google.eu
1290
+ - google.com.mm
1291
+ - google.nf
1292
+ - google.com.pg
1293
+ - google.sr
1294
+ - google.tn
1277
1295
  parameters:
1278
1296
  - q
1279
1297
  - query
@@ -92,8 +92,8 @@ module RefererParser
92
92
  def parse(obj)
93
93
  url = obj.is_a?(URI) ? obj : URI.parse(obj.to_s)
94
94
 
95
- if !['http', 'https'].include?(url.scheme)
96
- raise InvalidUriError.new("Only HTTP and HTTPS schemes are supported -- #{url.scheme}")
95
+ if url.scheme.nil?
96
+ raise InvalidUriError.new("Invalid url scheme!")
97
97
  end
98
98
 
99
99
  data = { :known => false, :uri => url.to_s }
@@ -15,5 +15,5 @@
15
15
 
16
16
  module RefererParser
17
17
  NAME = "jobs-referer-parser"
18
- VERSION = "0.0.6"
18
+ VERSION = "0.0.7"
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jobs-referer-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yali Sassoon
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2017-03-06 00:00:00.000000000 Z
15
+ date: 2017-03-10 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rspec