app_drone 0.3.4 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -87,10 +87,11 @@ Optionally, a `setup` method can be defined to set up variables etc. when a dron
87
87
 
88
88
  ### Describing a drone
89
89
 
90
- You can use `desc` in the class declaration to explain what the drone does (mostly for shiny UI purposes)
90
+ Use `desc` in the class declaration to explain what the drone does, and `category` to group similar drones together. This is mostly for shiny UI purposes (app_drone_app).
91
91
 
92
92
  class AppDrone::MyDrone < AppDrone::Drone
93
93
  desc 'Kills all humans.'
94
+ category :deathbots
94
95
  end
95
96
 
96
97
 
data/README.md~ CHANGED
@@ -87,10 +87,11 @@ Optionally, a `setup` method can be defined to set up variables etc. when a dron
87
87
 
88
88
  ### Describing a drone
89
89
 
90
- You can use `desc` in the class declaration to explain what the drone does (mostly for shiny UI purposes)
90
+ Use `desc` in the class declaration to explain what the drone does, and `category` to group similar drones together. This is mostly for shiny UI purposes (app_drone_app).
91
91
 
92
92
  class AppDrone::MyDrone < AppDrone::Drone
93
93
  desc 'Kills all humans.'
94
+ category :deathbots
94
95
  end
95
96
 
96
97
 
@@ -70,16 +70,22 @@ class Drone
70
70
  (@params || [])
71
71
  end
72
72
 
73
- def desc(d='')
74
- return @description if d.blank?
73
+ def desc(d=nil)
74
+ return @description if d.nil?
75
75
  @description = d
76
76
  end
77
77
 
78
+ def category(c=nil)
79
+ return @category if c.nil?
80
+ @category = c
81
+ end
82
+
78
83
  def depends_on(*klass_symbols); @dependencies = klass_symbols end
79
84
  def dependencies
80
85
  (@dependencies || []).map(&:to_app_drone_class)
81
86
  end
82
87
 
88
+
83
89
  def pairs_with(*klass_symbols); @pairs = klass_symbols end
84
90
  def pairs
85
91
  (@pairs || []).map(&:to_app_drone_class)
@@ -70,16 +70,22 @@ class Drone
70
70
  (@params || [])
71
71
  end
72
72
 
73
- def desc(d='')
74
- return @description if d.blank?
73
+ def desc(d=nil)
74
+ return @description if d.nil?
75
75
  @description = d
76
76
  end
77
77
 
78
+ def category(c=nil)
79
+ return @category if c.nil?
80
+ @category = c
81
+ end
82
+
78
83
  def depends_on(*klass_symbols); @dependencies = klass_symbols end
79
84
  def dependencies
80
85
  (@dependencies || []).map(&:to_app_drone_class)
81
86
  end
82
87
 
88
+
83
89
  def pairs_with(*klass_symbols); @pairs = klass_symbols end
84
90
  def pairs
85
91
  (@pairs || []).map(&:to_app_drone_class)
@@ -2,6 +2,7 @@
2
2
  module AppDrone
3
3
  class Bootstrap < Drone
4
4
  desc "Installs Twitter Bootstrap stylesheets and javascripts"
5
+ category :ui
5
6
 
6
7
  param :vendor, :boolean, info: 'place a local copy of the files into the repo for customization'
7
8
  param :responsive, :boolean, info: 'include responsive grid'
@@ -1,6 +1,7 @@
1
1
  module AppDrone
2
2
  class Bundle < Drone
3
3
  desc "Manages gem installations"
4
+ category :base
4
5
  owns_generator_method :gemfile
5
6
 
6
7
  attr_accessor :gems
@@ -1,4 +1,3 @@
1
- # Complete!
2
1
  module AppDrone
3
2
  class Bundle < Drone
4
3
  desc "Manages gem installations"
@@ -1,6 +1,7 @@
1
1
  module AppDrone
2
2
  class Chosen < Drone
3
3
  desc 'Installs the Chosen plugin by HarvestHQ'
4
+ category :ui
4
5
  depends_on :bundle, :stylesheet, :javascript
5
6
  pairs_with :flair
