rake_circle_ci 0.12.0.pre.4 → 0.13.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
  SHA256:
3
- metadata.gz: 74b9a129504dbcdbe50daa0e8622a5bdb7642936293db4c657103d51a01900ee
4
- data.tar.gz: 77855612ba1ca2f27bbfabf921a920df3683c270e1b09f98836cf8c042dca5fa
3
+ metadata.gz: eb230b6d1ca0248a006e3e73d07d822054dea2a2f18f9f135aaf89705b199da7
4
+ data.tar.gz: 8607b8d5353ee954e3c24d2cb80ea9617bf62f22d35a09fbafef7664b63ff22a
5
5
  SHA512:
6
- metadata.gz: 1a0283a2e20f96adca1c83dde814209d652099d28549e71b3795d81e8db551e0d690c0c2eb307b8c70d7e492746ed7cb1104f454344aa491f8edf1965fb98eac
7
- data.tar.gz: 2eb055bd39087c3b326d84244e9378991857a3b6e34fd1045a9ca8245edfbba73ba2aba02e5f7874adbb3c96f4d5bc71e4b0684b99a966429ef9493c16825868
6
+ metadata.gz: 72030c998ffee7f9530ecc089584ecb9ff65d72376f25e260521ef2f9d243db9a8ea190877ac917212eb0c2b7f027f6a6a3a6c2a7ed56c45181d3c01426fa46c
7
+ data.tar.gz: 1d3c6bdd9a5be7b8d8e739d2460014860b8750be4eb23dd4e191192f7dc32a9ba88869e7e58ac87b9f2990df3d24e38a7c8a425a2a59c8c64b36e628abdd4ca3
data/Gemfile.lock CHANGED
@@ -1,16 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_circle_ci (0.12.0.pre.4)
4
+ rake_circle_ci (0.13.0)
5
5
  colored2 (~> 3.1)
6
6
  excon (~> 0.72)
7
- rake_factory (~> 0.31)
7
+ rake_factory (~> 0.33)
8
8
  sshkey (~> 2.0)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (7.1.1)
13
+ activesupport (7.1.3.4)
14
14
  base64
15
15
  bigdecimal
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -20,123 +20,122 @@ GEM
20
20
  minitest (>= 5.1)
21
21
  mutex_m
22
22
  tzinfo (~> 2.0)
23
- addressable (2.8.5)
24
- public_suffix (>= 2.0.2, < 6.0)
23
+ addressable (2.8.7)
24
+ public_suffix (>= 2.0.2, < 7.0)
25
25
  ast (2.4.2)
26
- base64 (0.1.1)
27
- bigdecimal (3.1.4)
26
+ base64 (0.2.0)
27
+ bigdecimal (3.1.8)
28
+ childprocess (5.0.0)
28
29
  colored2 (3.1.2)
29
- concurrent-ruby (1.2.2)
30
+ concurrent-ruby (1.3.3)
30
31
  connection_pool (2.4.1)
31
- diff-lcs (1.5.0)
32
+ diff-lcs (1.5.1)
32
33
  docile (1.4.0)
33
- drb (2.1.1)
34
- ruby2_keywords
35
- excon (0.104.0)
36
- faraday (2.7.11)
37
- base64
38
- faraday-net_http (>= 2.0, < 3.1)
39
- ruby2_keywords (>= 0.0.4)
40
- faraday-net_http (3.0.2)
34
+ drb (2.2.1)
35
+ excon (0.111.0)
36
+ faraday (2.10.0)
37
+ faraday-net_http (>= 2.0, < 3.2)
38
+ logger
39
+ faraday-net_http (3.1.0)
40
+ net-http
41
41
  gem-release (2.2.2)
42
- git (1.18.0)
42
+ git (1.19.1)
43
43
  addressable (~> 2.8)
44
44
  rchardet (~> 1.8)
45
45
  hamster (3.0.0)
46
46
  concurrent-ruby (~> 1.0)
47
- i18n (1.14.1)
47
+ i18n (1.14.5)
48
48
  concurrent-ruby (~> 1.0)
49
49
  immutable-struct (2.4.1)
50
- json (2.6.3)
50
+ json (2.7.2)
51
51
  language_server-protocol (3.17.0.3)
52
- lino (3.1.0)
52
+ lino (4.1.0)
53
+ childprocess (~> 5.0.0)
53
54
  hamster (~> 3.0)
54
55
  open4 (~> 1.3)
56
+ logger (1.6.0)
55
57
  memfs (1.0.0)
