manifest-dl 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -1
- data/lib/manifest-dl.rb +4 -1
- data/lib/manifest-dl/rails.rb +3 -3
- data/lib/manifest-dl/rake.rb +2 -2
- data/lib/manifest-dl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d0909e30fbb630b94110abb57a3cc759ff5b069
|
4
|
+
data.tar.gz: c066226429779f5c8851dd9a9893c83b5c4907e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e2713c8884d522bc0aaa512f4d2581f1703c388a00582797ee32e9406711f0bb1c158c40f141ca2861edada28a267df5d8f8215a511c33e752477e67e0f86b8
|
7
|
+
data.tar.gz: 5eb8d162544af73bdbd19de274645c3374ce3cdcce019f850b3e93b55a04fcedaed0ab81a5ac35199c0006c362836bbec3e9dadc2d2461c6ae3d4af4de1254e9
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
Date : 2014-10-20
|
6
6
|
|
7
7
|
Copyright : Copyright (C) 2014 Felix C. Stegerman
|
8
|
-
Version : v0.1.
|
8
|
+
Version : v0.1.2
|
9
9
|
|
10
10
|
[]: }}}1
|
11
11
|
|
@@ -67,6 +67,13 @@ require 'manifest-rb'
|
|
67
67
|
ManifestRB.run!
|
68
68
|
```
|
69
69
|
|
70
|
+
### Rake
|
71
|
+
|
72
|
+
```ruby
|
73
|
+
require 'manifest-dl/rake'
|
74
|
+
ManifestDL::Rake.define_tasks
|
75
|
+
```
|
76
|
+
|
70
77
|
[]: }}}1
|
71
78
|
|
72
79
|
## Specs & Docs
|
data/lib/manifest-dl.rb
CHANGED
@@ -52,7 +52,10 @@ module ManifestDL
|
|
52
52
|
|
53
53
|
# download, verify, mv file
|
54
54
|
def self._dl!(item, quiet, cache_dir)
|
55
|
-
|
55
|
+
unless quiet
|
56
|
+
$stderr.puts "==> #{item['path']}"
|
57
|
+
$stderr.puts " ( #{item['url']} )"
|
58
|
+
end
|
56
59
|
Dir.mktmpdir do |dir|
|
57
60
|
tempfile = Pathname.new(dir).join('dl').to_s
|
58
61
|
_curl! item['url'], tempfile, quiet
|
data/lib/manifest-dl/rails.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# File : manifest-dl/rails.rb
|
4
4
|
# Maintainer : Felix C. Stegerman <flx@obfusk.net>
|
5
|
-
# Date : 2014-10-
|
5
|
+
# Date : 2014-10-20
|
6
6
|
#
|
7
7
|
# Copyright : Copyright (C) 2014 Felix C. Stegerman
|
8
8
|
# Licence : LGPLv3+
|
@@ -11,10 +11,10 @@
|
|
11
11
|
|
12
12
|
require 'rails'
|
13
13
|
|
14
|
-
require 'manifest-dl'
|
14
|
+
require 'manifest-dl/rake'
|
15
15
|
|
16
16
|
# namespace
|
17
|
-
module
|
17
|
+
module ManifestDL
|
18
18
|
|
19
19
|
# railtie that adds the rake tasks
|
20
20
|
class Railtie < Rails::Railtie
|
data/lib/manifest-dl/rake.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# File : manifest-dl/rake.rb
|
4
4
|
# Maintainer : Felix C. Stegerman <flx@obfusk.net>
|
5
|
-
# Date : 2014-10-
|
5
|
+
# Date : 2014-10-20
|
6
6
|
#
|
7
7
|
# Copyright : Copyright (C) 2014 Felix C. Stegerman
|
8
8
|
# Licence : LGPLv3+
|
@@ -14,7 +14,7 @@ require 'rake/dsl_definition'
|
|
14
14
|
require 'manifest-dl'
|
15
15
|
|
16
16
|
# namespace
|
17
|
-
module
|
17
|
+
module ManifestDL
|
18
18
|
|
19
19
|
# rake tasks
|
20
20
|
module Rake
|
data/lib/manifest-dl/version.rb
CHANGED