app_drone 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -119,7 +119,7 @@ Pairing is weaker than a dependency. A template will not render without its depe
119
119
  def align
120
120
  bobby_davis_jr.say 'Hi'
121
121
  bobby_davis_jr.introduce 'This is Celine Dion' if pair?(:celine_dion)
122
- self.get_changed if param(:wear_human_suit_over_mechaskin)
122
+ self.visit_changing_room if param(:wear_human_suit_over_mechaskin)
123
123
  end
124
124
 
125
125
  def execute
@@ -138,7 +138,7 @@ Pairing is weaker than a dependency. A template will not render without its depe
138
138
  end
139
139
 
140
140
  AppDrone::MyDrone.params
141
- # => [#<struct Struct::Param name=:lazer_color, type=:string, options=[{:rainbow=>["all","teh","colors!"]}]>]
141
+ # => [#<struct Struct::Param name=:lazer_color, type=:string, options={:rainbow=>["all","teh","colors!"]}>]
142
142
 
143
143
  t = AppDrone::Template.new
144
144
  t.add :my_drone, lazer_color: 'teh'
@@ -236,6 +236,7 @@ AppDrone is not for everyone. It's highly opinionated about how a Rails app shou
236
236
  - SlimViews: Add browser-specific classes to <html> via useragent + helpers..
237
237
  - UserAgent blocking script
238
238
  - Responders
239
+ - Bootstrap: vendor files rather than gem require
239
240
  - EasyRoles
240
241
  - Migrant
241
242
  - HasScope
data/README.md~ CHANGED
@@ -119,7 +119,7 @@ Pairing is weaker than a dependency. A template will not render without its depe
119
119
  def align
120
120
  bobby_davis_jr.say 'Hi'
121
121
  bobby_davis_jr.introduce 'This is Celine Dion' if pair?(:celine_dion)
122
- self.get_changed if param(:wear_human_suit_over_mechaskin)
122
+ self.visit_changing_room if param(:wear_human_suit_over_mechaskin)
123
123
  end
124
124
 
125
125
  def execute
@@ -138,7 +138,7 @@ Pairing is weaker than a dependency. A template will not render without its depe
138
138
  end
139
139
 
140
140
  AppDrone::MyDrone.params
141
- # => [#<struct Struct::Param name=:lazer_color, type=:string, options=[{:rainbow=>["all","teh","colors!"]}]>]
141
+ # => [#<struct Struct::Param name=:lazer_color, type=:string, options={:rainbow=>["all","teh","colors!"]}>]
142
142
 
143
143
  t = AppDrone::Template.new
144
144
  t.add :my_drone, lazer_color: 'teh'
@@ -231,6 +231,7 @@ AppDrone is not for everyone. It's highly opinionated about how a Rails app shou
231
231
 
232
232
  ### Future drones (TODO - I'll get there some day!)
233
233
 
234
+ - Database (currenly rake db:migrate in template will break non-sqlite dbs)
234
235
  - Stylesheet utils
235
236
  - SlimViews: Add browser-specific classes to <html> via useragent + helpers..
236
237
  - UserAgent blocking script
@@ -86,7 +86,6 @@ class Drone
86
86
  (@dependencies || []).map(&:to_app_drone_class)
87
87
  end
88
88
 
89
-
90
89
  def pairs_with(*klass_symbols); @pairs = klass_symbols end
91
90
  def pairs
92
91
  (@pairs || []).map(&:to_app_drone_class)
@@ -99,6 +98,10 @@ class Drone
99
98
  self.descendants.map(&:to_sym)
100
99
  end
101
100
 
101
+ def categories
102
+ self.descendants.map(&:category).uniq
103
+ end
104
+
102
105
  def to_sym
103
106
  self.to_s.split('::').last.underscore.to_sym
104
107
  end
@@ -86,7 +86,6 @@ class Drone
86
86
  (@dependencies || []).map(&:to_app_drone_class)
87
87
  end
88
88
 
89
-
90
89
  def pairs_with(*klass_symbols); @pairs = klass_symbols end
91
90
  def pairs
92
91
  (@pairs || []).map(&:to_app_drone_class)
@@ -99,6 +98,10 @@ class Drone
99
98
  self.descendants.map(&:to_sym)
100
99
  end
101
100
 
101
+ def categories
102
+ self.descendants.map(&:category).uniq
103
+ end
104
+
102
105
  def to_sym
103
106
  self.to_s.split('::').last.underscore.to_sym
104
107
  end
@@ -1,8 +1,8 @@
1
1
  module AppDrone
2
2
  class Ember < Drone
3
3
  desc 'Installs ember.js for Rails'
4
+ category :ux
4
5
  depends_on :bundle, :javascript
5
-
6
6
  param :app_skeleton, :boolean, info: 'build an Ember app skeleton'
7
7
 
8
8
  def align
@@ -1,8 +1,8 @@
1
1
  module AppDrone
2
2
  class Ember < Drone
3
3
  desc 'Installs ember.js for Rails'
4
+ category :ux
4
5
  depends_on :bundle, :javascript
5
-
6
6
  param :app_skeleton, :boolean, info: 'build an Ember app skeleton'
7
7
 
8
8
  def align
@@ -1,3 +1,3 @@
1
1
  module AppDrone
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module AppDrone
2
- VERSION = "0.4.2"
2
+ VERSION = "0.5.0"
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.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &8328640 !ruby/object:Gem::Requirement
16
+ requirement: &21235000 !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: *8328640
24
+ version_requirements: *21235000
25
25
  description: Give your Rails apps a kickstart
26
26
  email:
27
27
  - whoisdanieldavey@gmail.com