56
- minitest (5.20.0)
57
- mutex_m (0.1.2)
58
- octokit (8.0.0)
58
+ minitest (5.24.1)
59
+ mutex_m (0.2.0)
60
+ net-http (0.4.1)
61
+ uri
62
+ octokit (8.1.0)
63
+ base64
59
64
  faraday (>= 1, < 3)
60
65
  sawyer (~> 0.9)
61
66
  open4 (1.3.4)
62
- parallel (1.23.0)
63
- parser (3.2.2.4)
67
+ parallel (1.25.1)
68
+ parser (3.3.4.0)
64
69
  ast (~> 2.4.1)
65
70
  racc
66
- public_suffix (5.0.3)
67
- racc (1.7.3)
71
+ public_suffix (6.0.0)
72
+ racc (1.8.0)
68
73
  rainbow (3.1.1)
69
- rake (13.1.0)
70
- rake_factory (0.32.0.pre.2)
74
+ rake (13.2.1)
75
+ rake_factory (0.33.0)
71
76
  activesupport (>= 4)
72
77
  rake (~> 13.0)
73
- rake_git (0.1.0.pre.9)
78
+ rake_git (0.2.0)
74
79
  colored2 (~> 3.1)
75
80
  git (~> 1.13, >= 1.13.2)
76
- rake_factory (= 0.32.0.pre.2)
77
- rake_git_crypt (0.1.0.pre.28)
81
+ rake_factory (~> 0.33)
82
+ rake_git_crypt (0.2.0)
78
83
  colored2 (~> 3.1)
79
- rake_factory (= 0.32.0.pre.2)
80
- ruby_git_crypt (= 0.1.0.pre.2)
81
- ruby_gpg2 (~> 0.6)
84
+ rake_factory (~> 0.33)
85
+ ruby_git_crypt (~> 0.1)
86
+ ruby_gpg2 (~> 0.12)
82
87
  rake_github (0.13.0)
83
88
  colored2 (~> 3.1)
84
89
  octokit (>= 4.16, < 9.0)
85
90
  rake_factory (~> 0.23)
86
91
  sshkey (~> 2.0)
87
- rake_gpg (0.18.0)
88
- rake_factory (~> 0.23)
89
- ruby_gpg2 (~> 0.6)
92
+ rake_gpg (0.20.0)
93
+ rake_factory (~> 0.33)
94
+ ruby_gpg2 (~> 0.12)
90
95
  rake_ssh (0.10.0)
91
96
  colored2 (~> 3.1)
92
97
  rake_factory (~> 0.23)
93
98
  sshkey (~> 2.0)
94
99
  rchardet (1.8.0)
95
- regexp_parser (2.8.2)
96
- rexml (3.2.6)
97
- rspec (3.12.0)
98
- rspec-core (~> 3.12.0)
99
- rspec-expectations (~> 3.12.0)
100
- rspec-mocks (~> 3.12.0)
101
- rspec-core (3.12.2)
102
- rspec-support (~> 3.12.0)
103
- rspec-expectations (3.12.3)
100
+ regexp_parser (2.9.2)
101
+ rexml (3.3.2)
102
+ strscan
103
+ rspec (3.13.0)
104
+ rspec-core (~> 3.13.0)
105
+ rspec-expectations (~> 3.13.0)
106
+ rspec-mocks (~> 3.13.0)
107
+ rspec-core (3.13.0)
108
+ rspec-support (~> 3.13.0)
109
+ rspec-expectations (3.13.1)
104
110
  diff-lcs (>= 1.2.0, < 2.0)
105
- rspec-support (~> 3.12.0)
106
- rspec-mocks (3.12.6)
111
+ rspec-support (~> 3.13.0)
112
+ rspec-mocks (3.13.1)
107
113
  diff-lcs (>= 1.2.0, < 2.0)
108
- rspec-support (~> 3.12.0)
109
- rspec-support (3.12.1)
110
- rubocop (1.57.2)
114
+ rspec-support (~> 3.13.0)
115
+ rspec-support (3.13.1)
116
+ rubocop (1.65.0)
111
117
  json (~> 2.3)
112
118
  language_server-protocol (>= 3.17.0)
113
119
  parallel (~> 1.10)
114
- parser (>= 3.2.2.4)
120
+ parser (>= 3.3.0.2)
115
121
  rainbow (>= 2.2.2, < 4.0)
116
- regexp_parser (>= 1.8, < 3.0)
122
+ regexp_parser (>= 2.4, < 3.0)
117
123
  rexml (>= 3.2.5, < 4.0)
118
- rubocop-ast (>= 1.28.1, < 2.0)
124
+ rubocop-ast (>= 1.31.1, < 2.0)
119
125
  ruby-progressbar (~> 1.7)
120
126
  unicode-display_width (>= 2.4.0, < 3.0)
