session_off 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/test/test_helper.rb +4 -5
  2. metadata +44 -63
@@ -145,11 +145,7 @@ else # since Rails 3.0.0 :
145
145
 
146
146
  end
147
147
 
148
- # call the plugin's init.rb - thus it's setup as it would in a rails app :
149
- $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '../lib')
150
- require File.join(File.dirname(__FILE__), '../init')
151
-
152
- ActionController::TestCase.class_eval do
148
+ class ActionController::TestCase
153
149
 
154
150
  attr_reader :request, :response
155
151
  @@session_options = nil
@@ -163,3 +159,6 @@ ActionController::TestCase.class_eval do
163
159
  end
164
160
 
165
161
  end
162
+
163
+ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '../lib')
164
+ require 'session_off'
metadata CHANGED
@@ -1,98 +1,79 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: session_off
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 3
8
- version: "0.3"
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
5
+ prerelease:
9
6
  platform: ruby
10
- authors:
7
+ authors:
11
8
  - Karol Bucek
12
9
  autorequire:
13
10
  bindir: bin
14
11
  cert_chain: []
15
-
16
- date: 2011-08-30 00:00:00 +02:00
17
- default_executable:
18
- dependencies:
19
- - !ruby/object:Gem::Dependency
12
+ date: 2011-11-03 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
20
15
  name: actionpack
21
- prerelease: false
22
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &75250950 !ruby/object:Gem::Requirement
23
17
  none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 2
29
- - 3
30
- version: "2.3"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '2.3'
31
22
  type: :runtime
32
- version_requirements: *id001
33
- - !ruby/object:Gem::Dependency
34
- name: mocha
35
23
  prerelease: false
36
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *75250950
25
+ - !ruby/object:Gem::Dependency
26
+ name: mocha
27
+ requirement: &75250630 !ruby/object:Gem::Requirement
37
28
  none: false
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
44
33
  type: :development
45
- version_requirements: *id002
46
- description: `session :off, :only => :foo, :if => Proc.new { |req| req.params[:bar] }`
47
- email:
34
+ prerelease: false
35
+ version_requirements: *75250630
36
+ description: session :off, :only => :foo, :if => Proc.new { |req| req.params[:bar]
37
+ }
38
+ email:
48
39
  - self@kares.org
49
40
  executables: []
50
-
51
41
  extensions: []
52
-
53
- extra_rdoc_files:
42
+ extra_rdoc_files:
54
43
  - README.md
55
- files:
44
+ files:
56
45
  - lib/session_off.rb
57
46
  - LICENSE
58
47
  - README.md
59
48
  - Rakefile
60
- - test/test_helper.rb
61
49
  - test/session_off_test.rb
62
50
  - test/session_management_test.rb
63
- has_rdoc: true
51
+ - test/test_helper.rb
64
52
  homepage: http://github.com/kares/session_off
65
53
  licenses: []
66
-
67
54
  post_install_message:
68
55
  rdoc_options: []
69
-
70
- require_paths:
56
+ require_paths:
71
57
  - lib
72
- required_ruby_version: !ruby/object:Gem::Requirement
58
+ required_ruby_version: !ruby/object:Gem::Requirement
73
59
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- segments:
78
- - 0
79
- version: "0"
80
- required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
65
  none: false
82
- requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- segments:
86
- - 0
87
- version: "0"
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
88
70
  requirements: []
89
-
90
- rubyforge_project: "[none]"
91
- rubygems_version: 1.3.7
71
+ rubyforge_project: ! '[none]'
72
+ rubygems_version: 1.8.10
92
73
  signing_key:
93
74
  specification_version: 3
94
75
  summary: declarative session :off from Rails 2.2 'backported'
95
- test_files:
96
- - test/test_helper.rb
76
+ test_files:
97
77
  - test/session_off_test.rb
98
78
  - test/session_management_test.rb
79
+ - test/test_helper.rb