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.
@@ -98,6 +98,10 @@ module Merb
98
98
  Merb::DM_VERSION
99
99
  end
100
100
 
101
+ def do_gems_version
102
+ Merb::DO_VERSION
103
+ end
104
+
101
105
  # empty array means all files are considered to be just
102
106
  # files, not templates
103
107
  glob! "app"
@@ -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.new(rand(100000000000).to_s).to_s %>' # required for cookie session store
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.new(rand(100000000000).to_s).to_s %>',
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 = "0.9.10.1"
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.new(rand(100000000000).to_s).to_s %>' # required for cookie session store
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
 
@@ -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 article show action" do
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
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'merb-core'
3
- require 'sha1'
3
+ require 'digest/sha1'
4
4
  gem 'templater', '>= 0.3.2'
5
5
  require 'templater'
6
6
 
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.8.1
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-01-19 00:00:00 -07:00
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.8.1
23
+ version: 1.0.9
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: templater