app_drone 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -244,50 +244,79 @@ AppDrone is not for everyone. It's highly opinionated about how a Rails app shou
244
244
 
245
245
  ### Active drones (put 'em to work!)
246
246
 
247
- - Bundle
248
- - Stylesheet (Sass & Compass)
249
- - Javascript (Coffescript & jQuery)
250
- - SlimView
251
- - HighVoltage
252
- - Ember (the Ember.js library)
253
- - Chosen, by harvestHQ
254
- - Bootstrap, by Twitter
255
- - SimpleForm (with optional Country Select and automatic Twitter Bootstrap integration)
256
- - Flair (drones use this to demonstrate their working functionality)
257
- - Cleanup
247
+ - [base] Bundle
248
+ - [base] Stylesheet (Sass & Compass)
249
+ - [base] Javascript (Coffescript & jQuery)
250
+ - [base] SlimView
251
+ - [base] Cleanup
252
+ - [views] HighVoltage
253
+ - [views] Flair (drones use this to demonstrate their working functionality)
254
+ - [views] SimpleForm (with optional Country Select and automatic Twitter Bootstrap integration)
255
+ - [ui] Chosen, by harvestHQ
256
+ - [ui] Bootstrap, by Twitter
257
+ - [ux] Ember (the Ember.js library)
258
258
 
259
259
 
260
260
  ### Frozen drones (currently in development)
261
261
 
262
- - RankedModel
263
- - Git
264
- - RSpec
265
- - FactoryGirl
266
- - Guard
262
+ - [base] Database (currenly rake db:migrate in template will break non-sqlite dbs)
263
+ - [auth] CanCan
264
+ - [auth] Sorcery
265
+ - [auth] Devise
266
+ - [auth] EasyRoles
267
+ - [test] RSpec
268
+ - [test] FactoryGirl
269
+ - [test] DatabaseCleaner
270
+ - [test] TimeCop
271
+ - [test] Capybara
272
+ - [test] Shoulda
273
+ - [test?] Chronic
274
+ - [dev] Migrant (+ Pickle support?)
275
+ - [dev] Guard
276
+ - [source-control] Git
277
+ - [model] RankedModel
278
+ - [model] Squeel
279
+ - [requests] Responders
280
+ - [requests] InheritedResources (deprecated)
281
+ - [requests] UserAgent blocking script
282
+ - [dev] Letter opener
283
+ - [ui] Underscore Rails
284
+ - [mailing] SendGrid
267
285
 
268
286
  ### Future drones (TODO - I'll get there some day!)
269
287
 
270
- - Database (currenly rake db:migrate in template will break non-sqlite dbs)
271
- - Stylesheet utils
272
- - SlimViews: Add browser-specific classes to <html> via useragent + helpers..
273
- - UserAgent blocking script
274
- - Responders
275
- - Bootstrap: vendor files rather than gem require
276
- - EasyRoles
277
- - Migrant
278
- - HasScope
279
- - Pagination
280
- - jQuery shims
281
- - jQuery UI (vendor + theme etc.)
282
- - pie.htc for IE
283
- - HTML5 shim for IE
284
- - Airbrake + API Key
285
- - CarrierWave (and optional cloud resizing thingy)
286
- - rails-best-practices (and the other output gem for debugging)
287
- - NewRelic
288
- - EngineYard for deployment
289
- - Backbone integration + Skim
290
- - Pivotal tracker
288
+ - [ui] Stylesheet utils
289
+ - [ui] SlimViews: Add browser-specific classes to <html> via useragent + helpers..
290
+ - [ui] Bootstrap: vendor files rather than gem require
291
+ - [ui] jQuery shims
292
+ - [ui] jQuery UI (vendor + theme etc.)
293
+ - [ui] pie.htc for IE
294
+ - [ui] HTML5 shim for IE
295
+ - [uploads] CarrierWave (and optional cloud resizing thingy)
296
+ - [uploads] Fog
297
+ - [uploads] Remotipart
298
+ - [uploads?] RMagick / minimagick
299
+ - [requests] HasScope
300
+ - [requests] will-paginate (+bootstrap-will-paginate)
301
+ - [dev] rails-best-practices (and the other output gem for debugging)
302
+ - [dev] Pivotal tracker
303
+ - [dev] RailsErd
304
+ - [production] Airbrake + API Key
305
+ - [production] NewRelic
306
+ - [production] EngineYard for deployment
307
+ - [ux] Backbone integration + Skim
308
+ - [views] Nested Form
309
+ - [?] SeedFu
310
+ - [?] Launchy
311
+ - [?] Growl & rb-notify etc.
312
+ - [views] ShowFor
313
+ - [views?] RedCarpet
314
+ - [?] Nokogiri
315
+ - [?] Mechanize
316
+ - [?] Money
317
+ - [ui] jQuery.transit
318
+ - [ui] Ember Touch (gesture support for Ember: pinch, pan etc.)
319
+
291
320
 
