app_drone 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/app_drone/drones/bootstrap/bootstrap.rb +4 -5
- data/lib/app_drone/drones/bootstrap/bootstrap.rb~ +4 -5
- data/lib/app_drone/version.rb +1 -1
- data/lib/app_drone/version.rb~ +1 -1
- data/out.rb +2 -0
- data/out.rb~ +3 -0
- data/test/test_app_drone.rb +1 -1
- data/test/test_app_drone.rb~ +1 -1
- metadata +3 -3
@@ -7,8 +7,7 @@ class Bootstrap < Drone
|
|
7
7
|
param :vendor, :boolean, info: 'place a local copy of the files into the repo for customization'
|
8
8
|
param :responsive, :boolean, info: 'include responsive grid'
|
9
9
|
param :font_awesome, :boolean, info: 'use font-awesome for icons', default: true
|
10
|
-
|
11
|
-
# TODO js import options
|
10
|
+
param :javascript_plugins, :choose_many, info: 'pipeline javascript plugin files', default: [], choices: %w(modal dropdown scrollspy tab tooltip popover alert button collapse carousel typeahead)
|
12
11
|
|
13
12
|
depends_on :bundle, :stylesheet, :javascript
|
14
13
|
|
@@ -25,13 +24,13 @@ class Bootstrap < Drone
|
|
25
24
|
private
|
26
25
|
def align_vendor
|
27
26
|
# TODO import paths for stylesheet (different to bundle)
|
28
|
-
|
27
|
+
param(:javascript_plugins).each { |p| javascript.pipeline "bootstrap-#{p}" }
|
29
28
|
end
|
30
29
|
|
31
30
|
def align_bundle
|
32
31
|
stylesheet.import param(:font_awesome) ? 'compass_twitter_bootstrap_awesome' : 'compass_twitter_bootstrap'
|
33
32
|
stylesheet.import 'compass_twitter_bootstrap_responsive' if param(:responsive)
|
34
|
-
|
33
|
+
param(:javascript_plugins).each { |p| javascript.pipeline "bootstrap-#{p}" }
|
35
34
|
end
|
36
35
|
|
37
36
|
def execute_vendor
|
@@ -39,7 +38,7 @@ class Bootstrap < Drone
|
|
39
38
|
end
|
40
39
|
|
41
40
|
def execute_bundle
|
42
|
-
# TODO nothing
|
43
41
|
end
|
42
|
+
|
44
43
|
end
|
45
44
|
end
|
@@ -7,8 +7,7 @@ class Bootstrap < Drone
|
|
7
7
|
param :vendor, :boolean, info: 'place a local copy of the files into the repo for customization'
|
8
8
|
param :responsive, :boolean, info: 'include responsive grid'
|
9
9
|
param :font_awesome, :boolean, info: 'use font-awesome for icons', default: true
|
10
|
-
|
11
|
-
# TODO js import options
|
10
|
+
param :javascript_plugins, :choose_many, info: 'pipeline javascript plugin files', default: [], choices: %w(modal dropdown scrollspy tab tooltip popover alert button collapse carousel typeahead)
|
12
11
|
|
13
12
|
depends_on :bundle, :stylesheet, :javascript
|
14
13
|
|
@@ -25,13 +24,13 @@ class Bootstrap < Drone
|
|
25
24
|
private
|
26
25
|
def align_vendor
|
27
26
|
# TODO import paths for stylesheet (different to bundle)
|
28
|
-
|
27
|
+
param(:javascript_plugins).each { |p| javascript.pipeline "bootstrap-#{p}" }
|
29
28
|
end
|
30
29
|
|
31
30
|
def align_bundle
|
32
31
|
stylesheet.import param(:font_awesome) ? 'compass_twitter_bootstrap_awesome' : 'compass_twitter_bootstrap'
|
33
32
|
stylesheet.import 'compass_twitter_bootstrap_responsive' if param(:responsive)
|
34
|
-
|
33
|
+
param(:javascript_plugins).each { |p| javascript.pipeline "bootstrap-#{p}" }
|
35
34
|
end
|
36
35
|
|
37
36
|
def execute_vendor
|
@@ -39,7 +38,7 @@ class Bootstrap < Drone
|
|
39
38
|
end
|
40
39
|
|
41
40
|
def execute_bundle
|
42
|
-
# TODO nothing
|
43
41
|
end
|
42
|
+
|
44
43
|
end
|
45
44
|
end
|
data/lib/app_drone/version.rb
CHANGED
data/lib/app_drone/version.rb~
CHANGED
data/out.rb
CHANGED
@@ -52,6 +52,8 @@ js_asset_path = File.join %w(app assets javascripts application.js)
|
|
52
52
|
//= require jquery
|
53
53
|
//= require jquery_ujs
|
54
54
|
//= require init
|
55
|
+
//= require bootstrap-modal
|
56
|
+
//= require bootstrap-transition
|
55
57
|
//= require chosen-jquery
|
56
58
|
//= require ember
|
57
59
|
//= require ember/#{app_name}.js
|
data/out.rb~
CHANGED
@@ -52,6 +52,8 @@ js_asset_path = File.join %w(app assets javascripts application.js)
|
|
52
52
|
//= require jquery
|
53
53
|
//= require jquery_ujs
|
54
54
|
//= require init
|
55
|
+
//= require bootstrap-modal
|
56
|
+
//= require bootstrap-transition
|
55
57
|
//= require chosen-jquery
|
56
58
|
//= require ember
|
57
59
|
//= require ember/#{app_name}.js
|
@@ -79,6 +81,7 @@ COFFEE
|
|
79
81
|
|
80
82
|
@import 'compass'
|
81
83
|
@import 'compass_twitter_bootstrap_awesome'
|
84
|
+
@import 'compass_twitter_bootstrap_responsive'
|
82
85
|
|
83
86
|
SASS
|
84
87
|
|
data/test/test_app_drone.rb
CHANGED
@@ -20,7 +20,7 @@ class AppDroneTest < Test::Unit::TestCase
|
|
20
20
|
add_defaults_to_template(template)
|
21
21
|
|
22
22
|
template.add :simple_form
|
23
|
-
template.add :bootstrap, responsive: true
|
23
|
+
template.add :bootstrap, responsive: true, javascript_plugins: %w(modal transition)
|
24
24
|
template.add :chosen
|
25
25
|
template.add :ember, app_skeleton: true
|
26
26
|
|
data/test/test_app_drone.rb~
CHANGED
@@ -20,7 +20,7 @@ class AppDroneTest < Test::Unit::TestCase
|
|
20
20
|
add_defaults_to_template(template)
|
21
21
|
|
22
22
|
template.add :simple_form
|
23
|
-
template.add :bootstrap, responsive: true
|
23
|
+
template.add :bootstrap, responsive: true, javascript_plugins: %w(modal transition)
|
24
24
|
template.add :chosen
|
25
25
|
template.add :ember, app_skeleton: true
|
26
26
|
|
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.2
|
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: &16850440 !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: *16850440
|
25
25
|
description: Give your Rails apps a kickstart
|
26
26
|
email:
|
27
27
|
- whoisdanieldavey@gmail.com
|