casein 3.1.7 → 3.1.8
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/MIT-LICENSE +1 -1
- data/PUBLIC_VERSION.yml +1 -1
- data/README.rdoc +8 -0
- data/config/routes.rb +2 -1
- data/lib/casein/engine.rb +10 -0
- metadata +31 -19
- data/test/casein3_test.rb +0 -8
- data/test/test_helper.rb +0 -3
data/MIT-LICENSE
CHANGED
data/PUBLIC_VERSION.yml
CHANGED
data/README.rdoc
CHANGED
@@ -215,6 +215,14 @@ There is an optional container class that forces form elements to use the whole
|
|
215
215
|
|
216
216
|
Sometimes it is necessary or useful to add guidelines or help text to your forms and tables. Casein offers a CSS class for this called “help”, which can be used throughout your views as necessary.
|
217
217
|
|
218
|
+
===Routes
|
219
|
+
|
220
|
+
Casein adds the routes for the scaffolded models to the top of your application’s routes.rb file. It also adds default routes for basic Casein functionality <b>after</b> your application’s routes. If you have a catch-all style route defined, then these defaults won’t be run. You can solve this be using Rails’ constraint feature and the supplied Casein::RouteConstraint, which will stop your catch-all from matching if the request is for a Casein resource.
|
221
|
+
|
222
|
+
e.g.
|
223
|
+
|
224
|
+
match ':controller(/:action(/:id(.:format)))', :constraints => Casein::RouteConstraint.new
|
225
|
+
|
218
226
|
==Acknowledgements
|
219
227
|
|
220
228
|
The icons used in Casein were created by Mark James and are licensed under the Creative Commons Attribution 2.5 License (http://creativecommons.org/licenses/by/2.5/). The full series of icons are available here: http://www.famfamfam.com/lab/icons/silk/
|
data/config/routes.rb
CHANGED
@@ -3,6 +3,7 @@ Rails.application.routes.draw do
|
|
3
3
|
match "/admin" => redirect("/casein")
|
4
4
|
|
5
5
|
namespace :casein do
|
6
|
+
|
6
7
|
resources :users do
|
7
8
|
member do
|
8
9
|
put :update_password, :reset_password
|
@@ -12,7 +13,7 @@ Rails.application.routes.draw do
|
|
12
13
|
resource :user_session
|
13
14
|
resource :password_reset, :only => [:create, :edit, :update]
|
14
15
|
|
15
|
-
|
16
|
+
match "/blank" => "casein#blank"
|
16
17
|
root :to => "casein#index"
|
17
18
|
end
|
18
19
|
|
data/lib/casein/engine.rb
CHANGED
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 3.1.
|
9
|
+
- 8
|
10
|
+
version: 3.1.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Russell Quinn
|
@@ -16,29 +16,44 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date:
|
19
|
+
date: 2011-05-11 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
|
-
name:
|
23
|
+
name: casein
|
24
24
|
prerelease: false
|
25
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
version: "0"
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: will_paginate
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
26
40
|
none: false
|
27
41
|
requirements:
|
28
42
|
- - ~>
|
29
43
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
44
|
+
hash: 1923831917
|
31
45
|
segments:
|
32
46
|
- 3
|
33
47
|
- 0
|
34
|
-
-
|
48
|
+
- pre
|
49
|
+
- 2
|
35
50
|
version: 3.0.pre2
|
36
51
|
type: :runtime
|
37
|
-
version_requirements: *
|
52
|
+
version_requirements: *id002
|
38
53
|
- !ruby/object:Gem::Dependency
|
39
54
|
name: authlogic
|
40
55
|
prerelease: false
|
41
|
-
requirement: &
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
42
57
|
none: false
|
43
58
|
requirements:
|
44
59
|
- - "="
|
@@ -50,7 +65,7 @@ dependencies:
|
|
50
65
|
- 6
|
51
66
|
version: 2.1.6
|
52
67
|
type: :runtime
|
53
|
-
version_requirements: *
|
68
|
+
version_requirements: *id003
|
54
69
|
description: Casein is an open source CMS for Ruby on Rails, originally developed by Spoiled Milk.
|
55
70
|
email: mail@russellquinn.com
|
56
71
|
executables: []
|
@@ -134,15 +149,13 @@ files:
|
|
134
149
|
- lib/generators/casein/update/templates/public/casein/stylesheets/screen.css
|
135
150
|
- lib/generators/casein/update/update_generator.rb
|
136
151
|
- lib/railties/tasks.rake
|
137
|
-
- test/casein3_test.rb
|
138
|
-
- test/test_helper.rb
|
139
152
|
has_rdoc: true
|
140
153
|
homepage: http://github.com/spoiledmilk/casein3
|
141
154
|
licenses: []
|
142
155
|
|
143
156
|
post_install_message:
|
144
|
-
rdoc_options:
|
145
|
-
|
157
|
+
rdoc_options: []
|
158
|
+
|
146
159
|
require_paths:
|
147
160
|
- lib
|
148
161
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -166,10 +179,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
179
|
requirements: []
|
167
180
|
|
168
181
|
rubyforge_project:
|
169
|
-
rubygems_version: 1.3
|
182
|
+
rubygems_version: 1.5.3
|
170
183
|
signing_key:
|
171
184
|
specification_version: 3
|
172
185
|
summary: A lightweight Ruby on Rails CMS.
|
173
|
-
test_files:
|
174
|
-
|
175
|
-
- test/test_helper.rb
|
186
|
+
test_files: []
|
187
|
+
|
data/test/casein3_test.rb
DELETED
data/test/test_helper.rb
DELETED