activeadmin-generator 0.0.7 → 0.0.8

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activeadmin-generator (0.0.7)
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.9)
16
- activemodel (= 3.2.9)
17
- activesupport (= 3.2.9)
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.9)
26
- activesupport (= 3.2.9)
25
+ activemodel (3.2.11)
26
+ activesupport (= 3.2.11)
27
27
  builder (~> 3.0.0)
28
- activesupport (3.2.9)
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.5)
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.1)
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.9)
65
- actionpack (= 3.2.9)
66
- activesupport (= 3.2.9)
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,6 +1,4 @@
1
1
  #= require jquery
2
2
  #= require jquery_ujs
3
- #= require modernizr
4
- #= require_tree .
5
-
6
3
 
4
+ $ ->
@@ -1,3 +1,11 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  protect_from_forgery
3
+ before_filter :set_locale # ActiveAdmin's fault
4
+
5
+ private
6
+
7
+ def set_locale
8
+ I18n.locale = I18n.default_locale
9
+ I18n.reload!
10
+ end
3
11
  end
@@ -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 "header"
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
 
@@ -0,0 +1,4 @@
1
+ - flash.each do |type, message|
2
+ .flash-message class=type
3
+ = message
4
+
@@ -3,4 +3,5 @@ meta http-equiv="Content-Type" content="text/html; charset=utf-8"
3
3
  meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1"
4
4
  = stylesheet_link_tag "application", :media => "all"
5
5
  = csrf_meta_tags
6
+ = javascript_include_tag "modernizr"
6
7
 
@@ -4,3 +4,14 @@ it:
4
4
 
5
5
  named_routes_path:
6
6
  foo: 'bar'
7
+
8
+ activerecord:
9
+ models:
10
+ foobar:
11
+ one: "Antano"
12
+ other: "Antani"
13
+
14
+ attributes:
15
+ _destroy: "Elimina"
16
+ title: "Titolo"
17
+ name: "Nome"
@@ -1,6 +1,6 @@
1
1
  module ActiveAdmin
2
2
  module Generator
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
6
6
 
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.7
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: 2012-12-29 00:00:00.000000000 Z
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