cdnget 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9204fce30417104ddfeb1a49af1c1e770c630cc1
4
- data.tar.gz: 1e9dc0c2d1fba34882a0dd5c6fc26a8ccc6edb57
3
+ metadata.gz: 33c37d02737ffd6d7f382b0d9646a627046caf41
4
+ data.tar.gz: 1bf0171c024ebd5cd726b63e14054ad827494311
5
5
  SHA512:
6
- metadata.gz: 087992a00501a6d1f3dd179a741b708eed1c80266666c0a61f8465325d2c7f0f7592ecc8015c3edb7e0987613a811e92fba0e4b7ecdb058a54b68f3f8a0b6f43
7
- data.tar.gz: 1bed28d10dc90f2e2ab241178dc74a9762a866efe5860f31c2eab01a4f6377978653756932ddd8a2a170bbd9061fa3a77a78ecb5493dbf05b48ce0fdf76a27ce
6
+ metadata.gz: f284b04b033d2d17fcc51c03d367e45b35b45e0172c1d65f79c31f728f15ab990f39422609dca01148b4a9cb1da3538dfe1a3c0b6a4a2910785b28252f95d6cc
7
+ data.tar.gz: 8ff04a6ec36d7466aadcdd2b07b37683addf4dacb172e27a988396444a5ea59b5f4ffa928eadb0ffa83f1090e05ed9856678ed5d83a1d6bb39daec110d675a06
data/CHANGES.md ADDED
@@ -0,0 +1,42 @@
1
+ Changes
2
+ =======
3
+
4
+
5
+ Release 1.0.0 (2021-10-02)
6
+ ---------------------------
7
+
8
+ * Download performance improved.
9
+ * New CDN `unpkg` supported.
10
+ * Change `jsdelivr` CDN to use new jsdelivr API.
11
+ * Detect latest version of JS library automatically when `latest` keyword specified as version.
12
+ * Increase output information of JS library.
13
+ - license
14
+ - tags
15
+ - page url on CDN web site
16
+ - url of npm package (`*.tgz`)
17
+ * Add '--debug' option.
18
+
19
+
20
+ Release 0.3.1 (2021-09-30)
21
+ ---------------------------
22
+
23
+ * Fix to work on Ruby 3.
24
+ * Fix to follow API specification changes of CDNJS.com.
25
+
26
+
27
+ Release 0.3.0 (2016-09-07)
28
+ ---------------------------
29
+
30
+ * Change to read data from https://api.cdnjs.com/ .
31
+
32
+
33
+ Release 0.2.0 (2016-07-11)
34
+ --------------------------
35
+
36
+ * Update to follow change of CDNJS website
37
+
38
+
39
+ Release 0.1.0 (2016-01-13)
40
+ --------------------------
41
+
42
+ * First release
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  CDNget
2
2
  ======
3
3
 
4
- ($Release: 0.1.0 $)
4
+ ($Release: 1.0.0 $)
5
5
 
6
- CDNget is a utility script to download files from CDNJS, jsDelivr or Google.
6
+ CDNget is a utility script to download files from CDNJS, jsDelivr, UNPKG or Google.
7
7
 
8
8
 
9
9
  Install
@@ -13,7 +13,7 @@ Install
13
13
 
14
14
  Or:
15
15
 
16
- $ curl -sO https://github.com/kwatch/cdnget/raw/ruby-release/bin/cdnget
16
+ $ curl -sLo cdnget bit.ly/cdnget_rb
17
17
  $ chmod a+x cdnget
18
18
  $ sudo cp cdnget /usr/local/bin
19
19
 
@@ -23,10 +23,11 @@ CDNget is implemented in Ruby and requires Ruby >= 2.0.
23
23
  Usage
24
24
  -----
25
25
 
26
- $ cdnget # list CDN (cdnjs/jsdelivr/google)
26
+ $ cdnget # list CDN (cdnjs/jsdelivr/unpkg/google)
27
27
  $ cdnget [-q] cdnjs # list libraries
28
28
  $ cdnget [-q] cdnjs '*jquery*' # search libraries
29
29
  $ cdnget [-q] cdnjs jquery # list library versions
30
+ $ cdnget [-q] cdnjs jquery latest # show latest version
30
31
  $ cdnget [-q] cdnjs jquery 2.2.0 # list library files
31
32
  $ cdnget [-q] cdnjs jquery 2.2.0 /tmp # download files
32
33
  /tmp/jquery/2.2.0/jquery.js ... Done (258,388 byte)
@@ -37,6 +38,13 @@ Usage
37
38
  jquery.js jquery.min.js jquery.min.map
38
39
 
39
40
 
41
+ Todo
42
+ ----
43
+
44
+ * [x] change to call api.cdnjs.com
45
+ * [x] support <https://unpkg.com/>
46
+
47
+
40
48
  Copyright and License
41
49
  ---------------------
42
50
 
data/Rakefile CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ###
4
4
 
5
- RELEASE = '$Release: 0.1.0 $'.split()[1]
5
+ RELEASE = '$Release: 1.0.0 $'.split()[1]
6
6
  COPYRIGHT = 'copyright(c) 2016 kuwata-lab.com all rights reserved'
7
7
  LICENSE = 'MIT License'
8
8
 
@@ -40,7 +40,7 @@ end
40
40
  desc "run test scripts"
41
41
  task :test do
42
42
  #sh "ruby -r minitest/autorun test/*_test.rb"
43
- run "ruby test/#{PROJECT}_test.rb"
43
+ run "ruby -I ./lib test/#{PROJECT}_test.rb"
44
44
  end
45
45
 
46
46
 
@@ -137,7 +137,7 @@ task :publish do
137
137
  if $stdin.gets() =~ /[yY]/
138
138
  run "gem push #{gem}"
139
139
  run "git push -u origin `git rev-parse --abbrev-ref HEAD`"
140
- run "git push -f origin ruby-release"
140
+ run "git push -f origin HEAD:ruby-release"
141
141
  run "git tag ruby-#{ver}"
142
142
  run "git push --tags"
143
143
  end