rake_dependencies 3.6.0.pre.4 → 3.6.0.pre.5

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
  SHA256:
3
- metadata.gz: f929d6bb8f720f41bf4783f2a100277254d07df24c0d177c7496c36623babc78
4
- data.tar.gz: 88b0c4d613a0dcd4d49b9723bcd0df956b4a96da03e598a7529a30921011ed2e
3
+ metadata.gz: 2c9f2fe1a9287ea468fc3d75bbf308dae469d133ab14d87d42863ef2e1252d60
4
+ data.tar.gz: 765a8f8c153450611096750fcec7837cb04f94d9edbf106d40ec6307f1133961
5
5
  SHA512:
6
- metadata.gz: 2eb5ecfb5ab78bbd987117afa7d8a4c3e213941df5516d9b529e52ee43c82c87319008d562efce13578c9af8178ad03c900ee2471ddd2bb3be63bfb8cbd17877
7
- data.tar.gz: 6016192642d7d8b38727f7d209988c6fa434fe0d0b4a7dfc5ed157ff479db682f9a11c80d1bc0264ceabd02bb4f3984916006e600a13ca4a56341dfa072c4394
6
+ metadata.gz: c30ee58d380fdc09f42a09c0ab5de9c3d172aacfeaf7faf8c2c735bfa96dcc7fe7b674f6a0b782c0894790a3efc5f190f0e9ddec46eef825f3e35f4a61bc80c2
7
+ data.tar.gz: '087c8be59a730fe61066893749e007b5dd227f087250019bd0de5b824b86d8b77a4da9f97f9348d29c2cabacea8fa650fe95e8b0cb52922fe365463f70ea8df1'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_dependencies (3.6.0.pre.4)
4
+ rake_dependencies (3.6.0.pre.5)
5
5
  down (~> 5.3)
6
6
  hamster (~> 3.0)
7
7
  minitar (~> 0.9)
@@ -11,7 +11,7 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (7.1.1)
14
+ activesupport (7.1.3.3)
15
15
  base64
16
16
  bigdecimal
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -21,56 +21,56 @@ GEM
21
21
  minitest (>= 5.1)
22
22
  mutex_m
23
23
  tzinfo (~> 2.0)
24
- addressable (2.8.5)
24
+ addressable (2.8.6)
25
25
  public_suffix (>= 2.0.2, < 6.0)
26
26
  ast (2.4.2)
27
- base64 (0.1.1)
28
- bigdecimal (3.1.4)
27
+ base64 (0.2.0)
28
+ bigdecimal (3.1.8)
29
29
  colored2 (3.1.2)
30
- concurrent-ruby (1.2.2)
30
+ concurrent-ruby (1.2.3)
31
31
  connection_pool (2.4.1)
32
- diff-lcs (1.5.0)
32
+ diff-lcs (1.5.1)
33
33
  docile (1.4.0)
34
- down (5.4.1)
34
+ down (5.4.2)
35
35
  addressable (~> 2.8)
36
- drb (2.1.1)
37
- ruby2_keywords
38
- excon (0.104.0)
36
+ drb (2.2.1)
37
+ excon (0.110.0)
39
38
  fakefs (2.5.0)
40
- faraday (2.7.11)
39
+ faraday (2.8.1)
41
40
  base64
42
41
  faraday-net_http (>= 2.0, < 3.1)
43
42
  ruby2_keywords (>= 0.0.4)
44
43
  faraday-net_http (3.0.2)
45
44
  gem-release (2.2.2)
46
- git (1.18.0)
45
+ git (1.19.1)
47
46
  addressable (~> 2.8)
48
47
  rchardet (~> 1.8)
49
48
  hamster (3.0.0)
50
49
  concurrent-ruby (~> 1.0)
51
- i18n (1.14.1)
50
+ i18n (1.14.5)
52
51
  concurrent-ruby (~> 1.0)
53
52
  immutable-struct (2.4.1)
