rake_circle_ci 0.12.0.pre.3 → 0.12.0.pre.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +74 -73
- data/Rakefile +1 -3
- data/lib/rake_circle_ci/client.rb +14 -14
- data/lib/rake_circle_ci/tasks/ssh_keys/provision.rb +1 -1
- data/lib/rake_circle_ci/version.rb +1 -1
- data/lib/rake_circle_ci.rb +6 -6
- data/rake_circle_ci.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7842dba74153732967404b2321a1f0874cae8053185d0acd7eecba2dc2aca65a
|
4
|
+
data.tar.gz: 4b79ca04c64525d9992329a43747ebf1bd77003c75dda42f0431f5f2275a3257
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a994ae493cfd9c6d371679e2b68573f61a921906d2c7b4344b7b6aafd708c46d7aeabf82ff022741f5e7b31ec42edc20d961b6d316ee1253e146fbac722591fe
|
7
|
+
data.tar.gz: 0e74a3f8f69dd8dbb758213faa27c21e905f6ccca820a9a331cabcd3038a7ef006fc9d31f9b139ed6500fa758e7450cc2ea2de5a5ef0ac4f8b767f98bbc377fe
|
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
|
+
rake_circle_ci (0.12.0.pre.5)
|
5
5
|
colored2 (~> 3.1)
|
6
6
|
excon (~> 0.72)
|
7
|
-
rake_factory (~> 0.
|
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.
|
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.
|
24
|
-
public_suffix (>= 2.0.2, <
|
23
|
+
addressable (2.8.7)
|
24
|
+
public_suffix (>= 2.0.2, < 7.0)
|
25
25
|
ast (2.4.2)
|
26
|
-
base64 (0.
|
27
|
-
bigdecimal (3.1.
|
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.
|
30
|
+
concurrent-ruby (1.3.3)
|
30
31
|
connection_pool (2.4.1)
|
31
|
-
diff-lcs (1.5.
|
32
|
+
diff-lcs (1.5.1)
|
32
33
|
docile (1.4.0)
|
33
|
-
drb (2.
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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.
|
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.
|
47
|
+
i18n (1.14.5)
|
48
48
|
concurrent-ruby (~> 1.0)
|
49
49
|
immutable-struct (2.4.1)
|
50
|
-
json (2.
|
50
|
+
json (2.7.2)
|
51
51
|
language_server-protocol (3.17.0.3)
|
52
|
-
lino (
|
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.
|
57
|
-
mutex_m (0.
|
58
|
-
|
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.
|
63
|
-
parser (3.
|
67
|
+
parallel (1.25.1)
|
68
|
+
parser (3.3.4.0)
|
64
69
|
ast (~> 2.4.1)
|
65
70
|
racc
|
66
|
-
public_suffix (
|
67
|
-
racc (1.
|
71
|
+
public_suffix (6.0.0)
|
72
|
+
racc (1.8.0)
|
68
73
|
rainbow (3.1.1)
|
69
|
-
rake (13.1
|
70
|
-
rake_factory (0.
|
74
|
+
rake (13.2.1)
|
75
|
+
rake_factory (0.33.0)
|
71
76
|
activesupport (>= 4)
|
72
77
|
rake (~> 13.0)
|
73
|
-
rake_git (0.
|
78
|
+
rake_git (0.2.0)
|
74
79
|
colored2 (~> 3.1)
|
75
80
|
git (~> 1.13, >= 1.13.2)
|
76
|
-
rake_factory (
|
77
|
-
rake_git_crypt (0.
|
81
|
+
rake_factory (~> 0.33)
|
82
|
+
rake_git_crypt (0.2.0)
|
78
83
|
colored2 (~> 3.1)
|
79
|
-
rake_factory (
|
80
|
-
ruby_git_crypt (
|
81
|
-
ruby_gpg2 (~> 0.
|
82
|
-
rake_github (0.
|
84
|
+
rake_factory (~> 0.33)
|
85
|
+
ruby_git_crypt (~> 0.1)
|
86
|
+
ruby_gpg2 (~> 0.12)
|
87
|
+
rake_github (0.13.0)
|
83
88
|
colored2 (~> 3.1)
|
84
|
-
octokit (>= 4.16, <
|
89
|
+
octokit (>= 4.16, < 9.0)
|
85
90
|
rake_factory (~> 0.23)
|
86
91
|
sshkey (~> 2.0)
|
87
|
-
rake_gpg (0.
|
88
|
-
rake_factory (~> 0.
|
89
|
-
ruby_gpg2 (~> 0.
|
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.
|
96
|
-
rexml (3.2
|
97
|
-
|
98
|
-
|
99
|
-
rspec-
|
100
|
-
rspec-
|
101
|
-
|
102
|
-
|
103
|
-
|
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.
|
106
|
-
rspec-mocks (3.
|
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.
|
109
|
-
rspec-support (3.
|
110
|
-
rubocop (1.
|
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.
|
120
|
+
parser (>= 3.3.0.2)
|
115
121
|
rainbow (>= 2.2.2, < 4.0)
|
116
|
-
regexp_parser (>=
|
122
|
+
regexp_parser (>= 2.4, < 3.0)
|
117
123
|
rexml (>= 3.2.5, < 4.0)
|
118
|
-
rubocop-ast (>= 1.
|
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.
|
122
|
-
parser (>= 3.
|
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 (
|
130
|
-
rubocop (~> 1.
|
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
|
-
|
135
|
-
ruby_git_crypt (0.1.0.pre.2)
|
134
|
+
ruby_git_crypt (0.1.0)
|
136
135
|
immutable-struct (~> 2.4)
|
137
|
-
lino (
|
138
|
-
ruby_gpg2 (0.
|
139
|
-
lino (
|
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
|
data/Rakefile
CHANGED
@@ -162,7 +162,7 @@ end
|
|
162
162
|
RakeGithub.define_repository_tasks(
|
163
163
|
namespace: :github,
|
164
164
|
repository: 'infrablocks/rake_circle_ci'
|
165
|
-
) do |t
|
165
|
+
) do |t|
|
166
166
|
github_config =
|
167
167
|
YAML.load_file('config/secrets/github/config.yaml')
|
168
168
|
|
@@ -173,8 +173,6 @@ RakeGithub.define_repository_tasks(
|
|
173
173
|
public_key: File.read('config/secrets/ci/ssh.public')
|
174
174
|
}
|
175
175
|
]
|
176
|
-
t.branch_name = args.branch_name
|
177
|
-
t.commit_message = args.commit_message
|
178
176
|
end
|
179
177
|
|
180
178
|
namespace :pipeline do
|
@@ -79,22 +79,22 @@ module RakeCircleCI
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def follow_project
|
82
|
-
@http.post(@urls.follow_url, 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:
|
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
|
93
|
-
@http.post(@urls.env_vars_url,
|
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:
|
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:
|
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:
|
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,
|
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:
|
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,
|
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:
|
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:
|
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,
|
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:
|
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:
|
39
|
+
options = hostname && { hostname: }
|
40
40
|
args = [private_key, options].compact
|
41
41
|
client.create_ssh_key(*args)
|
42
42
|
puts 'Done.'
|
data/lib/rake_circle_ci.rb
CHANGED
@@ -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 = {}, &
|
10
|
-
RakeCircleCI::TaskSets::EnvironmentVariables.define(opts, &
|
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 = {}, &
|
14
|
-
RakeCircleCI::TaskSets::SSHKeys.define(opts, &
|
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 = {}, &
|
18
|
-
RakeCircleCI::TaskSets::Project.define(opts, &
|
17
|
+
def self.define_project_tasks(opts = {}, &)
|
18
|
+
RakeCircleCI::TaskSets::Project.define(opts, &)
|
19
19
|
end
|
20
20
|
end
|
data/rake_circle_ci.gemspec
CHANGED
@@ -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 = '>=
|
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.
|
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
|
+
version: 0.12.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:
|
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.
|
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.
|
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: '
|
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
126
|
version: 1.3.1
|
127
127
|
requirements: []
|
128
|
-
rubygems_version: 3.
|
128
|
+
rubygems_version: 3.3.7
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Rake tasks for CircleCI projects.
|