casein 5.1.1.5 → 5.2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +23 -34
- data/app/assets/javascripts/casein/casein.js +1 -1
- data/app/assets/stylesheets/casein/{casein-bootstrap-overrides.css.scss → casein-bootstrap-overrides.scss} +0 -0
- data/app/assets/stylesheets/casein/{casein.css.scss → casein.scss} +0 -0
- data/app/assets/stylesheets/casein/login.scss +74 -0
- data/app/controllers/casein/admin_user_sessions_controller.rb +10 -6
- data/app/controllers/casein/admin_users_controller.rb +9 -9
- data/app/controllers/casein/casein_controller.rb +7 -5
- data/app/controllers/casein/password_resets_controller.rb +4 -4
- data/app/helpers/casein/casein_helper.rb +8 -8
- data/app/mailers/casein/casein_notification.rb +3 -3
- data/app/models/casein/admin_user.rb +2 -2
- data/app/views/casein/admin_user_sessions/new.html.erb +6 -6
- data/app/views/casein/admin_users/index.html.erb +1 -1
- data/app/views/casein/admin_users/new.html.erb +7 -7
- data/app/views/casein/admin_users/show.html.erb +14 -14
- data/app/views/casein/password_resets/edit.html.erb +4 -4
- data/app/views/layouts/casein_auth.html.erb +12 -6
- data/app/views/layouts/casein_main.html.erb +4 -4
- data/config/initializers/will_paginate.rb +4 -4
- data/config/routes.rb +5 -5
- data/lib/casein.rb +2 -2
- data/lib/casein/engine.rb +1 -1
- data/lib/casein/version.rb +1 -1
- data/lib/generators/casein/install/install_generator.rb +4 -2
- data/lib/generators/casein/install/templates/app/assets/javascripts/casein/auth_custom.js +2 -0
- data/lib/generators/casein/install/templates/app/assets/stylesheets/casein/auth_custom.scss +2 -0
- data/lib/generators/casein/install/templates/app/assets/stylesheets/casein/{custom.css.scss → custom.scss} +0 -0
- data/lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb +11 -1
- data/lib/generators/casein/install/templates/app/views/casein/layouts/_top_navigation.html.erb +2 -2
- data/lib/generators/casein/install/templates/db/migrate/casein_create_admin_users.rb +6 -6
- data/lib/generators/casein/scaffold/scaffold_generator.rb +22 -22
- data/lib/generators/casein/scaffold/templates/controller.rb +25 -27
- data/lib/generators/casein/scaffold/templates/migration.rb +2 -2
- data/lib/generators/casein/scaffold/templates/model.rb +1 -2
- data/lib/generators/casein/scaffold/templates/views/_form.html.erb +7 -7
- data/lib/generators/casein/scaffold/templates/views/_table.html.erb +16 -16
- data/lib/generators/casein/scaffold/templates/views/index.html.erb +4 -4
- data/lib/generators/casein/scaffold/templates/views/new.html.erb +10 -10
- data/lib/generators/casein/scaffold/templates/views/show.html.erb +9 -9
- data/lib/railties/tasks.rake +2 -1
- metadata +19 -17
- data/app/assets/stylesheets/casein/login.css.scss +0 -74
data/lib/generators/casein/install/templates/app/views/casein/layouts/_top_navigation.html.erb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
<!-- NOTE: add "hidden-xs hidden-sm" class to li elements you want to be hidden at small browser widths -->
|
2
|
-
<!-- e.g. <li class="hidden-xs hidden-sm"><%= link_to "Visit site", casein_config_hostname, :
|
2
|
+
<!-- e.g. <li class="hidden-xs hidden-sm"><%= link_to "Visit site", casein_config_hostname, target: "_blank" %></li> -->
|
3
3
|
|
4
|
-
<li><%= link_to "Visit site", casein_config_hostname, :
|
4
|
+
<li><%= link_to "Visit site", casein_config_hostname, target: "_blank" %></li>
|
@@ -2,17 +2,17 @@ class CaseinCreateAdminUsers < ActiveRecord::Migration
|
|
2
2
|
|
3
3
|
def self.up
|
4
4
|
create_table :casein_admin_users do |t|
|
5
|
-
t.string :login, :
|
5
|
+
t.string :login, null: false
|
6
6
|
t.string :name
|
7
7
|
t.string :email
|
8
|
-
t.integer :access_level, :
|
9
|
-
t.string :crypted_password, :
|
10
|
-
t.string :password_salt, :
|
8
|
+
t.integer :access_level, null: false, default: 0
|
9
|
+
t.string :crypted_password, null: false
|
10
|
+
t.string :password_salt, null: false
|
11
11
|
t.string :persistence_token
|
12
12
|
t.string :single_access_token
|
13
13
|
t.string :perishable_token
|
14
|
-
t.integer :login_count, :
|
15
|
-
t.integer :failed_login_count, :
|
14
|
+
t.integer :login_count, null: false, default: 0
|
15
|
+
t.integer :failed_login_count, null: false, default: 0
|
16
16
|
t.datetime :last_request_at
|
17
17
|
t.datetime :current_login_at
|
18
18
|
t.datetime :last_login_at
|
@@ -1,14 +1,14 @@
|
|
1
1
|
module Casein
|
2
2
|
class ScaffoldGenerator < Rails::Generators::NamedBase
|
3
|
-
|
3
|
+
|
4
4
|
include Casein::CaseinHelper
|
5
5
|
include Rails::Generators::Migration
|
6
6
|
source_root File.expand_path('../templates', __FILE__)
|
7
|
-
|
8
|
-
argument :attributes, :
|
9
|
-
|
10
|
-
class_options :
|
11
|
-
|
7
|
+
|
8
|
+
argument :attributes, type: :array, required: true, desc: "attribute list required"
|
9
|
+
|
10
|
+
class_options create_model_and_migration: false, read_only: false, no_index: false
|
11
|
+
|
12
12
|
def self.next_migration_number dirname
|
13
13
|
if ActiveRecord::Base.timestamped_migrations
|
14
14
|
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
@@ -16,7 +16,7 @@ module Casein
|
|
16
16
|
"%.3d" % (current_migration_number(dirname) + 1)
|
17
17
|
end
|
18
18
|
end
|
19
|
-
|
19
|
+
|
20
20
|
def generate_files
|
21
21
|
@plural_route = (plural_name != singular_name) ? plural_name : "#{plural_name}_index"
|
22
22
|
@read_only = options[:read_only]
|
@@ -28,19 +28,19 @@ module Casein
|
|
28
28
|
template 'views/new.html.erb', "app/views/casein/#{plural_name}/new.html.erb" unless @read_only
|
29
29
|
template 'views/_form.html.erb', "app/views/casein/#{plural_name}/_form.html.erb"
|
30
30
|
template 'views/_table.html.erb', "app/views/casein/#{plural_name}/_table.html.erb"
|
31
|
-
|
31
|
+
|
32
32
|
add_namespace_to_routes
|
33
33
|
add_to_routes
|
34
34
|
add_to_navigation unless @no_index
|
35
|
-
|
35
|
+
|
36
36
|
if options[:create_model_and_migration]
|
37
37
|
template 'model.rb', "app/models/#{singular_name}.rb"
|
38
38
|
migration_template 'migration.rb', "db/migrate/create_#{plural_name}.rb"
|
39
39
|
end
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
protected
|
43
|
-
|
43
|
+
|
44
44
|
#replacements for standard Rails generator route. This one only adds once
|
45
45
|
def add_namespace_to_routes
|
46
46
|
puts " casein adding namespace to routes.rb"
|
@@ -48,26 +48,26 @@ module Casein
|
|
48
48
|
line_to_add = "namespace :casein do"
|
49
49
|
insert_sentinel = 'Application.routes.draw do'
|
50
50
|
if File.read(file_to_update).scan(/(#{Regexp.escape("#{line_to_add}")})/mi).blank?
|
51
|
-
gsub_add_once plural_name, file_to_update, "\n
|
51
|
+
gsub_add_once plural_name, file_to_update, "\n#Casein routes\n" + line_to_add + "\nend\n", insert_sentinel
|
52
52
|
end
|
53
53
|
end
|
54
|
-
|
54
|
+
|
55
55
|
def add_to_routes
|
56
56
|
puts " casein adding #{plural_name} resources to routes.rb"
|
57
57
|
file_to_update = Rails.root + 'config/routes.rb'
|
58
58
|
|
59
59
|
if @no_index && @read_only
|
60
|
-
line_to_add = "resources :#{plural_name}, :
|
60
|
+
line_to_add = "resources :#{plural_name}, only: [:show]"
|
61
61
|
elsif @no_index
|
62
|
-
line_to_add = "resources :#{plural_name}, :
|
62
|
+
line_to_add = "resources :#{plural_name}, except: [:index]"
|
63
63
|
elsif @read_only
|
64
|
-
line_to_add = "resources :#{plural_name}, :
|
64
|
+
line_to_add = "resources :#{plural_name}, only: [:index, :show]"
|
65
65
|
else
|
66
66
|
line_to_add = "resources :#{plural_name}"
|
67
67
|
end
|
68
68
|
|
69
69
|
insert_sentinel = 'namespace :casein do'
|
70
|
-
gsub_add_once plural_name, file_to_update, "
|
70
|
+
gsub_add_once plural_name, file_to_update, " " + line_to_add, insert_sentinel
|
71
71
|
end
|
72
72
|
|
73
73
|
def add_to_navigation
|
@@ -77,7 +77,7 @@ module Casein
|
|
77
77
|
insert_sentinel = '<!-- SCAFFOLD_INSERT -->'
|
78
78
|
gsub_add_once plural_name, file_to_update, line_to_add, insert_sentinel
|
79
79
|
end
|
80
|
-
|
80
|
+
|
81
81
|
def gsub_add_once m, file, line, sentinel
|
82
82
|
unless options[:pretend]
|
83
83
|
gsub_file file, /(#{Regexp.escape("\n#{line}")})/mi do |match|
|
@@ -88,12 +88,12 @@ module Casein
|
|
88
88
|
end
|
89
89
|
end
|
90
90
|
end
|
91
|
-
|
91
|
+
|
92
92
|
def gsub_file(path, regexp, *args, &block)
|
93
93
|
content = File.read(path).gsub(regexp, *args, &block)
|
94
94
|
File.open(path, 'wb') { |file| file.write(content) }
|
95
95
|
end
|
96
|
-
|
96
|
+
|
97
97
|
def field_type(type)
|
98
98
|
case type.to_s.to_sym
|
99
99
|
when :integer, :float, :decimal then :text_field
|
@@ -105,7 +105,7 @@ module Casein
|
|
105
105
|
when :boolean then :check_box
|
106
106
|
else
|
107
107
|
:text_field
|
108
|
-
end
|
108
|
+
end
|
109
109
|
end
|
110
110
|
end
|
111
|
-
end
|
111
|
+
end
|
@@ -2,52 +2,51 @@
|
|
2
2
|
|
3
3
|
module Casein
|
4
4
|
class <%= class_name.pluralize %>Controller < Casein::CaseinController
|
5
|
-
|
6
5
|
## optional filters for defining usage according to Casein::AdminUser access_levels
|
7
|
-
#
|
8
|
-
#
|
6
|
+
# before_action :needs_admin, except: [:action1, :action2]
|
7
|
+
# before_action :needs_admin_or_current_user, only: [:action1, :action2]
|
9
8
|
<% unless @no_index %>
|
10
9
|
def index
|
11
10
|
@casein_page_title = '<%= plural_name.humanize.capitalize %>'
|
12
|
-
|
11
|
+
@<%= plural_name %> = <%= class_name %>.order(sort_order(:<%= attributes[0].name %>)).paginate page: params[:page]
|
13
12
|
end
|
14
|
-
|
13
|
+
<% end %>
|
15
14
|
def show
|
16
15
|
@casein_page_title = 'View <%= singular_name.humanize.downcase %>'
|
17
16
|
@<%= singular_name %> = <%= class_name %>.find params[:id]
|
18
17
|
end
|
19
|
-
|
18
|
+
<% unless @read_only %>
|
20
19
|
def new
|
21
20
|
@casein_page_title = 'Add a new <%= singular_name.humanize.downcase %>'
|
22
|
-
|
21
|
+
@<%= singular_name %> = <%= class_name %>.new
|
23
22
|
end
|
24
23
|
|
25
24
|
def create
|
26
25
|
@<%= singular_name %> = <%= class_name %>.new <%= singular_name %>_params
|
27
|
-
|
26
|
+
|
28
27
|
if @<%= singular_name %>.save
|
29
28
|
flash[:notice] = '<%= singular_name.humanize.capitalize %> created'
|
30
29
|
redirect_to casein_<%= @plural_route %>_path
|
31
30
|
else
|
32
31
|
flash.now[:warning] = 'There were problems when trying to create a new <%= singular_name.humanize.downcase %>'
|
33
|
-
render :
|
32
|
+
render action: :new
|
34
33
|
end
|
35
34
|
end
|
36
|
-
|
35
|
+
|
37
36
|
def update
|
38
37
|
@casein_page_title = 'Update <%= singular_name.humanize.downcase %>'
|
39
|
-
|
38
|
+
|
40
39
|
@<%= singular_name %> = <%= class_name %>.find params[:id]
|
41
|
-
|
40
|
+
|
42
41
|
if @<%= singular_name %>.update_attributes <%= singular_name %>_params
|
43
42
|
flash[:notice] = '<%= singular_name.humanize.capitalize %> has been updated'
|
44
43
|
redirect_to casein_<%= @plural_route %>_path
|
45
44
|
else
|
46
45
|
flash.now[:warning] = 'There were problems when trying to update this <%= singular_name.humanize.downcase %>'
|
47
|
-
render :
|
46
|
+
render action: :show
|
48
47
|
end
|
49
48
|
end
|
50
|
-
|
49
|
+
|
51
50
|
def destroy
|
52
51
|
@<%= singular_name %> = <%= class_name %>.find params[:id]
|
53
52
|
|
@@ -55,18 +54,17 @@ module Casein
|
|
55
54
|
flash[:notice] = '<%= singular_name.humanize.capitalize %> has been deleted'
|
56
55
|
redirect_to casein_<%= @plural_route %>_path
|
57
56
|
end
|
58
|
-
|
57
|
+
|
59
58
|
private
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
<% end %>
|
59
|
+
<%
|
60
|
+
permit_list = ""
|
61
|
+
attributes.each_with_index { |attribute|
|
62
|
+
permit_list += ", " unless permit_list.empty?
|
63
|
+
permit_list += ":#{attribute.name}"
|
64
|
+
}
|
65
|
+
%>
|
66
|
+
def <%= singular_name %>_params
|
67
|
+
params.require(:<%= singular_name %>).permit(<%= permit_list %>)
|
68
|
+
end<% end %>
|
71
69
|
end
|
72
|
-
end
|
70
|
+
end
|
@@ -2,7 +2,7 @@ class Create<%= class_name.pluralize %> < ActiveRecord::Migration
|
|
2
2
|
def self.up
|
3
3
|
create_table :<%= table_name %> do |t|
|
4
4
|
<% attributes.each do |attribute| %>t.<%= attribute.type %> :<%= attribute.name %>
|
5
|
-
|
5
|
+
<% end %>
|
6
6
|
t.timestamps
|
7
7
|
end
|
8
8
|
end
|
@@ -10,4 +10,4 @@ class Create<%= class_name.pluralize %> < ActiveRecord::Migration
|
|
10
10
|
def self.down
|
11
11
|
drop_table :<%= table_name %>
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
@@ -2,11 +2,11 @@
|
|
2
2
|
<% attribute_itr = 0 %>
|
3
3
|
<% while attribute_itr < attributes.count %>
|
4
4
|
<div class="row">
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
<div class="col-lg-6">
|
6
|
+
<%%= casein_<%= field_type(attributes[attribute_itr].type).to_s %> f, f.object, :<%= attributes[attribute_itr].name %><%= ", { readonly: true }" if @read_only %> %>
|
7
|
+
</div><% attribute_itr += 1 %>
|
8
|
+
<div class="col-lg-6">
|
9
|
+
<% if attribute_itr < attributes.count %><%%= casein_<%= field_type(attributes[attribute_itr].type).to_s %> f, f.object, :<%= attributes[attribute_itr].name %><%= ", { readonly: true }" if @read_only %> %><% end %>
|
10
|
+
</div><% attribute_itr += 1 %>
|
11
11
|
</div>
|
12
|
-
<% end %>
|
12
|
+
<% end %>
|
@@ -1,19 +1,19 @@
|
|
1
1
|
<!-- Scaffolding generated by Casein <%= casein_get_full_version_string %> -->
|
2
2
|
|
3
3
|
<table class="table table-striped table-hover table-condensed">
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
</table>
|
4
|
+
<thead>
|
5
|
+
<tr>
|
6
|
+
<% for attribute in attributes %><th><%%= casein_sort_link "<%= attribute.name.humanize %>", :<%= attribute.name %> %></th>
|
7
|
+
<% end %><% unless @read_only %><th> </th><% end %>
|
8
|
+
</tr>
|
9
|
+
</thead>
|
10
|
+
|
11
|
+
<%% <%= plural_name %>.each do |<%= singular_name %>| %>
|
12
|
+
<tr>
|
13
|
+
<% attributes.each do |attribute| %><td><%%= casein_table_cell_link <%= singular_name %>.<%= attribute.name %>, casein_<%= singular_name %>_path(<%= singular_name %>) %></td>
|
14
|
+
<% end %><% unless @read_only %><td class="delete">
|
15
|
+
<%%= link_to(casein_show_row_icon("trash"), casein_<%= singular_name %>_path(<%= singular_name %>), method: :delete, data: { confirm: "Are you sure you want to delete this <%= singular_name.humanize.downcase %>?" }) %>
|
16
|
+
</td><% end %>
|
17
|
+
</tr>
|
18
|
+
<%% end %>
|
19
|
+
</table>
|
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
<h2><%= plural_name.humanize.capitalize %><%%= casein_pagination_details @<%= plural_name %> %></h2>
|
4
4
|
|
5
|
-
<%%= render :
|
5
|
+
<%%= render partial: 'casein/<%= plural_name %>/table', locals: { <%= plural_name %>: @<%= plural_name %> } %>
|
6
6
|
|
7
7
|
<div class="text-center">
|
8
|
-
|
8
|
+
<%%= will_paginate @<%= plural_name %> %>
|
9
9
|
</div>
|
10
10
|
|
11
11
|
<%%= content_for :sidebar do %>
|
12
12
|
<% unless @read_only %>
|
13
|
-
|
13
|
+
<li><%%= link_to "#{casein_show_icon "plus-sign"}Add a new <%= singular_name.humanize.downcase %>".html_safe, new_casein_<%= singular_name %>_path %></li>
|
14
14
|
<% end %>
|
15
|
-
<%% end %>
|
15
|
+
<%% end %>
|
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
<h2>Add a new <%= singular_name.humanize.downcase %></h2>
|
4
4
|
|
5
|
-
<%%= form_for @<%= file_name %>, :
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
<%%= form_for @<%= file_name %>, url: casein_<%= @plural_route %>_path do |f| %>
|
6
|
+
|
7
|
+
<%%= render partial: 'casein/<%= plural_name %>/form', locals: { f: f } %>
|
8
|
+
|
9
|
+
<p class="submits">
|
10
|
+
<%%= link_to 'Cancel', casein_<%= @plural_route %>_path, class: 'btn btn-mini btn-danger' %>
|
11
|
+
<%%= f.submit "Add new <%= singular_name.humanize.downcase %>", class: "btn btn-mini btn-primary" %>
|
12
|
+
</p>
|
13
13
|
|
14
14
|
<%% end %>
|
15
15
|
|
16
16
|
<%%= content_for :sidebar do %>
|
17
|
-
|
18
|
-
<%% end %>
|
17
|
+
<li><%%= link_to "#{casein_show_icon "th-list"}Back to list".html_safe, casein_<%= @plural_route %>_path %></li>
|
18
|
+
<%% end %>
|
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
<h2>View <%= singular_name.humanize.downcase %></h2>
|
4
4
|
|
5
|
-
<%%= form_for @<%= file_name %>, :
|
5
|
+
<%%= form_for @<%= file_name %>, url: casein_<%= singular_name %>_path(@<%= singular_name %>) do |f| %>
|
6
6
|
|
7
|
-
|
8
|
-
<% unless @read_only %>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
<%%= render partial: 'casein/<%= plural_name %>/form', locals: { f: f } %>
|
8
|
+
<% unless @read_only %>
|
9
|
+
<p class="submits">
|
10
|
+
<%%= link_to 'Cancel', casein_<%= @plural_route %>_path, class: 'btn btn-mini btn-danger' %>
|
11
|
+
<%%= f.submit "Save changes", class: "btn btn-mini btn-primary" %>
|
12
|
+
</p>
|
13
13
|
<% end %>
|
14
14
|
<%% end %>
|
15
15
|
|
16
16
|
<%%= content_for :sidebar do %>
|
17
|
-
|
18
|
-
<%% end %>
|
17
|
+
<li><%%= link_to "#{casein_show_icon "th-list"}Back to list".html_safe, casein_<%= @plural_route %>_path %></li>
|
18
|
+
<%% end %>
|
data/lib/railties/tasks.rake
CHANGED
@@ -13,7 +13,8 @@ namespace :casein do
|
|
13
13
|
admin = Casein::AdminUser.new({ login: 'admin', name: 'Admin', email: ENV['email'], access_level: $CASEIN_USER_ACCESS_LEVEL_ADMIN, password: password, password_confirmation: password })
|
14
14
|
|
15
15
|
unless admin.save
|
16
|
-
puts "[Casein] Failed
|
16
|
+
puts "[Casein] Failed. Rails said:"
|
17
|
+
puts admin.errors.full_messages.join("\n")
|
17
18
|
else
|
18
19
|
puts "[Casein] Created new admin user with username 'admin' and password '#{password}'"
|
19
20
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: casein
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.2.0.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:
|
11
|
+
date: 2016-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: will_paginate
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.1.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: 3.1.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: authlogic
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.
|
33
|
+
version: 3.5.0
|
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.
|
40
|
+
version: 3.5.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: scrypt
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.3.
|
61
|
+
version: 3.3.7
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 3.3.
|
68
|
+
version: 3.3.7
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sass-rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,9 +165,9 @@ files:
|
|
165
165
|
- app/assets/images/casein/casein.png
|
166
166
|
- app/assets/javascripts/casein/casein.js
|
167
167
|
- app/assets/javascripts/casein/html5shiv.js
|
168
|
-
- app/assets/stylesheets/casein/casein-bootstrap-overrides.
|
169
|
-
- app/assets/stylesheets/casein/casein.
|
170
|
-
- app/assets/stylesheets/casein/login.
|
168
|
+
- app/assets/stylesheets/casein/casein-bootstrap-overrides.scss
|
169
|
+
- app/assets/stylesheets/casein/casein.scss
|
170
|
+
- app/assets/stylesheets/casein/login.scss
|
171
171
|
- app/controllers/casein/admin_user_sessions_controller.rb
|
172
172
|
- app/controllers/casein/admin_users_controller.rb
|
173
173
|
- app/controllers/casein/casein_controller.rb
|
@@ -195,8 +195,10 @@ files:
|
|
195
195
|
- lib/casein/version.rb
|
196
196
|
- lib/generators/casein/install/USAGE
|
197
197
|
- lib/generators/casein/install/install_generator.rb
|
198
|
+
- lib/generators/casein/install/templates/app/assets/javascripts/casein/auth_custom.js
|
198
199
|
- lib/generators/casein/install/templates/app/assets/javascripts/casein/custom.js
|
199
|
-
- lib/generators/casein/install/templates/app/assets/stylesheets/casein/
|
200
|
+
- lib/generators/casein/install/templates/app/assets/stylesheets/casein/auth_custom.scss
|
201
|
+
- lib/generators/casein/install/templates/app/assets/stylesheets/casein/custom.scss
|
200
202
|
- lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb
|
201
203
|
- lib/generators/casein/install/templates/app/views/casein/layouts/_tab_navigation.html.erb
|
202
204
|
- lib/generators/casein/install/templates/app/views/casein/layouts/_top_navigation.html.erb
|
@@ -233,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
235
|
version: '0'
|
234
236
|
requirements: []
|
235
237
|
rubyforge_project:
|
236
|
-
rubygems_version: 2.4.5
|
238
|
+
rubygems_version: 2.4.5.1
|
237
239
|
signing_key:
|
238
240
|
specification_version: 4
|
239
241
|
summary: A lightweight CMS toolkit for Ruby on Rails, based on Bootstrap.
|