activeadmin-generator 0.0.13 → 0.0.14

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c37b573c96ecf7af98ececdba2b8222f44b0bcd6
4
+ data.tar.gz: 999bef6a0da86bfe2caee076b544f730d9506e6a
5
+ SHA512:
6
+ metadata.gz: dbddee811c9c0d18f94dc10280fe437190436db55ef282e72fe701de87a20c282cac93a2798f0cb123178b271e25e3a61f40b6631447b2edadae89bbc69a74db
7
+ data.tar.gz: 7cf4a576e3252c679c29a324af3f9ca1e4f5096230299de63029c11e0ec16ab8326345254edb6caaff557eca36be20d4937baeb6acae650df748d1b22cc142e4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activeadmin-generator (0.0.12)
4
+ activeadmin-generator (0.0.13)
5
5
  heroku-api
6
6
  mechanize
7
7
  railties
@@ -12,64 +12,64 @@ PATH
12
12
  GEM
13
13
  remote: http://rubygems.org/
14
14
  specs:
15
- actionpack (3.2.11)
16
- activemodel (= 3.2.11)
17
- activesupport (= 3.2.11)
15
+ actionpack (3.2.13)
16
+ activemodel (= 3.2.13)
17
+ activesupport (= 3.2.13)
18
18
  builder (~> 3.0.0)
19
19
  erubis (~> 2.7.0)
20
20
  journey (~> 1.0.4)
21
- rack (~> 1.4.0)
21
+ rack (~> 1.4.5)
22
22
  rack-cache (~> 1.2)
23
23
  rack-test (~> 0.6.1)
24
24
  sprockets (~> 2.2.1)
25
- activemodel (3.2.11)
26
- activesupport (= 3.2.11)
25
+ activemodel (3.2.13)
26
+ activesupport (= 3.2.13)
27
27
  builder (~> 3.0.0)
28
- activesupport (3.2.11)
29
- i18n (~> 0.6)
28
+ activesupport (3.2.13)
29
+ i18n (= 0.6.1)
30
30
  multi_json (~> 1.0)
31
31
  builder (3.0.4)
32
- domain_name (0.5.7)
33
- unf (~> 0.0.3)
32
+ domain_name (0.5.11)
33
+ unf (>= 0.0.5, < 1.0.0)
34
34
  erubis (2.7.0)
35
- excon (0.16.10)
36
- heroku-api (0.3.7)
37
- excon (~> 0.16.10)
38
- hike (1.2.1)
35
+ excon (0.21.0)
36
+ heroku-api (0.3.10)
37
+ excon (~> 0.21.0)
38
+ hike (1.2.2)
39
39
  i18n (0.6.1)
40
40
  journey (1.0.4)
41
- json (1.7.6)
42
- mechanize (2.5.1)
41
+ json (1.8.0)
42
+ mechanize (2.6.0)
43
43
  domain_name (~> 0.5, >= 0.5.1)
44
44
  mime-types (~> 1.17, >= 1.17.2)
45
45
  net-http-digest_auth (~> 1.1, >= 1.1.1)
46
46
  net-http-persistent (~> 2.5, >= 2.5.2)
47
47
  nokogiri (~> 1.4)
48
48
  ntlm-http (~> 0.1, >= 0.1.1)
49
- webrobots (~> 0.0, >= 0.0.9)
50
- mime-types (1.19)
51
- multi_json (1.5.0)
52
- net-http-digest_auth (1.2.1)
49
+ webrobots (>= 0.0.9, < 0.2)
50
+ mime-types (1.23)
51
+ multi_json (1.7.3)
52
+ net-http-digest_auth (1.3)
53
53
  net-http-persistent (2.8)
54
- nokogiri (1.5.6)
54
+ nokogiri (1.5.9)
55
55
  ntlm-http (0.1.1)
56
56
  proxies (0.2.1)
