rack-turing-test 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module TuringTest
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -2,7 +2,7 @@ require "rack-turing-test/version"
2
2
 
3
3
  module Rack
4
4
  module TuringTest
5
- PATTERN = Regexp.union(
5
+ PATTERN = Regexp.union(*[
6
6
  /googlebot/i,
7
7
  /mediapartners-google/i,
8
8
  /slurp/i,
@@ -14,7 +14,7 @@ module Rack
14
14
  /baidu/i,
15
15
  /yetibot/i,
16
16
  /teoma/i,
17
- ).freeze
17
+ ]).freeze
18
18
 
19
19
  def bot?
20
20
  !!user_agent.match(PATTERN)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-turing-test
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Genki Takiuchi