app_drone 0.7.0 → 0.8.0

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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  AppDrone aims to take the bore out of setting up a Rails app just the way you like it. It's a code library that builds generator code that builds your Rails app code - R A I L S C E P T I O N!
8
8
 
9
- *If you're super lazy, a shiny UI for choosing and configuring drones is coming soon! Right now, it's CLI only :P*
9
+ Don't want to fiddle around with the command line? No problem! Head on over to http://drone.bz and make use of the shiny Ember.js-powered UI.
10
10
 
11
11
 
12
12
  ## Installation
@@ -249,12 +249,21 @@ AppDrone is not for everyone. It's highly opinionated about how a Rails app shou
249
249
  - [base] Javascript (Coffescript & jQuery)
250
250
  - [base] SlimView
251
251
  - [base] Cleanup
252
- - [views] HighVoltage
252
+ - [views] HighVoltage, by ThoughtBot
253
253
  - [views] Flair (drones use this to demonstrate their working functionality)
254
254
  - [views] SimpleForm (with optional Country Select and automatic Twitter Bootstrap integration)
255
- - [ui] Chosen, by harvestHQ
255
+ - [auth] Sorcery, for no-frills user authentication
256
+ - [auth] CanCan, for role-based authorization
257
+ - [auth] EasyRoles, to add roles to your User models
258
+ - [model] Migrant, for easier schema management
259
+ - [model] Squeel, improving on ActiveRelation
260
+ - [model] RankedModel, for sorting and ranking objects
261
+ - [ui] Chosen select, by harvestHQ
256
262
  - [ui] Bootstrap, by Twitter
263
+ - [ui] Gritter, for jQuery growl-like notifications
264
+ - [ui] Underscore.js utility belt
257
265
  - [ux] Ember (the Ember.js library)
266
+ - [dev] LetterOpener, to preview email in the browser instead of sending it
258
267
 
259
268
 
260
269
  ### Frozen drones (currently in development)
@@ -287,7 +296,7 @@ AppDrone is not for everyone. It's highly opinionated about how a Rails app shou
287
296
 
288
297
  - [ui] Stylesheet utils
289
298
  - [ui] SlimViews: Add browser-specific classes to <html> via useragent + helpers..
