casein 5.5.0.0 → 5.5.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
  SHA256:
3
- metadata.gz: 6eef80c181e44bbd318a49f8b6c1c9c76a156606b2647acad74986c3cba98a88
4
- data.tar.gz: 2fd3e6968380961321ac1e36bfc3d88010a0965c3b5f2284e61a5c1caed15d9f
3
+ metadata.gz: 5a3c9f2fe7230514d3dc7095b260ffd7dc40515820f4a3d5fa09c1e3ea1ded5e
4
+ data.tar.gz: 9e83c60f895d977c801dcdd410a21652cbee532616ec0465b6a55aec16746bc2
5
5
  SHA512:
6
- metadata.gz: 3579b461c08e1ee1376176f2586dc10e20d3a88728c8ba50d2ed07ef858bc07e933a82744fda72d6a6a579f8571a3d71fc1bef98601d4cb4dd37d60bceec0cd4
7
- data.tar.gz: b42f8d895cdbdf6145332e977a438af66f4b545159b78b62398b6ad96e541a6a53a03b13aabca886bedd1a4779dd9af5acd22c8d136abd89d4f35c30b9997eaf
6
+ metadata.gz: 995dcfab10d337f97ff33c5b1aab3f34de2fc458be6a614d5b2753d5453e6dd9d4a6071d707219c61f5e4c8353b04b33ec5cd0281993efbf635f8d1f319a0265
7
+ data.tar.gz: 6626060861ef37813c9795bfa7b271657e5b69cda6fe10802012f5f5e0324ed0fb2c98df5d4c4ec412ac87eff305373f4849c3acea580f7bfaa28dba5fed73d6
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  =Casein - a lightweight CMS toolkit for Ruby on Rails, based on Bootstrap
2
2
 
3
- Casein is a Rails 5.x gem that provides scaffolding generators and helper functions to quickly create a clean and minimal CRUD interface for your data.
3
+ Casein is a Rails 5.x/6.x gem that provides scaffolding generators and helper functions to quickly create a clean and minimal CRUD interface for your data.
4
4
 
5
5
  It comes with a pre-rolled user-authentication system, supports user-based timezones, and is mobile ready.
6
6
 
@@ -10,31 +10,26 @@ Screenshots at: http://www.caseincms.com
10
10
 
11
11
  ==Requirements
12
12
 
13
- This version of Casein is designed for Ruby on Rails 5.x and Ruby 2.4.10 or later.
13
+ This version of Casein is designed for Ruby on Rails 5.x/6.x and Ruby 2.4.10 or later.
14
14
 
15
15
  Casein 5.1.1.5 was the last gem release compatible with Rails 4.x.
16
16
 
17
+ ==What’s New in 5.5.1
18
+
19
+ * Suport for Rails 6.1 (fixed deprecated usage of `update_attributes`, which was removed completely from Rails 6.1)
20
+
17
21
  ==What’s New in 5.5.0
18
22
 
19
23
  * Updates minimum version of AuthLogic to 6.1 to resolve compatibility with Ruby 2.7
20
24
  * Updates minimum version of Ruby to 2.4.10
21
25
 
22
- ==What’s New in 5.4.0
23
-
24
- * Bug fix for breaking AuthLogic changes
25
- * Updates minimum version of Ruby to 2.3.3
26
- * Some gem dependencies have been updated, including a bump to AuthLogic 5.0.x
27
- * Codebase tidying up
28
-
29
- Thanks to @brchristian for this release.
30
-
31
26
  ==Installation
32
27
 
33
28
  — Create a new Rails project (or use an existing one) and enter the project directory from a terminal prompt.
34
29
 
35
30
  — Add the Casein gem to your Gemfile:
36
31
 
37
- gem 'casein', '~>5.4.0'
32
+ gem 'casein', '~>5.5.1'
38
33
 
39
34
  — Then use bundler to install Casein and its dependencies:
40
35
 
@@ -41,7 +41,7 @@ module Casein
41
41
  @casein_admin_user = Casein::AdminUser.find params[:id]
42
42
  @casein_page_title = "#{@casein_admin_user.name} > Update user"
43
43
 
44
- if @casein_admin_user.update_attributes casein_admin_user_params
44
+ if @casein_admin_user.update casein_admin_user_params
45
45
  flash[:notice] = "#{@casein_admin_user.name} has been updated"
46
46
  else
47
47
  flash.now[:warning] = 'There were problems when trying to update this user'
@@ -63,7 +63,7 @@ module Casein
63
63
  if @casein_admin_user.valid_password? params[:form_current_password]
64
64
  if params[:casein_admin_user][:password].blank? && params[:casein_admin_user][:password_confirmation].blank?
65
65
  flash[:warning] = 'New password cannot be blank'
66
- elsif @casein_admin_user.update_attributes casein_admin_user_params
66
+ elsif @casein_admin_user.update casein_admin_user_params
67
67
  flash[:notice] = 'Your password has been changed'
68
68
  else
69
69
  flash[:warning] = 'There were problems when trying to change your password'
@@ -85,7 +85,7 @@ module Casein
85
85
  generate_random_password if params[:generate_random_password]
86
86
  @casein_admin_user.notify_of_new_password = true unless @casein_admin_user.id == @session_user.id && params[:generate_random_password].blank?
87
87
 
88
- if @casein_admin_user.update_attributes casein_admin_user_params
88
+ if @casein_admin_user.update casein_admin_user_params
89
89
  if @casein_admin_user.notify_of_new_password
90
90
  flash[:notice] = "Password has been reset and #{@casein_admin_user.name} has been notified by email"
91
91
  else
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Casein
4
- VERSION_HASH = { major: 5, minor: 5, patch: 0, build: 0 }
4
+ VERSION_HASH = { major: 5, minor: 5, patch: 1, build: 0 }
5
5
  VERSION = VERSION_HASH.values.join('.')
6
6
  end
@@ -38,7 +38,7 @@ module Casein
38
38
 
39
39
  @<%= singular_name %> = <%= class_name %>.find params[:id]
40
40
 
41
- if @<%= singular_name %>.update_attributes <%= singular_name %>_params
41
+ if @<%= singular_name %>.update <%= singular_name %>_params
42
42
  flash[:notice] = '<%= singular_name.humanize.capitalize %> has been updated'
43
43
  redirect_to casein_<%= @plural_route %>_path
44
44
  else
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.5.0.0
4
+ version: 5.5.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: 2020-08-02 00:00:00.000000000 Z
11
+ date: 2021-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: authlogic
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  requirements: []
252
- rubygems_version: 3.1.4
252
+ rubygems_version: 3.2.16
253
253
  signing_key:
254
254
  specification_version: 4
255
255
  summary: A lightweight CMS toolkit for Ruby on Rails, based on Bootstrap.