rake-dependencies 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_dependencies/tasks/download.rb +4 -3
- data/lib/rake_dependencies/tasks/fetch.rb +31 -0
- data/lib/rake_dependencies/tasks.rb +2 -1
- data/lib/rake_dependencies/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b90c757bc921a0d3a607512f2dd3f3a170374fb3
|
4
|
+
data.tar.gz: 99c0bf6735c918cf480a5cc3b44d58e693e6c03d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 689d89929257f09bf9b51a1ca09d891f8cb0a22fadd6432f649fb5213d8a758f62e82717bf7302061695c240b039438377975f03d0f737df08ab836eb688ac04
|
7
|
+
data.tar.gz: c789b8f88755184f45a88f28ad7f6063da76dae6aa5e3739ea58b6b5c4c61a86241b9383c57cc107120bd41899d021c141a18c8550aacf2891342909126d0486
|
data/Gemfile.lock
CHANGED
@@ -5,15 +5,16 @@ require_relative '../template'
|
|
5
5
|
module RakeDependencies
|
6
6
|
module Tasks
|
7
7
|
class Download < TaskLib
|
8
|
-
extend FileUtils
|
9
|
-
|
10
8
|
parameter :name, default: :download
|
9
|
+
|
11
10
|
parameter :type, default: :zip
|
12
11
|
parameter :os_ids, default: {mac: 'mac', linux: 'linux'}
|
12
|
+
|
13
13
|
parameter :distribution_directory, default: 'dist'
|
14
|
+
|
15
|
+
parameter :dependency, required: true
|
14
16
|
parameter :version
|
15
17
|
parameter :path, required: true
|
16
|
-
parameter :dependency, required: true
|
17
18
|
parameter :uri_template, required: true
|
18
19
|
parameter :file_name_template, required: true
|
19
20
|
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative '../tasklib'
|
2
|
+
|
3
|
+
module RakeDependencies
|
4
|
+
module Tasks
|
5
|
+
class Fetch < TaskLib
|
6
|
+
parameter :name, default: :fetch
|
7
|
+
parameter :dependency, required: true
|
8
|
+
parameter :download_task, default: :download
|
9
|
+
parameter :extract_task, default: :extract
|
10
|
+
|
11
|
+
def process_arguments args
|
12
|
+
super(args)
|
13
|
+
self.name = args[0] if args[0]
|
14
|
+
end
|
15
|
+
|
16
|
+
def define
|
17
|
+
desc "Fetch #{dependency}"
|
18
|
+
task name => [
|
19
|
+
scoped_task_name(download_task),
|
20
|
+
scoped_task_name(extract_task)
|
21
|
+
]
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def scoped_task_name(task_name)
|
27
|
+
Rake.application.current_scope.path_with_task_name(task_name)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-dependencies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
@@ -177,6 +177,7 @@ files:
|
|
177
177
|
- lib/rake_dependencies/tasks/clean.rb
|
178
178
|
- lib/rake_dependencies/tasks/download.rb
|
179
179
|
- lib/rake_dependencies/tasks/extract.rb
|
180
|
+
- lib/rake_dependencies/tasks/fetch.rb
|
180
181
|
- lib/rake_dependencies/template.rb
|
181
182
|
- lib/rake_dependencies/version.rb
|
182
183
|
- rake_dependencies.gemspec
|