caseadilla 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +33 -0
- data/Rakefile +1 -0
- data/app/assets/fonts/caseadilla/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/caseadilla/glyphicons-halflings-regular.svg +229 -0
- data/app/assets/fonts/caseadilla/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/caseadilla/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/images/caseadilla/caseadilla.png +0 -0
- data/app/assets/javascripts/caseadilla/bootstrap.js +2114 -0
- data/app/assets/javascripts/caseadilla/bootstrap3-wysihtml5.js +521 -0
- data/app/assets/javascripts/caseadilla/caseadilla.js +51 -0
- data/app/assets/javascripts/caseadilla/html5shiv.js +8 -0
- data/app/assets/javascripts/caseadilla/wysihtml5-0.3.0.min.js +261 -0
- data/app/assets/stylesheets/caseadilla/bootstrap-glyphicons.css.scss +2 -0
- data/app/assets/stylesheets/caseadilla/bootstrap-theme.css +442 -0
- data/app/assets/stylesheets/caseadilla/bootstrap-wysihtml5.css +102 -0
- data/app/assets/stylesheets/caseadilla/bootstrap.css +6203 -0
- data/app/assets/stylesheets/caseadilla/caseadilla-bootstrap-overrides.css.scss +80 -0
- data/app/assets/stylesheets/caseadilla/caseadilla.scss +270 -0
- data/app/assets/stylesheets/caseadilla/login.css.scss +81 -0
- data/app/controllers/caseadilla/caseadilla_controller.rb +57 -0
- data/app/controllers/caseadilla/caseadilla_user_sessions_controller.rb +36 -0
- data/app/controllers/caseadilla/password_resets_controller.rb +64 -0
- data/app/controllers/caseadilla/roles_controller.rb +65 -0
- data/app/controllers/caseadilla/users_controller.rb +118 -0
- data/app/helpers/caseadilla/caseadilla_helper.rb +262 -0
- data/app/mailers/caseadilla/caseadilla_notification.rb +39 -0
- data/app/views/caseadilla/caseadilla/blank.html.erb +12 -0
- data/app/views/caseadilla/caseadilla_notification/generate_new_password.erb +12 -0
- data/app/views/caseadilla/caseadilla_notification/new_user_information.erb +12 -0
- data/app/views/caseadilla/caseadilla_notification/password_reset_instructions.erb +11 -0
- data/app/views/caseadilla/caseadilla_user_sessions/new.html.erb +39 -0
- data/app/views/caseadilla/roles/_form.html.erb +11 -0
- data/app/views/caseadilla/roles/_table.html.erb +28 -0
- data/app/views/caseadilla/roles/index.html.erb +15 -0
- data/app/views/caseadilla/roles/new.html.erb +18 -0
- data/app/views/caseadilla/roles/show.html.erb +18 -0
- data/app/views/caseadilla/users/index.html.erb +37 -0
- data/app/views/caseadilla/users/new.html.erb +50 -0
- data/app/views/caseadilla/users/show.html.erb +39 -0
- data/app/views/layouts/caseadilla_auth.html.erb +36 -0
- data/app/views/layouts/caseadilla_main.html.erb +119 -0
- data/caseadilla.gemspec +49 -0
- data/config/initializers/will_paginate.rb +40 -0
- data/config/routes.rb +23 -0
- data/lib/caseadilla.rb +14 -0
- data/lib/caseadilla/engine.rb +35 -0
- data/lib/caseadilla/version.rb +3 -0
- data/lib/generators/caseadilla/install/install_generator.rb +154 -0
- data/lib/generators/caseadilla/install/templates/app/assets/javascripts/caseadilla/custom.js +2 -0
- data/lib/generators/caseadilla/install/templates/app/assets/stylesheets/caseadilla/custom.css.scss +2 -0
- data/lib/generators/caseadilla/install/templates/app/helpers/caseadilla/config_helper.rb +45 -0
- data/lib/generators/caseadilla/install/templates/app/models/user.rb +24 -0
- data/lib/generators/caseadilla/install/templates/app/views/caseadilla/layouts/_tab_navigation.html.erb +2 -0
- data/lib/generators/caseadilla/install/templates/app/views/caseadilla/layouts/_top_navigation.html.erb +4 -0
- data/lib/generators/caseadilla/install/templates/public/robots.txt +5 -0
- data/lib/generators/caseadilla/install/templates/steak/config/initializers/caseadilla.rb +8 -0
- data/lib/generators/caseadilla/install/templates/steak/db/migrate/add_name_to_users.rb +9 -0
- data/lib/generators/caseadilla/install/templates/veggie/config/initializers/caseadilla.rb +8 -0
- data/lib/generators/caseadilla/scaffold/scaffold_generator.rb +111 -0
- data/lib/generators/caseadilla/scaffold/templates/controller.rb +72 -0
- data/lib/generators/caseadilla/scaffold/templates/migration.rb +13 -0
- data/lib/generators/caseadilla/scaffold/templates/model.rb +3 -0
- data/lib/generators/caseadilla/scaffold/templates/views/_form.html.erb +12 -0
- data/lib/generators/caseadilla/scaffold/templates/views/_table.html.erb +19 -0
- data/lib/generators/caseadilla/scaffold/templates/views/index.html.erb +15 -0
- data/lib/generators/caseadilla/scaffold/templates/views/new.html.erb +18 -0
- data/lib/generators/caseadilla/scaffold/templates/views/show.html.erb +18 -0
- data/lib/railties/tasks.rake +32 -0
- metadata +231 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
######################################################
|
2
|
+
## Note: It is HIGHLY recommended that you use the
|
3
|
+
## the caseadilla installer to change the flavor by
|
4
|
+
## overwriting existing files. Example:
|
5
|
+
## $ rails g caseadilla:install chicken
|
6
|
+
######################################################
|
7
|
+
|
8
|
+
Caseadilla::Engine.flavor = :veggie
|
@@ -0,0 +1,111 @@
|
|
1
|
+
module Caseadilla
|
2
|
+
class ScaffoldGenerator < Rails::Generators::NamedBase
|
3
|
+
|
4
|
+
include Caseadilla::CaseadillaHelper
|
5
|
+
include Rails::Generators::Migration
|
6
|
+
source_root File.expand_path('../templates', __FILE__)
|
7
|
+
|
8
|
+
argument :attributes, :type => :array, :required => true, :desc => "attribute list required"
|
9
|
+
|
10
|
+
class_options :create_model => false, :read_only => false, :no_index => false
|
11
|
+
|
12
|
+
def self.next_migration_number dirname
|
13
|
+
if ActiveRecord::Base.timestamped_migrations
|
14
|
+
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
15
|
+
else
|
16
|
+
"%.3d" % (current_migration_number(dirname) + 1)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def generate_files
|
21
|
+
@plural_route = (plural_name != singular_name) ? plural_name : "#{plural_name}_index"
|
22
|
+
@read_only = options[:read_only]
|
23
|
+
@no_index = options[:no_index]
|
24
|
+
|
25
|
+
template 'controller.rb', "app/controllers/caseadilla/#{plural_name}_controller.rb"
|
26
|
+
template 'views/index.html.erb', "app/views/caseadilla/#{plural_name}/index.html.erb" unless @no_index
|
27
|
+
template 'views/show.html.erb', "app/views/caseadilla/#{plural_name}/show.html.erb"
|
28
|
+
template 'views/new.html.erb', "app/views/caseadilla/#{plural_name}/new.html.erb" unless @read_only
|
29
|
+
template 'views/_form.html.erb', "app/views/caseadilla/#{plural_name}/_form.html.erb"
|
30
|
+
template 'views/_table.html.erb', "app/views/caseadilla/#{plural_name}/_table.html.erb"
|
31
|
+
|
32
|
+
add_namespace_to_routes
|
33
|
+
add_to_routes
|
34
|
+
add_to_navigation unless @no_index
|
35
|
+
|
36
|
+
if options[:create_model]
|
37
|
+
template 'model.rb', "app/models/#{singular_name}.rb"
|
38
|
+
migration_template 'migration.rb', "db/migrate/create_#{plural_name}.rb"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
protected
|
43
|
+
|
44
|
+
#replacements for standard Rails generator route. This one only adds once
|
45
|
+
def add_namespace_to_routes
|
46
|
+
puts " caseadilla adding namespace to routes.rb"
|
47
|
+
file_to_update = Rails.root + 'config/routes.rb'
|
48
|
+
line_to_add = "namespace :caseadilla do"
|
49
|
+
insert_sentinel = 'Application.routes.draw do'
|
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\t#Caseadilla routes\n\t" + line_to_add + "\n\tend\n", insert_sentinel
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
def add_to_routes
|
56
|
+
puts " caseadilla adding #{plural_name} resources to routes.rb"
|
57
|
+
file_to_update = Rails.root + 'config/routes.rb'
|
58
|
+
|
59
|
+
if @no_index && @read_only
|
60
|
+
line_to_add = "resources :#{plural_name}, :only => [:show]"
|
61
|
+
elsif @no_index
|
62
|
+
line_to_add = "resources :#{plural_name}, :except => [:index]"
|
63
|
+
elsif @read_only
|
64
|
+
line_to_add = "resources :#{plural_name}, :only => [:index, :show]"
|
65
|
+
else
|
66
|
+
line_to_add = "resources :#{plural_name}"
|
67
|
+
end
|
68
|
+
|
69
|
+
insert_sentinel = 'namespace :caseadilla do'
|
70
|
+
gsub_add_once plural_name, file_to_update, "\t\t" + line_to_add, insert_sentinel
|
71
|
+
end
|
72
|
+
|
73
|
+
def add_to_navigation
|
74
|
+
puts " caseadilla adding #{plural_name} to left navigation bar"
|
75
|
+
file_to_update = Rails.root + 'app/views/caseadilla/layouts/_tab_navigation.html.erb'
|
76
|
+
line_to_add = "<li id=\"tab-#{@plural_route}\"><%= link_to \"#{plural_name.humanize.capitalize}\", caseadilla_#{@plural_route}_path %></li>"
|
77
|
+
insert_sentinel = '<!-- SCAFFOLD_INSERT -->'
|
78
|
+
gsub_add_once plural_name, file_to_update, line_to_add, insert_sentinel
|
79
|
+
end
|
80
|
+
|
81
|
+
def gsub_add_once m, file, line, sentinel
|
82
|
+
unless options[:pretend]
|
83
|
+
gsub_file file, /(#{Regexp.escape("\n#{line}")})/mi do |match|
|
84
|
+
''
|
85
|
+
end
|
86
|
+
gsub_file file, /(#{Regexp.escape(sentinel)})/mi do |match|
|
87
|
+
"#{match}\n#{line}"
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
def gsub_file(path, regexp, *args, &block)
|
93
|
+
content = File.read(path).gsub(regexp, *args, &block)
|
94
|
+
File.open(path, 'wb') { |file| file.write(content) }
|
95
|
+
end
|
96
|
+
|
97
|
+
def field_type(type)
|
98
|
+
case type.to_s.to_sym
|
99
|
+
when :integer, :float, :decimal then :text_field
|
100
|
+
when :date then :date_select
|
101
|
+
when :time, :timestamp then :time_select
|
102
|
+
when :datetime then :datetime_select
|
103
|
+
when :string then :text_field
|
104
|
+
when :text then :text_area
|
105
|
+
when :boolean then :check_box
|
106
|
+
else
|
107
|
+
:text_field
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Scaffolding generated by Caseadilla <%= caseadilla_get_full_version_string %>
|
2
|
+
|
3
|
+
module Caseadilla
|
4
|
+
class <%= class_name.pluralize %>Controller < Caseadilla::CaseadillaController
|
5
|
+
|
6
|
+
## optional filters for defining usage according to Caseadilla::AdminUser access_levels
|
7
|
+
# before_filter :needs_admin, :except => [:action1, :action2]
|
8
|
+
# before_filter :needs_admin_or_current_user, :only => [:action1, :action2]
|
9
|
+
<% unless @no_index %>
|
10
|
+
def index
|
11
|
+
@caseadilla_page_title = '<%= plural_name.humanize.capitalize %>'
|
12
|
+
@<%= plural_name %> = <%= class_name %>.order(sort_order(:<%= attributes[0].name %>)).paginate :page => params[:page]
|
13
|
+
end
|
14
|
+
<% end %>
|
15
|
+
def show
|
16
|
+
@caseadilla_page_title = 'View <%= singular_name.humanize.downcase %>'
|
17
|
+
@<%= singular_name %> = <%= class_name %>.find params[:id]
|
18
|
+
end
|
19
|
+
<% unless @read_only %>
|
20
|
+
def new
|
21
|
+
@caseadilla_page_title = 'Add a new <%= singular_name.humanize.downcase %>'
|
22
|
+
@<%= singular_name %> = <%= class_name %>.new
|
23
|
+
end
|
24
|
+
|
25
|
+
def create
|
26
|
+
@<%= singular_name %> = <%= class_name %>.new <%= singular_name %>_params
|
27
|
+
|
28
|
+
if @<%= singular_name %>.save
|
29
|
+
flash[:notice] = '<%= singular_name.humanize.capitalize %> created'
|
30
|
+
redirect_to caseadilla_<%= @plural_route %>_path
|
31
|
+
else
|
32
|
+
flash.now[:warning] = 'There were problems when trying to create a new <%= singular_name.humanize.downcase %>'
|
33
|
+
render :action => :new
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def update
|
38
|
+
@caseadilla_page_title = 'Update <%= singular_name.humanize.downcase %>'
|
39
|
+
|
40
|
+
@<%= singular_name %> = <%= class_name %>.find params[:id]
|
41
|
+
|
42
|
+
if @<%= singular_name %>.update_attributes <%= singular_name %>_params
|
43
|
+
flash[:notice] = '<%= singular_name.humanize.capitalize %> has been updated'
|
44
|
+
redirect_to caseadilla_<%= @plural_route %>_path
|
45
|
+
else
|
46
|
+
flash.now[:warning] = 'There were problems when trying to update this <%= singular_name.humanize.downcase %>'
|
47
|
+
render :action => :show
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def destroy
|
52
|
+
@<%= singular_name %> = <%= class_name %>.find params[:id]
|
53
|
+
|
54
|
+
@<%= singular_name %>.destroy
|
55
|
+
flash[:notice] = '<%= singular_name.humanize.capitalize %> has been deleted'
|
56
|
+
redirect_to caseadilla_<%= @plural_route %>_path
|
57
|
+
end
|
58
|
+
|
59
|
+
private
|
60
|
+
<%
|
61
|
+
permit_list = ""
|
62
|
+
attributes.each_with_index {|attribute|
|
63
|
+
permit_list += ", " unless permit_list.empty?
|
64
|
+
permit_list += ":#{attribute.name}"
|
65
|
+
}
|
66
|
+
%>
|
67
|
+
def <%= singular_name %>_params
|
68
|
+
params.require(:<%= singular_name %>).permit(<%= permit_list %>)
|
69
|
+
end
|
70
|
+
<% end %>
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class Create<%= class_name.pluralize %> < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :<%= table_name %> do |t|
|
4
|
+
<% attributes.each do |attribute| %>t.<%= attribute.type %> :<%= attribute.name %>
|
5
|
+
<% end %>
|
6
|
+
t.timestamps
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.down
|
11
|
+
drop_table :<%= table_name %>
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<!-- Scaffolding generated by Caseadilla <%= caseadilla_get_full_version_string %> -->
|
2
|
+
<% attribute_itr = 0 %>
|
3
|
+
<% while attribute_itr < attributes.count %>
|
4
|
+
<div class="row">
|
5
|
+
<div class="col-lg-6">
|
6
|
+
<%%= caseadilla_<%= 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 %><%%= caseadilla_<%= 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 %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!-- Scaffolding generated by Caseadilla <%= caseadilla_get_full_version_string %> -->
|
2
|
+
|
3
|
+
<table class="table table-striped table-hover table-condensed">
|
4
|
+
<thead>
|
5
|
+
<tr>
|
6
|
+
<% for attribute in attributes %><th><%%= caseadilla_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><%%= caseadilla_table_cell_link <%= singular_name %>.<%= attribute.name %>, caseadilla_<%= singular_name %>_path(<%= singular_name %>) %></td>
|
14
|
+
<% end %><% unless @read_only %><td class="delete">
|
15
|
+
<%%= link_to(caseadilla_show_row_icon("trash"), caseadilla_<%= 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>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!-- Scaffolding generated by Caseadilla <%= caseadilla_get_full_version_string %> -->
|
2
|
+
|
3
|
+
<h2><%= plural_name.humanize.capitalize %><%%= caseadilla_pagination_details @<%= plural_name %> %></h2>
|
4
|
+
|
5
|
+
<%%= render :partial => 'caseadilla/<%= plural_name %>/table', :locals => { :<%= plural_name %> => @<%= plural_name %> } %>
|
6
|
+
|
7
|
+
<div class="text-center">
|
8
|
+
<%%= will_paginate @<%= plural_name %> %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<%%= content_for :sidebar do %>
|
12
|
+
<% unless @read_only %>
|
13
|
+
<li><%%= link_to "#{caseadilla_show_icon "plus-sign"}Add a new <%= singular_name.humanize.downcase %>".html_safe, new_caseadilla_<%= singular_name %>_path %></li>
|
14
|
+
<% end %>
|
15
|
+
<%% end %>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!-- Scaffolding generated by Caseadilla <%= caseadilla_get_full_version_string %> -->
|
2
|
+
|
3
|
+
<h2>Add a new <%= singular_name.humanize.downcase %></h2>
|
4
|
+
|
5
|
+
<%%= form_for @<%= file_name %>, :url => caseadilla_<%= @plural_route %>_path do |f| %>
|
6
|
+
|
7
|
+
<%%= render :partial => 'caseadilla/<%= plural_name %>/form', :locals => { :f => f } %>
|
8
|
+
|
9
|
+
<p class="submits">
|
10
|
+
<%%= link_to 'Cancel', caseadilla_<%= @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
|
+
|
14
|
+
<%% end %>
|
15
|
+
|
16
|
+
<%%= content_for :sidebar do %>
|
17
|
+
<li><%%= link_to "#{caseadilla_show_icon "th-list"}Back to list".html_safe, caseadilla_<%= @plural_route %>_path %></li>
|
18
|
+
<%% end %>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!-- Scaffolding generated by Caseadilla <%= caseadilla_get_full_version_string %> -->
|
2
|
+
|
3
|
+
<h2>View <%= singular_name.humanize.downcase %></h2>
|
4
|
+
|
5
|
+
<%%= form_for @<%= file_name %>, :url => caseadilla_<%= singular_name %>_path(@<%= singular_name %>) do |f| %>
|
6
|
+
|
7
|
+
<%%= render :partial => 'caseadilla/<%= plural_name %>/form', :locals => { :f => f } %>
|
8
|
+
<% unless @read_only %>
|
9
|
+
<p class="submits">
|
10
|
+
<%%= link_to 'Cancel', caseadilla_<%= @plural_route %>_path, :class => 'btn btn-mini btn-danger' %>
|
11
|
+
<%%= f.submit "Save changes", :class => "btn btn-mini btn-primary" %>
|
12
|
+
</p>
|
13
|
+
<% end %>
|
14
|
+
<%% end %>
|
15
|
+
|
16
|
+
<%%= content_for :sidebar do %>
|
17
|
+
<li><%%= link_to "#{caseadilla_show_icon "th-list"}Back to list".html_safe, caseadilla_<%= @plural_route %>_path %></li>
|
18
|
+
<%% end %>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'securerandom'
|
2
|
+
|
3
|
+
namespace :caseadilla do
|
4
|
+
|
5
|
+
namespace :users do
|
6
|
+
|
7
|
+
desc "Create default admin user"
|
8
|
+
task create_admin: :environment do
|
9
|
+
|
10
|
+
raise "Usage: specify email address, e.g. rake [task] email=mail@caseadillacms.com" unless ENV.include?("email")
|
11
|
+
|
12
|
+
random_password = random_string = SecureRandom.hex
|
13
|
+
admin = Caseadilla::AdminUser.new({ login: 'admin', name: 'Admin', email: ENV['email'], access_level: $CASEIN_USER_ACCESS_LEVEL_ADMIN, password: random_password, password_confirmation: random_password })
|
14
|
+
|
15
|
+
unless admin.save
|
16
|
+
puts "[Caseadilla] Failed: check that the 'admin' account doesn't already exist."
|
17
|
+
else
|
18
|
+
puts "[Caseadilla] Created new admin user with username 'admin' and password '#{random_password}'"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
desc "Remove all users"
|
23
|
+
task remove_all: :environment do
|
24
|
+
users = Caseadilla::AdminUser.all
|
25
|
+
num_users = users.size
|
26
|
+
users.destroy_all
|
27
|
+
puts "[Caseadilla] Removed #{num_users} user(s)"
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,231 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: caseadilla
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Xavier Bick
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-07-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: caseadilla
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: will_paginate
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.0.5
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.0.5
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: devise
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.2'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: declarative_authorization
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.5.7
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.5.7
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: scrypt
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.2.1
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.2.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: jquery-rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: Caseadilla is a CMS for Rails based on Casein and Comfortable Mexican
|
126
|
+
Sofa. It is designed to allow you to easily fit the CMS to your app, not the other
|
127
|
+
way around. By default, Caseadilla installs with Devise for authentication and
|
128
|
+
Declarative Authorization, however it can be installed without either if you want
|
129
|
+
to use an existing auth system.
|
130
|
+
email:
|
131
|
+
- fxb9500@gmail.com
|
132
|
+
executables: []
|
133
|
+
extensions: []
|
134
|
+
extra_rdoc_files: []
|
135
|
+
files:
|
136
|
+
- ".gitignore"
|
137
|
+
- Gemfile
|
138
|
+
- LICENSE.txt
|
139
|
+
- README.md
|
140
|
+
- Rakefile
|
141
|
+
- app/assets/fonts/caseadilla/glyphicons-halflings-regular.eot
|
142
|
+
- app/assets/fonts/caseadilla/glyphicons-halflings-regular.svg
|
143
|
+
- app/assets/fonts/caseadilla/glyphicons-halflings-regular.ttf
|
144
|
+
- app/assets/fonts/caseadilla/glyphicons-halflings-regular.woff
|
145
|
+
- app/assets/images/caseadilla/caseadilla.png
|
146
|
+
- app/assets/javascripts/caseadilla/bootstrap.js
|
147
|
+
- app/assets/javascripts/caseadilla/bootstrap3-wysihtml5.js
|
148
|
+
- app/assets/javascripts/caseadilla/caseadilla.js
|
149
|
+
- app/assets/javascripts/caseadilla/html5shiv.js
|
150
|
+
- app/assets/javascripts/caseadilla/wysihtml5-0.3.0.min.js
|
151
|
+
- app/assets/stylesheets/caseadilla/bootstrap-glyphicons.css.scss
|
152
|
+
- app/assets/stylesheets/caseadilla/bootstrap-theme.css
|
153
|
+
- app/assets/stylesheets/caseadilla/bootstrap-wysihtml5.css
|
154
|
+
- app/assets/stylesheets/caseadilla/bootstrap.css
|
155
|
+
- app/assets/stylesheets/caseadilla/caseadilla-bootstrap-overrides.css.scss
|
156
|
+
- app/assets/stylesheets/caseadilla/caseadilla.scss
|
157
|
+
- app/assets/stylesheets/caseadilla/login.css.scss
|
158
|
+
- app/controllers/caseadilla/caseadilla_controller.rb
|
159
|
+
- app/controllers/caseadilla/caseadilla_user_sessions_controller.rb
|
160
|
+
- app/controllers/caseadilla/password_resets_controller.rb
|
161
|
+
- app/controllers/caseadilla/roles_controller.rb
|
162
|
+
- app/controllers/caseadilla/users_controller.rb
|
163
|
+
- app/helpers/caseadilla/caseadilla_helper.rb
|
164
|
+
- app/mailers/caseadilla/caseadilla_notification.rb
|
165
|
+
- app/views/caseadilla/caseadilla/blank.html.erb
|
166
|
+
- app/views/caseadilla/caseadilla_notification/generate_new_password.erb
|
167
|
+
- app/views/caseadilla/caseadilla_notification/new_user_information.erb
|
168
|
+
- app/views/caseadilla/caseadilla_notification/password_reset_instructions.erb
|
169
|
+
- app/views/caseadilla/caseadilla_user_sessions/new.html.erb
|
170
|
+
- app/views/caseadilla/roles/_form.html.erb
|
171
|
+
- app/views/caseadilla/roles/_table.html.erb
|
172
|
+
- app/views/caseadilla/roles/index.html.erb
|
173
|
+
- app/views/caseadilla/roles/new.html.erb
|
174
|
+
- app/views/caseadilla/roles/show.html.erb
|
175
|
+
- app/views/caseadilla/users/index.html.erb
|
176
|
+
- app/views/caseadilla/users/new.html.erb
|
177
|
+
- app/views/caseadilla/users/show.html.erb
|
178
|
+
- app/views/layouts/caseadilla_auth.html.erb
|
179
|
+
- app/views/layouts/caseadilla_main.html.erb
|
180
|
+
- caseadilla.gemspec
|
181
|
+
- config/initializers/will_paginate.rb
|
182
|
+
- config/routes.rb
|
183
|
+
- lib/caseadilla.rb
|
184
|
+
- lib/caseadilla/engine.rb
|
185
|
+
- lib/caseadilla/version.rb
|
186
|
+
- lib/generators/caseadilla/install/install_generator.rb
|
187
|
+
- lib/generators/caseadilla/install/templates/app/assets/javascripts/caseadilla/custom.js
|
188
|
+
- lib/generators/caseadilla/install/templates/app/assets/stylesheets/caseadilla/custom.css.scss
|
189
|
+
- lib/generators/caseadilla/install/templates/app/helpers/caseadilla/config_helper.rb
|
190
|
+
- lib/generators/caseadilla/install/templates/app/models/user.rb
|
191
|
+
- lib/generators/caseadilla/install/templates/app/views/caseadilla/layouts/_tab_navigation.html.erb
|
192
|
+
- lib/generators/caseadilla/install/templates/app/views/caseadilla/layouts/_top_navigation.html.erb
|
193
|
+
- lib/generators/caseadilla/install/templates/public/robots.txt
|
194
|
+
- lib/generators/caseadilla/install/templates/steak/config/initializers/caseadilla.rb
|
195
|
+
- lib/generators/caseadilla/install/templates/steak/db/migrate/add_name_to_users.rb
|
196
|
+
- lib/generators/caseadilla/install/templates/veggie/config/initializers/caseadilla.rb
|
197
|
+
- lib/generators/caseadilla/scaffold/scaffold_generator.rb
|
198
|
+
- lib/generators/caseadilla/scaffold/templates/controller.rb
|
199
|
+
- lib/generators/caseadilla/scaffold/templates/migration.rb
|
200
|
+
- lib/generators/caseadilla/scaffold/templates/model.rb
|
201
|
+
- lib/generators/caseadilla/scaffold/templates/views/_form.html.erb
|
202
|
+
- lib/generators/caseadilla/scaffold/templates/views/_table.html.erb
|
203
|
+
- lib/generators/caseadilla/scaffold/templates/views/index.html.erb
|
204
|
+
- lib/generators/caseadilla/scaffold/templates/views/new.html.erb
|
205
|
+
- lib/generators/caseadilla/scaffold/templates/views/show.html.erb
|
206
|
+
- lib/railties/tasks.rake
|
207
|
+
homepage: ''
|
208
|
+
licenses:
|
209
|
+
- MIT
|
210
|
+
metadata: {}
|
211
|
+
post_install_message:
|
212
|
+
rdoc_options: []
|
213
|
+
require_paths:
|
214
|
+
- lib
|
215
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
216
|
+
requirements:
|
217
|
+
- - ">="
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: '0'
|
220
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
221
|
+
requirements:
|
222
|
+
- - ">="
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
version: '0'
|
225
|
+
requirements: []
|
226
|
+
rubyforge_project:
|
227
|
+
rubygems_version: 2.2.2
|
228
|
+
signing_key:
|
229
|
+
specification_version: 4
|
230
|
+
summary: A powerful yet unobtrusive CMS and data management system for Rails.
|
231
|
+
test_files: []
|