121
- rubocop-ast (1.30.0)
122
- parser (>= 3.2.1.0)
123
- rubocop-capybara (2.19.0)
124
- rubocop (~> 1.41)
125
- rubocop-factory_bot (2.24.0)
126
- rubocop (~> 1.33)
127
+ rubocop-ast (1.31.3)
128
+ parser (>= 3.3.1.0)
127
129
  rubocop-rake (0.6.0)
128
130
  rubocop (~> 1.0)
129
- rubocop-rspec (2.25.0)
130
- rubocop (~> 1.40)
131
- rubocop-capybara (~> 2.17)
132
- rubocop-factory_bot (~> 2.22)
131
+ rubocop-rspec (3.0.3)
132
+ rubocop (~> 1.61)
133
133
  ruby-progressbar (1.13.0)
134
- ruby2_keywords (0.0.5)
135
- ruby_git_crypt (0.1.0.pre.2)
134
+ ruby_git_crypt (0.1.0)
136
135
  immutable-struct (~> 2.4)
137
- lino (~> 3.0)
138
- ruby_gpg2 (0.10.0)
139
- lino (~> 3.0)
136
+ lino (>= 4.1)
137
+ ruby_gpg2 (0.12.0)
138
+ lino (>= 4.1)
140
139
  sawyer (0.9.2)
141
140
  addressable (>= 2.3.5)
142
141
  faraday (>= 0.17.3, < 3)
@@ -147,9 +146,11 @@ GEM
147
146
  simplecov-html (0.12.3)
148
147
  simplecov_json_formatter (0.1.4)
149
148
  sshkey (2.0.0)
149
+ strscan (3.1.0)
150
150
  tzinfo (2.0.6)
151
151
  concurrent-ruby (~> 1.0)
152
152
  unicode-display_width (2.5.0)
153
+ uri (0.13.0)
153
154
 
154
155
  PLATFORMS
155
156
  ruby
@@ -79,22 +79,22 @@ module RakeCircleCI
79
79
  end
80
80
 
81
81
  def follow_project
82
- @http.post(@urls.follow_url, headers: headers)
82
+ @http.post(@urls.follow_url, { headers: })
83
83
  end
84
84
 
85
85
  def find_env_vars
86
- response = @http.get(@urls.env_vars_url, headers: headers)
86
+ response = @http.get(@urls.env_vars_url, { headers: })
87
87
  body = JSON.parse(response.body)
88
88
  body['items'].map { |item| item['name'] }
89
89
  end
90
90
 
91
91
  def create_env_var(name, value)
92
- body = JSON.dump(name: name, value: value)
93
- @http.post(@urls.env_vars_url, body: body, headers: headers)
92
+ body = JSON.dump(name:, value:)
93
+ @http.post(@urls.env_vars_url, { body:, headers: })
94
94
  end
95
95
 
96
96
  def delete_env_var(name)
97
- @http.delete(@urls.env_var_url(name), headers: headers)
97
+ @http.delete(@urls.env_var_url(name), { headers: })
98
98
  end
99
99
 
100
100
  def delete_env_vars
@@ -105,7 +105,7 @@ module RakeCircleCI
105
105
  end
106
106
 
107
107
  def find_ssh_keys
108
- response = @http.get(@urls.settings_url, headers: headers)
108
+ response = @http.get(@urls.settings_url, { headers: })
109
109
  body = JSON.parse(response.body, symbolize_names: true)
110
110
  body[:ssh_keys]
111
111
  end
@@ -113,20 +113,20 @@ module RakeCircleCI
113
113
  def create_ssh_key(private_key, opts = {})
114
114
  body = {
115
115
  fingerprint: SSHKey.new(private_key).sha1_fingerprint,
116
- private_key: private_key
116
+ private_key:
117
117
  }
118
118
  body = body.merge(hostname: opts[:hostname]) if opts[:hostname]
119
119
  body = JSON.dump(body)
120
- @http.post(@urls.ssh_keys_url, body: body, headers: headers)
120
+ @http.post(@urls.ssh_keys_url, { body:, headers: })
121
121
  end
122
122
 
123
123
  def delete_ssh_key(fingerprint, opts = {})
124
124
  body = {
125
- fingerprint: fingerprint
125
+ fingerprint:
126
126
  }
127
127
  body = body.merge(hostname: opts[:hostname]) if opts[:hostname]
128
128
  body = JSON.dump(body)
129
- @http.delete(@urls.ssh_keys_url, body: body, headers: headers)
129
+ @http.delete(@urls.ssh_keys_url, { body:, headers: })
130
130
  end
131
131
 