6
7
 
@@ -1,6 +1,7 @@
1
1
  module AppDrone
2
2
  class Chosen < Drone
3
3
  desc 'Installs the Chosen plugin by HarvestHQ'
4
+ category :ui
4
5
  depends_on :bundle, :stylesheet, :javascript
5
6
  pairs_with :flair
6
7
 
@@ -1,6 +1,7 @@
1
1
  module AppDrone
2
2
  class Cleanup < Drone
3
3
  desc "Removes some default Rails files that aren't very useful"
4
+ category :base
4
5
  def execute
5
6
  do! :cleanup
6
7
  end
@@ -1,7 +1,7 @@
1
- # Complete!
2
1
  module AppDrone
3
2
  class Cleanup < Drone
4
3
  desc "Removes some default Rails files that aren't very useful"
4
+ category :app
5
5
  def execute
6
6
  do! :cleanup
7
7
  end
@@ -2,6 +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
6
 
6
7
  attr_accessor :flairs
7
8
 
@@ -10,7 +11,7 @@ class Flair < Drone
10
11
  end
11
12
 
12
13
  def add(klass)
13
- flairs << klass.class.to_s.gsub('AppDrone::','').underscore.to_sym
14
+ flairs << klass.class.to_sym
14
15
  end
15
16
 
16
17
  def execute
@@ -2,6 +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
6
 
6
7
  attr_accessor :flairs
7
8
 
@@ -10,7 +11,7 @@ class Flair < Drone
10
11
  end
11
12
 
12
13
  def add(klass)
13
- flairs << klass.class.to_s.gsub('AppDrone::','').underscore.to_sym
14
+ flairs << klass.class.to_sym
14
15
  end
15
16
 
16
17
  def execute
@@ -19,7 +20,7 @@ class Flair < Drone
19
20
 
20
21
  def flair_for(drone_name)
21
22
  drone = send(drone_name)
22
- return drone.render 'flair.html.slim', stamp: true
23
+ return drone.render 'flair.html.slim', skip_stamp: true
23
24
  end
24
25
  end
25
26
 
@@ -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
@@ -1,6 +1,7 @@
1
1
  module AppDrone
2
2
  class Javascript < Drone
3
3
  desc "Generates application.js.coffee with manifest options and jQuery load hooks"
4
+ category :base
4
5
  attr_accessor :pipeline_requires, :on_readies
5
6
 
6
7
  def setup
@@ -1,4 +1,3 @@
1
- # Complete!
2
1
  module AppDrone
3
2
  class Javascript < Drone
4
3
  desc "Generates application.js.coffee with manifest options and jQuery load hooks"
@@ -2,6 +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
6
 
6
7
  depends_on :bundle
7
8
  pairs_with :bootstrap
@@ -2,6 +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
6
 
6
7
  depends_on :bundle
7
8
  pairs_with :bootstrap
@@ -2,7 +2,7 @@ module AppDrone
2
2
  class SlimView < Drone
3
3
  desc "Sets up application.html.slim with shiny goodness"
4
4
  # TODO integration with rack useragent for browser-detection
5
-
5
+ category :base
6
6
  depends_on :bundle
7
7
 
8
8
  def align
@@ -1,6 +1,7 @@
1
1
  module AppDrone
2
2
  class Stylesheet < Drone
3
3
  desc "Generates application.css.sass with manifest options and imports"
4
+ category :base
4
5
  depends_on :bundle
5
6
 
6
7
  attr_accessor :pipeline_requires, :imports
@@ -1,4 +1,3 @@
1
- # Complete
2
1
  module AppDrone
3
2
  class Stylesheet < Drone
4
3
  desc "Generates application.css.sass with manifest options and imports"
@@ -1,3 +1,3 @@
1
1
  module AppDrone
2
- VERSION = "0.3.4"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module AppDrone
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  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.3.4
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &13655740 !ruby/object:Gem::Requirement
16
+ requirement: &17516880 !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: *13655740
24
+ version_requirements: *17516880
25
25
  description: Give your Rails apps a kickstart
26
26
  email:
27
27
  - whoisdanieldavey@gmail.com