54
- json (2.6.3)
53
+ json (2.7.2)
55
54
  language_server-protocol (3.17.0.3)
56
55
  lino (3.1.0)
57
56
  hamster (~> 3.0)
58
57
  open4 (~> 1.3)
59
58
  minitar (0.9)
60
- minitest (5.20.0)
61
- mutex_m (0.1.2)
62
- octokit (8.0.0)
59
+ minitest (5.23.0)
60
+ mutex_m (0.2.0)
61
+ octokit (8.1.0)
62
+ base64
63
63
  faraday (>= 1, < 3)
64
64
  sawyer (~> 0.9)
65
65
  open4 (1.3.4)
66
- parallel (1.23.0)
67
- parser (3.2.2.4)
66
+ parallel (1.24.0)
67
+ parser (3.3.1.0)
68
68
  ast (~> 2.4.1)
69
69
  racc
70
- public_suffix (5.0.3)
70
+ public_suffix (5.0.5)
71
71
  racc (1.7.3)
72
72
  rainbow (3.1.1)
73
- rake (13.1.0)
73
+ rake (13.2.1)
74
74
  rake_circle_ci (0.11.0)
75
75
  colored2 (~> 3.1)
76
76
  excon (~> 0.72)
@@ -79,14 +79,14 @@ GEM
79
79
  rake_factory (0.32.0.pre.2)
80
80
  activesupport (>= 4)
81
81
  rake (~> 13.0)
82
- rake_git (0.1.0.pre.9)
82
+ rake_git (0.1.0.pre.10)
83
83
  colored2 (~> 3.1)
84
84
  git (~> 1.13, >= 1.13.2)
85
85
  rake_factory (= 0.32.0.pre.2)
86
- rake_git_crypt (0.1.0.pre.28)
86
+ rake_git_crypt (0.1.0.pre.29)
87
87
  colored2 (~> 3.1)
88
88
  rake_factory (= 0.32.0.pre.2)
89
- ruby_git_crypt (= 0.1.0.pre.2)
89
+ ruby_git_crypt (= 0.1.0.pre.4)
90
90
  ruby_gpg2 (~> 0.6)
91
91
  rake_github (0.13.0)
92
92
  colored2 (~> 3.1)
@@ -101,47 +101,51 @@ GEM
101
101
  rake_factory (~> 0.23)
102
102
  sshkey (~> 2.0)
103
103
  rchardet (1.8.0)
104
- regexp_parser (2.8.2)
105
- rexml (3.2.6)
106
- rspec (3.12.0)
107
- rspec-core (~> 3.12.0)
108
- rspec-expectations (~> 3.12.0)
109
- rspec-mocks (~> 3.12.0)
110
- rspec-core (3.12.2)
111
- rspec-support (~> 3.12.0)
112
- rspec-expectations (3.12.3)
104
+ regexp_parser (2.9.2)
105
+ rexml (3.2.8)
106
+ strscan (>= 3.0.9)
107
+ rspec (3.13.0)
108
+ rspec-core (~> 3.13.0)
109
+ rspec-expectations (~> 3.13.0)
110
+ rspec-mocks (~> 3.13.0)
111
+ rspec-core (3.13.0)
112
+ rspec-support (~> 3.13.0)
113
+ rspec-expectations (3.13.0)
113
114
  diff-lcs (>= 1.2.0, < 2.0)
114
- rspec-support (~> 3.12.0)
115
- rspec-mocks (3.12.6)
115
+ rspec-support (~> 3.13.0)
116
+ rspec-mocks (3.13.1)
116
117
  diff-lcs (>= 1.2.0, < 2.0)
117
- rspec-support (~> 3.12.0)
118
- rspec-support (3.12.1)
119
- rubocop (1.57.2)
118
+ rspec-support (~> 3.13.0)
119
+ rspec-support (3.13.1)
120
+ rubocop (1.63.5)
120
121
  json (~> 2.3)
