casein 3.1.10 → 3.1.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  major: 3
2
2
  minor: 1
3
- patch: 10
3
+ patch: 11
4
4
  build:
@@ -105,7 +105,7 @@ Now that you have the basic Casein installed and configured, you’ll want to ex
105
105
 
106
106
  <b>Rules and conventions</b>
107
107
 
108
- * Casein extension controllers and helpers should be namespaced to casein::
108
+ * Casein extension controllers and helpers should be namespaced to 'Casein::'
109
109
  * Casein extension controllers should derive from Casein::CaseinController and not ApplicationController
110
110
  * To set the page title, your controller action should set @casein_page_title. If this is not set, then Casein will use a default created from your project name.
111
111
 
@@ -160,7 +160,7 @@ e.g. a typical scaffolding command might look like:
160
160
 
161
161
  rails g casein:scaffold customer name:string age:integer date_of_birth:date is_male:boolean
162
162
 
163
- There are currently two further command line options that can be added to the end of the generate command:
163
+ There is one command-line option that can be added to the end of the generate command:
164
164
 
165
165
  --create-model-and-migration = Also creates a model and migration. By default the scaffold generator will work from existing models, but this option will generate the model and database migration files for you. This means you can also use Casein to set up a new project quickly as well.
166
166
 
data/Rakefile CHANGED
@@ -27,7 +27,7 @@ begin
27
27
  Jeweler::Tasks.new do |gem|
28
28
  gem.name = "casein"
29
29
  gem.summary = "A lightweight Ruby on Rails CMS."
30
- gem.description = "Casein is an open source CMS for Ruby on Rails, originally developed by Spoiled Milk."
30
+ gem.description = "Casein is an open-source CMS for Ruby on Rails, originally developed by Spoiled Milk."
31
31
  gem.files = Dir["Gemfile", "MIT-LICENSE", "Rakefile", "README.rdoc", "PUBLIC_VERSION.yml", "{lib}/**/*", "{app}/**/*", "{config}/**/*"]
32
32
  gem.email = "mail@russellquinn.com"
33
33
  gem.authors = ["Russell Quinn", "Spoiled Milk"]
@@ -14,7 +14,7 @@ module Casein
14
14
  def new
15
15
  @casein_page_title = "Add a new user"
16
16
  @casein_user = Casein::User.new
17
- @casein_user.time_zone = Rails::Application.config.time_zone
17
+ @casein_user.time_zone = Rails.configuration.time_zone
18
18
  end
19
19
 
20
20
  def create
@@ -44,7 +44,7 @@ module Casein
44
44
  end
45
45
 
46
46
  def check_time_zone
47
- self.time_zone = Rails::Application.config.time_zone unless self.time_zone
47
+ self.time_zone = Rails.configuration.time_zone unless self.time_zone
48
48
  end
49
49
 
50
50
  def is_admin?
@@ -5,8 +5,14 @@
5
5
  <head>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
7
  <title><%= casein_generate_page_title %></title>
8
- <%= stylesheet_link_tag casein_config_stylesheet_includes %>
9
- <%= javascript_include_tag casein_config_javascript_includes %>
8
+ <% casein_config_stylesheet_includes.each do |stylesheet| %>
9
+ <%= stylesheet_link_tag(stylesheet) %>
10
+ <% end %>
11
+
12
+ <% casein_config_javascript_includes.each do |javascript| %>
13
+ <%= javascript_include_tag(javascript) %>
14
+ <% end %>
15
+
10
16
  <%= csrf_meta_tag %>
11
17
  </head>
12
18
  <body>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: casein
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 1
9
- - 10
10
- version: 3.1.10
9
+ - 11
10
+ version: 3.1.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Russell Quinn
@@ -16,9 +16,11 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-08-09 00:00:00 Z
19
+ date: 2011-09-15 00:00:00 -07:00
20
+ default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
23
+ type: :runtime
22
24
  requirement: &id001 !ruby/object:Gem::Requirement
23
25
  none: false
24
26
  requirements:
@@ -28,11 +30,11 @@ dependencies:
28
30
  segments:
29
31
  - 0
30
32
  version: "0"
31
- version_requirements: *id001
32
33
  name: casein
34
+ version_requirements: *id001
33
35
  prerelease: false
34
- type: :runtime
35
36
  - !ruby/object:Gem::Dependency
37
+ type: :runtime
36
38
  requirement: &id002 !ruby/object:Gem::Requirement
37
39
  none: false
38
40
  requirements:
@@ -44,11 +46,11 @@ dependencies:
44
46
  - 0
45
47
  - 0
46
48
  version: 3.0.0
47
- version_requirements: *id002
48
49
  name: will_paginate
50
+ version_requirements: *id002
49
51
  prerelease: false
50
- type: :runtime
51
52
  - !ruby/object:Gem::Dependency
53
+ type: :runtime
52
54
  requirement: &id003 !ruby/object:Gem::Requirement
53
55
  none: false
54
56
  requirements:
@@ -60,11 +62,10 @@ dependencies:
60
62
  - 0
61
63
  - 3
62
64
  version: 3.0.3
63
- version_requirements: *id003
64
65
  name: authlogic
66
+ version_requirements: *id003
65
67
  prerelease: false
66
- type: :runtime
67
- description: Casein is an open source CMS for Ruby on Rails, originally developed by Spoiled Milk.
68
+ description: Casein is an open-source CMS for Ruby on Rails, originally developed by Spoiled Milk.
68
69
  email: mail@russellquinn.com
69
70
  executables: []
70
71
 
@@ -147,6 +148,7 @@ files:
147
148
  - lib/generators/casein/update/templates/public/casein/stylesheets/screen.css
148
149
  - lib/generators/casein/update/update_generator.rb
149
150
  - lib/railties/tasks.rake
151
+ has_rdoc: true
150
152
  homepage: http://github.com/spoiledmilk/casein3
151
153
  licenses: []
152
154
 
@@ -176,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
178
  requirements: []
177
179
 
178
180
  rubyforge_project:
179
- rubygems_version: 1.8.6
181
+ rubygems_version: 1.5.3
180
182
  signing_key:
181
183
  specification_version: 3
182
184
  summary: A lightweight Ruby on Rails CMS.