casein 5.0.0.0 → 5.0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45f9e6702ce5255b36808ef8c835fbc4664079d6
4
- data.tar.gz: 246672dcad1b749e1a7c2f5e7a7e12f279b3b72e
3
+ metadata.gz: 7b74cfa7fbe0270c2cc2ce110b4e7fb71e904dcf
4
+ data.tar.gz: dc5f86e1a0c1d67deddb67d56128282c4ff932b5
5
5
  SHA512:
6
- metadata.gz: 672fea6ef92b66735c2def637c841234b57e410c7ed2fc03f3eabab0cbaa56cc6730c240dcb0e8f9d7eb9aa5249438e03f2daa6650bae8565ff7203cf5b9f678
7
- data.tar.gz: 6fa09b6fef02b73a21223216f91c296b813ac33f003e40c2c095354e0f54bf5b9c794a0b40a5d1e3c99a4dfc6ed614e582324f996488ba666dd344f3cba47735
6
+ metadata.gz: dc100ed3cb97892ae21a54240d3d6c41277ccd265642712575100803634c7ae1035eca0e3932bbcf548eab553c4c07cfcd06de41a7c6135a5a77c9e2c419c4e5
7
+ data.tar.gz: eeeffc3ee03e64422e8820b0628818328f3e6007a1dda4562212b4b9ef9e41236dbf126e4326e153f28081ca4ac78b0491cdbea4647c0e762caa05297674fb91
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  CASEIN v5.x — A lightweight CMS toolkit for Ruby on Rails, based on Bootstrap.
2
2
 
3
- Copyright (c) 2013 Russell Quinn. Previously copyright (c) 2010-2012 Spoiled Milk ApS and Russell Quinn.
3
+ Copyright (c) 2013-onwards Russell Quinn. Previously copyright (c) 2010-2012 Spoiled Milk ApS and Russell Quinn.
4
4
 
5
5
  www.russellquinn.com
6
6
 
@@ -31,13 +31,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
31
 
32
32
  Casein uses Bootstrap and Glyphicons.
33
33
 
34
- Bootstrap is copyright (c) 2013 Twitter and is used under the Apache 2.0 license.
34
+ Bootstrap is copyright (c) 2014 Twitter and is used under the Apache 2.0 license.
35
35
  http://getbootstrap.com
36
36
 
37
37
  Glyphicons is an extensive glyph library created by Jan Kovařík and made available for Bootstrap under the same Apache 2.0 license.
38
38
  http://glyphicons.com
39
39
 
40
- Bootstrap-glyphicons is copyright (c) 2013 Mark Otto and is used under the MIT License.
40
+ Bootstrap-glyphicons is copyright (c) 2014 Mark Otto and is used under the MIT License.
41
41
  http://glyphicons.getbootstrap.com
42
42
 
43
43
  - - -
@@ -225,7 +225,7 @@ Bootstrap and Glyphicons license:
225
225
 
226
226
  Bootstrap-glyphicons license:
227
227
 
228
- Copyright (c) 2013 Mark Otto
228
+ Copyright (c) 2014 Mark Otto
229
229
 
230
230
  Permission is hereby granted, free of charge, to any person obtaining a copy
231
231
  of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
1
  major: 5
2
2
  minor: 0
3
- patch: 0
3
+ patch: 1
4
4
  build: 0
@@ -2,7 +2,11 @@
2
2
 
3
3
  ** ALL-NEW CASEIN 5.0.0 — featuring new responsive UI based on Bootstrap 3! **
4
4
 
5
- Casein is a Rails 4.x gem that provides scaffolding generators and helper functions to quickly create a clean and minimal CRUD (Create, Read, Update and Delete) interface for your data. It also comes with a pre-rolled user authentication system. As Casein is completely decoupled from the front-end, it can be added to a new or existing Rails project, or used as a standalone CMS to drive platforms built on other technologies.
5
+ Casein is a Rails 4.x gem that provides scaffolding generators and helper functions to quickly create a clean and minimal CRUD interface for your data.
6
+
7
+ It comes with a pre-rolled user-authentication system, supports user-based timezones, and is mobile-ready.
8
+
9
+ As Casein is completely decoupled from the front end, it can be added to new or existing Rails projects, or used as a standalone CMS to drive platforms built on other technologies.
6
10
 
7
11
  Screenshots at: http://www.caseincms.com
8
12
 
@@ -93,9 +97,12 @@ e.g. a typical scaffolding command might look like:
93
97
 
94
98
  rails g casein:scaffold Customer name:string age:integer date_of_birth:date is_male:boolean
95
99
 
100
+ By default the scaffold generator expects the model and database migration to already exist. This is because you typically won't want all of your model attributes to be editable in Casein. So you'd set up your model and migration the usual way, then run the Casein scaffold generator just for the appropriate attributes. However, you can add --create-model-and-migration to the generator to also create these files at the same time.
101
+
102
+
96
103
  Command-line options that can be added to the end of the generate command:
97
104
 
98
- --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.
105
+ --create-model-and-migration = Also creates a model and migration.
99
106
  --read-only = Creates scaffolding to view model data only (you will not be able to edit, create, or delete records). This is useful if you want to create a read-only viewer of data that's generated elsewhere.
100
107
  --no-index = Excludes the index view and does not add to the model to the navigation. The _table partial is still generated. This is useful generating has/belongs relationships.