57
- rack (1.4.4)
57
+ rack (1.4.5)
58
58
  rack-cache (1.2)
59
59
  rack (>= 0.4)
60
- rack-ssl (1.3.2)
60
+ rack-ssl (1.3.3)
61
61
  rack
62
62
  rack-test (0.6.2)
63
63
  rack (>= 1.0)
64
- railties (3.2.11)
65
- actionpack (= 3.2.11)
66
- activesupport (= 3.2.11)
64
+ railties (3.2.13)
65
+ actionpack (= 3.2.13)
66
+ activesupport (= 3.2.13)
67
67
  rack-ssl (~> 1.3.2)
68
68
  rake (>= 0.8.7)
69
69
  rdoc (~> 3.4)
70
70
  thor (>= 0.14.6, < 2.0)
71
- rake (10.0.3)
72
- rdoc (3.12)
71
+ rake (10.0.4)
72
+ rdoc (3.12.2)
73
73
  json (~> 1.4)
74
74
  s3 (0.3.11)
75
75
  proxies (~> 0.2.0)
@@ -78,12 +78,12 @@ GEM
78
78
  multi_json (~> 1.0)
79
79
  rack (~> 1.0)
80
80
  tilt (~> 1.1, != 1.3.0)
81
- thor (0.16.0)
82
- tilt (1.3.3)
83
- unf (0.0.5)
81
+ thor (0.18.1)
82
+ tilt (1.4.1)
83
+ unf (0.1.1)
84
84
  unf_ext
85
- unf_ext (0.0.5)
86
- webrobots (0.0.13)
85
+ unf_ext (0.0.6)
86
+ webrobots (0.1.1)
87
87
 
88
88
  PLATFORMS
89
89
  ruby
@@ -3,7 +3,7 @@ module ::Bricks
3
3
  def before_bundle
4
4
  gem "activeadmin"
5
5
  gem "meta_search"
6
- copy_file "config/locales/devise.it.yml"
6
+ gem "devise-i18n"
7
7
  @site_title = ENV['APP_NAME']
8
8
  end
9
9
 
@@ -10,6 +10,7 @@ module ::Bricks
10
10
  gem 'activeadmin-seo', github: 'nebirhos/activeadmin-seo', branch: 'master'
11
11
  gem 'activeadmin-sortable-tree', github: 'nebirhos/activeadmin-sortable-tree', branch: 'master'
12
12
 
13
+ inject_into_file "config/application.rb", " config.i18n.available_locales = [ :en ]\n", after: "config.i18n.default_locale = :en\n"
13
14
  commit_all "Added ActiveAdmin extra gems"
14
15
  end
15
16
 
@@ -3,11 +3,13 @@ module ::Bricks
3
3
  def before_bundle
4
4
  gem "rails-i18n"
5
5
  gem "slim-rails"
6
+ gem "showcase"
6
7
  gem "compass-rails", group: :assets
7
8
  gem "sextant", group: :development
8
9
  gem "letter_opener", group: :development
9
10
  gem "modernizr-rails", group: :assets
10
11
  gem "sprockets-image_compressor", group: :production
12
+
11
13
  commit_all "Added frontend gems"
12
14
 
13
15
  remove_dir 'app'
@@ -13,6 +13,7 @@ module ::Bricks
13
13
  def before_bundle
14
14
  @heroku_username = ENV['HEROKU_USERNAME'] || ask("Heroku username:")
15
15
  @heroku_password = ENV['HEROKU_PASSWORD'] || ask("Heroku password:")
16
+ @heroku_region = ENV['HEROKU_REGION'] || ask("Heroku region (eu or us):")
16
17
  @heroku_collaborators = ( ENV['HEROKU_COLLABORATORS'] || ask("Specify collaborators' emails:") ).split(/\s*,\s*/).map(&:strip)
17
18
 
18
19
  heroku = ::Heroku::API.new(username: @heroku_username, password: @heroku_password)