290
- - [ui] Bootstrap: vendor files rather than gem require
299
+ - [ui] Bootstrap: vendor files rather than gem require (is this necessary? seems all variables can be customized in an external sheet as long as it's required before compass_twitter_bootstrap)
291
300
  - [ui] jQuery shims
292
301
  - [ui] jQuery UI (vendor + theme etc.)
293
302
  - [ui] pie.htc for IE
@@ -314,6 +323,7 @@ AppDrone is not for everyone. It's highly opinionated about how a Rails app shou
314
323
  - [?] Nokogiri
315
324
  - [?] Mechanize
316
325
  - [?] Money
326
+ - [misc] NiftyGenerators
317
327
  - [ui] jQuery.transit
318
328
  - [ui] Ember Touch (gesture support for Ember: pinch, pan etc.)
319
329
 
data/README.md~ CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  AppDrone aims to take the bore out of setting up a Rails app just the way you like it. It's a code library that builds generator code that builds your Rails app code - R A I L S C E P T I O N!
8
8
 
9
- *If you're super lazy, a shiny UI for choosing and configuring drones is coming soon! Right now, it's CLI only :P*
9
+ Don't want to fiddle around with the command line? No problem! Head on over to http://drone.bz and make use of the shiny Ember.js-powered UI.
10
10
 
11
11
 
12
12
  ## Installation
@@ -249,12 +249,21 @@ AppDrone is not for everyone. It's highly opinionated about how a Rails app shou
249
249
  - [base] Javascript (Coffescript & jQuery)
250
250
  - [base] SlimView
251
251
  - [base] Cleanup
252
- - [views] HighVoltage
252
+ - [views] HighVoltage, by ThoughtBot
253
253
  - [views] Flair (drones use this to demonstrate their working functionality)
254
254
  - [views] SimpleForm (with optional Country Select and automatic Twitter Bootstrap integration)
255
- - [ui] Chosen, by harvestHQ
255
+ - [auth] Sorcery, for no-frills user authentication
256
+ - [auth] CanCan, for role-based authorization
257
+ - [auth] EasyRoles, to add roles to your User models
258
+ - [model] Migrant, for easier schema management
259
+ - [model] Squeel, improving on ActiveRelation
260
+ - [model] RankedModel, for sorting and ranking objects
261
+ - [ui] Chosen select, by harvestHQ
256
262
  - [ui] Bootstrap, by Twitter
263
+ - [ui] Gritter, for jQuery growl-like notifications
264
+ - [ui] Underscore.js utility belt
257
265
  - [ux] Ember (the Ember.js library)
266
+ - [dev] LetterOpener, to preview email in the browser instead of sending it
258
267
 
259
268
 
260
269
  ### Frozen drones (currently in development)
@@ -282,14 +291,12 @@ AppDrone is not for everyone. It's highly opinionated about how a Rails app shou
282
291
  - [dev] Letter opener
283
292
  - [ui] Underscore Rails
284
293
  - [mailing] SendGrid
285
- - [ui] jQuery.transit
286
-
287
294
 
288
295
  ### Future drones (TODO - I'll get there some day!)
289
296
 
290
297
  - [ui] Stylesheet utils
291
298
  - [ui] SlimViews: Add browser-specific classes to <html> via useragent + helpers..
292
- - [ui] Bootstrap: vendor files rather than gem require
299
+ - [ui] Bootstrap: vendor files rather than gem require (is this necessary? seems all variables can be customized in an external sheet as long as it's required before compass_twitter_bootstrap)
293
300
  - [ui] jQuery shims
294
301
  - [ui] jQuery UI (vendor + theme etc.)
295
302
  - [ui] pie.htc for IE
@@ -316,6 +323,10 @@ AppDrone is not for everyone. It's highly opinionated about how a Rails app shou
316
323
  - [?] Nokogiri
317
324
  - [?] Mechanize
318
325
  - [?] Money
326
+ - [misc] NiftyGenerators
327
+ - [ui] jQuery.transit
328
+ - [ui] Ember Touch (gesture support for Ember: pinch, pan etc.)
329
+
319
330
 
320
331
 
321
332
  ## Contributing
@@ -87,7 +87,7 @@ class Drone
87
87
  end
88
88
 
89
89
  def dependants
90
- self.superclass.drones.select { |d| d.to_app_drone_class.dependencies.include?(self) }
90
+ self.superclass.drones.select { |d| d.to_app_drone_class.dependencies.include?(self) }.map(&:to_app_drone_class)
91
91
  end
92
92
 
93
93
  def pairs_with(*klass_symbols); @pairs = klass_symbols end
@@ -4,7 +4,8 @@ class Bootstrap < Drone
4
4
  desc "Installs Twitter Bootstrap stylesheets and javascripts"
5
5
  category :ui
6
6
 
7
- param :vendor, :boolean, info: 'place a local copy of the files into the repo for customization'
7
+ #param :vendor, :boolean, info: 'place a local copy of the files into the repo for customization'
8
+
8
9
  param :responsive, :boolean, info: 'include responsive grid'
9
10
  param :font_awesome, :boolean, info: 'use font-awesome for icons', default: true
10
11
  param :javascript_plugins, :choose_many, info: 'pipeline javascript plugin files', default: [], choices: %w(modal dropdown scrollspy tab tooltip popover alert button collapse carousel typeahead)
@@ -4,7 +4,7 @@ class Bootstrap < Drone
4
4
  desc "Installs Twitter Bootstrap stylesheets and javascripts"
5
5
  category :ui
6
6
 
7
- param :vendor, :boolean, info: 'place a local copy of the files into the repo for customization'
7
+ #param :vendor, :boolean, info: 'place a local copy of the files into the repo for customization'
8
8
  param :responsive, :boolean, info: 'include responsive grid'
9
9
  param :font_awesome, :boolean, info: 'use font-awesome for icons', default: true
10
10
  param :javascript_plugins, :choose_many, info: 'pipeline javascript plugin files', default: [], choices: %w(modal dropdown scrollspy tab tooltip popover alert button collapse carousel typeahead)
@@ -0,0 +1,8 @@
1
+ button#gritterTrigger Growl for me, baby!
2
+
3
+ javascript:
4
+ $(function() {
5
+ $('#gritterTrigger').click(function() {
6
+ $.gritter.add({ title: 'Grrrrrr!!!', text: 'Like that? :P', time: 2000 });
7
+ });
8
+ });
@@ -0,0 +1,8 @@
1
+ button#gritterTrigger Growl for me, baby!
2
+
3
+ javascript:
4
+ $(function() {
5
+ $('#gritterTrigger').click(function() {
6
+ $.gritter.add({ title: 'Grrrrrr!!!', text: 'Like that? :P', time: 2000, position: 'top-left' });
7
+ });
8
+ });
@@ -0,0 +1,21 @@
1
+ module AppDrone
2
+ class Gritter < Drone
3
+ desc "Growl-like notifications for jQuery"
4
+ category :ui
5
+
6
+ depends_on :bundle, :stylesheet, :javascript
7
+ pairs_with :flair
8
+
9
+ def align
10
+ bundle.add 'gritter'
11
+ stylesheet.import 'gritter'
12
+ javascript.pipeline 'gritter'
13
+ flair!
14
+ end
15
+
16
+ def execute
17
+ do! :install
18
+ end
19
+
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module AppDrone
2
+ class Gritter < Drone
3
+ desc "Growl-like notifications for jQuery"
4
+ category :ui
5
+
6
+ depends_on :bundle, :stylesheet, :javascript
7
+ pairs_with :flair
8
+
9
+ def align
10
+ bundle.add 'gritter'
11
+ stylesheet.import 'gritter'
12
+ javascript.pipeline 'gritter'
13
+ flair!
14
+ end
15
+
16
+ def execute
17
+ do! :install
18
+ end
19
+
20
+ end
21
+ end
@@ -0,0 +1 @@
1
+ generate 'gritter:locale'
@@ -0,0 +1 @@
1
+ generate "gritter:locale"
@@ -1,3 +1,3 @@
1
1
  module AppDrone
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module AppDrone
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
data/out.rb CHANGED
@@ -27,11 +27,7 @@ class AppBuilder < Rails::AppBuilder
27
27
  @generator.gem 'compass-rails'
28
28
  @generator.gem 'slim-rails'
29
29
  @generator.gem 'high_voltage'
30
- @generator.gem 'simple_form'
31
- @generator.gem 'country_select'
32
- @generator.gem 'compass_twitter_bootstrap', :git=>"git://github.com/vwall/compass-twitter-bootstrap.git", :group=>:assets
33
- @generator.gem 'chosen-rails'
34
- @generator.gem 'ember-rails'
30
+ @generator.gem 'letter_opener', :group=>:development
35
31
 
36
32
  run_bundle
37
33
  @generator.options = @generator.options.dup
@@ -52,19 +48,13 @@ js_asset_path = File.join %w(app assets javascripts application.js)
52
48
  //= require jquery
53
49
  //= require jquery_ujs
54
50
  //= require init
55
- //= require bootstrap-modal
56
- //= require bootstrap-transition
57
- //= require chosen-jquery
58
- //= require ember
59
- //= require ember/#{app_name}.js
60
51
 
61
52
  COFFEE
62
53
 
63
54
  @coffee_init_path = File.join %w(app assets javascripts init.js.coffee)
64
55
  @generator.create_file @coffee_init_path, <<-COFFEE
65
56
  $(document).ready ->
66
- $('.chzn-select').chosen();
67
-
57
+
68
58
 
69
59
  COFFEE
70
60
 
@@ -76,12 +66,9 @@ COFFEE
76
66
  @sass_asset_path = File.join %w(app assets stylesheets application.css.sass)
77
67
 
78
68
  @generator.create_file @sass_asset_path, <<-SASS
79
- /*= require chosen */
80
69
  /*= require_self */
81
70
 
82
71
  @import 'compass'
83
- @import 'compass_twitter_bootstrap_awesome'
84
- @import 'compass_twitter_bootstrap_responsive'
85
72
 
86
73
  SASS
87
74
 
@@ -116,23 +103,6 @@ FileUtils.mkpath 'app/views/pages'
116
103
  h1 Flair!
117
104
 
118
105
 
119
- h3 Bootstrap
120
-
121
- .btn-group
122
- a.btn.btn-primary.btn-large Shiny!
123
-
124
- a.btn.btn-large
125
- i.icon-thumbs-up
126
- | with Font Awesome!
127
-
128
-
129
- h3 Chosen
130
-
131
- select.chzn-select
132
- option One
133
- option Two
134
- option Three
135
-
136
106
  FLAIR
137
107
 
138
108
  # ---
@@ -143,16 +113,9 @@ FLAIR
143
113
  @generator.remove_file File.join %w(README.rdoc)
144
114
 
145
115
  # ---
146
- # AppDrone::SimpleForm
147
- # ---
148
- generate "simple_form:install --bootstrap"
149
-
150
- # ---
151
- # AppDrone::Ember
116
+ # AppDrone::LetterOpener
152
117
  # ---
153
-
154
- generate "ember:bootstrap"
155
-
118
+ @generator.inject_into_file 'config/environments/development.rb', "\n\n config.action_mailer.delivery_method = :letter_opener", before: "\nend"
156
119
 
157
120
  rake 'db:migrate'
158
121
  say "She's all yours, sparky!\n\n", :green
@@ -16,17 +16,14 @@ class AppDroneTest < Test::Unit::TestCase
16
16
  end
17
17
 
18
18
  def test_dependants
19
- puts AppDrone::Bundle.dependants
19
+ d = AppDrone::Bundle.dependants
20
20
  end
21
21
 
22
22
  def test_basic_behavior
23
23
  template = Template.new
24
24
  add_defaults_to_template(template)
25
25
 
26
- template.add :simple_form
27
- template.add :bootstrap, responsive: true, javascript_plugins: %w(modal transition)
28
- template.add :chosen
29
- template.add :ember, app_skeleton: true
26
+ template.add :letter_opener
30
27
 
31
28
  template.render_to_file
32
29
  end
@@ -16,17 +16,14 @@ class AppDroneTest < Test::Unit::TestCase
16
16
  end
17
17
 
18
18
  def test_dependants
19
- puts AppDrone::Bundle.dependants
19
+ d = AppDrone::Bundle.dependants
20
20
  end
21
21
 
22
22
  def test_basic_behavior
23
23
  template = Template.new
24
24
  add_defaults_to_template(template)
25
25
 
26
- template.add :simple_form
27
- template.add :bootstrap, responsive: true, javascript_plugins: %w(modal transition)
28
- template.add :chosen
29
- template.add :ember, app_skeleton: true
26
+ template.add :ranked_model
30
27
 
31
28
  template.render_to_file
32
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_drone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-01 00:00:00.000000000 Z
12
+ date: 2012-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &20614120 !ruby/object:Gem::Requirement
16
+ requirement: &19141500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 3.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *20614120
24
+ version_requirements: *19141500
25
25
  description: Give your Rails apps a kickstart
26
26
  email:
27
27
  - whoisdanieldavey@gmail.com
@@ -76,6 +76,12 @@ files:
76
76
  - lib/app_drone/drones/flair/flair_page.erb~
77
77
  - lib/app_drone/drones/flair/showcase.rb~
78
78
  - lib/app_drone/drones/flair/showcase_page.erb~
79
+ - lib/app_drone/drones/gritter/flair.html.slim.erb
80
+ - lib/app_drone/drones/gritter/flair.html.slim.erb~
81
+ - lib/app_drone/drones/gritter/gritter.rb
82
+ - lib/app_drone/drones/gritter/gritter.rb~
83
+ - lib/app_drone/drones/gritter/install.erb
84
+ - lib/app_drone/drones/gritter/install.erb~
79
85
  - lib/app_drone/drones/high_voltage/create_pages_directory.erb
80
86
  - lib/app_drone/drones/high_voltage/create_pages_directory.erb~
81
87
  - lib/app_drone/drones/high_voltage/high_voltage.rb