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 CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 0
2
+ :patch: 1
3
3
  :major: 0
4
4
  :minor: 1
@@ -52,8 +52,7 @@ module Uaid
52
52
 
53
53
  def method_missing(method, *args)
54
54
  if method.to_s =~ /^(\w+)\?$/
55
- return true if (engine == $1 || product == $1)
56
- @extractor.engines.include?($1) || @extractor.products.include?($1)
55
+ engine == $1 || product == $1
57
56
  else
58
57
  super
59
58
  end
@@ -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.0
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-03-18 00:00:00 -07:00
12
+ date: 2009-06-16 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15