robotstxt 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/robotstxt.rb +1 -1
- data/lib/robotstxt/parser.rb +5 -1
- data/robotstxt.gemspec +1 -1
- metadata +1 -1
data/lib/robotstxt.rb
CHANGED
data/lib/robotstxt/parser.rb
CHANGED
@@ -143,7 +143,11 @@ module Robotstxt
|
|
143
143
|
case r
|
144
144
|
when /^#.+$/
|
145
145
|
|
146
|
-
when /^\s*user-agent\s*:.+$/
|
146
|
+
when /^\s*user-agent\s*:.+$/
|
147
|
+
|
148
|
+
@rules << [ r.split(':')[1].strip, [], []]
|
149
|
+
|
150
|
+
when /^\s*useragent\s*:.+$/
|
147
151
|
|
148
152
|
@rules << [ r.split(':')[1].strip, [], []]
|
149
153
|
|
data/robotstxt.gemspec
CHANGED