micro_sessions 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Appraisals +15 -6
- data/Gemfile +18 -1
- data/Gemfile.lock +112 -107
- data/Rakefile +1 -8
- data/lib/micro_sessions.rb +2 -2
- data/lib/micro_sessions/controller.rb +5 -5
- data/lib/micro_sessions/helpers.rb +19 -5
- data/lib/micro_sessions/micro_session.rb +9 -9
- data/lib/micro_sessions/railtie.rb +4 -5
- data/lib/micro_sessions/version.rb +1 -1
- data/spec/controller_spec.rb +30 -30
- data/spec/spec_helper.rb +2 -2
- metadata +26 -110
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c46747cad6fd140413833b912ecf05a62239a36a
|
4
|
+
data.tar.gz: 3b79a6cb3a77fa652d49de1879e26adb7d1ec7a8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f6b498a063510ed25780015d9b346f0652e222d779ae96aa9062874972d54c81eb99058a4013d1ac80e91fe3d808f63c21f37a5ebcc1129b075b7a7fa1d38868
|
7
|
+
data.tar.gz: c3cff2675dcb281ced97f4c1f4739a00557eb4eb1bc24d5587b0b9562a903eed0b673cf2559317c1d7fa9039010083c109b6d4d187441c2f8832cae33a203d58
|
data/Appraisals
CHANGED
@@ -1,9 +1,18 @@
|
|
1
|
-
appraise
|
2
|
-
gem
|
3
|
-
gem
|
1
|
+
appraise 'rails-3.0' do
|
2
|
+
gem 'rails', '~> 3.0.12'
|
3
|
+
gem 'rdoc', '~> 3.4'
|
4
4
|
end
|
5
5
|
|
6
|
-
appraise
|
7
|
-
gem
|
8
|
-
gem
|
6
|
+
appraise 'rails-3.1' do
|
7
|
+
gem 'rails', '~> 3.1.4'
|
8
|
+
gem 'rdoc', '~> 3.4'
|
9
|
+
end
|
10
|
+
|
11
|
+
appraise 'rails-3.2' do
|
12
|
+
gem 'rails', '~> 3.2.2'
|
13
|
+
gem 'rdoc', '~> 3.4'
|
14
|
+
end
|
15
|
+
|
16
|
+
appraise 'rails-4.1' do
|
17
|
+
gem 'rails', '~> 4.1.1'
|
9
18
|
end
|
data/Gemfile
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
-
source
|
1
|
+
source 'http://rubygems.org'
|
2
|
+
|
3
|
+
gem 'rake', '< 11'
|
4
|
+
gem 'rdoc', '~> 4.2.2' # This is to support Ruby 1.8 and 1.9
|
5
|
+
|
6
|
+
group :development do
|
7
|
+
# Travis simulator - faster + no more waiting for build emails
|
8
|
+
gem 'wwtd', '~> 1.3.0'
|
9
|
+
gem 'appraisal', '~> 2.2.0'
|
10
|
+
end
|
11
|
+
|
12
|
+
group :test do
|
13
|
+
gem 'rspec', '>= 3'
|
14
|
+
gem 'capybara', '~> 2.0'
|
15
|
+
gem 'launchy', '~> 2.4.3'
|
16
|
+
gem 'sqlite3', '~> 1.3.4'
|
17
|
+
gem 'addressable', '~> 2.3.7'
|
18
|
+
end
|
2
19
|
|
3
20
|
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,135 +1,140 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
micro_sessions (0.
|
5
|
-
rails (>= 3.0.0,
|
4
|
+
micro_sessions (0.3.0)
|
5
|
+
rails (>= 3.0.0, <= 4.1.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
mail (~> 2.
|
14
|
-
actionpack (
|
15
|
-
|
16
|
-
activesupport (=
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
appraisal (0.4.1)
|
10
|
+
actionmailer (4.1.1)
|
11
|
+
actionpack (= 4.1.1)
|
12
|
+
actionview (= 4.1.1)
|
13
|
+
mail (~> 2.5.4)
|
14
|
+
actionpack (4.1.1)
|
15
|
+
actionview (= 4.1.1)
|
16
|
+
activesupport (= 4.1.1)
|
17
|
+
rack (~> 1.5.2)
|
18
|
+
rack-test (~> 0.6.2)
|
19
|
+
actionview (4.1.1)
|
20
|
+
activesupport (= 4.1.1)
|
21
|
+
builder (~> 3.1)
|
22
|
+
erubis (~> 2.7.0)
|
23
|
+
activemodel (4.1.1)
|
24
|
+
activesupport (= 4.1.1)
|
25
|
+
builder (~> 3.1)
|
26
|
+
activerecord (4.1.1)
|
27
|
+
activemodel (= 4.1.1)
|
28
|
+
activesupport (= 4.1.1)
|
29
|
+
arel (~> 5.0.0)
|
30
|
+
activesupport (4.1.1)
|
31
|
+
i18n (~> 0.6, >= 0.6.9)
|
32
|
+
json (~> 1.7, >= 1.7.7)
|
33
|
+
minitest (~> 5.1)
|
34
|
+
thread_safe (~> 0.1)
|
35
|
+
tzinfo (~> 1.1)
|
36
|
+
addressable (2.3.7)
|
37
|
+
appraisal (2.2.0)
|
39
38
|
bundler
|
40
39
|
rake
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
40
|
+
thor (>= 0.14.0)
|
41
|
+
arel (5.0.1.20140414130214)
|
42
|
+
builder (3.2.2)
|
43
|
+
capybara (2.15.2)
|
44
|
+
addressable
|
45
|
+
mini_mime (>= 0.1.3)
|
45
46
|
nokogiri (>= 1.3.3)
|
46
47
|
rack (>= 1.0.0)
|
47
48
|
rack-test (>= 0.5.4)
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
term-ansicolor (>= 1.0.6)
|
58
|
-
diff-lcs (1.1.3)
|
59
|
-
erubis (2.6.6)
|
60
|
-
abstract (>= 1.0.0)
|
61
|
-
ffi (1.0.11)
|
62
|
-
gherkin (2.4.21)
|
63
|
-
json (>= 1.4.6)
|
64
|
-
i18n (0.5.0)
|
65
|
-
json (1.6.6)
|
66
|
-
launchy (2.1.0)
|
67
|
-
addressable (~> 2.2.6)
|
68
|
-
mail (2.2.19)
|
69
|
-
activesupport (>= 2.3.6)
|
70
|
-
i18n (>= 0.4.0)
|
49
|
+
xpath (~> 2.0)
|
50
|
+
diff-lcs (1.2.5)
|
51
|
+
erubis (2.7.0)
|
52
|
+
hike (1.2.3)
|
53
|
+
i18n (0.7.0)
|
54
|
+
json (1.8.6)
|
55
|
+
launchy (2.4.3)
|
56
|
+
addressable (~> 2.3)
|
57
|
+
mail (2.5.4)
|
71
58
|
mime-types (~> 1.16)
|
72
59
|
treetop (~> 1.4.8)
|
73
|
-
mime-types (1.
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
60
|
+
mime-types (1.25.1)
|
61
|
+
mini_mime (0.1.4)
|
62
|
+
mini_portile2 (2.3.0)
|
63
|
+
minitest (5.5.1)
|
64
|
+
multi_json (1.10.1)
|
65
|
+
nokogiri (1.8.1)
|
66
|
+
mini_portile2 (~> 2.3.0)
|
67
|
+
polyglot (0.3.5)
|
68
|
+
rack (1.5.2)
|
69
|
+
rack-test (0.6.3)
|
81
70
|
rack (>= 1.0)
|
82
|
-
rails (
|
83
|
-
actionmailer (=
|
84
|
-
actionpack (=
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
71
|
+
rails (4.1.1)
|
72
|
+
actionmailer (= 4.1.1)
|
73
|
+
actionpack (= 4.1.1)
|
74
|
+
actionview (= 4.1.1)
|
75
|
+
activemodel (= 4.1.1)
|
76
|
+
activerecord (= 4.1.1)
|
77
|
+
activesupport (= 4.1.1)
|
78
|
+
bundler (>= 1.3.0, < 2.0)
|
79
|
+
railties (= 4.1.1)
|
80
|
+
sprockets-rails (~> 2.0)
|
81
|
+
railties (4.1.1)
|
82
|
+
actionpack (= 4.1.1)
|
83
|
+
activesupport (= 4.1.1)
|
93
84
|
rake (>= 0.8.7)
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
rdoc (3.12)
|
85
|
+
thor (>= 0.18.1, < 2.0)
|
86
|
+
rake (10.5.0)
|
87
|
+
rdoc (4.2.2)
|
98
88
|
json (~> 1.4)
|
99
|
-
rspec (
|
100
|
-
rspec-core (~>
|
101
|
-
rspec-expectations (~>
|
102
|
-
rspec-mocks (~>
|
103
|
-
rspec-core (
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
89
|
+
rspec (3.4.0)
|
90
|
+
rspec-core (~> 3.4.0)
|
91
|
+
rspec-expectations (~> 3.4.0)
|
92
|
+
rspec-mocks (~> 3.4.0)
|
93
|
+
rspec-core (3.4.4)
|
94
|
+
rspec-support (~> 3.4.0)
|
95
|
+
rspec-expectations (3.4.0)
|
96
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
97
|
+
rspec-support (~> 3.4.0)
|
98
|
+
rspec-mocks (3.4.1)
|
99
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
100
|
+
rspec-support (~> 3.4.0)
|
101
|
+
rspec-support (3.4.1)
|
102
|
+
sprockets (2.12.3)
|
103
|
+
hike (~> 1.2)
|
111
104
|
multi_json (~> 1.0)
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
105
|
+
rack (~> 1.0)
|
106
|
+
tilt (~> 1.1, != 1.3.0)
|
107
|
+
sprockets-rails (2.2.4)
|
108
|
+
actionpack (>= 3.0)
|
109
|
+
activesupport (>= 3.0)
|
110
|
+
sprockets (>= 2.8, < 4.0)
|
111
|
+
sqlite3 (1.3.13)
|
112
|
+
thor (0.19.1)
|
113
|
+
thread_safe (0.3.4)
|
114
|
+
tilt (1.4.1)
|
115
|
+
treetop (1.4.15)
|
117
116
|
polyglot
|
118
117
|
polyglot (>= 0.3.1)
|
119
|
-
tzinfo (
|
120
|
-
|
118
|
+
tzinfo (1.2.2)
|
119
|
+
thread_safe (~> 0.1)
|
120
|
+
wwtd (1.3.0)
|
121
|
+
xpath (2.1.0)
|
121
122
|
nokogiri (~> 1.3)
|
122
123
|
|
123
124
|
PLATFORMS
|
124
125
|
ruby
|
125
126
|
|
126
127
|
DEPENDENCIES
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
launchy
|
128
|
+
addressable (~> 2.3.7)
|
129
|
+
appraisal (~> 2.2.0)
|
130
|
+
capybara (~> 2.0)
|
131
|
+
launchy (~> 2.4.3)
|
131
132
|
micro_sessions!
|
132
|
-
rake
|
133
|
-
rdoc (~>
|
134
|
-
rspec (
|
133
|
+
rake (< 11)
|
134
|
+
rdoc (~> 4.2.2)
|
135
|
+
rspec (>= 3)
|
135
136
|
sqlite3 (~> 1.3.4)
|
137
|
+
wwtd (~> 1.3.0)
|
138
|
+
|
139
|
+
BUNDLED WITH
|
140
|
+
1.15.4
|
data/Rakefile
CHANGED
@@ -3,7 +3,6 @@ require 'bundler/setup'
|
|
3
3
|
|
4
4
|
require 'rake'
|
5
5
|
require 'rspec/core/rake_task'
|
6
|
-
require 'cucumber/rake/task'
|
7
6
|
require 'appraisal'
|
8
7
|
|
9
8
|
Bundler::GemHelper.install_tasks
|
@@ -21,17 +20,11 @@ desc "Run Specs"
|
|
21
20
|
RSpec::Core::RakeTask.new(:spec) do |t|
|
22
21
|
end
|
23
22
|
|
24
|
-
task :test => [:spec
|
25
|
-
|
26
|
-
Cucumber::Rake::Task.new(:cucumber) do |t|
|
27
|
-
t.fork = true
|
28
|
-
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
|
29
|
-
end
|
23
|
+
task :test => [:spec]
|
30
24
|
|
31
25
|
desc "Clean up files."
|
32
26
|
task :clean do |t|
|
33
27
|
FileUtils.rm_rf "tmp"
|
34
|
-
Dir.glob("spec/db/*.sqlite3").each {|f| FileUtils.rm f }
|
35
28
|
Dir.glob("micro_sessions-*.gem").each {|f| FileUtils.rm f }
|
36
29
|
end
|
37
30
|
|
data/lib/micro_sessions.rb
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
module MicroSessions
|
2
2
|
module Controller
|
3
3
|
extend ActiveSupport::Concern
|
4
|
-
|
4
|
+
|
5
5
|
module ClassMethods
|
6
6
|
def micro_sessions(options = {})
|
7
7
|
options.stringify_keys!
|
8
8
|
options.assert_valid_keys(:param, :param_type, :key, :length, :counter)
|
9
|
-
|
9
|
+
|
10
10
|
options[:param] ||= "_msid"
|
11
11
|
options[:key] ||= "_micro_sessions"
|
12
12
|
options[:param_type] ||= :hash
|
13
13
|
options[:length] ||= 10
|
14
14
|
options[:counter] ||= 1
|
15
|
-
|
15
|
+
|
16
16
|
class_attribute :micro_session_options
|
17
17
|
self.micro_session_options = options
|
18
|
-
|
18
|
+
|
19
19
|
class_eval do
|
20
20
|
def micro_session
|
21
21
|
@micro_session ||= MicroSessions::MicroSession.new(self)
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
helper_method :micro_session
|
25
25
|
helper_method :micro_session_options
|
26
26
|
end
|
@@ -3,18 +3,32 @@ module MicroSessions
|
|
3
3
|
module UrlHelper
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
|
6
|
-
def
|
6
|
+
def link_to(name = nil, options = nil, html_options = nil, &block)
|
7
|
+
options = add_micro_session(options)
|
8
|
+
|
9
|
+
super
|
10
|
+
end
|
11
|
+
|
12
|
+
def url_for(options = nil)
|
13
|
+
options = add_micro_session(options)
|
14
|
+
|
15
|
+
super
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def add_micro_session(options)
|
7
21
|
if options.is_a?(Hash) && ms_value = options.delete(:micro_sessions) && !micro_session.empty?
|
8
22
|
options[micro_session.options[:param]] = (ms_value == true ? micro_session.id : ms_value)
|
9
23
|
end
|
10
|
-
|
11
|
-
|
24
|
+
|
25
|
+
options
|
12
26
|
end
|
13
27
|
end
|
14
|
-
|
28
|
+
|
15
29
|
module FormTagHelper
|
16
30
|
extend ActiveSupport::Concern
|
17
|
-
|
31
|
+
|
18
32
|
def micro_session_hidden_field
|
19
33
|
hidden_field_tag controller.class.micro_session_options[:param], micro_session.id
|
20
34
|
end
|
@@ -3,16 +3,17 @@ module MicroSessions
|
|
3
3
|
def initialize(controller)
|
4
4
|
@controller = controller
|
5
5
|
end
|
6
|
-
|
6
|
+
|
7
7
|
def options
|
8
8
|
@controller.class.micro_session_options
|
9
9
|
end
|
10
|
-
|
10
|
+
|
11
11
|
def data
|
12
12
|
@controller.session[options[:key]] ||= {}
|
13
13
|
@controller.session[options[:key]][id] ||= {}
|
14
|
+
@controller.session[options[:key]][id].symbolize_keys!
|
14
15
|
end
|
15
|
-
|
16
|
+
|
16
17
|
def url_options
|
17
18
|
if empty?
|
18
19
|
{}
|
@@ -20,20 +21,19 @@ module MicroSessions
|
|
20
21
|
{options[:param] => id}
|
21
22
|
end
|
22
23
|
end
|
23
|
-
|
24
|
+
|
24
25
|
delegate :empty?, :[], :[]=, :to_h, :to_hash, :inspect, :to => :data
|
25
|
-
|
26
|
+
|
26
27
|
def id
|
27
28
|
@id ||= id_from_params || generate_id
|
28
29
|
end
|
29
|
-
|
30
|
-
|
30
|
+
|
31
31
|
protected
|
32
|
-
|
32
|
+
|
33
33
|
def id_from_params
|
34
34
|
@controller.params[options[:param]] if @controller.params
|
35
35
|
end
|
36
|
-
|
36
|
+
|
37
37
|
def generate_id
|
38
38
|
case options[:param_type]
|
39
39
|
when :hash
|
@@ -1,18 +1,18 @@
|
|
1
1
|
module MicroSessions
|
2
2
|
class Railtie < Rails::Railtie
|
3
|
-
initializer "micro_sessions.
|
3
|
+
initializer "micro_sessions.configure_view_controller" do
|
4
4
|
ActiveSupport.on_load(:action_controller) do
|
5
|
-
MicroSessions::
|
5
|
+
include MicroSessions::Controller
|
6
6
|
end
|
7
7
|
|
8
8
|
ActiveSupport.on_load(:action_view) do
|
9
|
-
MicroSessions::
|
9
|
+
include MicroSessions::Helpers::FormTagHelper
|
10
|
+
include MicroSessions::Helpers::UrlHelper
|
10
11
|
end
|
11
12
|
end
|
12
13
|
|
13
14
|
def self.insert_controller
|
14
15
|
ActionController::Base.send(:include, MicroSessions::Controller)
|
15
|
-
ActionController::Base.send(:include, MicroSessions::Helpers::UrlHelper)
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.insert_view
|
@@ -29,4 +29,3 @@ module MicroSessions
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
32
|
-
|
data/spec/controller_spec.rb
CHANGED
@@ -8,70 +8,70 @@ describe MicroSessions::Controller do
|
|
8
8
|
self
|
9
9
|
end
|
10
10
|
end
|
11
|
-
|
11
|
+
|
12
12
|
it "should default param to _msid" do
|
13
|
-
@controller_class.micro_session_options[:param].
|
13
|
+
expect(@controller_class.micro_session_options[:param]).to eq("_msid")
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
it "should default key to _micro_sessions" do
|
17
|
-
@controller_class.micro_session_options[:key].
|
17
|
+
expect(@controller_class.micro_session_options[:key]).to eq("_micro_sessions")
|
18
18
|
end
|
19
|
-
|
19
|
+
|
20
20
|
it "should default length to 10" do
|
21
|
-
@controller_class.micro_session_options[:length].
|
21
|
+
expect(@controller_class.micro_session_options[:length]).to eq(10)
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
it "should default counter to 1" do
|
25
|
-
@controller_class.micro_session_options[:counter].
|
25
|
+
expect(@controller_class.micro_session_options[:counter]).to eq(1)
|
26
26
|
end
|
27
|
-
|
27
|
+
|
28
28
|
context "an instance of the controller" do
|
29
29
|
before do
|
30
30
|
@controller = @controller_class.new
|
31
|
-
|
31
|
+
|
32
|
+
allow(@controller).to receive(:params).and_return({})
|
32
33
|
end
|
33
|
-
|
34
|
+
|
34
35
|
it "should expose #micro_session as a method" do
|
35
|
-
@controller.micro_session.
|
36
|
+
expect(@controller.micro_session).to be_kind_of(MicroSessions::MicroSession)
|
36
37
|
end
|
37
|
-
|
38
|
+
|
38
39
|
it "should generate a 10-character hash id" do
|
39
|
-
@controller.micro_session.id.
|
40
|
-
@controller.micro_session.id.size.
|
40
|
+
expect(@controller.micro_session.id).to be_a(String)
|
41
|
+
expect(@controller.micro_session.id.size).to eq(10)
|
41
42
|
end
|
42
|
-
|
43
|
+
|
43
44
|
context "with micro session data and another controller" do
|
44
45
|
before do
|
45
|
-
@micro_session_data = {
|
46
|
-
|
47
|
-
:string => "String"
|
48
|
-
}
|
49
|
-
|
46
|
+
@micro_session_data = { integer: 1, string: "String" }
|
47
|
+
|
50
48
|
@another_controller = @controller_class.new
|
51
|
-
|
52
|
-
@another_controller.
|
49
|
+
|
50
|
+
allow(@another_controller).to receive(:params).and_return({})
|
51
|
+
allow(@another_controller).to receive(:session).and_return({
|
53
52
|
"_micro_sessions" => {@controller.micro_session.id => @micro_session_data}
|
54
53
|
})
|
55
54
|
end
|
56
|
-
|
55
|
+
|
57
56
|
context "without passing id" do
|
58
57
|
subject do
|
59
58
|
@another_controller.micro_session
|
60
59
|
end
|
61
|
-
|
60
|
+
|
62
61
|
it "should not have data" do
|
63
|
-
subject.data.
|
62
|
+
expect(subject.data).to be_empty
|
64
63
|
end
|
65
64
|
end
|
66
|
-
|
65
|
+
|
67
66
|
context "when passing id" do
|
68
67
|
subject do
|
69
|
-
@another_controller.
|
68
|
+
allow(@another_controller).to receive(:params).and_return({"_msid" => @controller.micro_session.id})
|
69
|
+
|
70
70
|
@another_controller.micro_session
|
71
71
|
end
|
72
|
-
|
72
|
+
|
73
73
|
it "should have data" do
|
74
|
-
subject.data.
|
74
|
+
expect(subject.data).to eq(@micro_session_data)
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,118 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: micro_sessions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ben Hughes
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2017-10-09 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 3.0.0
|
22
|
-
- -
|
20
|
+
- - "<="
|
23
21
|
- !ruby/object:Gem::Version
|
24
|
-
version:
|
22
|
+
version: 4.1.1
|
25
23
|
type: :runtime
|
26
24
|
prerelease: false
|
27
|
-
version_requirements:
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: rspec
|
30
|
-
requirement: &70336143557720 !ruby/object:Gem::Requirement
|
31
|
-
none: false
|
32
|
-
requirements:
|
33
|
-
- - ~>
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: '2.0'
|
36
|
-
type: :development
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: *70336143557720
|
39
|
-
- !ruby/object:Gem::Dependency
|
40
|
-
name: cucumber
|
41
|
-
requirement: &70336143555180 !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
|
-
requirements:
|
44
|
-
- - ~>
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 1.0.4
|
47
|
-
type: :development
|
48
|
-
prerelease: false
|
49
|
-
version_requirements: *70336143555180
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: capybara
|
52
|
-
requirement: &70336143551280 !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
|
-
requirements:
|
55
|
-
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: 1.1.0
|
58
|
-
type: :development
|
59
|
-
prerelease: false
|
60
|
-
version_requirements: *70336143551280
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: sqlite3
|
63
|
-
requirement: &70336143541440 !ruby/object:Gem::Requirement
|
64
|
-
none: false
|
65
|
-
requirements:
|
66
|
-
- - ~>
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 1.3.4
|
69
|
-
type: :development
|
70
|
-
prerelease: false
|
71
|
-
version_requirements: *70336143541440
|
72
|
-
- !ruby/object:Gem::Dependency
|
73
|
-
name: appraisal
|
74
|
-
requirement: &70336143535060 !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
|
-
requirements:
|
77
|
-
- - ~>
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: 0.4.0
|
80
|
-
type: :development
|
81
|
-
prerelease: false
|
82
|
-
version_requirements: *70336143535060
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rdoc
|
85
|
-
requirement: &70336143527080 !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
|
-
requirements:
|
88
|
-
- - ~>
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '3.12'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: *70336143527080
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: rake
|
96
|
-
requirement: &70336143474400 !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
98
26
|
requirements:
|
99
|
-
- -
|
27
|
+
- - ">="
|
100
28
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
102
|
-
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: *70336143474400
|
105
|
-
- !ruby/object:Gem::Dependency
|
106
|
-
name: launchy
|
107
|
-
requirement: &70336143470060 !ruby/object:Gem::Requirement
|
108
|
-
none: false
|
109
|
-
requirements:
|
110
|
-
- - ! '>='
|
29
|
+
version: 3.0.0
|
30
|
+
- - "<="
|
111
31
|
- !ruby/object:Gem::Version
|
112
|
-
version:
|
113
|
-
type: :development
|
114
|
-
prerelease: false
|
115
|
-
version_requirements: *70336143470060
|
32
|
+
version: 4.1.1
|
116
33
|
description: Provides 'micro-sessions' within the global sessions object keyed off
|
117
34
|
an identifier.
|
118
35
|
email: ben@railsgarden.com
|
@@ -120,43 +37,42 @@ executables: []
|
|
120
37
|
extensions: []
|
121
38
|
extra_rdoc_files: []
|
122
39
|
files:
|
40
|
+
- Appraisals
|
41
|
+
- Gemfile
|
42
|
+
- Gemfile.lock
|
43
|
+
- LICENSE
|
44
|
+
- README.rdoc
|
45
|
+
- Rakefile
|
46
|
+
- lib/micro_sessions.rb
|
123
47
|
- lib/micro_sessions/controller.rb
|
124
48
|
- lib/micro_sessions/helpers.rb
|
125
49
|
- lib/micro_sessions/micro_session.rb
|
126
50
|
- lib/micro_sessions/railtie.rb
|
127
51
|
- lib/micro_sessions/version.rb
|
128
|
-
- lib/micro_sessions.rb
|
129
52
|
- spec/controller_spec.rb
|
130
53
|
- spec/helpers_spec.rb
|
131
54
|
- spec/spec_helper.rb
|
132
|
-
- Appraisals
|
133
|
-
- Gemfile
|
134
|
-
- Gemfile.lock
|
135
|
-
- LICENSE
|
136
|
-
- Rakefile
|
137
|
-
- README.rdoc
|
138
55
|
homepage: http://github.com/rubiety/micro_sessions
|
139
56
|
licenses: []
|
57
|
+
metadata: {}
|
140
58
|
post_install_message:
|
141
59
|
rdoc_options: []
|
142
60
|
require_paths:
|
143
61
|
- lib
|
144
62
|
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
63
|
requirements:
|
147
|
-
- -
|
64
|
+
- - ">="
|
148
65
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
66
|
+
version: 1.8.7
|
150
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
-
none: false
|
152
68
|
requirements:
|
153
|
-
- -
|
69
|
+
- - ">="
|
154
70
|
- !ruby/object:Gem::Version
|
155
|
-
version: 1.3.
|
71
|
+
version: 1.3.5
|
156
72
|
requirements: []
|
157
|
-
rubyforge_project:
|
158
|
-
rubygems_version:
|
73
|
+
rubyforge_project:
|
74
|
+
rubygems_version: 2.6.11
|
159
75
|
signing_key:
|
160
|
-
specification_version:
|
76
|
+
specification_version: 4
|
161
77
|
summary: Keyed sessions within the global sessions object.
|
162
78
|
test_files: []
|