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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25146cbf258b3895185622475556e24ca5829f5a66d67600f5add109eb36fc9c
4
- data.tar.gz: 8cc9de7d78aa3c34590c8aa282ab25beb77360bc551e1fd3c0cc5e0923f71bed
3
+ metadata.gz: 8b3cc6b1bdd137753680d4adaae8a68a8b82e764f8cd19e1e148b743047ce709
4
+ data.tar.gz: 7622c4043fa2d587551d953ee59ee4333fc089aca9fd404c23a083045f87514d
5
5
  SHA512:
6
- metadata.gz: ee6ed4f1960288b25104d70204d20d3114ac24de6eece8c25965ced3a856e1819d3b96d90ff2e6a9bacc23b7ee00e23bdf96722506c3d1bff6ecb14154b8f591
7
- data.tar.gz: ed7753da7f7382dd24c9c52656c27dc9d608f4401755cf96e35c1bba47cdf1978b96c3cecd726c69d0afd2a4e598b64c0c2c2bb2812ef0ca65d40fb9c9e1586e
6
+ metadata.gz: 39738d5473cd7ebee83ba42da07ce910db95275660d41d1e892c0b96ddac3b0e1db855f73279556c4abe8084afbe639af465f2bcca3f3224427ea03a20029a25
7
+ data.tar.gz: 80de5041df43743bfc132903ca0f2e759702be40a34ac78701c8e977428ba767fc0419391b2665f9ac1088e686465088877d83f3b645061804acee4004e66982
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- browsed (0.1.5)
4
+ browsed (0.1.6)
5
5
  agents
6
6
  capybara (~> 3.4, >= 3.4.1)
7
7
  poltergeist (~> 1.18, >= 1.18.1)
@@ -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&.to_sym&.eql?(:randomize) || poltergeist?
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)
@@ -1,3 +1,3 @@
1
1
  module Browsed
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browsed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian