app_frame 0.5.5
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.
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +26 -0
- data/Gemfile.lock +181 -0
- data/LICENSE.txt +20 -0
- data/README.md +25 -0
- data/Rakefile +47 -0
- data/VERSION +1 -0
- data/app/assets/javascripts/app_frame/application.js +9 -0
- data/app/assets/stylesheets/app_frame/_devise.scss +41 -0
- data/app/assets/stylesheets/app_frame/_tree.scss +31 -0
- data/app/assets/stylesheets/app_frame/application.scss +73 -0
- data/app/controllers/app_frame/devise/confirmations_controller.rb +3 -0
- data/app/controllers/app_frame/devise/passwords_controller.rb +3 -0
- data/app/controllers/app_frame/devise/registrations_controller.rb +3 -0
- data/app/controllers/app_frame/devise/sessions_controller.rb +3 -0
- data/app/helpers/app_frame/bootstrap_helper.rb +36 -0
- data/app/helpers/app_frame/breadcrumb_helper.rb +18 -0
- data/app/helpers/app_frame/menu_helper.rb +43 -0
- data/app/helpers/app_frame/pagination_helper.rb +12 -0
- data/app/helpers/app_frame/resources_helper.rb +63 -0
- data/app/helpers/app_frame/scopes_helper.rb +94 -0
- data/app/helpers/app_frame/select_helper.rb +8 -0
- data/app/helpers/app_frame/tree_nav_helper.rb +18 -0
- data/app/models/menu.rb +44 -0
- data/app/models/settings.rb +4 -0
- data/app/views/app_frame/devise/confirmations/new.html.haml +8 -0
- data/app/views/app_frame/devise/passwords/edit.html.haml +13 -0
- data/app/views/app_frame/devise/passwords/new.html.haml +8 -0
- data/app/views/app_frame/devise/registrations/edit.html.haml +19 -0
- data/app/views/app_frame/devise/registrations/new.html.haml +10 -0
- data/app/views/app_frame/devise/sessions/new.html.haml +12 -0
- data/app/views/app_frame/devise/shared/_links.html.haml +14 -0
- data/app/views/app_frame/devise/unlocks/new.html.haml +9 -0
- data/app/views/application/_brand.html.haml +1 -0
- data/app/views/application/_breadcrumb.html.haml +12 -0
- data/app/views/application/_flashes.html.haml +2 -0
- data/app/views/application/_form.html.haml +2 -0
- data/app/views/application/_head.html.haml +6 -0
- data/app/views/application/_secondary_menu.html.haml +3 -0
- data/app/views/application/_show.html.haml +5 -0
- data/app/views/application/_sidebar.html.haml +12 -0
- data/app/views/application/_sub_menu.html.haml +0 -0
- data/app/views/application/_table.html.haml +3 -0
- data/app/views/application/_toolbar.html.haml +7 -0
- data/app/views/application/_top_menu.html.haml +1 -0
- data/app/views/application/edit.html.haml +8 -0
- data/app/views/application/index.html.haml +8 -0
- data/app/views/application/new.html.haml +7 -0
- data/app/views/application/show.html.haml +10 -0
- data/app/views/kaminari/app_frame/_first_page.html.haml +9 -0
- data/app/views/kaminari/app_frame/_gap.html.haml +8 -0
- data/app/views/kaminari/app_frame/_last_page.html.haml +9 -0
- data/app/views/kaminari/app_frame/_next_page.html.haml +9 -0
- data/app/views/kaminari/app_frame/_page.html.haml +10 -0
- data/app/views/kaminari/app_frame/_paginator.html.haml +19 -0
- data/app/views/kaminari/app_frame/_prev_page.html.haml +9 -0
- data/app/views/layouts/app_frame/default.html.haml +33 -0
- data/app/views/layouts/app_frame/devise.html.haml +17 -0
- data/app_frame.gemspec +162 -0
- data/lib/app_frame.rb +27 -0
- data/lib/app_frame/controller_methods.rb +111 -0
- data/lib/app_frame/view_methods.rb +19 -0
- data/lib/assets/images/.gitkeep +0 -0
- data/lib/assets/javascripts/anytime.js +3716 -0
- data/lib/assets/stylesheets/anytime.css +777 -0
- data/lib/engine.rb +197 -0
- data/spec/app_frame_spec.rb +7 -0
- data/spec/spec_helper.rb +12 -0
- metadata +423 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
%ul
|
2
|
+
- if controller_name != 'sessions'
|
3
|
+
%li= link_to "Sign in", new_session_path(resource_name)
|
4
|
+
- if devise_mapping.registerable? && controller_name != 'registrations'
|
5
|
+
%li= link_to "Sign up", new_registration_path(resource_name)
|
6
|
+
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
7
|
+
%li= link_to "Forgot your password?", new_password_path(resource_name)
|
8
|
+
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
9
|
+
%li= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)
|
10
|
+
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
11
|
+
%li= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name)
|
12
|
+
- if devise_mapping.omniauthable?
|
13
|
+
- resource_class.omniauth_providers.each do |provider|
|
14
|
+
%li= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider)
|
@@ -0,0 +1,9 @@
|
|
1
|
+
=page_header "Resend unlock instructions"
|
2
|
+
|
3
|
+
= simple_form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f|
|
4
|
+
= f.error_notification
|
5
|
+
|
6
|
+
= f.input :email, :required => true
|
7
|
+
|
8
|
+
.form-actions
|
9
|
+
= f.button :submit, "Resend unlock instructions"
|
@@ -0,0 +1 @@
|
|
1
|
+
= link_to(Settings.app_name, controller_namespaces + [:root], :class => 'brand')
|
@@ -0,0 +1,12 @@
|
|
1
|
+
= breadcrumb do |items|
|
2
|
+
- items << link_to(Settings.app_name, controller_namespaces + [:root])
|
3
|
+
- if parent?
|
4
|
+
-items << link_to(parent_resource_name.pluralize, parent_collection_url)
|
5
|
+
-items << link_to(parent.to_s, parent_url)
|
6
|
+
- if resource?
|
7
|
+
-items << link_to(resource_name.pluralize, collection_url)
|
8
|
+
-items << (resource.new_record? ? "New" : resource.to_s)
|
9
|
+
- elsif collection?
|
10
|
+
-items << resource_name.pluralize
|
11
|
+
- else
|
12
|
+
-items << controller_name.humanize
|
@@ -0,0 +1,5 @@
|
|
1
|
+
- editable_attributes_for(resource_class).each do |name|
|
2
|
+
- s.attribute name
|
3
|
+
- s.action :list, :link_to => :collection_path, :class => 'btn btn-small'
|
4
|
+
- s.action :edit, :link_to => :edit_resource_path, :class => 'btn btn-small'
|
5
|
+
- s.action :delete, :method => :delete, :confirm => "Are you sure?", :class => 'btn btn-small btn-danger'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
- if filter_scopes.any?
|
2
|
+
%h2 Filters
|
3
|
+
= form_tag url_for(), :method => :get, :class => 'form-stacked' do |f|
|
4
|
+
- filter_scopes.each do |name, scope|
|
5
|
+
.clear-fix
|
6
|
+
= label_tag name
|
7
|
+
= text_field_tag name, current_scopes[name]
|
8
|
+
- boolean_scopes.each do |name, scope|
|
9
|
+
= hidden_field_tag(name, 'true') if current_scopes[name]
|
10
|
+
.actions
|
11
|
+
= submit_tag "Filter", :class => 'btn'
|
12
|
+
= link_to("Clear filters", url_for(current_boolean_scopes), :class => 'btn')
|
File without changes
|
@@ -0,0 +1,7 @@
|
|
1
|
+
.btn-toolbar
|
2
|
+
.btn-group
|
3
|
+
= link_to("New #{resource_name}", new_resource_url, :class => 'btn')
|
4
|
+
- if searchable?
|
5
|
+
.btn-group.pull-right
|
6
|
+
= form_for collection_url, :class => "form-search", :method => :get do
|
7
|
+
= text_field_tag 'q', params[:q], :class => "search-query"
|
@@ -0,0 +1 @@
|
|
1
|
+
%li.active= link_to("Override this menu", '#')
|
@@ -0,0 +1,8 @@
|
|
1
|
+
= page_header resource.to_s do
|
2
|
+
= content_locale_switch(resource)
|
3
|
+
= simple_nested_form_for resource_path_array, :html => {:class => 'form-inline' } do |f|
|
4
|
+
= hidden_field_tag :content_locale, params[:content_locale] if params[:content_locale]
|
5
|
+
= render 'form', :f => f
|
6
|
+
.form-actions
|
7
|
+
= f.button :submit, :class => 'btn btn-primary'
|
8
|
+
= link_to "Cancel", collection_path, :class => 'btn'
|
@@ -0,0 +1,7 @@
|
|
1
|
+
= page_header "New #{resource_name}"
|
2
|
+
= simple_nested_form_for resource_path_array, :html => {:class => 'form-inline' } do |f|
|
3
|
+
= hidden_field_tag :content_locale, params[:content_locale] if params[:content_locale]
|
4
|
+
= render 'form', :f => f
|
5
|
+
.form-actions
|
6
|
+
= f.button :submit, :class => 'btn btn-primary'
|
7
|
+
= link_to "Cancel", collection_path, :class => 'btn'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
= page_header resource.to_s
|
2
|
+
= view_for resource_path_array do |s|
|
3
|
+
= render 'show', :s => s
|
4
|
+
|
5
|
+
- child_resources.each do |data|
|
6
|
+
%h2= data[:name]
|
7
|
+
.btn-toolbar
|
8
|
+
= link_to("New #{data[:resource_name]}", polymorphic_url((controller_namespaces + [resource, data[:resource_class]]), :action => :new), :class => 'btn')
|
9
|
+
= table_for(controller_namespaces + [resource, data[:resource_class]], resource.send(data[:symbol])) do |t|
|
10
|
+
= render (controller_namespaces + [data[:symbol].to_s, 'table']).join('/'), :t => t, :resource_class => data[:resource_class]
|
@@ -0,0 +1,9 @@
|
|
1
|
+
-# Link to the "First" page
|
2
|
+
-# available local variables
|
3
|
+
-# url: url to the first page
|
4
|
+
-# current_page: a page object for the currently displayed page
|
5
|
+
-# num_pages: total number of pages
|
6
|
+
-# per_page: number of items to fetch per page
|
7
|
+
-# remote: data-remote
|
8
|
+
%li{:class => "prev #{current_page.first? ? 'disabled' : nil}"}
|
9
|
+
= link_to raw(t 'views.pagination.first'), url, :remote => remote
|
@@ -0,0 +1,8 @@
|
|
1
|
+
-# Non-link tag that stands for skipped pages...
|
2
|
+
-# available local variables
|
3
|
+
-# current_page: a page object for the currently displayed page
|
4
|
+
-# num_pages: total number of pages
|
5
|
+
-# per_page: number of items to fetch per page
|
6
|
+
-# remote: data-remote
|
7
|
+
%li.disabled
|
8
|
+
= link_to(raw(t 'views.pagination.truncate'), '#')
|
@@ -0,0 +1,9 @@
|
|
1
|
+
-# Link to the "Last" page
|
2
|
+
-# available local variables
|
3
|
+
-# url: url to the last page
|
4
|
+
-# current_page: a page object for the currently displayed page
|
5
|
+
-# num_pages: total number of pages
|
6
|
+
-# per_page: number of items to fetch per page
|
7
|
+
-# remote: data-remote
|
8
|
+
%li{:class => "next #{current_page.last? ? 'disabled' : nil}"}
|
9
|
+
= link_to raw(t 'views.pagination.last'), url, {:remote => remote}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
-# Link to the "Next" page
|
2
|
+
-# available local variables
|
3
|
+
-# url: url to the next page
|
4
|
+
-# current_page: a page object for the currently displayed page
|
5
|
+
-# num_pages: total number of pages
|
6
|
+
-# per_page: number of items to fetch per page
|
7
|
+
-# remote: data-remote
|
8
|
+
%li{:class => current_page.last? ? 'disabled' : nil}
|
9
|
+
= link_to raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote
|
@@ -0,0 +1,10 @@
|
|
1
|
+
-# Link showing page number
|
2
|
+
-# available local variables
|
3
|
+
-# page: a page object for "this" page
|
4
|
+
-# url: url to this page
|
5
|
+
-# current_page: a page object for the currently displayed page
|
6
|
+
-# num_pages: total number of pages
|
7
|
+
-# per_page: number of items to fetch per page
|
8
|
+
-# remote: data-remote
|
9
|
+
%li{:class => "#{'active' if page.current?}"}
|
10
|
+
= link_to page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
-# The container tag
|
2
|
+
-# available local variables
|
3
|
+
-# current_page: a page object for the currently displayed page
|
4
|
+
-# num_pages: total number of pages
|
5
|
+
-# per_page: number of items to fetch per page
|
6
|
+
-# remote: data-remote
|
7
|
+
-# paginator: the paginator that renders the pagination tags inside
|
8
|
+
= paginator.render do
|
9
|
+
%nav.pagination
|
10
|
+
%ul
|
11
|
+
= first_page_tag #unless current_page.first?
|
12
|
+
= prev_page_tag #unless current_page.first?
|
13
|
+
- each_page do |page|
|
14
|
+
- if page.left_outer? || page.right_outer? || page.inside_window?
|
15
|
+
= page_tag page
|
16
|
+
- elsif !page.was_truncated?
|
17
|
+
= gap_tag
|
18
|
+
= next_page_tag #unless current_page.last?
|
19
|
+
= last_page_tag #unless current_page.last?
|
@@ -0,0 +1,9 @@
|
|
1
|
+
-# Link to the "Previous" page
|
2
|
+
-# available local variables
|
3
|
+
-# url: url to the previous page
|
4
|
+
-# current_page: a page object for the currently displayed page
|
5
|
+
-# num_pages: total number of pages
|
6
|
+
-# per_page: number of items to fetch per page
|
7
|
+
-# remote: data-remote
|
8
|
+
%li{:class => current_page.first? ? 'disabled' : nil}
|
9
|
+
= link_to raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote
|
@@ -0,0 +1,33 @@
|
|
1
|
+
- sidebar = render 'sidebar'
|
2
|
+
!!! 5
|
3
|
+
%html
|
4
|
+
%head
|
5
|
+
= render 'head'
|
6
|
+
%body
|
7
|
+
.navbar.navbar-inverse.navbar-fixed-top{:'data-dropdown'=>"dropdown"}
|
8
|
+
.navbar-inner
|
9
|
+
.container-fluid
|
10
|
+
%a{:class=>"btn btn-navbar", :data => { :toggle => "collapse", :target => ".nav-collapse"}}
|
11
|
+
%span.icon-bar
|
12
|
+
%span.icon-bar
|
13
|
+
%span.icon-bar
|
14
|
+
= render 'brand'
|
15
|
+
.nav-collapse.collapse
|
16
|
+
%ul.nav
|
17
|
+
= render 'top_menu'
|
18
|
+
%ul.nav.pull-right
|
19
|
+
= render 'secondary_menu'
|
20
|
+
|
21
|
+
#main.container-fluid
|
22
|
+
- if sidebar.present?
|
23
|
+
.content
|
24
|
+
= render 'sub_menu'
|
25
|
+
= render 'flashes'
|
26
|
+
= yield
|
27
|
+
.sidebar
|
28
|
+
= sidebar
|
29
|
+
- else
|
30
|
+
= render 'sub_menu'
|
31
|
+
= render 'flashes'
|
32
|
+
= yield
|
33
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%title= Settings.app_name
|
5
|
+
%meta{:charset=>"UTF-8"}
|
6
|
+
= csrf_meta_tag
|
7
|
+
= stylesheet_link_tag 'application'
|
8
|
+
= javascript_include_tag 'application'
|
9
|
+
= yield :head
|
10
|
+
|
11
|
+
%body#devise
|
12
|
+
.container
|
13
|
+
.box
|
14
|
+
= render 'flashes'
|
15
|
+
= yield
|
16
|
+
.links
|
17
|
+
= render :partial => "app_frame/devise/shared/links"
|
data/app_frame.gemspec
ADDED
@@ -0,0 +1,162 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "app_frame"
|
8
|
+
s.version = "0.5.5"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Mateo Murphy"]
|
12
|
+
s.date = "2013-08-23"
|
13
|
+
s.description = "An app framework"
|
14
|
+
s.email = "mateo.murphy@gmail.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.md",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"app/assets/javascripts/app_frame/application.js",
|
29
|
+
"app/assets/stylesheets/app_frame/_devise.scss",
|
30
|
+
"app/assets/stylesheets/app_frame/_tree.scss",
|
31
|
+
"app/assets/stylesheets/app_frame/application.scss",
|
32
|
+
"app/controllers/app_frame/devise/confirmations_controller.rb",
|
33
|
+
"app/controllers/app_frame/devise/passwords_controller.rb",
|
34
|
+
"app/controllers/app_frame/devise/registrations_controller.rb",
|
35
|
+
"app/controllers/app_frame/devise/sessions_controller.rb",
|
36
|
+
"app/helpers/app_frame/bootstrap_helper.rb",
|
37
|
+
"app/helpers/app_frame/breadcrumb_helper.rb",
|
38
|
+
"app/helpers/app_frame/menu_helper.rb",
|
39
|
+
"app/helpers/app_frame/pagination_helper.rb",
|
40
|
+
"app/helpers/app_frame/resources_helper.rb",
|
41
|
+
"app/helpers/app_frame/scopes_helper.rb",
|
42
|
+
"app/helpers/app_frame/select_helper.rb",
|
43
|
+
"app/helpers/app_frame/tree_nav_helper.rb",
|
44
|
+
"app/models/menu.rb",
|
45
|
+
"app/models/settings.rb",
|
46
|
+
"app/views/app_frame/devise/confirmations/new.html.haml",
|
47
|
+
"app/views/app_frame/devise/passwords/edit.html.haml",
|
48
|
+
"app/views/app_frame/devise/passwords/new.html.haml",
|
49
|
+
"app/views/app_frame/devise/registrations/edit.html.haml",
|
50
|
+
"app/views/app_frame/devise/registrations/new.html.haml",
|
51
|
+
"app/views/app_frame/devise/sessions/new.html.haml",
|
52
|
+
"app/views/app_frame/devise/shared/_links.html.haml",
|
53
|
+
"app/views/app_frame/devise/unlocks/new.html.haml",
|
54
|
+
"app/views/application/_brand.html.haml",
|
55
|
+
"app/views/application/_breadcrumb.html.haml",
|
56
|
+
"app/views/application/_flashes.html.haml",
|
57
|
+
"app/views/application/_form.html.haml",
|
58
|
+
"app/views/application/_head.html.haml",
|
59
|
+
"app/views/application/_secondary_menu.html.haml",
|
60
|
+
"app/views/application/_show.html.haml",
|
61
|
+
"app/views/application/_sidebar.html.haml",
|
62
|
+
"app/views/application/_sub_menu.html.haml",
|
63
|
+
"app/views/application/_table.html.haml",
|
64
|
+
"app/views/application/_toolbar.html.haml",
|
65
|
+
"app/views/application/_top_menu.html.haml",
|
66
|
+
"app/views/application/edit.html.haml",
|
67
|
+
"app/views/application/index.html.haml",
|
68
|
+
"app/views/application/new.html.haml",
|
69
|
+
"app/views/application/show.html.haml",
|
70
|
+
"app/views/kaminari/app_frame/_first_page.html.haml",
|
71
|
+
"app/views/kaminari/app_frame/_gap.html.haml",
|
72
|
+
"app/views/kaminari/app_frame/_last_page.html.haml",
|
73
|
+
"app/views/kaminari/app_frame/_next_page.html.haml",
|
74
|
+
"app/views/kaminari/app_frame/_page.html.haml",
|
75
|
+
"app/views/kaminari/app_frame/_paginator.html.haml",
|
76
|
+
"app/views/kaminari/app_frame/_prev_page.html.haml",
|
77
|
+
"app/views/layouts/app_frame/default.html.haml",
|
78
|
+
"app/views/layouts/app_frame/devise.html.haml",
|
79
|
+
"app_frame.gemspec",
|
80
|
+
"lib/app_frame.rb",
|
81
|
+
"lib/app_frame/controller_methods.rb",
|
82
|
+
"lib/app_frame/view_methods.rb",
|
83
|
+
"lib/assets/images/.gitkeep",
|
84
|
+
"lib/assets/javascripts/anytime.js",
|
85
|
+
"lib/assets/stylesheets/anytime.css",
|
86
|
+
"lib/engine.rb",
|
87
|
+
"spec/app_frame_spec.rb",
|
88
|
+
"spec/spec_helper.rb"
|
89
|
+
]
|
90
|
+
s.homepage = "http://github.com/mateomurphy/app_frame"
|
91
|
+
s.licenses = ["MIT"]
|
92
|
+
s.require_paths = ["lib"]
|
93
|
+
s.rubygems_version = "1.8.25"
|
94
|
+
s.summary = "An app framework"
|
95
|
+
|
96
|
+
if s.respond_to? :specification_version then
|
97
|
+
s.specification_version = 3
|
98
|
+
|
99
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
100
|
+
s.add_runtime_dependency(%q<bootstrap-sass>, ["~> 2.3.1.0"])
|
101
|
+
s.add_runtime_dependency(%q<devise>, [">= 0"])
|
102
|
+
s.add_runtime_dependency(%q<display_for>, ["= 0.1.12"])
|
103
|
+
s.add_runtime_dependency(%q<haml-rails>, [">= 0"])
|
104
|
+
s.add_runtime_dependency(%q<inherited_resources>, [">= 0"])
|
105
|
+
s.add_runtime_dependency(%q<kaminari>, [">= 0"])
|
106
|
+
s.add_runtime_dependency(%q<nested_form>, [">= 0"])
|
107
|
+
s.add_runtime_dependency(%q<nested_set>, [">= 0"])
|
108
|
+
s.add_runtime_dependency(%q<sass-rails>, [">= 0"])
|
109
|
+
s.add_runtime_dependency(%q<settingslogic>, [">= 0"])
|
110
|
+
s.add_runtime_dependency(%q<simple_form>, [">= 0"])
|
111
|
+
s.add_runtime_dependency(%q<select2-rails>, [">= 0"])
|
112
|
+
s.add_runtime_dependency(%q<squeel>, [">= 0"])
|
113
|
+
s.add_development_dependency(%q<rails>, ["~> 3.2.13"])
|
114
|
+
s.add_development_dependency(%q<rspec-rails>, [">= 0"])
|
115
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.3.4"])
|
116
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
117
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
118
|
+
s.add_development_dependency(%q<log_buddy>, [">= 0"])
|
119
|
+
else
|
120
|
+
s.add_dependency(%q<bootstrap-sass>, ["~> 2.3.1.0"])
|
121
|
+
s.add_dependency(%q<devise>, [">= 0"])
|
122
|
+
s.add_dependency(%q<display_for>, ["= 0.1.12"])
|
123
|
+
s.add_dependency(%q<haml-rails>, [">= 0"])
|
124
|
+
s.add_dependency(%q<inherited_resources>, [">= 0"])
|
125
|
+
s.add_dependency(%q<kaminari>, [">= 0"])
|
126
|
+
s.add_dependency(%q<nested_form>, [">= 0"])
|
127
|
+
s.add_dependency(%q<nested_set>, [">= 0"])
|
128
|
+
s.add_dependency(%q<sass-rails>, [">= 0"])
|
129
|
+
s.add_dependency(%q<settingslogic>, [">= 0"])
|
130
|
+
s.add_dependency(%q<simple_form>, [">= 0"])
|
131
|
+
s.add_dependency(%q<select2-rails>, [">= 0"])
|
132
|
+
s.add_dependency(%q<squeel>, [">= 0"])
|
133
|
+
s.add_dependency(%q<rails>, ["~> 3.2.13"])
|
134
|
+
s.add_dependency(%q<rspec-rails>, [">= 0"])
|
135
|
+
s.add_dependency(%q<bundler>, ["~> 1.3.4"])
|
136
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
137
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
138
|
+
s.add_dependency(%q<log_buddy>, [">= 0"])
|
139
|
+
end
|
140
|
+
else
|
141
|
+
s.add_dependency(%q<bootstrap-sass>, ["~> 2.3.1.0"])
|
142
|
+
s.add_dependency(%q<devise>, [">= 0"])
|
143
|
+
s.add_dependency(%q<display_for>, ["= 0.1.12"])
|
144
|
+
s.add_dependency(%q<haml-rails>, [">= 0"])
|
145
|
+
s.add_dependency(%q<inherited_resources>, [">= 0"])
|
146
|
+
s.add_dependency(%q<kaminari>, [">= 0"])
|
147
|
+
s.add_dependency(%q<nested_form>, [">= 0"])
|
148
|
+
s.add_dependency(%q<nested_set>, [">= 0"])
|
149
|
+
s.add_dependency(%q<sass-rails>, [">= 0"])
|
150
|
+
s.add_dependency(%q<settingslogic>, [">= 0"])
|
151
|
+
s.add_dependency(%q<simple_form>, [">= 0"])
|
152
|
+
s.add_dependency(%q<select2-rails>, [">= 0"])
|
153
|
+
s.add_dependency(%q<squeel>, [">= 0"])
|
154
|
+
s.add_dependency(%q<rails>, ["~> 3.2.13"])
|
155
|
+
s.add_dependency(%q<rspec-rails>, [">= 0"])
|
156
|
+
s.add_dependency(%q<bundler>, ["~> 1.3.4"])
|
157
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
158
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
159
|
+
s.add_dependency(%q<log_buddy>, [">= 0"])
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
data/lib/app_frame.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rails'
|
2
|
+
require 'action_controller'
|
3
|
+
require 'engine'
|
4
|
+
require 'haml'
|
5
|
+
require 'has_scope'
|
6
|
+
require 'inherited_resources'
|
7
|
+
require 'kaminari'
|
8
|
+
require 'nested_form'
|
9
|
+
require 'nested_set'
|
10
|
+
require 'simple_form'
|
11
|
+
require 'display_for'
|
12
|
+
require 'settingslogic'
|
13
|
+
require 'sass'
|
14
|
+
require 'bootstrap-sass'
|
15
|
+
require 'select2-rails'
|
16
|
+
|
17
|
+
module AppFrame
|
18
|
+
autoload :ControllerMethods, 'app_frame/controller_methods'
|
19
|
+
autoload :ViewMethods, 'app_frame/view_methods'
|
20
|
+
|
21
|
+
mattr_accessor :app_name
|
22
|
+
@@app_name = "AppFrame"
|
23
|
+
|
24
|
+
def self.theme
|
25
|
+
'app_frame'
|
26
|
+
end
|
27
|
+
end
|