jhc 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/bin/jhc +11 -9
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.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(DATA.read)
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jhc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 0
10
- version: 0.0.0
9
+ - 1
10
+ version: 0.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - tily