132
132
  def delete_ssh_keys
@@ -134,14 +134,14 @@ module RakeCircleCI
134
134
  ssh_keys.each do |ssh_key|
135
135
  fingerprint = ssh_key[:fingerprint]
136
136
  hostname = ssh_key[:hostname]
137
- options = hostname && { hostname: hostname }
137
+ options = hostname && { hostname: }
138
138
  args = [fingerprint, options].compact
139
139
  delete_ssh_key(*args)
140
140
  end
141
141
  end
142
142
 
143
143
  def find_checkout_keys
144
- response = @http.get(@urls.checkout_keys_url, headers: headers)
144
+ response = @http.get(@urls.checkout_keys_url, { headers: })
145
145
  JSON.parse(response.body, symbolize_names: true)
146
146
  end
147
147
 
@@ -151,11 +151,11 @@ module RakeCircleCI
151
151
  github_user_key: 'github-user-key'
152
152
  }
153
153
  body = JSON.dump(type: type_strings[type.to_sym] || type.to_s)
154
- @http.post(@urls.checkout_keys_url, body: body, headers: headers)
154
+ @http.post(@urls.checkout_keys_url, { body:, headers: })
155
155
  end
156
156
 
157
157
  def delete_checkout_key(fingerprint)
158
- @http.delete(@urls.checkout_key_url(fingerprint), headers: headers)
158
+ @http.delete(@urls.checkout_key_url(fingerprint), { headers: })
159
159
  end
160
160
 
161
161
  def delete_checkout_keys
@@ -36,7 +36,7 @@ module RakeCircleCI
36
36
  print "Adding SSH key with fingerprint: '#{fingerprint}'"
37
37
  print " for hostname: '#{hostname}'" if hostname
38
38
  print '...'
39
- options = hostname && { hostname: hostname }
39
+ options = hostname && { hostname: }
40
40
  args = [private_key, options].compact
41
41
  client.create_ssh_key(*args)
42
42
  puts 'Done.'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeCircleCI
4
- VERSION = '0.12.0.pre.4'
4
+ VERSION = '0.13.0'
5
5
  end
@@ -6,15 +6,15 @@ require 'rake_circle_ci/tasks'
6
6
  require 'rake_circle_ci/task_sets'
7
7
 
8
8
  module RakeCircleCI
9
- def self.define_environment_variables_tasks(opts = {}, &block)
10
- RakeCircleCI::TaskSets::EnvironmentVariables.define(opts, &block)
9
+ def self.define_environment_variables_tasks(opts = {}, &)
10
+ RakeCircleCI::TaskSets::EnvironmentVariables.define(opts, &)
11
11
  end
12
12
 
13
- def self.define_ssh_keys_tasks(opts = {}, &block)
14
- RakeCircleCI::TaskSets::SSHKeys.define(opts, &block)
13
+ def self.define_ssh_keys_tasks(opts = {}, &)
14
+ RakeCircleCI::TaskSets::SSHKeys.define(opts, &)
15
15
  end
16
16
 
17
- def self.define_project_tasks(opts = {}, &block)
18
- RakeCircleCI::TaskSets::Project.define(opts, &block)
17
+ def self.define_project_tasks(opts = {}, &)
18
+ RakeCircleCI::TaskSets::Project.define(opts, &)
19
19
  end
20
20
  end
@@ -33,11 +33,11 @@ Gem::Specification.new do |spec|
33
33
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
34
34
  spec.require_paths = ['lib']
35
35
 
36
- spec.required_ruby_version = '>= 2.7'
36
+ spec.required_ruby_version = '>= 3.1'
37
37
 
38
38
  spec.add_dependency 'colored2', '~> 3.1'
39
39
  spec.add_dependency 'excon', '~> 0.72'
40
- spec.add_dependency 'rake_factory', '~> 0.31'
40
+ spec.add_dependency 'rake_factory', '~> 0.33'
41
41
  spec.add_dependency 'sshkey', '~> 2.0'
42
42
 
43
43
  spec.metadata['rubygems_mfa_required'] = 'false'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_circle_ci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0.pre.4
4
+ version: 0.13.0
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-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.31'
47
+ version: '0.33'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.31'
54
+ version: '0.33'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sshkey
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -118,14 +118,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - ">="
120
120
  - !ruby/object:Gem::Version
121
- version: '2.7'
121
+ version: '3.1'
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - ">"
124
+ - - ">="
125
125
  - !ruby/object:Gem::Version
126
- version: 1.3.1
126
+ version: '0'
127
127
  requirements: []
128
- rubygems_version: 3.1.6
128
+ rubygems_version: 3.3.7
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Rake tasks for CircleCI projects.