is_crawler 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/is_crawler.rb +3 -2
- metadata +3 -4
- data/lib/is_crawler/version.rb +0 -3
data/lib/is_crawler.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
require '
|
2
|
-
require './lib/crawler'
|
1
|
+
require 'crawler'
|
3
2
|
|
4
3
|
module IsCrawler
|
4
|
+
VERSION = "0.1.5"
|
5
|
+
|
5
6
|
def is_crawler? requesting_user_agent, *specific_crawlers
|
6
7
|
if specific_crawlers && specific_crawlers.size > 0
|
7
8
|
specific_crawlers.include?(Crawler.which_crawler(requesting_user_agent))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: is_crawler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -60,7 +60,6 @@ files:
|
|
60
60
|
- lib/config/crawlers.yml
|
61
61
|
- lib/crawler.rb
|
62
62
|
- lib/is_crawler.rb
|
63
|
-
- lib/is_crawler/version.rb
|
64
63
|
- spec/is_crawler_spec.rb
|
65
64
|
- spec/lib/crawler_spec.rb
|
66
65
|
homepage: http://github.com/ccashwell/is_crawler
|
@@ -77,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
77
76
|
version: '0'
|
78
77
|
segments:
|
79
78
|
- 0
|
80
|
-
hash:
|
79
|
+
hash: 496764678147717712
|
81
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
81
|
none: false
|
83
82
|
requirements:
|
@@ -86,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
85
|
version: '0'
|
87
86
|
segments:
|
88
87
|
- 0
|
89
|
-
hash:
|
88
|
+
hash: 496764678147717712
|
90
89
|
requirements: []
|
91
90
|
rubyforge_project:
|
92
91
|
rubygems_version: 1.8.24
|
data/lib/is_crawler/version.rb
DELETED