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 +2 -1
- data/README.md~ +2 -1
- data/lib/app_drone/drone.rb +8 -2
- data/lib/app_drone/drone.rb~ +8 -2
- data/lib/app_drone/drones/bootstrap/bootstrap.rb +1 -0
- data/lib/app_drone/drones/bundle/bundle.rb +1 -0
- data/lib/app_drone/drones/bundle/bundle.rb~ +0 -1
- data/lib/app_drone/drones/chosen/chosen.rb +1 -0
- data/lib/app_drone/drones/chosen/chosen.rb~ +1 -0
- data/lib/app_drone/drones/cleanup/cleanup.rb +1 -0
- data/lib/app_drone/drones/cleanup/cleanup.rb~ +1 -1
- data/lib/app_drone/drones/flair/flair.rb +2 -1
- data/lib/app_drone/drones/flair/flair.rb~ +3 -2
- data/lib/app_drone/drones/high_voltage/high_voltage.rb +1 -0
- data/lib/app_drone/drones/javascript/javascript.rb +1 -0
- data/lib/app_drone/drones/javascript/javascript.rb~ +0 -1
- data/lib/app_drone/drones/simple_form/simple_form.rb +1 -0
- data/lib/app_drone/drones/simple_form/simple_form.rb~ +1 -0
- data/lib/app_drone/drones/slim_view/slim_view.rb +1 -1
- data/lib/app_drone/drones/stylesheet/stylesheet.rb +1 -0
- data/lib/app_drone/drones/stylesheet/stylesheet.rb~ +0 -1
- data/lib/app_drone/version.rb +1 -1
- data/lib/app_drone/version.rb~ +1 -1
- metadata +3 -3
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
|
-
|
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
|
-
|
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/lib/app_drone/drone.rb
CHANGED
@@ -70,16 +70,22 @@ class Drone
|
|
70
70
|
(@params || [])
|
71
71
|
end
|
72
72
|
|
73
|
-
def desc(d=
|
74
|
-
return @description if d.
|
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)
|
data/lib/app_drone/drone.rb~
CHANGED
@@ -70,16 +70,22 @@ class Drone
|
|
70
70
|
(@params || [])
|
71
71
|
end
|
72
72
|
|
73
|
-
def desc(d=
|
74
|
-
return @description if d.
|
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'
|
@@ -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.
|
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.
|
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',
|
23
|
+
return drone.render 'flair.html.slim', skip_stamp: true
|
23
24
|
end
|
24
25
|
end
|
25
26
|
|
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.
|
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: &
|
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: *
|
24
|
+
version_requirements: *17516880
|
25
25
|
description: Give your Rails apps a kickstart
|
26
26
|
email:
|
27
27
|
- whoisdanieldavey@gmail.com
|