browsed 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/browsed/client.rb +2 -2
- data/lib/browsed/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b3cc6b1bdd137753680d4adaae8a68a8b82e764f8cd19e1e148b743047ce709
|
4
|
+
data.tar.gz: 7622c4043fa2d587551d953ee59ee4333fc089aca9fd404c23a083045f87514d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39738d5473cd7ebee83ba42da07ce910db95275660d41d1e892c0b96ddac3b0e1db855f73279556c4abe8084afbe639af465f2bcca3f3224427ea03a20029a25
|
7
|
+
data.tar.gz: 80de5041df43743bfc132903ca0f2e759702be40a34ac78701c8e977428ba767fc0419391b2665f9ac1088e686465088877d83f3b645061804acee4004e66982
|
data/Gemfile.lock
CHANGED
data/lib/browsed/client.rb
CHANGED
@@ -125,9 +125,9 @@ module Browsed
|
|
125
125
|
|
126
126
|
# User Agents
|
127
127
|
def set_user_agent(user_agent)
|
128
|
-
if !user_agent.to_s.empty?
|
128
|
+
if !user_agent.to_s.empty? && !user_agent.eql?('randomize')
|
129
129
|
self.user_agent = user_agent
|
130
|
-
elsif user_agent
|
130
|
+
elsif (!user_agent.to_s.empty? && user_agent.eql?('randomize')) || poltergeist?
|
131
131
|
case self.device
|
132
132
|
when :iphone
|
133
133
|
self.user_agent = Agents.random_user_agent(:phones, :iphone)
|
data/lib/browsed/version.rb
CHANGED