appmake 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/appmake.rb +12 -2
- data/lib/appmake/installers/jquery.rb +2 -2
- data/lib/appmake/version.rb +1 -1
- metadata +2 -2
data/lib/appmake.rb
CHANGED
@@ -20,7 +20,7 @@ module Appmake
|
|
20
20
|
desc "init", "initialize new application"
|
21
21
|
{
|
22
22
|
:coffee => false,
|
23
|
-
:jquery =>
|
23
|
+
:jquery => false,
|
24
24
|
:underscore => false,
|
25
25
|
:backbone => false,
|
26
26
|
:bootstrap => false
|
@@ -63,7 +63,7 @@ module Appmake
|
|
63
63
|
end
|
64
64
|
|
65
65
|
if options.underscore
|
66
|
-
Installers::
|
66
|
+
Installers::Underscore.install
|
67
67
|
end
|
68
68
|
|
69
69
|
if options.backbone
|
@@ -92,12 +92,22 @@ module Appmake
|
|
92
92
|
shell = Color.new
|
93
93
|
|
94
94
|
if name == "jquery"
|
95
|
+
empty_directory "public"
|
96
|
+
empty_directory "public/js"
|
95
97
|
Installers::Jquery.install
|
96
98
|
elsif name == "underscore"
|
99
|
+
empty_directory "public"
|
100
|
+
empty_directory "public/js"
|
97
101
|
Installers::Underscore.install
|
98
102
|
elsif name == "backbone"
|
103
|
+
empty_directory "public"
|
104
|
+
empty_directory "public/js"
|
99
105
|
Installers::Backbone.install
|
100
106
|
elsif name == "bootstrap"
|
107
|
+
empty_directory "public"
|
108
|
+
empty_directory "public/css"
|
109
|
+
empty_directory "public/img"
|
110
|
+
empty_directory "public/js"
|
101
111
|
Installers::Bootstrap.install
|
102
112
|
else
|
103
113
|
abort "error: unsupported install: #{name}"
|
@@ -9,8 +9,8 @@ module Appmake
|
|
9
9
|
shell = Color.new
|
10
10
|
|
11
11
|
shell.say_status :install, "jQuery", :green
|
12
|
-
shell.say_status :cmd, "curl http://code.jquery.com/jquery-1.9.0.min.js -o public/jquery
|
13
|
-
system("curl -silent http://code.jquery.com/jquery
|
12
|
+
shell.say_status :cmd, "curl http://code.jquery.com/jquery-1.9.0.min.js -o public/js/jquery.min.js", :blue
|
13
|
+
system("curl -silent http://code.jquery.com/jquery.min.js -o public/js/jquery.min.js")
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/lib/appmake/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appmake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.28
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-01-
|
13
|
+
date: 2013-01-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thor
|