292
321
 
293
322
  ## Contributing
data/README.md~ CHANGED
@@ -244,50 +244,78 @@ AppDrone is not for everyone. It's highly opinionated about how a Rails app shou
244
244
 
245
245
  ### Active drones (put 'em to work!)
246
246
 
247
- - Bundle
248
- - Stylesheet (Sass & Compass)
249
- - Javascript (Coffescript & jQuery)
250
- - SlimView
251
- - HighVoltage
252
- - Ember (the Ember.js library)
253
- - Chosen, by harvestHQ
254
- - Bootstrap, by Twitter
255
- - SimpleForm (with optional Country Select and automatic Twitter Bootstrap integration)
256
- - Flair (drones use this to demonstrate their working functionality)
257
- - Cleanup
247
+ - [base] Bundle
248
+ - [base] Stylesheet (Sass & Compass)
249
+ - [base] Javascript (Coffescript & jQuery)
250
+ - [base] SlimView
251
+ - [base] Cleanup
252
+ - [views] HighVoltage
253
+ - [views] Flair (drones use this to demonstrate their working functionality)
254
+ - [views] SimpleForm (with optional Country Select and automatic Twitter Bootstrap integration)
255
+ - [ui] Chosen, by harvestHQ
256
+ - [ui] Bootstrap, by Twitter
257
+ - [ux] Ember (the Ember.js library)
258
258
 
259
259
 
260
260
  ### Frozen drones (currently in development)
261
261
 
262
- - RankedModel
263
- - Git
264
- - RSpec
265
- - FactoryGirl
266
- - Guard
262
+ - [base] Database (currenly rake db:migrate in template will break non-sqlite dbs)
263
+ - [auth] CanCan
264
+ - [auth] Sorcery
265
+ - [auth] Devise
266
+ - [auth] EasyRoles
267
+ - [test] RSpec
268
+ - [test] FactoryGirl
269
+ - [test] DatabaseCleaner
270
+ - [test] TimeCop
271
+ - [test] Capybara
272
+ - [test] Shoulda
273
+ - [test?] Chronic
274
+ - [dev] Migrant (+ Pickle support?)
275
+ - [dev] Guard
276
+ - [source-control] Git
277
+ - [model] RankedModel
278
+ - [model] Squeel
279
+ - [requests] Responders
280
+ - [requests] InheritedResources (deprecated)
281
+ - [requests] UserAgent blocking script
282
+ - [dev] Letter opener
283
+ - [ui] Underscore Rails
284
+ - [mailing] SendGrid
285
+ - [ui] jQuery.transit
286
+
267
287
 
268
288
  ### Future drones (TODO - I'll get there some day!)
269
289
 
270
- - Database (currenly rake db:migrate in template will break non-sqlite dbs)
271
- - Stylesheet utils
272
- - SlimViews: Add browser-specific classes to <html> via useragent + helpers..
273
- - UserAgent blocking script
274
- - Responders
275
- - Bootstrap: vendor files rather than gem require
276
- - EasyRoles
277
- - Migrant
278
- - HasScope
279
- - Pagination
280
- - jQuery shims
281
- - jQuery UI (vendor + theme etc.)
282
- - pie.htc for IE
283
- - HTML5 shim for IE
284
- - Airbrake + API Key
285
- - CarrierWave (and optional cloud resizing thingy)
286
- - rails-best-practices (and the other output gem for debugging)
287
- - NewRelic
288
- - EngineYard for deployment
289
- - Backbone integration + Skim
290
- - Pivotal tracker
290
+ - [ui] Stylesheet utils
291
+ - [ui] SlimViews: Add browser-specific classes to <html> via useragent + helpers..
292
+ - [ui] Bootstrap: vendor files rather than gem require
293
+ - [ui] jQuery shims
294
+ - [ui] jQuery UI (vendor + theme etc.)
295
+ - [ui] pie.htc for IE
296
+ - [ui] HTML5 shim for IE
297
+ - [uploads] CarrierWave (and optional cloud resizing thingy)
298
+ - [uploads] Fog
299
+ - [uploads] Remotipart
300
+ - [uploads?] RMagick / minimagick
301
+ - [requests] HasScope
302
+ - [requests] will-paginate (+bootstrap-will-paginate)
303
+ - [dev] rails-best-practices (and the other output gem for debugging)
304
+ - [dev] Pivotal tracker
305
+ - [dev] RailsErd
306
+ - [production] Airbrake + API Key
307
+ - [production] NewRelic
308
+ - [production] EngineYard for deployment
309
+ - [ux] Backbone integration + Skim
310
+ - [views] Nested Form
311
+ - [?] SeedFu
312
+ - [?] Launchy
313
+ - [?] Growl & rb-notify etc.
314
+ - [views] ShowFor
315
+ - [views?] RedCarpet
316
+ - [?] Nokogiri
317
+ - [?] Mechanize
318
+ - [?] Money
291
319
 
292
320
 
293
321
  ## Contributing
data/TODO CHANGED
@@ -1 +1 @@
1
- ** rename pairs/pairs_with to connections/connects_with
1
+ ** ?? rename pairs/pairs_with to connections/connects_with
data/TODO~ CHANGED
@@ -1,4 +1 @@
1
- ** templates must be added and run in the order that satisfies dependency order best. (also consider pairings if possible)
2
- i.e. a drone can only run after it's dependants have had their turn (unless they mutually depend)
3
-
4
- ** rename pairs/pairs_with to connections/connects_with
1
+ ** ?? rename pairs/pairs_with to connections/connects_with
@@ -86,6 +86,10 @@ class Drone
86
86
  (@dependencies || []).map(&:to_app_drone_class)
87
87
  end
88
88
 
89
+ def dependants
90
+ self.superclass.drones.select { |d| d.to_app_drone_class.dependencies.include?(self) }.map(&:to_app_drone_class)
91
+ end
92
+
89
93
  def pairs_with(*klass_symbols); @pairs = klass_symbols end
90
94
  def pairs
91
95
  (@pairs || []).map(&:to_app_drone_class)
@@ -86,6 +86,10 @@ class Drone
86
86
  (@dependencies || []).map(&:to_app_drone_class)
87
87
  end
88
88
 
89
+ def dependants
90
+ self.superclass.drones.select { |d| d.to_app_drone_class.dependencies.include?(self) }
91
+ end
92
+
89
93
  def pairs_with(*klass_symbols); @pairs = klass_symbols end
90
94
  def pairs
91
95
  (@pairs || []).map(&:to_app_drone_class)
@@ -2,7 +2,7 @@ module AppDrone
2
2
  class Flair < Drone
3
3
  desc "Creates a page to demonstrate the drones' hard work"
4
4
  depends_on :high_voltage, :slim_view
5
- category :pages
5
+ category :base
6
6
 
7
7
  attr_accessor :flairs
8
8
 
@@ -1,7 +1,7 @@
1
1
  module AppDrone
2
2
  class HighVoltage < Drone
3
3
  desc "DANGER! Super-simple static webpages"
4
- category :pages
4
+ category :views
5
5
  depends_on :bundle
6
6
 
7
7
  def align
@@ -1,6 +1,7 @@
1
1
  module AppDrone
2
2
  class HighVoltage < Drone
3
3
  desc "DANGER! Super-simple static webpages"
4
+ category :pages
4
5
  depends_on :bundle
5
6
 
6
7
  def align
@@ -2,7 +2,7 @@
2
2
  module AppDrone
3
3
  class SimpleForm < Drone
4
4
  desc "Installs SimpleForm, with optional Country Select and automatic Twitter Bootstrap integration"
5
- category :pages
5
+ category :views
6
6
 
7
7
  depends_on :bundle
8
8
  pairs_with :bootstrap
@@ -1,3 +1,3 @@
1
1
  module AppDrone
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module AppDrone
2
- VERSION = "0.5.2"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -15,6 +15,10 @@ class AppDroneTest < Test::Unit::TestCase
15
15
  def setup
16
16
  end
17
17
 
18
+ def test_dependants
19
+ puts AppDrone::Bundle.dependants
20
+ end
21
+
18
22
  def test_basic_behavior
19
23
  template = Template.new
20
24
  add_defaults_to_template(template)
@@ -15,8 +15,8 @@ class AppDroneTest < Test::Unit::TestCase
15
15
  def setup
16
16
  end
17
17
 
18
- def test_blah
19
- puts DependencyChain.sort [AppDrone::Flair, AppDrone::HighVoltage, AppDrone::Bundle, AppDrone::SlimView]
18
+ def test_dependants
19
+ puts AppDrone::Bundle.dependants
20
20
  end
21
21
 
22
22
  def test_basic_behavior
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.6.0
4
+ version: 0.6.1
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-04-22 00:00:00.000000000 Z
12
+ date: 2012-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &15442500 !ruby/object:Gem::Requirement
16
+ requirement: &19009240 !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: *15442500
24
+ version_requirements: *19009240
25
25
  description: Give your Rails apps a kickstart
26
26
  email:
27
27
  - whoisdanieldavey@gmail.com