cdnget 0.3.1 → 1.0.0
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.
- checksums.yaml +5 -5
- data/CHANGES.md +15 -0
- data/README.md +6 -4
- data/Rakefile +1 -1
- data/bin/cdnget +354 -90
- data/cdnget.gemspec +3 -3
- data/lib/cdnget.rb +354 -90
- data/test/cdnget_test.rb +634 -108
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 33c37d02737ffd6d7f382b0d9646a627046caf41
|
4
|
+
data.tar.gz: 1bf0171c024ebd5cd726b63e14054ad827494311
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f284b04b033d2d17fcc51c03d367e45b35b45e0172c1d65f79c31f728f15ab990f39422609dca01148b4a9cb1da3538dfe1a3c0b6a4a2910785b28252f95d6cc
|
7
|
+
data.tar.gz: 8ff04a6ec36d7466aadcdd2b07b37683addf4dacb172e27a988396444a5ea59b5f4ffa928eadb0ffa83f1090e05ed9856678ed5d83a1d6bb39daec110d675a06
|
data/CHANGES.md
CHANGED
@@ -2,6 +2,21 @@ Changes
|
|
2
2
|
=======
|
3
3
|
|
4
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
|
+
|
5
20
|
Release 0.3.1 (2021-09-30)
|
6
21
|
---------------------------
|
7
22
|
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
CDNget
|
2
2
|
======
|
3
3
|
|
4
|
-
($Release: 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
|
@@ -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)
|
@@ -40,7 +41,8 @@ Usage
|
|
40
41
|
Todo
|
41
42
|
----
|
42
43
|
|
43
|
-
* [
|
44
|
+
* [x] change to call api.cdnjs.com
|
45
|
+
* [x] support <https://unpkg.com/>
|
44
46
|
|
45
47
|
|
46
48
|
Copyright and License
|