cdnjs-command 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/HISTORY.md +10 -0
- data/bin/cdnjs +3 -2
- metadata +2 -1
data/HISTORY.md
ADDED
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.
|
|
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
|
-
|
|
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.
|
|
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
|