appmake 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/appmake.rb +16 -0
  2. data/lib/appmake/version.rb +1 -1
  3. metadata +1 -1
data/lib/appmake.rb CHANGED
@@ -32,6 +32,7 @@ module Appmake
32
32
  empty_directory "public"
33
33
  empty_directory "public/css"
34
34
  empty_directory "public/js"
35
+ empty_directory "public/img"
35
36
  template "templates/public/index.html.tt", "public/index.html"
36
37
 
37
38
  Listeners::Css.compile
@@ -47,5 +48,20 @@ module Appmake
47
48
  Listeners::Tpl.listen(false)
48
49
  Listeners::Js.listen(true)
49
50
  end
51
+
52
+ desc "install", "install various libs"
53
+ def install(name, version)
54
+ if name == "jquery"
55
+ system("curl http://code.jquery.com/jquery-#{version}.min.js -o public/jquery-#{version}.min.js")
56
+ elsif name == "underscore"
57
+ system("curl http://underscorejs.org/underscore-min.js -o public/underscore.min.js")
58
+ elsif name == "backbone"
59
+ system("curl http://backbonejs.org/backbonejs-min.js -o public/backbonejs.min.js")
60
+ elsif name == "bootstrap"
61
+ system("curl http://twitter.github.com/bootstrap/assets/bootstrap.zip -o public/bootstrap.zip && cd public && unzip bootstrap.zip && mv bootstrap/js/bootstrap.min.js js/ && mv bootstrap/css/bootstrap.min.css css/ && mv bootstrap/css/bootstrap-responsive.min.css css/ && mv bootstrap/img/* img/ && rm -rf bootstrap && rm bootstrap.zip")
62
+ else
63
+ abort "error: unsupported install: #{name}"
64
+ end
65
+ end
50
66
  end
51
67
  end
@@ -1,3 +1,3 @@
1
1
  module Appmake
2
- VERSION = "0.1.15"
2
+ VERSION = "0.1.16"
3
3
  end
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.15
4
+ version: 0.1.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: