fivepointssolutions-uaid 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/lib/uaid/user_agent.rb +1 -2
- data/spec/user_agent_spec.rb +3 -0
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/uaid/user_agent.rb
CHANGED
|
@@ -52,8 +52,7 @@ module Uaid
|
|
|
52
52
|
|
|
53
53
|
def method_missing(method, *args)
|
|
54
54
|
if method.to_s =~ /^(\w+)\?$/
|
|
55
|
-
|
|
56
|
-
@extractor.engines.include?($1) || @extractor.products.include?($1)
|
|
55
|
+
engine == $1 || product == $1
|
|
57
56
|
else
|
|
58
57
|
super
|
|
59
58
|
end
|
data/spec/user_agent_spec.rb
CHANGED
|
@@ -41,6 +41,9 @@ describe Uaid::UserAgent, 'identification questions' do
|
|
|
41
41
|
stub(@user_agent).product { 'someproduct' }
|
|
42
42
|
@user_agent.someproduct?.should be_true
|
|
43
43
|
@user_agent.otherproduct?.should be_false
|
|
44
|
+
|
|
45
|
+
stub(@user_agent).product { 'noagent' }
|
|
46
|
+
@user_agent.bot?.should be_false
|
|
44
47
|
end
|
|
45
48
|
|
|
46
49
|
it 'should answer for version' do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fivepointssolutions-uaid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Williams
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-06-16 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|