browsed 0.1.3 → 0.1.4

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: f1dcc1ed224b661035c70a3ecd01bc9865223ee504bf698783e049f2cac76157
4
- data.tar.gz: 80c2a3f1624b49b21a2a8185bc940f87cd56798c5eb2c8bd9e258dbc64eea1a4
3
+ metadata.gz: 22d0cfd950756251b0d10db691ff2ee5871a3816115c66437b2abdbd29d8ff23
4
+ data.tar.gz: d306348a0a75d0d916793217094841d6be9c61362a47816f231bb49dce1c0e6a
5
5
  SHA512:
6
- metadata.gz: 7d2edf3dec1d5b19ff8f3e94c96e400360da0775e6549f23715b4b0756890f377e167f1cbc685e8eaef0ccbeb967151e08037c02f7ace75a99081460cb36d5de
7
- data.tar.gz: d5c9be8ade68d874af45dbf08a7507601dc7562a4524655c4d1225ef3f63678165796bb28770d649da603048461c0b7f1fa95c26ed29d617dea621a5a2dc1cb0
6
+ metadata.gz: 254085da7ae69ab151bf5b1a9e20bbd1c06828855d17fdb30f32c940cd3cb7fa334e94c4ec493d7e7075601ea18c4955cdd4d83bd5e9e4d11dd8616c52fea0e9
7
+ data.tar.gz: d94e1e6767996171d652e332c9e4d96002bc19bf8d14a4dedc119f0485317a92ba99360c6e128eddec514f7ba39cb10a9fec744d8e73443b688c51526eae770b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- browsed (0.1.3)
4
+ browsed (0.1.4)
5
5
  agents
6
6
  capybara (~> 3.4, >= 3.4.1)
7
7
  poltergeist (~> 1.18, >= 1.18.1)
@@ -127,7 +127,7 @@ module Browsed
127
127
  def set_user_agent(user_agent)
128
128
  if !user_agent.to_s.empty?
129
129
  self.user_agent = user_agent
130
- else
130
+ elsif user_agent.to_sym.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.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browsed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-25 00:00:00.000000000 Z
11
+ date: 2018-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara