sbsm 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 1.1.1 / 22.02.2012
2
+
3
+ * Removed CRAWLER_PATTERN constant from request.rb and used a local varible,
4
+ * crawler_pattern, in Requst#is_crawler? method
5
+
1
6
  === 1.1.0 / 20.02.2012
2
7
 
3
8
  * Drop any request containing pointer in it.
data/lib/sbsm/request.rb CHANGED
@@ -20,7 +20,7 @@
20
20
  # ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Z�rich, Switzerland
21
21
  # hwyss@ywesee.com
22
22
  #
23
- # SBSM::Request -- sbsm -- 20.01.2012 -- mhatakeyama@ywesee.com
23
+ # SBSM::Request -- sbsm -- 21.01.2012 -- mhatakeyama@ywesee.com
24
24
  # SBSM::Request -- sbsm -- hwyss@ywesee.com
25
25
 
26
26
  require 'sbsm/cgi'
@@ -32,7 +32,6 @@ require 'delegate'
32
32
  module SBSM
33
33
  class Request < SimpleDelegator
34
34
  include DRbUndumped
35
- CRAWLER_PATTERN = /archiver|slurp|bot|crawler|jeeves|spider|\.{6}|windows/i
36
35
  attr_reader :cgi
37
36
  def initialize(drb_uri, html_version = "html4", cgiclass = CGI)
38
37
  @cgi = cgiclass.new(html_version)
@@ -45,7 +44,8 @@ module SBSM
45
44
  @cgi.cookies
46
45
  end
47
46
  def is_crawler?
48
- !!CRAWLER_PATTERN.match(@cgi.user_agent)
47
+ crawler_pattern = /archiver|slurp|bot|crawler|jeeves|spider|\.{6}|windows/i
48
+ !!crawler_pattern.match(@cgi.user_agent)
49
49
  end
50
50
  def passthru(path, disposition='attachment')
51
51
  @passthru = path
data/lib/version.rb CHANGED
@@ -1 +1 @@
1
- VERSION = '1.1.0'
1
+ VERSION = '1.1.1'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbsm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-20 00:00:00.000000000 Z
12
+ date: 2012-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
16
- requirement: &7175440 !ruby/object:Gem::Requirement
16
+ requirement: &25196160 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.10'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *7175440
24
+ version_requirements: *25196160
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: hoe
27
- requirement: &7174620 !ruby/object:Gem::Requirement
27
+ requirement: &25195740 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '2.13'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *7174620
35
+ version_requirements: *25195740
36
36
  description: Application framework for state based session management
37
37
  email:
38
38
  - mhatakeyama@ywesee.com, zdavatz@ywesee.com