robotstxt 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@ module Robotstxt
24
24
  NAME = 'Robotstxt'
25
25
  GEM = 'robotstxt'
26
26
  AUTHORS = ['Simone Rinzivillo <srinzivillo@gmail.com>']
27
- VERSION = '0.5.3'
27
+ VERSION = '0.5.4'
28
28
 
29
29
 
30
30
  # Check if the <tt>URL</tt> is allowed to be crawled from the current <tt>Robot_id</tt>.
@@ -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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{robotstxt}
5
- s.version = "0.5.3"
5
+ s.version = "0.5.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Simone Rinzivillo"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robotstxt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simone Rinzivillo