activeadmin-generator 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +12 -12
- data/lib/active_admin/generator/bricks/active_admin_extras.rb +1 -0
- data/lib/active_admin/generator/bricks/frontend.rb +9 -6
- data/lib/active_admin/generator/templates/app/assets/javascripts/application.js.coffee +1 -3
- data/lib/active_admin/generator/templates/app/controllers/application_controller.rb +8 -0
- data/lib/active_admin/generator/templates/app/views/layouts/application.html.slim +5 -4
- data/lib/active_admin/generator/templates/app/views/shared/_flash_messages.html.slim +4 -0
- data/lib/active_admin/generator/templates/app/views/shared/_footer.html.slim +2 -0
- data/lib/active_admin/generator/templates/app/views/{application → shared}/_head.html.slim +1 -0
- data/lib/active_admin/generator/templates/app/views/{application → shared}/_header.html.slim +0 -0
- data/lib/active_admin/generator/templates/app/views/{application → shared}/_js_includes.html.slim +0 -0
- data/lib/active_admin/generator/templates/config/locales/it.yml +11 -0
- data/lib/active_admin/generator/version.rb +1 -1
- metadata +7 -6
- data/lib/active_admin/generator/templates/app/views/application/_footer.html.slim +0 -2
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
activeadmin-generator (0.0.
|
4
|
+
activeadmin-generator (0.0.8)
|
5
5
|
heroku-api
|
6
6
|
mechanize
|
7
7
|
railties
|
@@ -12,9 +12,9 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: http://rubygems.org/
|
14
14
|
specs:
|
15
|
-
actionpack (3.2.
|
16
|
-
activemodel (= 3.2.
|
17
|
-
activesupport (= 3.2.
|
15
|
+
actionpack (3.2.11)
|
16
|
+
activemodel (= 3.2.11)
|
17
|
+
activesupport (= 3.2.11)
|
18
18
|
builder (~> 3.0.0)
|
19
19
|
erubis (~> 2.7.0)
|
20
20
|
journey (~> 1.0.4)
|
@@ -22,10 +22,10 @@ GEM
|
|
22
22
|
rack-cache (~> 1.2)
|
23
23
|
rack-test (~> 0.6.1)
|
24
24
|
sprockets (~> 2.2.1)
|
25
|
-
activemodel (3.2.
|
26
|
-
activesupport (= 3.2.
|
25
|
+
activemodel (3.2.11)
|
26
|
+
activesupport (= 3.2.11)
|
27
27
|
builder (~> 3.0.0)
|
28
|
-
activesupport (3.2.
|
28
|
+
activesupport (3.2.11)
|
29
29
|
i18n (~> 0.6)
|
30
30
|
multi_json (~> 1.0)
|
31
31
|
builder (3.0.4)
|
@@ -38,7 +38,7 @@ GEM
|
|
38
38
|
hike (1.2.1)
|
39
39
|
i18n (0.6.1)
|
40
40
|
journey (1.0.4)
|
41
|
-
json (1.7.
|
41
|
+
json (1.7.6)
|
42
42
|
mechanize (2.5.1)
|
43
43
|
domain_name (~> 0.5, >= 0.5.1)
|
44
44
|
mime-types (~> 1.17, >= 1.17.2)
|
@@ -54,16 +54,16 @@ GEM
|
|
54
54
|
nokogiri (1.5.6)
|
55
55
|
ntlm-http (0.1.1)
|
56
56
|
proxies (0.2.1)
|
57
|
-
rack (1.4.
|
57
|
+
rack (1.4.3)
|
58
58
|
rack-cache (1.2)
|
59
59
|
rack (>= 0.4)
|
60
60
|
rack-ssl (1.3.2)
|
61
61
|
rack
|
62
62
|
rack-test (0.6.2)
|
63
63
|
rack (>= 1.0)
|
64
|
-
railties (3.2.
|
65
|
-
actionpack (= 3.2.
|
66
|
-
activesupport (= 3.2.
|
64
|
+
railties (3.2.11)
|
65
|
+
actionpack (= 3.2.11)
|
66
|
+
activesupport (= 3.2.11)
|
67
67
|
rack-ssl (~> 1.3.2)
|
68
68
|
rake (>= 0.8.7)
|
69
69
|
rdoc (~> 3.4)
|
@@ -8,6 +8,7 @@ module ::Bricks
|
|
8
8
|
gem 'activeadmin-gallery', github: 'stefanoverna/activeadmin-gallery', branch: 'master'
|
9
9
|
gem 'activeadmin-extra', github: 'stefanoverna/activeadmin-extra', branch: 'master'
|
10
10
|
gem 'activeadmin-seo', github: 'nebirhos/activeadmin-seo', branch: 'master'
|
11
|
+
gem 'activeadmin-sortable-tree', github: 'nebirhos/activeadmin-sortable-tree', branch: 'master'
|
11
12
|
|
12
13
|
commit_all "Added ActiveAdmin extra gems"
|
13
14
|
end
|
@@ -3,13 +3,11 @@ module ::Bricks
|
|
3
3
|
def before_bundle
|
4
4
|
gem "rails-i18n"
|
5
5
|
gem "slim-rails"
|
6
|
-
gem "compass-rails"
|
7
|
-
gem "sextant"
|
8
|
-
gem "modernizr-rails"
|
6
|
+
gem "compass-rails", group: :assets
|
7
|
+
gem "sextant", group: :development
|
8
|
+
gem "modernizr-rails", group: :assets
|
9
9
|
gem "hive-rails", github: 'stefanoverna/hive-rails', branch: 'master'
|
10
|
-
gem "sprockets-image_compressor"
|
11
|
-
gem 'better_errors'
|
12
|
-
gem 'binding_of_caller'
|
10
|
+
gem "sprockets-image_compressor", group: :production
|
13
11
|
commit_all "Added frontend gems"
|
14
12
|
|
15
13
|
remove_dir 'app'
|
@@ -19,6 +17,7 @@ module ::Bricks
|
|
19
17
|
commit_all "Added basic frontend skeleton"
|
20
18
|
|
21
19
|
apply_i18n_routes!
|
20
|
+
apply_letter_opener!
|
22
21
|
end
|
23
22
|
|
24
23
|
def apply_i18n_routes!
|
@@ -27,6 +26,10 @@ module ::Bricks
|
|
27
26
|
commit_all "Added i18n routes"
|
28
27
|
end
|
29
28
|
|
29
|
+
def apply_letter_opener!
|
30
|
+
inject_into_file "config/environments/development.rb", " config.action_mailer.delivery_method = :letter_opener", after: 'config.assets.debug = true'
|
31
|
+
end
|
32
|
+
|
30
33
|
end
|
31
34
|
end
|
32
35
|
|
@@ -1,11 +1,12 @@
|
|
1
1
|
doctype 5
|
2
2
|
html
|
3
|
-
head= render "head"
|
3
|
+
head= render "shared/head"
|
4
4
|
body
|
5
5
|
.hive: .cell_100
|
6
|
-
= render "
|
6
|
+
= render "shared/flash_messages"
|
7
|
+
= render "shared/header"
|
7
8
|
section.page_content= yield
|
8
|
-
= render "footer"
|
9
|
+
= render "shared/footer"
|
9
10
|
|
10
|
-
= render "js_includes"
|
11
|
+
= render "shared/js_includes"
|
11
12
|
|
data/lib/active_admin/generator/templates/app/views/{application → shared}/_header.html.slim
RENAMED
File without changes
|
data/lib/active_admin/generator/templates/app/views/{application → shared}/_js_includes.html.slim
RENAMED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -151,11 +151,12 @@ files:
|
|
151
151
|
- lib/active_admin/generator/templates/app/controllers/application_controller.rb
|
152
152
|
- lib/active_admin/generator/templates/app/controllers/static_controller.rb
|
153
153
|
- lib/active_admin/generator/templates/app/models/asset_thumb.rb
|
154
|
-
- lib/active_admin/generator/templates/app/views/application/_footer.html.slim
|
155
|
-
- lib/active_admin/generator/templates/app/views/application/_head.html.slim
|
156
|
-
- lib/active_admin/generator/templates/app/views/application/_header.html.slim
|
157
|
-
- lib/active_admin/generator/templates/app/views/application/_js_includes.html.slim
|
158
154
|
- lib/active_admin/generator/templates/app/views/layouts/application.html.slim
|
155
|
+
- lib/active_admin/generator/templates/app/views/shared/_flash_messages.html.slim
|
156
|
+
- lib/active_admin/generator/templates/app/views/shared/_footer.html.slim
|
157
|
+
- lib/active_admin/generator/templates/app/views/shared/_head.html.slim
|
158
|
+
- lib/active_admin/generator/templates/app/views/shared/_header.html.slim
|
159
|
+
- lib/active_admin/generator/templates/app/views/shared/_js_includes.html.slim
|
159
160
|
- lib/active_admin/generator/templates/app/views/static/homepage.html.slim
|
160
161
|
- lib/active_admin/generator/templates/config/active_admin_initializer.rb
|
161
162
|
- lib/active_admin/generator/templates/config/database.yml
|