concourse.rb 0.6.0.pre.1 → 0.6.0.pre.3

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: 6c3ac986c4f825cb16d43a4c82b95a9595c3d3bbb1d45f0fccdd2cf2820bf9f2
4
- data.tar.gz: 2c0fa93ac724a2e41fec15c5e2779aceda7bc7ffcd29e02ab9f1857e4143fb59
3
+ metadata.gz: 46f7340fce10450d4425aa20e5eafa6cfc4184a2d90b4ce5be8bfcbf01cbc4b7
4
+ data.tar.gz: 5718b4332e81808bc792cb986b462317949ff7851620d4f3f645f12b20882a4e
5
5
  SHA512:
6
- metadata.gz: 8db3ed79f5a00ad1d73799292889061a915cc9b04b8e8cc2d96c9b51be3fc62ee239afc17707af638fd6f2b5136e3e72a8dc689cb67c780949c3e76d5a29cc0b
7
- data.tar.gz: d128f5a4b16f202a145761d0a93b4b1e49188c46bffd6f1e6875510e95ce0506ce9e8c0b14f800dba0957c2615d4932a622fa7a1339a18e26dde37c2150eab53
6
+ metadata.gz: 45d938dbdc7a5a637b04b3bf0b5372d36c95b1fb57fb12fc74e8f1872bb3b61bab12a71b8acd684d50db1908f50819f6751dea0b60f4989ad05e325c5380ae49
7
+ data.tar.gz: 163706d14ef6b71250ec5ea78a6499445e4ac8e075c658e020a08c958b02afa3a04274d196cf843773830dce0a4bbdba1936bcce000c68ed1bfde87ea67a86ae
data/Gemfile.lock CHANGED
@@ -1,52 +1,71 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- concourse.rb (0.6.0.pre.1)
4
+ concourse.rb (0.6.0.pre.3)
5
5
  excon (~> 0.72)
6
6
  semantic (~> 1.5)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.4)
11
+ activesupport (7.1.1)
12
+ base64
13
+ bigdecimal
12
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
+ connection_pool (>= 2.2.5)
16
+ drb
13
17
  i18n (>= 1.6, < 2)
14
18
  minitest (>= 5.1)
19
+ mutex_m
15
20
  tzinfo (~> 2.0)
16
- addressable (2.8.1)
21
+ addressable (2.8.5)
17
22
  public_suffix (>= 2.0.2, < 6.0)
18
23
  ast (2.4.2)
24
+ base64 (0.1.1)
25
+ bigdecimal (3.1.4)
19
26
  colored2 (3.1.2)
20
- concurrent-ruby (1.1.10)
27
+ concurrent-ruby (1.2.2)
28
+ connection_pool (2.4.1)
21
29
  diff-lcs (1.5.0)
22
30
  docile (1.4.0)
23
- excon (0.95.0)
24
- faker (3.1.0)
31
+ drb (2.1.1)
32
+ ruby2_keywords
33
+ excon (0.104.0)
34
+ faker (3.2.1)
25
35
  i18n (>= 1.8.11, < 2)
26
- faraday (2.7.2)
36
+ faraday (2.7.11)
37
+ base64
27
38
  faraday-net_http (>= 2.0, < 3.1)
28
39
  ruby2_keywords (>= 0.0.4)
29
40
  faraday-net_http (3.0.2)
30
41
  gem-release (2.2.2)
42
+ git (1.18.0)
43
+ addressable (~> 2.8)
44
+ rchardet (~> 1.8)
31
45
  hamster (3.0.0)
32
46
  concurrent-ruby (~> 1.0)
33
- i18n (1.12.0)
47
+ i18n (1.14.1)
34
48
  concurrent-ruby (~> 1.0)
49
+ immutable-struct (2.4.1)
35
50
  json (2.6.3)
36
- jwt (2.6.0)
51
+ jwt (2.7.1)
52
+ language_server-protocol (3.17.0.3)
37
53
  lino (3.1.0)
38
54
  hamster (~> 3.0)
39
55
  open4 (~> 1.3)
40
- minitest (5.17.0)
41
- octokit (6.0.1)
56
+ minitest (5.20.0)
57
+ mutex_m (0.1.2)
58
+ octokit (6.1.1)
42
59
  faraday (>= 1, < 3)
43
60
  sawyer (~> 0.9)
44
61
  open4 (1.3.4)
45
- openssl (3.1.0)
46
- parallel (1.22.1)
47
- parser (3.1.3.0)
62
+ openssl (3.2.0)
63
+ parallel (1.23.0)
64
+ parser (3.2.2.4)
48
65
  ast (~> 2.4.1)
49
- public_suffix (5.0.1)
66
+ racc
67
+ public_suffix (5.0.3)
68
+ racc (1.7.1)
50
69
  rainbow (3.1.1)
51
70
  rake (13.0.6)
52
71
  rake_circle_ci (0.11.0)
@@ -54,9 +73,18 @@ GEM
54
73
  excon (~> 0.72)
55
74
  rake_factory (~> 0.23)
