cdnjs-command 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/HISTORY.md +10 -0
  2. data/bin/cdnjs +3 -2
  3. metadata +2 -1
data/HISTORY.md ADDED
@@ -0,0 +1,10 @@
1
+ v0.0.2 - Mar 27, 2011
2
+ ---------------------
3
+
4
+ ### Fixed:
5
+ * Fix `cdnjs url`
6
+
7
+ v0.0.1 - Mar 27, 2011
8
+ ---------------------
9
+
10
+ Initial.
data/bin/cdnjs CHANGED
@@ -3,7 +3,7 @@ require 'open-uri'
3
3
  require 'fileutils'
4
4
  require 'json'
5
5
 
6
- CDNJS_VERSION = "0.0.1"
6
+ CDNJS_VERSION = "0.0.2"
7
7
 
8
8
  module Params;
9
9
  def extract(what) i = index(what) and slice!(i, 2)[1] end;
@@ -165,7 +165,8 @@ if __FILE__ == $0
165
165
  puts "<script src='#{pkg.url}'></script>"
166
166
 
167
167
  when Params['url', 'u']
168
- puts pkg.url
168
+ name = ARGV.shift or invalid_usage("cdnjs url NAME")
169
+ puts get_package(name).url
169
170
 
170
171
  when Params['info', 'i']
171
172
  name = ARGV.shift or invalid_usage("cdnjs info NAME")
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cdnjs-command
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rico Sta. Cruz
@@ -35,6 +35,7 @@ extra_rdoc_files: []
35
35
 
36
36
  files:
37
37
  - bin/cdnjs
38
+ - HISTORY.md
38
39
  - README.md
39
40
  has_rdoc: true
40
41
  homepage: http://github.com/rstacruz/cdnjs-command