casein 4.0.0 → 5.0.0.0
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.
- checksums.yaml +4 -4
- data/LICENSE +246 -0
- data/PUBLIC_VERSION.yml +2 -2
- data/README.rdoc +73 -49
- data/Rakefile +7 -5
- data/app/assets/fonts/casein/glyphiconshalflings-regular.eot +0 -0
- data/app/assets/fonts/casein/glyphiconshalflings-regular.otf +0 -0
- data/app/assets/fonts/casein/glyphiconshalflings-regular.svg +175 -0
- data/app/assets/fonts/casein/glyphiconshalflings-regular.ttf +0 -0
- data/app/assets/fonts/casein/glyphiconshalflings-regular.woff +0 -0
- data/app/assets/images/casein/casein.png +0 -0
- data/app/assets/javascripts/casein/bootstrap.js +1966 -0
- data/app/assets/javascripts/casein/casein.js +34 -19
- data/app/assets/javascripts/casein/html5shiv.js +8 -0
- data/app/assets/stylesheets/casein/bootstrap-glyphicons.css.scss +2 -0
- data/app/assets/stylesheets/casein/bootstrap.css +4692 -0
- data/app/assets/stylesheets/casein/casein-bootstrap-overrides.css.scss +76 -0
- data/app/assets/stylesheets/casein/casein.css.scss +258 -3
- data/app/assets/stylesheets/casein/login.css.scss +48 -109
- data/app/controllers/casein/{user_sessions_controller.rb → admin_user_sessions_controller.rb} +6 -10
- data/app/controllers/casein/admin_users_controller.rb +124 -0
- data/app/controllers/casein/casein_controller.rb +11 -9
- data/app/controllers/casein/password_resets_controller.rb +8 -10
- data/app/helpers/casein/casein_helper.rb +94 -31
- data/app/mailers/casein/casein_notification.rb +13 -13
- data/app/models/casein/{user.rb → admin_user.rb} +2 -2
- data/app/models/casein/{user_session.rb → admin_user_session.rb} +1 -1
- data/app/views/casein/admin_user_sessions/new.html.erb +56 -0
- data/app/views/casein/admin_users/index.html.erb +39 -0
- data/app/views/casein/admin_users/new.html.erb +57 -0
- data/app/views/casein/admin_users/show.html.erb +104 -0
- data/app/views/casein/casein/blank.html.erb +12 -1
- data/app/views/casein/casein_notification/generate_new_password.erb +1 -1
- data/app/views/casein/casein_notification/new_user_information.erb +1 -1
- data/app/views/casein/casein_notification/password_reset_instructions.erb +1 -1
- data/app/views/casein/password_resets/edit.html.erb +21 -33
- data/app/views/layouts/casein_auth.html.erb +34 -22
- data/app/views/layouts/casein_main.html.erb +111 -64
- data/config/initializers/will_paginate.rb +40 -0
- data/config/routes.rb +2 -2
- data/lib/casein.rb +9 -3
- data/lib/casein/engine.rb +5 -1
- data/lib/generators/casein/install/install_generator.rb +3 -3
- data/lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb +10 -11
- data/lib/generators/casein/install/templates/app/views/casein/layouts/{_left_navigation.html.erb → _tab_navigation.html.erb} +0 -0
- data/lib/generators/casein/install/templates/app/views/casein/layouts/_top_navigation.html.erb +4 -0
- data/lib/generators/casein/install/templates/db/migrate/{casein_create_users.rb → casein_create_admin_users.rb} +3 -3
- data/lib/generators/casein/scaffold/scaffold_generator.rb +20 -8
- data/lib/generators/casein/scaffold/templates/controller.rb +6 -6
- data/lib/generators/casein/scaffold/templates/views/_form.html.erb +11 -8
- data/lib/generators/casein/scaffold/templates/views/_table.html.erb +12 -10
- data/lib/generators/casein/scaffold/templates/views/index.html.erb +7 -3
- data/lib/generators/casein/scaffold/templates/views/new.html.erb +3 -3
- data/lib/generators/casein/scaffold/templates/views/show.html.erb +5 -5
- data/lib/railties/tasks.rake +15 -13
- metadata +67 -46
- data/MIT-LICENSE +0 -21
- data/app/assets/images/casein/header.png +0 -0
- data/app/assets/images/casein/icons/add.png +0 -0
- data/app/assets/images/casein/icons/delete.png +0 -0
- data/app/assets/images/casein/icons/table.png +0 -0
- data/app/assets/images/casein/login/alertBg.png +0 -0
- data/app/assets/images/casein/login/background.png +0 -0
- data/app/assets/images/casein/login/bottom.png +0 -0
- data/app/assets/images/casein/login/loginBoxBg.png +0 -0
- data/app/assets/images/casein/login/loginBoxBottom.png +0 -0
- data/app/assets/images/casein/login/loginBoxTop.png +0 -0
- data/app/assets/images/casein/login/loginSubmit.png +0 -0
- data/app/assets/images/casein/login/recoverSubmit.png +0 -0
- data/app/assets/images/casein/login/top.png +0 -0
- data/app/assets/images/casein/nav.png +0 -0
- data/app/assets/images/casein/rightNav.png +0 -0
- data/app/assets/images/casein/rightNavButton.png +0 -0
- data/app/assets/images/casein/visitSiteNav.png +0 -0
- data/app/assets/javascripts/casein/login.js +0 -27
- data/app/assets/stylesheets/casein/elements.css.scss +0 -307
- data/app/assets/stylesheets/casein/screen.css.scss +0 -224
- data/app/controllers/casein/users_controller.rb +0 -108
- data/app/views/casein/user_sessions/new.html.erb +0 -66
- data/app/views/casein/users/index.html.erb +0 -35
- data/app/views/casein/users/new.html.erb +0 -46
- data/app/views/casein/users/show.html.erb +0 -94
- data/lib/generators/casein/install/templates/app/views/casein/layouts/_right_navigation.html.erb +0 -1
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
module Casein
|
|
4
4
|
class <%= class_name.pluralize %>Controller < Casein::CaseinController
|
|
5
5
|
|
|
6
|
-
## optional filters for defining usage according to Casein::
|
|
6
|
+
## optional filters for defining usage according to Casein::AdminUser access_levels
|
|
7
7
|
# before_filter :needs_admin, :except => [:action1, :action2]
|
|
8
8
|
# before_filter :needs_admin_or_current_user, :only => [:action1, :action2]
|
|
9
|
-
|
|
9
|
+
<% unless @no_index %>
|
|
10
10
|
def index
|
|
11
11
|
@casein_page_title = '<%= plural_name.humanize.capitalize %>'
|
|
12
|
-
@<%= plural_name %> = <%= class_name %>.paginate :page => params[:page]
|
|
12
|
+
@<%= plural_name %> = <%= class_name %>.order(sort_order(:<%= attributes[0].name %>)).paginate :page => params[:page]
|
|
13
13
|
end
|
|
14
|
-
|
|
14
|
+
<% end %>
|
|
15
15
|
def show
|
|
16
16
|
@casein_page_title = 'View <%= singular_name.humanize.downcase %>'
|
|
17
17
|
@<%= singular_name %> = <%= class_name %>.find params[:id]
|
|
18
18
|
end
|
|
19
|
-
|
|
19
|
+
<% unless @read_only %>
|
|
20
20
|
def new
|
|
21
21
|
@casein_page_title = 'Add a new <%= singular_name.humanize.downcase %>'
|
|
22
22
|
@<%= singular_name %> = <%= class_name %>.new
|
|
@@ -67,6 +67,6 @@ module Casein
|
|
|
67
67
|
def <%= singular_name %>_params
|
|
68
68
|
params.require(:<%= singular_name %>).permit(<%= permit_list %>)
|
|
69
69
|
end
|
|
70
|
-
|
|
70
|
+
<% end %>
|
|
71
71
|
end
|
|
72
72
|
end
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
<!-- Scaffolding generated by Casein <%= casein_get_full_version_string %> -->
|
|
2
|
-
<%
|
|
3
|
-
<%
|
|
4
|
-
<div class="
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<
|
|
2
|
+
<% attribute_itr = 0 %>
|
|
3
|
+
<% while attribute_itr < attributes.count %>
|
|
4
|
+
<div class="row">
|
|
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
|
+
</div>
|
|
12
|
+
<% end %>
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
<!-- Scaffolding generated by Casein <%= casein_get_full_version_string %> -->
|
|
2
2
|
|
|
3
|
-
<table
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
<table class="table table-striped table-hover table-condensed">
|
|
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>
|
|
8
10
|
|
|
9
|
-
<%% <%= plural_name %>.
|
|
10
|
-
<tr
|
|
11
|
+
<%% <%= plural_name %>.each do |<%= singular_name %>| %>
|
|
12
|
+
<tr>
|
|
11
13
|
<% attributes.each do |attribute| %><td><%%= casein_table_cell_link <%= singular_name %>.<%= attribute.name %>, casein_<%= singular_name %>_path(<%= singular_name %>) %></td>
|
|
12
|
-
<% end %><td class="delete">
|
|
13
|
-
<%%= link_to(casein_show_row_icon("
|
|
14
|
-
</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 %>
|
|
15
17
|
</tr>
|
|
16
18
|
<%% end %>
|
|
17
19
|
</table>
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
<!-- Scaffolding generated by Casein <%= casein_get_full_version_string %> -->
|
|
2
2
|
|
|
3
|
-
<h2><%= plural_name.humanize.capitalize %></h2>
|
|
3
|
+
<h2><%= plural_name.humanize.capitalize %><%%= casein_pagination_details @<%= plural_name %> %></h2>
|
|
4
4
|
|
|
5
5
|
<%%= render :partial => 'casein/<%= plural_name %>/table', :locals => { :<%= plural_name %> => @<%= plural_name %> } %>
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
<div class="text-center">
|
|
8
|
+
<%%= will_paginate @<%= plural_name %> %>
|
|
9
|
+
</div>
|
|
8
10
|
|
|
9
11
|
<%%= content_for :sidebar do %>
|
|
10
|
-
|
|
12
|
+
<% unless @read_only %>
|
|
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
|
+
<% end %>
|
|
11
15
|
<%% end %>
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
<%%= render :partial => 'casein/<%= plural_name %>/form', :locals => { :f => f } %>
|
|
8
8
|
|
|
9
9
|
<p class="submits">
|
|
10
|
-
<%%= link_to 'Cancel', casein_<%= @plural_route %>_path, :class => '
|
|
11
|
-
<%%= f.submit "Add new <%= singular_name.humanize.downcase %>", :class => "
|
|
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
12
|
</p>
|
|
13
13
|
|
|
14
14
|
<%% end %>
|
|
15
15
|
|
|
16
16
|
<%%= content_for :sidebar do %>
|
|
17
|
-
<li><%%= link_to "#{casein_show_icon "
|
|
17
|
+
<li><%%= link_to "#{casein_show_icon "th-list"}Back to list".html_safe, casein_<%= @plural_route %>_path %></li>
|
|
18
18
|
<%% end %>
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
<%%= form_for @<%= file_name %>, :url => casein_<%= singular_name %>_path(@<%= singular_name %>) do |f| %>
|
|
6
6
|
|
|
7
7
|
<%%= render :partial => 'casein/<%= plural_name %>/form', :locals => { :f => f } %>
|
|
8
|
-
|
|
8
|
+
<% unless @read_only %>
|
|
9
9
|
<p class="submits">
|
|
10
|
-
|
|
11
|
-
<%%= f.submit "Save changes", :class => "
|
|
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
12
|
</p>
|
|
13
|
-
|
|
13
|
+
<% end %>
|
|
14
14
|
<%% end %>
|
|
15
15
|
|
|
16
16
|
<%%= content_for :sidebar do %>
|
|
17
|
-
<li><%%= link_to "#{casein_show_icon "
|
|
17
|
+
<li><%%= link_to "#{casein_show_icon "th-list"}Back to list".html_safe, casein_<%= @plural_route %>_path %></li>
|
|
18
18
|
<%% end %>
|
data/lib/railties/tasks.rake
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
require 'authlogic'
|
|
2
|
+
require 'securerandom'
|
|
2
3
|
|
|
3
4
|
namespace :casein do
|
|
4
|
-
|
|
5
|
+
|
|
5
6
|
namespace :users do
|
|
6
7
|
|
|
7
8
|
desc "Create default admin user"
|
|
8
|
-
task :
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
task create_admin: :environment do
|
|
10
|
+
|
|
11
|
+
raise "Usage: specify email address, e.g. rake [task] email=mail@caseincms.com" unless ENV.include?("email")
|
|
12
|
+
|
|
13
|
+
random_password = random_string = SecureRandom.hex
|
|
14
|
+
admin = Casein::AdminUser.new({ login: 'admin', name: 'Admin', email: ENV['email'], access_level: $CASEIN_USER_ACCESS_LEVEL_ADMIN, password: random_password, password_confirmation: random_password })
|
|
15
|
+
|
|
14
16
|
unless admin.save
|
|
15
17
|
puts "[Casein] Failed: check that the 'admin' account doesn't already exist."
|
|
16
18
|
else
|
|
17
|
-
puts "[Casein] Created new admin user with
|
|
18
|
-
end
|
|
19
|
+
puts "[Casein] Created new admin user with username 'admin' and password '#{random_password}'"
|
|
20
|
+
end
|
|
19
21
|
end
|
|
20
22
|
|
|
21
23
|
desc "Remove all users"
|
|
22
|
-
task :
|
|
23
|
-
users = Casein::
|
|
24
|
+
task remove_all: :environment do
|
|
25
|
+
users = Casein::AdminUser.all
|
|
24
26
|
num_users = users.size
|
|
25
|
-
users.
|
|
26
|
-
puts "[Casein] Removed #{num_users} user(s)"
|
|
27
|
+
users.destroy_all
|
|
28
|
+
puts "[Casein] Removed #{num_users} user(s)"
|
|
27
29
|
end
|
|
28
30
|
|
|
29
31
|
end
|
metadata
CHANGED
|
@@ -1,112 +1,132 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: casein
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 5.0.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: 2014-06-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: casein
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
13
27
|
- !ruby/object:Gem::Dependency
|
|
14
28
|
name: will_paginate
|
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
|
16
30
|
requirements:
|
|
17
31
|
- - '='
|
|
18
32
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 3.0.
|
|
33
|
+
version: 3.0.5
|
|
20
34
|
type: :runtime
|
|
21
35
|
prerelease: false
|
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
37
|
requirements:
|
|
24
38
|
- - '='
|
|
25
39
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 3.0.
|
|
40
|
+
version: 3.0.5
|
|
27
41
|
- !ruby/object:Gem::Dependency
|
|
28
42
|
name: authlogic
|
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
|
30
44
|
requirements:
|
|
31
45
|
- - '='
|
|
32
46
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 3.
|
|
47
|
+
version: 3.4.2
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - '='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: 3.4.2
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: scrypt
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - '='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 1.2.1
|
|
34
62
|
type: :runtime
|
|
35
63
|
prerelease: false
|
|
36
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
65
|
requirements:
|
|
38
66
|
- - '='
|
|
39
67
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
68
|
+
version: 1.2.1
|
|
41
69
|
- !ruby/object:Gem::Dependency
|
|
42
70
|
name: jquery-rails
|
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
|
44
72
|
requirements:
|
|
45
|
-
- -
|
|
73
|
+
- - ">="
|
|
46
74
|
- !ruby/object:Gem::Version
|
|
47
75
|
version: '0'
|
|
48
76
|
type: :runtime
|
|
49
77
|
prerelease: false
|
|
50
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
79
|
requirements:
|
|
52
|
-
- -
|
|
80
|
+
- - ">="
|
|
53
81
|
- !ruby/object:Gem::Version
|
|
54
82
|
version: '0'
|
|
55
|
-
description:
|
|
83
|
+
description: A lightweight CMS toolkit for Ruby on Rails, based on Bootstrap.
|
|
56
84
|
email: mail@russellquinn.com
|
|
57
85
|
executables: []
|
|
58
86
|
extensions: []
|
|
59
87
|
extra_rdoc_files:
|
|
88
|
+
- LICENSE
|
|
60
89
|
- README.rdoc
|
|
61
90
|
files:
|
|
62
91
|
- Gemfile
|
|
63
|
-
-
|
|
92
|
+
- LICENSE
|
|
64
93
|
- PUBLIC_VERSION.yml
|
|
65
94
|
- README.rdoc
|
|
66
95
|
- Rakefile
|
|
96
|
+
- app/assets/fonts/casein/glyphiconshalflings-regular.eot
|
|
97
|
+
- app/assets/fonts/casein/glyphiconshalflings-regular.otf
|
|
98
|
+
- app/assets/fonts/casein/glyphiconshalflings-regular.svg
|
|
99
|
+
- app/assets/fonts/casein/glyphiconshalflings-regular.ttf
|
|
100
|
+
- app/assets/fonts/casein/glyphiconshalflings-regular.woff
|
|
67
101
|
- app/assets/images/casein/casein.png
|
|
68
|
-
- app/assets/
|
|
69
|
-
- app/assets/images/casein/icons/add.png
|
|
70
|
-
- app/assets/images/casein/icons/delete.png
|
|
71
|
-
- app/assets/images/casein/icons/table.png
|
|
72
|
-
- app/assets/images/casein/login/alertBg.png
|
|
73
|
-
- app/assets/images/casein/login/background.png
|
|
74
|
-
- app/assets/images/casein/login/bottom.png
|
|
75
|
-
- app/assets/images/casein/login/loginBoxBg.png
|
|
76
|
-
- app/assets/images/casein/login/loginBoxBottom.png
|
|
77
|
-
- app/assets/images/casein/login/loginBoxTop.png
|
|
78
|
-
- app/assets/images/casein/login/loginSubmit.png
|
|
79
|
-
- app/assets/images/casein/login/recoverSubmit.png
|
|
80
|
-
- app/assets/images/casein/login/top.png
|
|
81
|
-
- app/assets/images/casein/nav.png
|
|
82
|
-
- app/assets/images/casein/rightNav.png
|
|
83
|
-
- app/assets/images/casein/rightNavButton.png
|
|
84
|
-
- app/assets/images/casein/visitSiteNav.png
|
|
102
|
+
- app/assets/javascripts/casein/bootstrap.js
|
|
85
103
|
- app/assets/javascripts/casein/casein.js
|
|
86
|
-
- app/assets/javascripts/casein/
|
|
104
|
+
- app/assets/javascripts/casein/html5shiv.js
|
|
105
|
+
- app/assets/stylesheets/casein/bootstrap-glyphicons.css.scss
|
|
106
|
+
- app/assets/stylesheets/casein/bootstrap.css
|
|
107
|
+
- app/assets/stylesheets/casein/casein-bootstrap-overrides.css.scss
|
|
87
108
|
- app/assets/stylesheets/casein/casein.css.scss
|
|
88
|
-
- app/assets/stylesheets/casein/elements.css.scss
|
|
89
109
|
- app/assets/stylesheets/casein/login.css.scss
|
|
90
|
-
- app/
|
|
110
|
+
- app/controllers/casein/admin_user_sessions_controller.rb
|
|
111
|
+
- app/controllers/casein/admin_users_controller.rb
|
|
91
112
|
- app/controllers/casein/casein_controller.rb
|
|
92
113
|
- app/controllers/casein/password_resets_controller.rb
|
|
93
|
-
- app/controllers/casein/user_sessions_controller.rb
|
|
94
|
-
- app/controllers/casein/users_controller.rb
|
|
95
114
|
- app/helpers/casein/casein_helper.rb
|
|
96
115
|
- app/mailers/casein/casein_notification.rb
|
|
97
|
-
- app/models/casein/
|
|
98
|
-
- app/models/casein/
|
|
116
|
+
- app/models/casein/admin_user.rb
|
|
117
|
+
- app/models/casein/admin_user_session.rb
|
|
118
|
+
- app/views/casein/admin_user_sessions/new.html.erb
|
|
119
|
+
- app/views/casein/admin_users/index.html.erb
|
|
120
|
+
- app/views/casein/admin_users/new.html.erb
|
|
121
|
+
- app/views/casein/admin_users/show.html.erb
|
|
99
122
|
- app/views/casein/casein/blank.html.erb
|
|
100
123
|
- app/views/casein/casein_notification/generate_new_password.erb
|
|
101
124
|
- app/views/casein/casein_notification/new_user_information.erb
|
|
102
125
|
- app/views/casein/casein_notification/password_reset_instructions.erb
|
|
103
126
|
- app/views/casein/password_resets/edit.html.erb
|
|
104
|
-
- app/views/casein/user_sessions/new.html.erb
|
|
105
|
-
- app/views/casein/users/index.html.erb
|
|
106
|
-
- app/views/casein/users/new.html.erb
|
|
107
|
-
- app/views/casein/users/show.html.erb
|
|
108
127
|
- app/views/layouts/casein_auth.html.erb
|
|
109
128
|
- app/views/layouts/casein_main.html.erb
|
|
129
|
+
- config/initializers/will_paginate.rb
|
|
110
130
|
- config/routes.rb
|
|
111
131
|
- lib/casein.rb
|
|
112
132
|
- lib/casein/engine.rb
|
|
@@ -115,9 +135,9 @@ files:
|
|
|
115
135
|
- lib/generators/casein/install/templates/app/assets/javascripts/casein/custom.js
|
|
116
136
|
- lib/generators/casein/install/templates/app/assets/stylesheets/casein/custom.css.scss
|
|
117
137
|
- lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb
|
|
118
|
-
- lib/generators/casein/install/templates/app/views/casein/layouts/
|
|
119
|
-
- lib/generators/casein/install/templates/app/views/casein/layouts/
|
|
120
|
-
- lib/generators/casein/install/templates/db/migrate/
|
|
138
|
+
- lib/generators/casein/install/templates/app/views/casein/layouts/_tab_navigation.html.erb
|
|
139
|
+
- lib/generators/casein/install/templates/app/views/casein/layouts/_top_navigation.html.erb
|
|
140
|
+
- lib/generators/casein/install/templates/db/migrate/casein_create_admin_users.rb
|
|
121
141
|
- lib/generators/casein/install/templates/public/robots.txt
|
|
122
142
|
- lib/generators/casein/scaffold/USAGE
|
|
123
143
|
- lib/generators/casein/scaffold/scaffold_generator.rb
|
|
@@ -131,7 +151,8 @@ files:
|
|
|
131
151
|
- lib/generators/casein/scaffold/templates/views/show.html.erb
|
|
132
152
|
- lib/railties/tasks.rake
|
|
133
153
|
homepage: http://github.com/russellquinn/casein
|
|
134
|
-
licenses:
|
|
154
|
+
licenses:
|
|
155
|
+
- MIT
|
|
135
156
|
metadata: {}
|
|
136
157
|
post_install_message:
|
|
137
158
|
rdoc_options: []
|
|
@@ -139,18 +160,18 @@ require_paths:
|
|
|
139
160
|
- lib
|
|
140
161
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
162
|
requirements:
|
|
142
|
-
- -
|
|
163
|
+
- - ">="
|
|
143
164
|
- !ruby/object:Gem::Version
|
|
144
165
|
version: '0'
|
|
145
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
167
|
requirements:
|
|
147
|
-
- -
|
|
168
|
+
- - ">="
|
|
148
169
|
- !ruby/object:Gem::Version
|
|
149
170
|
version: '0'
|
|
150
171
|
requirements: []
|
|
151
172
|
rubyforge_project:
|
|
152
|
-
rubygems_version: 2.
|
|
173
|
+
rubygems_version: 2.2.2
|
|
153
174
|
signing_key:
|
|
154
175
|
specification_version: 4
|
|
155
|
-
summary: A lightweight Ruby on Rails
|
|
176
|
+
summary: A lightweight CMS toolkit for Ruby on Rails, based on Bootstrap.
|
|
156
177
|
test_files: []
|
data/MIT-LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2013 Russell Quinn
|
|
2
|
-
Copyright (c) 2010-2012 Spoiled Milk ApS and Russell Quinn
|
|
3
|
-
|
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
5
|
-
a copy of this software and associated documentation files (the
|
|
6
|
-
"Software"), to deal in the Software without restriction, including
|
|
7
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
8
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
9
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
10
|
-
the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be
|
|
13
|
-
included in all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
17
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
19
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
20
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
21
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|