56
75
  sshkey (~> 2.0)
57
- rake_factory (0.31.0)
76
+ rake_factory (0.32.0.pre.2)
58
77
  activesupport (>= 4)
59
78
  rake (~> 13.0)
79
+ rake_git (0.1.0.pre.7)
80
+ colored2 (~> 3.1)
81
+ git (~> 1.13, >= 1.13.2)
82
+ rake_factory (= 0.32.0.pre.2)
83
+ rake_git_crypt (0.1.0.pre.26)
84
+ colored2 (~> 3.1)
85
+ rake_factory (= 0.32.0.pre.2)
86
+ ruby_git_crypt (= 0.1.0.pre.2)
87
+ ruby_gpg2 (~> 0.6)
60
88
  rake_github (0.11.0)
61
89
  colored2 (~> 3.1)
62
90
  octokit (>= 4.16, < 7.0)
@@ -65,43 +93,55 @@ GEM
65
93
  rake_gpg (0.18.0)
66
94
  rake_factory (~> 0.23)
67
95
  ruby_gpg2 (~> 0.6)
68
- rake_ssh (0.8.0)
96
+ rake_ssh (0.10.0)
69
97
  colored2 (~> 3.1)
70
98
  rake_factory (~> 0.23)
71
99
  sshkey (~> 2.0)
72
- regexp_parser (2.6.1)
73
- rexml (3.2.5)
100
+ rchardet (1.8.0)
101
+ regexp_parser (2.8.2)
102
+ rexml (3.2.6)
74
103
  rspec (3.12.0)
75
104
  rspec-core (~> 3.12.0)
76
105
  rspec-expectations (~> 3.12.0)
77
106
  rspec-mocks (~> 3.12.0)
78
- rspec-core (3.12.0)
107
+ rspec-core (3.12.2)
79
108
  rspec-support (~> 3.12.0)
80
- rspec-expectations (3.12.1)
109
+ rspec-expectations (3.12.3)
81
110
  diff-lcs (>= 1.2.0, < 2.0)
82
111
  rspec-support (~> 3.12.0)
83
- rspec-mocks (3.12.1)
112
+ rspec-mocks (3.12.6)
84
113
  diff-lcs (>= 1.2.0, < 2.0)
85
114
  rspec-support (~> 3.12.0)
86
- rspec-support (3.12.0)
87
- rubocop (1.42.0)
115
+ rspec-support (3.12.1)
116
+ rubocop (1.57.1)
117
+ base64 (~> 0.1.1)
88
118
  json (~> 2.3)
119
+ language_server-protocol (>= 3.17.0)
89
120
  parallel (~> 1.10)
90
- parser (>= 3.1.2.1)
121
+ parser (>= 3.2.2.4)
91
122
  rainbow (>= 2.2.2, < 4.0)
92
123
  regexp_parser (>= 1.8, < 3.0)
93
124
  rexml (>= 3.2.5, < 4.0)
94
- rubocop-ast (>= 1.24.1, < 2.0)
125
+ rubocop-ast (>= 1.28.1, < 2.0)
95
126
  ruby-progressbar (~> 1.7)
96
- unicode-display_width (>= 1.4.0, < 3.0)
97
- rubocop-ast (1.24.1)
98
- parser (>= 3.1.1.0)
127
+ unicode-display_width (>= 2.4.0, < 3.0)
128
+ rubocop-ast (1.29.0)
129
+ parser (>= 3.2.1.0)
130
+ rubocop-capybara (2.19.0)
131
+ rubocop (~> 1.41)
132
+ rubocop-factory_bot (2.24.0)
133
+ rubocop (~> 1.33)
99
134
  rubocop-rake (0.6.0)
100
135
  rubocop (~> 1.0)
101
- rubocop-rspec (2.16.0)
136
+ rubocop-rspec (2.24.1)
102
137
  rubocop (~> 1.33)
103
- ruby-progressbar (1.11.0)
138
+ rubocop-capybara (~> 2.17)
139
+ rubocop-factory_bot (~> 2.22)
140
+ ruby-progressbar (1.13.0)
104
141
  ruby2_keywords (0.0.5)
142
+ ruby_git_crypt (0.1.0.pre.2)
143
+ immutable-struct (~> 2.4)
144
+ lino (~> 3.0)
105
145
  ruby_gpg2 (0.10.0)
106
146
  lino (~> 3.0)
107
147
  sawyer (0.9.2)
@@ -115,9 +155,9 @@ GEM
115
155
  simplecov-html (0.12.3)
116
156
  simplecov_json_formatter (0.1.4)
117
157
  sshkey (2.0.0)
118
- tzinfo (2.0.5)
158
+ tzinfo (2.0.6)
119
159
  concurrent-ruby (~> 1.0)
120
- unicode-display_width (2.3.0)
160
+ unicode-display_width (2.5.0)
121
161
 
122
162
  PLATFORMS
123
163
  ruby
@@ -133,6 +173,8 @@ DEPENDENCIES
133
173
  openssl
134
174
  rake
135
175
  rake_circle_ci
