rake-dependencies 0.9.0 → 0.10.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/TODO.md +2 -0
- data/lib/rake_dependencies/tasks.rb +2 -1
- data/lib/rake_dependencies/tasks/all.rb +101 -0
- data/lib/rake_dependencies/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 163e4c7f46543d030af3699ced3ad47a6bc10181
|
4
|
+
data.tar.gz: 68df2a2965f8645595f53cff750cf70f5a8c47f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38b3ed867130db4697ef439002a6cfc8e6986d4c997c285beda7cbed937b7be0cd15f8285762aea77b66b4fdba1fc1252f39d1133e341b552d12fedcb102c3be
|
7
|
+
data.tar.gz: f0b967c2e51dc4acb5c1abf7d92c6bd0e972bd69d1c7bf2ea9d052b6c06a5678be0a14ea0a27599cd9128faf0e32e339ef51a03515bbc13c12be409d37782686
|
data/Gemfile.lock
CHANGED
data/TODO.md
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
require_relative 'clean'
|
2
|
+
require_relative 'download'
|
3
|
+
require_relative 'ensure'
|
4
|
+
require_relative 'extract'
|
5
|
+
require_relative 'fetch'
|
6
|
+
require_relative '../tasklib'
|
7
|
+
|
8
|
+
module RakeDependencies
|
9
|
+
module Tasks
|
10
|
+
class All < TaskLib
|
11
|
+
parameter :containing_namespace
|
12
|
+
|
13
|
+
parameter :dependency, :required => true
|
14
|
+
parameter :version, :required => true
|
15
|
+
parameter :path, :required => true
|
16
|
+
parameter :type, :default => :zip
|
17
|
+
|
18
|
+
parameter :os_ids, default: {mac: 'mac', linux: 'linux'}
|
19
|
+
|
20
|
+
parameter :distribution_directory, default: 'dist'
|
21
|
+
parameter :binary_directory, default: 'bin'
|
22
|
+
|
23
|
+
parameter :uri_template, :required => true
|
24
|
+
parameter :file_name_template, :required => true
|
25
|
+
|
26
|
+
parameter :needs_fetch, :required => true
|
27
|
+
|
28
|
+
parameter :clean_task_name, :default => :clean
|
29
|
+
parameter :download_task_name, :default => :download
|
30
|
+
parameter :extract_task_name, :default => :extract
|
31
|
+
parameter :fetch_task_name, :default => :fetch
|
32
|
+
parameter :ensure_task_name, :default => :ensure
|
33
|
+
|
34
|
+
alias namespace= containing_namespace=
|
35
|
+
|
36
|
+
def define
|
37
|
+
namespace containing_namespace do
|
38
|
+
Clean.new do |t|
|
39
|
+
t.name = clean_task_name
|
40
|
+
|
41
|
+
t.dependency = dependency
|
42
|
+
t.path = path
|
43
|
+
end
|
44
|
+
Download.new do |t|
|
45
|
+
t.name = download_task_name
|
46
|
+
|
47
|
+
t.dependency = dependency
|
48
|
+
t.version = version
|
49
|
+
t.path = path
|
50
|
+
t.type = type
|
51
|
+
|
52
|
+
t.os_ids = os_ids
|
53
|
+
|
54
|
+
t.distribution_directory = distribution_directory
|
55
|
+
|
56
|
+
t.uri_template = uri_template
|
57
|
+
t.file_name_template = file_name_template
|
58
|
+
end
|
59
|
+
Extract.new do |t|
|
60
|
+
t.name = extract_task_name
|
61
|
+
|
62
|
+
t.dependency = dependency
|
63
|
+
t.version = version
|
64
|
+
t.path = path
|
65
|
+
t.type = type
|
66
|
+
|
67
|
+
t.os_ids = os_ids
|
68
|
+
|
69
|
+
t.distribution_directory = distribution_directory
|
70
|
+
t.binary_directory = binary_directory
|
71
|
+
|
72
|
+
t.file_name_template = file_name_template
|
73
|
+
end
|
74
|
+
Fetch.new do |t|
|
75
|
+
t.name = fetch_task_name
|
76
|
+
|
77
|
+
t.dependency = dependency
|
78
|
+
|
79
|
+
t.download_task = download_task_name
|
80
|
+
t.extract_task = extract_task_name
|
81
|
+
end
|
82
|
+
Ensure.new do |t|
|
83
|
+
t.name = ensure_task_name
|
84
|
+
|
85
|
+
t.dependency = dependency
|
86
|
+
t.version = version
|
87
|
+
t.path = path
|
88
|
+
|
89
|
+
t.binary_directory = binary_directory
|
90
|
+
|
91
|
+
t.needs_fetch = needs_fetch
|
92
|
+
|
93
|
+
t.clean_task = clean_task_name
|
94
|
+
t.download_task = download_task_name
|
95
|
+
t.extract_task = extract_task_name
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
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.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
@@ -167,6 +167,7 @@ files:
|
|
167
167
|
- LICENSE.txt
|
168
168
|
- README.md
|
169
169
|
- Rakefile
|
170
|
+
- TODO.md
|
170
171
|
- bin/console
|
171
172
|
- bin/setup
|
172
173
|
- lib/rake_dependencies.rb
|
@@ -174,6 +175,7 @@ files:
|
|
174
175
|
- lib/rake_dependencies/extractors.rb
|
175
176
|
- lib/rake_dependencies/tasklib.rb
|
176
177
|
- lib/rake_dependencies/tasks.rb
|
178
|
+
- lib/rake_dependencies/tasks/all.rb
|
177
179
|
- lib/rake_dependencies/tasks/clean.rb
|
178
180
|
- lib/rake_dependencies/tasks/download.rb
|
179
181
|
- lib/rake_dependencies/tasks/ensure.rb
|