cdnjs-command 0.0.5 → 0.0.6

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 CHANGED
@@ -1,3 +1,8 @@
1
+ v0.0.6 - Nov 07, 2011
2
+ ---------------------
3
+
4
+ Fixed 1.8.7 compatibility.
5
+
1
6
  v0.0.5 - Jul 24, 2011
2
7
  ---------------------
3
8
 
@@ -11,15 +16,12 @@ Calling `cdnjs` actually works now.
11
16
  v0.0.3 - Apr 16, 2011
12
17
  ---------------------
13
18
 
14
- ### Fixed:
15
- * `gem install cdnjs-command` should now install the cdnjs executable
16
- (@mehowte)
19
+ Using `gem install cdnjs-command` should now install the cdnjs executable. (@mehowte)
17
20
 
18
21
  v0.0.2 - Mar 27, 2011
19
22
  ---------------------
20
23
 
21
- ### Fixed:
22
- * Fix `cdnjs url`
24
+ Fixed `cdnjs url`.
23
25
 
24
26
  v0.0.1 - Mar 27, 2011
25
27
  ---------------------
data/README.md CHANGED
@@ -19,7 +19,9 @@ Or you may want just the URL:
19
19
 
20
20
  ## Installation
21
21
 
22
- Copy `bin/cdnjs` into your PATH somewhere, or use `gem install cdnjs-command`.
22
+ This is a Ruby gem that requires Ruby 1.8+.
23
+
24
+ $ gem install cdnjs-command
23
25
 
24
26
  ## Usage
25
27
 
@@ -2,7 +2,7 @@ require 'open-uri'
2
2
  require 'fileutils'
3
3
  require 'json'
4
4
 
5
- CDNJS_VERSION = "0.0.5"
5
+ CDNJS_VERSION = "0.0.6"
6
6
 
7
7
  module CdnjsCommand
8
8
  autoload :Params, File.expand_path('../cdnjs_command/params', __FILE__)
@@ -31,9 +31,9 @@ class CdnjsCommand::Package
31
31
  def self.all
32
32
  packages = JSON.parse(fetch(INDEX_URL))['packages']
33
33
  packages.delete(Hash.new)
34
- packages
35
- .map { |hash| Package.new(hash) }
36
- .sort_by { |pkg| pkg.name }
34
+ packages.
35
+ map { |hash| Package.new(hash) }.
36
+ sort_by { |pkg| pkg.name }
37
37
  end
38
38
 
39
39
  def self.fetch(url)
metadata CHANGED
@@ -1,37 +1,47 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cdnjs-command
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.5
3
+ version: !ruby/object:Gem::Version
4
+ hash: 19
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 6
10
+ version: 0.0.6
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Rico Sta. Cruz
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-07-24 00:00:00.000000000 +08:00
17
+
18
+ date: 2011-11-07 00:00:00 +08:00
13
19
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
16
22
  name: json
17
- requirement: &2165491960 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
18
25
  none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
23
33
  type: :runtime
24
- prerelease: false
25
- version_requirements: *2165491960
26
- description: This package lets you download the popular JavaScript packages with one
27
- command, thanks to www.cdnjs.com.
28
- email:
34
+ version_requirements: *id001
35
+ description: This package lets you download the popular JavaScript packages with one command, thanks to www.cdnjs.com.
36
+ email:
29
37
  - rico@sinefunc.com
30
- executables:
38
+ executables:
31
39
  - cdnjs
32
40
  extensions: []
41
+
33
42
  extra_rdoc_files: []
34
- files:
43
+
44
+ files:
35
45
  - bin/cdnjs
36
46
  - lib/cdnjs_command/fetcher.rb
37
47
  - lib/cdnjs_command/helpers.rb
@@ -43,26 +53,36 @@ files:
43
53
  has_rdoc: true
44
54
  homepage: http://github.com/rstacruz/cdnjs-command
45
55
  licenses: []
56
+
46
57
  post_install_message:
47
58
  rdoc_options: []
48
- require_paths:
59
+
60
+ require_paths:
49
61
  - lib
50
- required_ruby_version: !ruby/object:Gem::Requirement
62
+ required_ruby_version: !ruby/object:Gem::Requirement
51
63
  none: false
52
- requirements:
53
- - - ! '>='
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- required_rubygems_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ hash: 3
68
+ segments:
69
+ - 0
70
+ version: "0"
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
72
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ hash: 3
77
+ segments:
78
+ - 0
79
+ version: "0"
62
80
  requirements: []
81
+
63
82
  rubyforge_project:
64
83
  rubygems_version: 1.6.2
65
84
  signing_key:
66
85
  specification_version: 3
67
86
  summary: Command line helper for cdnjs.com.
68
87
  test_files: []
88
+