121
122
  language_server-protocol (>= 3.17.0)
122
123
  parallel (~> 1.10)
123
- parser (>= 3.2.2.4)
124
+ parser (>= 3.3.0.2)
124
125
  rainbow (>= 2.2.2, < 4.0)
125
126
  regexp_parser (>= 1.8, < 3.0)
126
127
  rexml (>= 3.2.5, < 4.0)
127
- rubocop-ast (>= 1.28.1, < 2.0)
128
+ rubocop-ast (>= 1.31.1, < 2.0)
128
129
  ruby-progressbar (~> 1.7)
129
130
  unicode-display_width (>= 2.4.0, < 3.0)
130
- rubocop-ast (1.30.0)
131
- parser (>= 3.2.1.0)
132
- rubocop-capybara (2.19.0)
131
+ rubocop-ast (1.31.3)
132
+ parser (>= 3.3.1.0)
133
+ rubocop-capybara (2.20.0)
134
+ rubocop (~> 1.41)
135
+ rubocop-factory_bot (2.25.1)
133
136
  rubocop (~> 1.41)
134
- rubocop-factory_bot (2.24.0)
135
- rubocop (~> 1.33)
136
137
  rubocop-rake (0.6.0)
137
138
  rubocop (~> 1.0)
138
- rubocop-rspec (2.25.0)
139
+ rubocop-rspec (2.29.2)
139
140
  rubocop (~> 1.40)
140
141
  rubocop-capybara (~> 2.17)
141
142
  rubocop-factory_bot (~> 2.22)
143
+ rubocop-rspec_rails (~> 2.28)
144
+ rubocop-rspec_rails (2.28.3)
145
+ rubocop (~> 1.40)
142
146
  ruby-progressbar (1.13.0)
143
147
  ruby2_keywords (0.0.5)
144
- ruby_git_crypt (0.1.0.pre.2)
148
+ ruby_git_crypt (0.1.0.pre.4)
145
149
  immutable-struct (~> 2.4)
146
150
  lino (~> 3.0)
147
151
  ruby_gpg2 (0.10.0)
@@ -157,6 +161,7 @@ GEM
157
161
  simplecov-html (0.12.3)
158
162
  simplecov_json_formatter (0.1.4)
159
163
  sshkey (2.0.0)
164
+ strscan (3.1.0)
160
165
  tzinfo (2.0.6)
161
166
  concurrent-ruby (~> 1.0)
162
167
  unicode-display_width (2.5.0)
@@ -165,7 +170,6 @@ PLATFORMS
165
170
  ruby
166
171
 
167
172
  DEPENDENCIES
168
- activesupport
169
173
  bundler
170
174
  fakefs
171
175
  gem-release
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'logger'
4
+
5
+ module RakeDependencies
6
+ class NullLogger < Logger
7
+ def initialize
8
+ super(StringIO.new)
9
+ end
10
+
11
+ def add(severity, message = nil, progname = nil)
12
+ # no-op
13
+ end
14
+
15
+ def <<(msg)
16
+ # no-op
17
+ end
18
+
19
+ def ==(other)
20
+ self.class == other.class
21
+ end
22
+
23
+ def hash
24
+ self.class.hash
25
+ end
26
+ end
27
+ end
@@ -43,6 +43,8 @@ module RakeDependencies
43
43
  parameter :fetch_task_name, default: :fetch
44
44
  parameter :ensure_task_name, default: :ensure
45
45
 