176
+ rake_git
177
+ rake_git_crypt
136
178
  rake_github
137
179
  rake_gpg
138
180
  rake_ssh
@@ -143,4 +185,4 @@ DEPENDENCIES
143
185
  simplecov
144
186
 
145
187
  BUNDLED WITH
146
- 2.4.2
188
+ 2.4.17
data/Rakefile CHANGED
@@ -1,25 +1,59 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'yaml'
4
3
  require 'rake_circle_ci'
4
+ require 'rake_git'
5
+ require 'rake_git_crypt'
5
6
  require 'rake_github'
6
- require 'rake_ssh'
7
7
  require 'rake_gpg'
8
- require 'securerandom'
8
+ require 'rake_ssh'
9
9
  require 'rspec/core/rake_task'
10
10
  require 'rubocop/rake_task'
11
+ require 'securerandom'
12
+ require 'yaml'
11
13
 
12
14
  task default: %i[
13
15
  library:fix
14
16
  test:unit
15
17
  ]
16
18
 
19
+ RakeGitCrypt.define_standard_tasks(
20
+ namespace: :git_crypt,
21
+
22
+ provision_secrets_task_name: :'secrets:provision',
23
+ destroy_secrets_task_name: :'secrets:destroy',
24
+
25
+ install_commit_task_name: :'git:commit',
26
+ uninstall_commit_task_name: :'git:commit',
27
+
28
+ gpg_user_key_paths: %w[
29
+ config/gpg
30
+ config/secrets/ci/gpg.public
31
+ ]
32
+ )
33
+
34
+ namespace :git do
35
+ RakeGit.define_commit_task(
36
+ argument_names: [:message]
37
+ ) do |t, args|
38
+ t.message = args.message
39
+ end
40
+ end
41
+
17
42
  namespace :encryption do
43
+ namespace :directory do
44
+ desc 'Ensure CI secrets directory exists.'
45
+ task :ensure do
46
+ FileUtils.mkdir_p('config/secrets/ci')
47
+ end
48
+ end
49
+
18
50
  namespace :passphrase do
19
51
  desc 'Generate encryption passphrase for CI GPG key'
20
- task :generate do
21
- File.write('config/secrets/ci/encryption.passphrase',
22
- SecureRandom.base64(36))
52
+ task generate: ['directory:ensure'] do
53
+ File.write(
54
+ 'config/secrets/ci/encryption.passphrase',
55
+ SecureRandom.base64(36)
56
+ )
23
57
  end
24
58
  end
25
59
  end
@@ -43,6 +77,36 @@ namespace :keys do
43
77
  end
44
78
  end
45
79
 
80
+ namespace :secrets do
81
+ namespace :directory do
82
+ desc 'Ensure secrets directory exists and is set up correctly'
83
+ task :ensure do
84
+ FileUtils.mkdir_p('config/secrets')
85
+ unless File.exist?('config/secrets/.unlocked')
86
+ File.write('config/secrets/.unlocked', 'true')
87
+ end
88
+ end
89
+ end
90
+
91
+ desc 'Generate all generatable secrets.'
92
+ task generate: %w[
93
+ encryption:passphrase:generate
94
+ keys:deploy:generate
95
+ keys:gpg:generate
96
+ ]
97
+
98
+ desc 'Provision all secrets.'
99
+ task provision: [:generate]
100
+
101
+ desc 'Delete all secrets.'
102
+ task :destroy do
103
+ rm_rf 'config/secrets'
104
+ end
105
+
106
+ desc 'Rotate all secrets.'
107
+ task rotate: [:'git_crypt:reinstall']
108
+ end
109
+
46
110
  RuboCop::RakeTask.new
47
111
 
48
112
  namespace :library do
@@ -100,7 +164,6 @@ end
100
164
  namespace :pipeline do
101
165
  desc 'Prepare CircleCI Pipeline'
102
166
  task prepare: %i[
103
- circle_ci:project:follow
104
167
  circle_ci:env_vars:ensure
105
168
  circle_ci:checkout_keys:ensure
106
169
  circle_ci:ssh_keys:ensure
data/concourse.rb.gemspec CHANGED
@@ -46,6 +46,8 @@ Gem::Specification.new do |spec|
46
46
  spec.add_development_dependency 'openssl'
47
47
  spec.add_development_dependency 'rake'
48
48
  spec.add_development_dependency 'rake_circle_ci'
49
+ spec.add_development_dependency 'rake_git'
50
+ spec.add_development_dependency 'rake_git_crypt'
49
51
  spec.add_development_dependency 'rake_github'
50
52
  spec.add_development_dependency 'rake_gpg'
51
53
  spec.add_development_dependency 'rake_ssh'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Concourse
4
- VERSION = '0.6.0.pre.1'
4
+ VERSION = '0.6.0.pre.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concourse.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0.pre.1
4
+ version: 0.6.0.pre.3
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-01-02 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -136,6 +136,34 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rake_git
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rake_git_crypt
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: rake_github
141
169
  requirement: !ruby/object:Gem::Requirement