ntail 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ntail/http_user_agent.rb +9 -1
- data/ntail.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.3
|
@@ -30,6 +30,8 @@ class SearchBot < Agent
|
|
30
30
|
# ClickTale bot
|
31
31
|
# "Mozilla/5.0 (compatible; MSIE 7.0; MSIE 6.0; ScanAlert; +http://www.scanalert.com/bot.jsp) Firefox/2.0.0.3"
|
32
32
|
# "HTTP-Monitor/1.1"
|
33
|
+
# "Simply Business Nagios v0.1"
|
34
|
+
# "CopperEgg/RevealUptime/LondonUK"
|
33
35
|
#
|
34
36
|
|
35
37
|
KNOWN_SEARCH_BOTS = [
|
@@ -43,7 +45,9 @@ class SearchBot < Agent
|
|
43
45
|
BING_BOT = Regexp.compile('bingbot\/'),
|
44
46
|
CLICKTALE_BOT = Regexp.compile('ClickTale bot'),
|
45
47
|
SCANALERT_BOT = Regexp.compile('ScanAlert; '),
|
46
|
-
STINGRAY_BOT = Regexp.compile('HTTP-Monitor\/')
|
48
|
+
STINGRAY_BOT = Regexp.compile('HTTP-Monitor\/'),
|
49
|
+
SB_NAGIOS_BOT = Regexp.compile('Simply Business Nagios v'),
|
50
|
+
COPPEREGG_BOT = Regexp.compile('CopperEgg/RevealUptime/LondonUK'),
|
47
51
|
]
|
48
52
|
|
49
53
|
def self.search_bot?(http_user_agent)
|
@@ -71,6 +75,8 @@ class SearchBot < Agent
|
|
71
75
|
when CLICKTALE_BOT then :clicktale_bot
|
72
76
|
when SCANALERT_BOT then :scanalert_bot
|
73
77
|
when STINGRAY_BOT then :stingray_bot
|
78
|
+
when SB_NAGIOS_BOT then :sb_nagios_bot
|
79
|
+
when COPPEREGG_BOT then :copperegg_bot
|
74
80
|
else super(string)
|
75
81
|
end
|
76
82
|
end
|
@@ -87,6 +93,8 @@ class SearchBot < Agent
|
|
87
93
|
when CLICKTALE_BOT then :"clicktale.com"
|
88
94
|
when SCANALERT_BOT then :"mcafeesecure.com"
|
89
95
|
when STINGRAY_BOT then :"riverbed.com"
|
96
|
+
when SB_NAGIOS_BOT then :"nagios.org"
|
97
|
+
when COPPEREGG_BOT then :"copperegg.com"
|
90
98
|
else super(string)
|
91
99
|
end
|
92
100
|
end
|
data/ntail.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ntail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -294,7 +294,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
294
294
|
version: '0'
|
295
295
|
segments:
|
296
296
|
- 0
|
297
|
-
hash:
|
297
|
+
hash: 423547968604715416
|
298
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
299
299
|
none: false
|
300
300
|
requirements:
|