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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bffd953fa825f7eccfa9edab4209a7cfcd918aec
4
- data.tar.gz: 219e960d2014e2934ff308c86eda6aceded49a20
3
+ metadata.gz: b90c757bc921a0d3a607512f2dd3f3a170374fb3
4
+ data.tar.gz: 99c0bf6735c918cf480a5cc3b44d58e693e6c03d
5
5
  SHA512:
6
- metadata.gz: 13bc61eed1b3f95dd26b8397619cf725820f26fce39e3b0215b89ed94428ecff1deec113eaa9a58e24277cc1f328410389100ffe75bc84eb2069cd5a3ceb959c
7
- data.tar.gz: d91a89c1949fb0b27edb5abeb9b3fd28f6cf78b51567ff71baf3822f3d0363c6e5edff8fb7b981730aba22766aa6e44775283bb370c65d7836123f235ce8ca4b
6
+ metadata.gz: 689d89929257f09bf9b51a1ca09d891f8cb0a22fadd6432f649fb5213d8a758f62e82717bf7302061695c240b039438377975f03d0f737df08ab836eb688ac04
7
+ data.tar.gz: c789b8f88755184f45a88f28ad7f6063da76dae6aa5e3739ea58b6b5c4c61a86241b9383c57cc107120bd41899d021c141a18c8550aacf2891342909126d0486
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake-dependencies (0.6.1)
4
+ rake-dependencies (0.7.0)
5
5
  hamster (~> 3.0)
6
6
  minitar (~> 0.6)
7
7
  rubyzip (~> 1.1)
@@ -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
@@ -1,3 +1,4 @@
1
1
  require_relative 'tasks/clean'
2
2
  require_relative 'tasks/download'
3
- require_relative 'tasks/extract'
3
+ require_relative 'tasks/extract'
4
+ require_relative 'tasks/fetch'
@@ -1,3 +1,3 @@
1
1
  module RakeDependencies
2
- VERSION = "0.6.1"
2
+ VERSION = "0.7.0"
3
3
  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.6.1
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