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 +3 -2
- data/README.md~ +3 -2
- data/lib/app_drone/drone.rb +4 -1
- data/lib/app_drone/drone.rb~ +4 -1
- data/lib/app_drone/drones/ember/ember.rb +1 -1
- data/lib/app_drone/drones/ember/ember.rb~ +1 -1
- data/lib/app_drone/version.rb +1 -1
- data/lib/app_drone/version.rb~ +1 -1
- metadata +3 -3
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.
|
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=
|
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.
|
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=
|
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
|
data/lib/app_drone/drone.rb
CHANGED
@@ -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
|
data/lib/app_drone/drone.rb~
CHANGED
@@ -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
|
data/lib/app_drone/version.rb
CHANGED
data/lib/app_drone/version.rb~
CHANGED
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.
|
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: &
|
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: *
|
24
|
+
version_requirements: *21235000
|
25
25
|
description: Give your Rails apps a kickstart
|
26
26
|
email:
|
27
27
|
- whoisdanieldavey@gmail.com
|