sinatra-mvc 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -1
- data/lib/sinatra-mvc/session_store.rb +3 -2
- data/skel/views/docs.md +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -114,7 +114,7 @@ To get the latest updates from the repository, just pull (and merge if needed).
|
|
114
114
|
- or when using github -
|
115
115
|
$ git pull
|
116
116
|
$ gem build sinatra-mvc.gemspec
|
117
|
-
# gem install sinatra-mvc
|
117
|
+
# gem install sinatra-mvc-*.gem
|
118
118
|
|
119
119
|
Configuration
|
120
120
|
-------------
|
@@ -3,9 +3,10 @@
|
|
3
3
|
|
4
4
|
case settings.session_backend
|
5
5
|
when :cookie
|
6
|
-
|
7
|
-
65 + rand(25).chr
|
6
|
+
secret = (0..50).map do
|
7
|
+
(65 + rand(25)).chr
|
8
8
|
end.join
|
9
|
+
use Rack::Session::Cookie, :expire_after => settings.session_max_age, :key => 'sinatra.mvc.session', :secret => secret
|
9
10
|
when :memcache
|
10
11
|
use Rack::Session::Memcache, :expire_after => settings.session_max_age, :key => 'sinatra.mvc.session', :namespace => 'sinatra:mvc:session', :memcache_server => settings.session_store
|
11
12
|
else
|
data/skel/views/docs.md
CHANGED
@@ -114,7 +114,7 @@ To get the latest updates from the repository, just pull (and merge if needed).
|
|
114
114
|
- or when using github -
|
115
115
|
$ git pull
|
116
116
|
$ gem build sinatra-mvc.gemspec
|
117
|
-
# gem install sinatra-mvc
|
117
|
+
# gem install sinatra-mvc-*.gem
|
118
118
|
|
119
119
|
Configuration
|
120
120
|
-------------
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Joris van Rooij
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-27 00:00:00 +01:00
|
18
18
|
default_executable: sinatra-mvc
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|