46
+ parameter :logger, default: NullLogger.new
47
+
46
48
  task(
47
49
  Tasks::Clean, {
48
50
  name: (RakeFactory::DynamicValue.new { |ts| ts.clean_task_name })
@@ -1,6 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'rake_factory'
4
+ require 'logger'
5
+
6
+ require_relative '../null_logger'
4
7
 
5
8
  module RakeDependencies
6
9
  module Tasks
@@ -13,8 +16,12 @@ module RakeDependencies
13
16
  parameter :dependency, required: true
14
17
  parameter :path, required: true
15
18
 
19
+ parameter :logger, default: NullLogger.new
20
+
16
21
  action do |t|
22
+ logger.info("Cleaning '#{dependency}' at path: '#{path}'...")
17
23
  rm_rf t.path
24
+ logger.info('Cleaned.')
18
25
  end
19
26
  end
20
27
  end
@@ -6,6 +6,7 @@ require 'rubygems'
6
6
 
7
7
  require_relative '../template'
8
8
  require_relative '../platform_names'
9
+ require_relative '../null_logger'
9
10
 
10
11
  module RakeDependencies
11
12
  module Tasks
@@ -28,7 +29,12 @@ module RakeDependencies
28
29
  parameter :uri_template, required: true
29
30
  parameter :file_name_template, required: true
30
31
 
32
+ parameter :logger, default: NullLogger.new
33
+
34
+ # rubocop:disable Metrics/BlockLength
31
35
  action do
36
+ logger.info("Downloading '#{dependency}' (version #{version})...")
37
+
32
38
  parameters = {
33
39
  version: version,
34
40
  platform: platform,
@@ -37,9 +43,16 @@ module RakeDependencies
37
43
  ext: ext
38
44
  }
39
45
 
46
+ logger.debug(
47
+ "Using parameters: #{parameters.merge({ platform: platform.to_s })}."
48
+ )
49
+
40
50
  uri = Template.new(uri_template)
41
51
  .with_parameters(parameters)
42
52
  .render
53
+
54
+ logger.debug("Using URI: #{uri}.")
55
+
43
56
  download_file_name = Template.new(file_name_template)
44
57
  .with_parameters(parameters)
45
58
  .render
@@ -47,11 +60,16 @@ module RakeDependencies
47
60
  download_file_path = File.join(download_file_directory,
48
61
  download_file_name)
49
62
 
63
+ logger.debug("Using distribution file path: #{download_file_path}.")
64
+
50
65
  temporary_file = Down.download(uri)
51
66
 
52
67
  mkdir_p download_file_directory
53
68
  cp temporary_file.path, download_file_path
69
+
70
+ logger.info('Downloaded.')
54
71
  end
72
+ # rubocop:enable Metrics/BlockLength
55
73
 
56
74
  private
57
75
 
@@ -6,9 +6,11 @@ require 'rubygems'
6
6
 
7
7
  require_relative '../template'
8
8
  require_relative '../extractors'
9
+ require_relative '../null_logger'
9
10
 
10
11
  module RakeDependencies
11
12
  module Tasks
13
+ # rubocop:disable Metrics/ClassLength
12
14
  class Extract < RakeFactory::Task
13
15
  default_name :extract
14
16
  default_description(RakeFactory::DynamicValue.new do |t|
@@ -38,15 +40,28 @@ module RakeDependencies
38
40
  parameter :target_binary_name_template
39
41
  parameter :strip_path_template
40
42
 
43
+ parameter :logger, default: NullLogger.new
44
+
45
+ # rubocop:disable Metrics/BlockLength
41
46
  action do
47
+ logger.info("Extracting '#{dependency}'...")
48
+
49
+ logger.debug(
50
+ "Using parameters: #{parameters.merge(platform: platform.to_s)}."
51
+ )
52
+
42
53
  distribution_file_name = interpolate_file_name_template(parameters)
43
54
  distribution_file_directory = relative_to_path(distribution_directory)
44
55
  distribution_file_path = File.join(
45
56
  distribution_file_directory, distribution_file_name
46
57
  )
47
58
 
59
+ logger.debug("Using distribution file path: #{distribution_file_path}.")
60
+
48
61
  extraction_path = relative_to_path(binary_directory)
49
62
 
63
+ logger.debug("Using extraction path: #{extraction_path}.")
64
+
50
65
  options = {}
51
66
  if strip_path_template
52
67
  options[:strip_path] = interpolate_strip_path_template(parameters)
@@ -59,13 +74,18 @@ module RakeDependencies
59
74
  interpolate_target_binary_name_template(parameters)
60
75
  end
61
76
 
77
+ logger.debug("Using extraction options: #{options}.")
78
+
62
79
  extractor = extractor_for_extension.new(
63
80
  distribution_file_path,
64
81
  extraction_path,
65
82
  options
66
83
  )
67
84
  extractor.extract
85
+
86
+ logger.info('Extracted.')
68
87
  end
88
+ # rubocop:enable Metrics/BlockLength
69
89
 
70
90
  def parameters
71
91
  {
@@ -134,5 +154,6 @@ module RakeDependencies
134
154
  end
135
155
  end
136
156
  end
157
+ # rubocop:enable Metrics/ClassLength
137
158
  end
138
159
  end
@@ -4,6 +4,7 @@ require 'rake_factory'
4
4
  require 'rubygems'
5
5
 
6
6
  require_relative '../template'
7
+ require_relative '../null_logger'
7
8
 
8
9
  module RakeDependencies
9
10
  module Tasks
@@ -26,7 +27,11 @@ module RakeDependencies
26
27
 
27
28
  parameter :installation_directory, required: true
28
29
 
30
+ parameter :logger, default: NullLogger.new
31
+
29
32
  action do
33
+ logger.info("Installing '#{dependency}'...")
34
+
30
35
  parameters = {
31
36
  version: version,
32
37
  platform: platform,
@@ -35,6 +40,10 @@ module RakeDependencies
35
40
  ext: ext
36
41
  }
37
42
 
43
+ logger.debug(
44
+ "Using parameters: #{parameters.merge(platform: platform.to_s)}."
45
+ )
46
+
38
47
  binary_file_name = Template.new(binary_name_template)
39
48
  .with_parameters(parameters)
40
49
  .render
@@ -43,8 +52,13 @@ module RakeDependencies
43
52
  binary_file_directory, binary_file_name
44
53
  )
45
54
 
55
+ logger.debug("Using binary file path: #{binary_file_path}.")
56
+ logger.debug("Using installation directory: #{installation_directory}.")
57
+
46
58
  mkdir_p installation_directory
47
59
  cp binary_file_path, installation_directory
60
+
61
+ logger.info('Installed.')
48
62
  end
49
63
 
50
64
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeDependencies
4
- VERSION = '3.6.0.pre.4'
4
+ VERSION = '3.6.0.pre.5'
5
5
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'rake_dependencies/null_logger'
3
4
  require 'rake_dependencies/tasks'
4
5
  require 'rake_dependencies/task_sets'
5
6
  require 'rake_dependencies/extractors'
@@ -42,7 +42,6 @@ Gem::Specification.new do |spec|
42
42
  spec.add_dependency 'rake_factory', '~> 0.23'
43
43
  spec.add_dependency 'rubyzip', '>= 1.3'
44
44
 
45
- spec.add_development_dependency 'activesupport'
46
45
  spec.add_development_dependency 'bundler'
47
46
  spec.add_development_dependency 'fakefs'
48
47
  spec.add_development_dependency 'gem-release'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_dependencies
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0.pre.4
4
+ version: 3.6.0.pre.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-06 00:00:00.000000000 Z
11
+ date: 2024-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: down
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.3'
83
- - !ruby/object:Gem::Dependency
84
- name: activesupport
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: bundler
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -323,6 +309,7 @@ files:
323
309
  - lib/rake_dependencies.rb
324
310
  - lib/rake_dependencies/extractors.rb
325
311
  - lib/rake_dependencies/kernel_extensions.rb
312
+ - lib/rake_dependencies/null_logger.rb
326
313
  - lib/rake_dependencies/platform_names.rb
327
314
  - lib/rake_dependencies/task_sets.rb
328
315
  - lib/rake_dependencies/task_sets/all.rb