jhc 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/jhc +11 -9
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.1
|
data/bin/jhc
CHANGED
@@ -7,8 +7,18 @@ require 'optparse'
|
|
7
7
|
require 'open-uri'
|
8
8
|
require 'fileutils'
|
9
9
|
|
10
|
+
CONFIG = <<EOC
|
11
|
+
---
|
12
|
+
javascripts:
|
13
|
+
jquery: http://code.jquery.com/jquery-1.7.js
|
14
|
+
underscore: http://documentcloud.github.com/underscore/underscore.js
|
15
|
+
backbone: http://documentcloud.github.com/backbone/backbone.js
|
16
|
+
stylesheets:
|
17
|
+
bootstrap: https://raw.github.com/twitter/bootstrap/master/bootstrap.css
|
18
|
+
EOC
|
19
|
+
|
10
20
|
def main(args)
|
11
|
-
cfg = YAML.load(
|
21
|
+
cfg = YAML.load(CONFIG)
|
12
22
|
opt = parse_args(args)
|
13
23
|
dir = args[0]
|
14
24
|
hlp = "Usage: jhc -t HTML_TITLE -j #{cfg['javascripts'].keys.join(',')} -s #{cfg['stylesheets'].keys.join(',')}"
|
@@ -70,11 +80,3 @@ end
|
|
70
80
|
|
71
81
|
main(ARGV.dup)
|
72
82
|
|
73
|
-
__END__
|
74
|
-
---
|
75
|
-
javascripts:
|
76
|
-
jquery: http://code.jquery.com/jquery-1.7.js
|
77
|
-
underscore: http://documentcloud.github.com/underscore/underscore.js
|
78
|
-
backbone: http://documentcloud.github.com/backbone/backbone.js
|
79
|
-
stylesheets:
|
80
|
-
bootstrap: https://raw.github.com/twitter/bootstrap/master/bootstrap.css
|
metadata
CHANGED