@@ -24,7 +25,7 @@ module ::Bricks
24
25
  say "App already created!"
25
26
  rescue ::Heroku::API::Errors::NotFound
26
27
  say "Name available!"
27
- @heroku_app = heroku.post_app('name' => @heroku_appname)
28
+ @heroku_app = heroku.post_app('name' => @heroku_appname, 'region' => @heroku_region)
28
29
  say "Heroku app created!"
29
30
  rescue ::Heroku::API::Errors::Forbidden
30
31
  say "Name already taken! :("
@@ -84,6 +85,10 @@ module ::Bricks
84
85
 
85
86
  gem 'fog', group: 'production'
86
87
  gem 'pg', group: 'production'
88
+ gem 'unicorn'
89
+
90
+ copy_file 'config/unicorn.rb'
91
+ copy_file 'Procfile'
87
92
 
88
93
  commit_all "Configured Heroku and S3"
89
94
  end
@@ -0,0 +1,2 @@
1
+ web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
2
+
@@ -1,15 +1,17 @@
1
- // Define the colors for your specific website
1
+ // // Define the colors for your specific website
2
2
  // You can overwrite colors defined in in libs/config
3
- // every colors is named as $c-color-name
4
- // example
3
+ // every colors are named as $c-color-name
4
+
5
+ // REDEFINE YOUR OWN COLORS
5
6
 
6
7
  // $c-black: #ddd;
7
8
  // $c-black-light: lighten($c-black, 10%);
8
9
  // $c-pink-dark: darken($c-pink, 30%);
9
10
 
11
+
10
12
  // SECTIONS: uncomment and build your favourites
11
13
  // here some example
12
- $c-main: $c-cyan
13
- $c-text: $c-black
14
- $c-link: $c-green
15
- $c-button: $c-main
14
+ // $c-main: $c-cyan
15
+ // $c-text: $c-black
16
+ // $c-link: $c-green
17
+ // $c-button: $c-main
@@ -7,15 +7,16 @@
7
7
 
8
8
  // 1 - IMPORT LIBRARIES AND THIRD PARTIES CSS
9
9
  /* Libraries and resets */
10
- @import basic/config
11
-
12
10
  // general configuration for colors, hive etc.
13
- +global-reset
11
+ @import basic/config
14
12
 
15
13
  // html / css compass reset
16
- @import basic/hive
14
+ +global-reset
17
15
 
18
16
  // the responsive grid
17
+ // @import basic/hive // add gem "hive-rails", :github => "stefanoverna/hive-rails", :branch => "master"
18
+
19
+ // some libs
19
20
  @import basic/fonts
20
21
  @import basic/tables
21
22
  @import basic/forms
@@ -31,3 +31,21 @@
31
31
  +font-base
32
32
  font-family: "Helvetica Neue Regular", "Helvetica Neue", Helvetica, Arial, sans-serif
33
33
  font-size: $size
34
+
35
+ // SOME EXAMPLES MIGHT BE USEFUL
36
+
37
+ // using a google font
38
+ // @import url(http://fonts.googleapis.com/css?family=Open+Sans:300,700,400);
39
+
40
+ // using an icon font (download it from http://www.entypo.com/)
41
+ // @font-face{
42
+ // font-family: 'entypo'
43
+ // src: url("fonts/entypo.eot")
44
+ // src: url("fonts/entypo.eot") format("embedded-opentype"), url("fonts/entypo.woff") format("woff"), url("fonts/entypo.ttf") format("truetype"), url("fonts/entypo.svg#entypo") format("svg")
45
+ // font-weight: normal
46
+ // font-style: normal
47
+ //
48
+ // =icons-font($size: 24px)
49
+ // @include font-base
50
+ // font-family: "entypo"
51
+ // font-size: $size
@@ -0,0 +1 @@
1
+ Slim::Engine.set_default_options :pretty => Rails.env.development?, :sort_attrs => false
@@ -0,0 +1,21 @@
1
+ worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
2
+ timeout 15
3
+ preload_app true
4
+
5
+ before_fork do |server, worker|
6
+ Signal.trap 'TERM' do
7
+ puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
8
+ Process.kill 'QUIT', Process.pid
9
+ end
10
+
11
+ defined?(ActiveRecord::Base) and ActiveRecord::Base.connection.disconnect!
12
+ end
13
+
14
+ after_fork do |server, worker|
15
+ Signal.trap 'TERM' do
16
+ puts 'Unicorn worker intercepting TERM and doing nothing. Wait for master to send QUIT'
17
+ end
18
+
19
+ defined?(ActiveRecord::Base) and ActiveRecord::Base.establish_connection
20
+ end
21
+
@@ -1,6 +1,6 @@
1
1
  module ActiveAdmin