101
108
 
@@ -106,7 +113,7 @@ Once the command has been executed, the generator will:
106
113
  * Add views for index, new and show to: app/views/casein/model/
107
114
  * If you restart and run your application now, you’ll be able to sign in to Casein and directly edit and create new instances of your model data right away!
108
115
 
109
- However, you’ll probably want to customise your views and side bars and extend your controller to suit your project. The scaffold generator just sets up the defaults for you.
116
+ However, you’ll want to customise your views and side bars and extend your controller to suit your project. The scaffold generator just sets up the defaults for you.
110
117
 
111
118
  <em>NOTE: Once you start customising the generated scaffolding files, you should be aware that if you run the generator again you should not overwrite the changed files without backing them up first. The generator will warn you each time it finds a file that you’ve customised. If you run the scaffold generator from a new version of Casein, then you should manually merge your backup and the new file. You can of course however, leave your originals untouched.</em>
112
119
 
@@ -116,6 +123,12 @@ However, you’ll probably want to customise your views and side bars and extend
116
123
 
117
124
  This is the main Casein configuration file that allows you to change things such as the website name, logo, notification email address, dashboard URL, etc. The options are documented within the file.
118
125
 
126
+ To change the default page that Casein shows, you should change casein_config_dashboard_url. For example, to just go straight to the index page for a model named Page, you'd use:
127
+
128
+ def casein_config_dashboard_url
129
+ url_for casein_pages_path
130
+ end
131
+
119
132
  <b>views/casein/layouts/_tab_navigation.html.erb</b>
120
133
 
121
134
  An ERB partial for the the left navigation tabs. Note that using the scaffolding generator will automatically add tabs into this file, but it can also be manually edited and rearranged.
@@ -176,7 +189,7 @@ The Casein Rake tasks are all namespaced with ‘casein:’
176
189
 
177
190
  Casein is now based on Bootstrap (http://getbootstrap.com) and jQuery. Bootstrap offers a wealth of UI components, CSS styles, and JavaScript plugins. See the Bootstrap website for full details.
178
191
 
179
- Note that Casein runs from the shortlived Bootstrap v3.0.0 and hasn't yet been updated to Bootstrap v3.1.x. Some of the Bootstrap syntax might be different if you're used to 3.1.x. (Update coming soon!)
192
+ Note that Casein runs from the shortlived Bootstrap v3.0.0 beta and hasn't yet been updated to Bootstrap v3.1.x. Some of the Bootstrap syntax might be different if you're used to 3.1.x. (Update coming soon!)
180
193
 
181
194
  ===Changing form elements / other helpers
182
195
 
data/Rakefile CHANGED
@@ -32,8 +32,8 @@ begin
32
32
  gem.email = "mail@russellquinn.com"
33
33
  gem.authors = ["Russell Quinn"]
34
34
  gem.license = "MIT"
35
- gem.homepage = "http://github.com/russellquinn/casein"
36
- gem.add_dependency("will_paginate", ["3.0.5"])
35
+ gem.homepage = "http://www.caseincms.com"
36
+ gem.add_dependency("will_paginate", ["3.0.7"])
37
37
  gem.add_dependency("authlogic", ["3.4.2"])
38
38
  gem.add_dependency("scrypt", ["1.2.1"])
39
39
  gem.add_dependency("jquery-rails")
@@ -177,8 +177,9 @@ module Casein
177
177
  casein_form_tag_wrapper(form.time_zone_select(attribute, option_tags, strip_casein_options(options), merged_class_hash(options, 'form-control')), form, obj, attribute, options).html_safe
178
178
  end
179
179
 
180
- def casein_collection_select form, obj, attribute, collection, value_method, text_method, options = {}
181
- casein_form_tag_wrapper(collection_select(obj, attribute, collection, value_method, text_method, strip_casein_options(options), merged_class_hash(options, 'form-control')), form, obj, attribute, options).html_safe
180
+ #e.g. casein_collection_select f, f.object, :article, :author_id, Author.all, :id, :name, {:prompt => 'Select author'}
181
+ def casein_collection_select form, obj, object_name, attribute, collection, value_method, text_method, options = {}
182
+ casein_form_tag_wrapper(collection_select(object_name, attribute, collection, value_method, text_method, strip_casein_options(options), merged_class_hash(options, 'form-control')), form, obj, attribute, options).html_safe
182
183
  end
183
184
 
184
185
  def casein_date_select form, obj, attribute, options = {}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: casein
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.0
4
+ version: 5.0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Russell Quinn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-10 00:00:00.000000000 Z
11
+ date: 2014-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: casein
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.0.5
33
+ version: 3.0.7
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.0.5
40
+ version: 3.0.7
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: authlogic
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -150,7 +150,7 @@ files:
150
150
  - lib/generators/casein/scaffold/templates/views/new.html.erb
151
151
  - lib/generators/casein/scaffold/templates/views/show.html.erb
152
152
  - lib/railties/tasks.rake
153
- homepage: http://github.com/russellquinn/casein
153
+ homepage: http://www.caseincms.com
154
154
  licenses:
155
155
  - MIT
156
156
  metadata: {}
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  requirements: []
172
172
  rubyforge_project:
173
- rubygems_version: 2.2.2
173
+ rubygems_version: 2.4.1
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: A lightweight CMS toolkit for Ruby on Rails, based on Bootstrap.