merb-gen 1.0.8.1 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/merb/merb_stack.rb +4 -0
- data/lib/generators/templates/application/merb_core/config/init.rb +1 -1
- data/lib/generators/templates/application/merb_flat/config/init.rb +1 -1
- data/lib/generators/templates/application/merb_stack/config/dependencies.rb +2 -2
- data/lib/generators/templates/application/merb_stack/config/init.rb +1 -1
- data/lib/generators/templates/component/resource_controller/spec/requests/%file_name%_spec.rb +1 -1
- data/lib/merb-gen.rb +1 -1
- metadata +3 -3
@@ -12,7 +12,7 @@ Merb::Config.use do |c|
|
|
12
12
|
c[:session_store] = 'cookie' # can also be 'memory', 'memcache', 'container', 'datamapper
|
13
13
|
|
14
14
|
# cookie session store configuration
|
15
|
-
c[:session_secret_key] = '<%= SHA1.
|
15
|
+
c[:session_secret_key] = '<%= Digest::SHA1.hexdigest(rand(100000000000).to_s).to_s %>' # required for cookie session store
|
16
16
|
c[:session_id_key] = '_<%= base_name %>_session_id' # cookie session id key, defaults to "_session_id"
|
17
17
|
end
|
18
18
|
|
@@ -32,7 +32,7 @@ Merb::Config.use { |c|
|
|
32
32
|
c[:use_mutex] = false,
|
33
33
|
c[:session_store] = 'cookie',
|
34
34
|
c[:session_id_key] = '_<%= base_name %>_session_id',
|
35
|
-
c[:session_secret_key] = '<%= SHA1.
|
35
|
+
c[:session_secret_key] = '<%= Digest::SHA1.hexdigest(rand(100000000000).to_s).to_s %>',
|
36
36
|
c[:exception_details] = true,
|
37
37
|
c[:reload_classes] = true,
|
38
38
|
c[:reload_templates] = true,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# dependencies are generated using a strict version, don't forget to edit the dependency versions when upgrading.
|
2
2
|
merb_gems_version = "<%= merb_gems_version %>"
|
3
3
|
dm_gems_version = "<%= dm_gems_version %>"
|
4
|
-
do_gems_version = "
|
4
|
+
do_gems_version = "<%= do_gems_version %>"
|
5
5
|
|
6
6
|
# For more information about each component, please read http://wiki.merbivore.com/faqs/merb_components
|
7
7
|
dependency "merb-core", merb_gems_version
|
@@ -9,7 +9,7 @@ dependency "merb-action-args", merb_gems_version
|
|
9
9
|
dependency "merb-assets", merb_gems_version
|
10
10
|
dependency("merb-cache", merb_gems_version) do
|
11
11
|
Merb::Cache.setup do
|
12
|
-
register(Merb::Cache::FileStore)
|
12
|
+
register(Merb::Cache::FileStore) unless Merb.cache
|
13
13
|
end
|
14
14
|
end
|
15
15
|
dependency "merb-helpers", merb_gems_version
|
@@ -11,7 +11,7 @@ Merb::Config.use do |c|
|
|
11
11
|
c[:session_store] = 'cookie' # can also be 'memory', 'memcache', 'container', 'datamapper
|
12
12
|
|
13
13
|
# cookie session store configuration
|
14
|
-
c[:session_secret_key] = '<%= SHA1.
|
14
|
+
c[:session_secret_key] = '<%= Digest::SHA1.hexdigest(rand(100000000000).to_s).to_s %>' # required for cookie session store
|
15
15
|
c[:session_id_key] = '_<%= base_name %>_session_id' # cookie session id key, defaults to "_session_id"
|
16
16
|
end
|
17
17
|
|
data/lib/generators/templates/component/resource_controller/spec/requests/%file_name%_spec.rb
CHANGED
@@ -113,7 +113,7 @@ describe "resource(@<%= singular_model %>)", :given => "a <%= singular_model %>
|
|
113
113
|
:params => { :<%= singular_model %> => {:id => @<%= singular_model %>.id} })
|
114
114
|
end
|
115
115
|
|
116
|
-
it "redirect to the
|
116
|
+
it "redirect to the <%= singular_model %> show action" do
|
117
117
|
@response.should redirect_to(resource(@<%= singular_model %>))
|
118
118
|
end
|
119
119
|
end
|
data/lib/merb-gen.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merb-gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-02-12 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.0.
|
23
|
+
version: 1.0.9
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: templater
|