2
2
  module Generator
3
- VERSION = "0.0.13"
3
+ VERSION = "0.0.14"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,110 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
5
- prerelease:
4
+ version: 0.0.14
6
5
  platform: ruby
7
6
  authors:
8
7
  - Stefano Verna
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-08 00:00:00.000000000 Z
11
+ date: 2013-05-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: thor
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: railties
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: s3
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: heroku-api
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: mechanize
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  description: Generate ActiveAdmin projects
@@ -134,6 +121,7 @@ files:
134
121
  - lib/active_admin/generator/bricks/heroku.rb
135
122
  - lib/active_admin/generator/bricks/init.rb
136
123
  - lib/active_admin/generator/cli.rb
124
+ - lib/active_admin/generator/templates/Procfile
137
125
  - lib/active_admin/generator/templates/app/assets/fonts/.empty_directory
138
126
  - lib/active_admin/generator/templates/app/assets/images/.empty_directory
139
127
  - lib/active_admin/generator/templates/app/assets/images/s/credits.png
@@ -166,34 +154,34 @@ files:
166
154
  - lib/active_admin/generator/templates/config/initializers/active_admin.rb
167
155
  - lib/active_admin/generator/templates/config/initializers/dragonfly.rb
168
156
  - lib/active_admin/generator/templates/config/initializers/errbit.rb
169
- - lib/active_admin/generator/templates/config/locales/devise.it.yml
157
+ - lib/active_admin/generator/templates/config/initializers/slim.rb
170
158
  - lib/active_admin/generator/templates/config/locales/it.yml
159
+ - lib/active_admin/generator/templates/config/unicorn.rb
171
160
  - lib/active_admin/generator/templates/db/migrate/20121126113057_create_asset_thumbs.rb
172
161
  - lib/active_admin/generator/version.rb
173
162
  - lib/activeadmin-generator.rb
174
163
  homepage: ''
175
164
  licenses: []
165
+ metadata: {}
176
166
  post_install_message:
177
167
  rdoc_options: []
178
168
  require_paths:
179
169
  - lib
180
170
  required_ruby_version: !ruby/object:Gem::Requirement
181
- none: false
182
171
  requirements:
183
- - - ! '>='
172
+ - - '>='
184
173
  - !ruby/object:Gem::Version
185
174
  version: '0'
186
175
  required_rubygems_version: !ruby/object:Gem::Requirement
187
- none: false
188
176
  requirements:
189
- - - ! '>='
177
+ - - '>='
190
178
  - !ruby/object:Gem::Version
191
179
  version: '0'
192
180
  requirements: []
193
181
  rubyforge_project:
194
- rubygems_version: 1.8.23
182
+ rubygems_version: 2.0.0
195
183
  signing_key:
196
- specification_version: 3
184
+ specification_version: 4
197
185
  summary: Generate ActiveAdmin projects
198
186
  test_files: []
199
187
  has_rdoc:
@@ -1,55 +0,0 @@
1
- it:
2
- errors:
3
- messages:
4
- expired: "è scaduto, si prega di richiederne uno nuovo"
5
- not_found: "non trovato"
6
- already_confirmed: "è stato già confermato, prova ad effettuare un nuovo accesso"
7
- not_locked: "non era bloccato"
8
- not_saved:
9
- one: "Non posso salvare questo %{resource}: 1 errore"
10
- other: "Non posso salvare questo %{resource}: %{count} errori."
11
-
12
- devise:
13
- failure:
14
- already_authenticated: "Hai già effettuato l'accesso."
15
- unauthenticated: "Devi accedere o registrarti per continuare."
16
- unconfirmed: "Devi confermare il tuo account per continuare."
17
- locked: "Il tuo account è bloccato."
18
- invalid: "Indirizzo email o password non validi."
19
- invalid_token: "Codice di autenticazione non valido."
20
- timeout: "Sessione scaduta, accedere nuovamente per continuare."
21
- inactive: "Il tuo account non è stato ancora attivato."
22
- sessions:
23
- signed_in: "Accesso effettuato con successo."
24
- signed_out: "Sei uscito correttamente."
25
- passwords:
26
- send_instructions: "Entro qualche minuto riceverai un messaggio email con le istruzioni per reimpostare la tua password."
27
- updated: "La tua password è stata cambiata. Ora sei collegato."
28
- updated_not_active: "La tua password è stata cambiata."
29
- send_paranoid_instructions: "Se la tua email esiste nel nostro database, entro qualche minuto riceverai un messaggio email contentente un link per il ripristino della password"
30
- confirmations:
31
- send_instructions: "Riceverai un messaggio email con le istruzioni per confermare il tuo account entro qualche minuto."
32
- send_paranoid_instructions: "Se la tua email esiste nel nostro database, entro qualche minuto riceverai un messaggio email con le istruzioni per confermare il tuo account."
33
- confirmed: "Il tuo account è stato correttamente confermato. Ora sei collegato."
34
- registrations:
35
- signed_up: "Benvenuto! Ti sei registrato correttamente."
36
- signed_up_but_unconfirmed: "Ti sei registrato correttamente. Tuttavia non puoi effettuare l'accesso perchè il tuo account è da confermare. Per favore apri il link che hai ricevuto tramite email per attivare il tuo account."
37
- signed_up_but_inactive: "Ti sei registrato correttamente. Tuttavia non puoi effettuare l'accesso perchè il tuo account non è stato ancora attivato."
38
- signed_up_but_locked: "Ti sei registrato correttamente. Tuttavia non puoi effettuare l'accesso perchè il tuo account è bloccato."
39
- updated: "Il tuo account è stato aggiornato."
40
- update_needs_confirmation: "Il tuo account è stato aggiornato, tuttavia è necessario verificare il tuo nuovo indirizzo email. Entro qualche minuto riceverai un messaggio email con le istruzioni per confermare il tuo nuovo indirizzo email."
41
- destroyed: "Arrivederci! L'account è stato cancellato. Speriamo di rivederci presto."
42
- unlocks:
43
- send_instructions: "Entro qualche minuto riceverai un messaggio email con le istruzioni per sbloccare il tuo account."
44
- unlocked: "Il tuo account è stato correttamente sbloccato. Ora sei collegato."
45
- send_paranoid_instructions: "Se la tua email esiste nel nostro database, entro qualche minuto riceverai un messaggio email con le istruzioni per sbloccare il tuo account."
46
- omniauth_callbacks:
47
- success: "Autenticato con successo dall'account %{kind}."
48
- failure: 'Non è stato possibile autenticarti come %{kind} perchè "%{reason}".'
49
- mailer:
50
- confirmation_instructions:
51
- subject: "Istruzioni per la conferma"
52
- reset_password_instructions:
53
- subject: "Istruzioni per reimpostare la password"
54
- unlock_instructions:
55
- subject: "Istruzioni per sbloccare l'account"