concourse.rb 0.6.0.pre.1 → 0.6.0.pre.2

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: 0cbd9560ffd8a2a63528063f9bd50bd758e98a9145862a519cda6b14b43027fe
4
+ data.tar.gz: d43cc3e46031e299fbdb171f3f779fec10ab4e8f1176bb5cd215ff5b6059e5d5
5
5
  SHA512:
6
- metadata.gz: 8db3ed79f5a00ad1d73799292889061a915cc9b04b8e8cc2d96c9b51be3fc62ee239afc17707af638fd6f2b5136e3e72a8dc689cb67c780949c3e76d5a29cc0b
7
- data.tar.gz: d128f5a4b16f202a145761d0a93b4b1e49188c46bffd6f1e6875510e95ce0506ce9e8c0b14f800dba0957c2615d4932a622fa7a1339a18e26dde37c2150eab53
6
+ metadata.gz: d1c6afe8ed3417e48f83f4e8cb02ed7712abc25e5bbe96d2704ec9cb370790bed0b1d68d41206fb4d80de1db063cf7a6b5cdba172a36fba5cc69df80d4352e2d
7
+ data.tar.gz: dd321266fa5058f71e1aa2626166a25aab90e51f38b78bbb3ee0f27b9113dc167010ccf24a005a91388933f0debd9ff90caeaf06609f3e58e491f1f492578d08
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- concourse.rb (0.6.0.pre.1)
4
+ concourse.rb (0.6.0.pre.2)
5
5
  excon (~> 0.72)
6
6
  semantic (~> 1.5)
7
7
 
@@ -20,7 +20,7 @@ GEM
20
20
  concurrent-ruby (1.1.10)
21
21
  diff-lcs (1.5.0)
22
22
  docile (1.4.0)
23
- excon (0.95.0)
23
+ excon (0.96.0)
24
24
  faker (3.1.0)
25
25
  i18n (>= 1.8.11, < 2)
26
26
  faraday (2.7.2)
@@ -28,10 +28,14 @@ GEM
28
28
  ruby2_keywords (>= 0.0.4)
29
29
  faraday-net_http (3.0.2)
30
30
  gem-release (2.2.2)
31
+ git (1.18.0)
32
+ addressable (~> 2.8)
33
+ rchardet (~> 1.8)
31
34
  hamster (3.0.0)
32
35
  concurrent-ruby (~> 1.0)
33
36
  i18n (1.12.0)
34
37
  concurrent-ruby (~> 1.0)
38
+ immutable-struct (2.4.1)
35
39
  json (2.6.3)
36
40
  jwt (2.6.0)
37
41
  lino (3.1.0)
@@ -54,9 +58,18 @@ GEM
54
58
  excon (~> 0.72)
55
59
  rake_factory (~> 0.23)
56
60
  sshkey (~> 2.0)
57
- rake_factory (0.31.0)
61
+ rake_factory (0.32.0.pre.2)
58
62
  activesupport (>= 4)
59
63
  rake (~> 13.0)
64
+ rake_git (0.1.0.pre.7)
65
+ colored2 (~> 3.1)
66
+ git (~> 1.13, >= 1.13.2)
67
+ rake_factory (= 0.32.0.pre.2)
68
+ rake_git_crypt (0.1.0.pre.26)
69
+ colored2 (~> 3.1)
70
+ rake_factory (= 0.32.0.pre.2)
71
+ ruby_git_crypt (= 0.1.0.pre.2)
72
+ ruby_gpg2 (~> 0.6)
60
73
  rake_github (0.11.0)
61
74
  colored2 (~> 3.1)
62
75
  octokit (>= 4.16, < 7.0)
@@ -69,6 +82,7 @@ GEM
69
82
  colored2 (~> 3.1)
70
83
  rake_factory (~> 0.23)
71
84
  sshkey (~> 2.0)
85
+ rchardet (1.8.0)
72
86
  regexp_parser (2.6.1)
73
87
  rexml (3.2.5)
74
88
  rspec (3.12.0)
@@ -102,6 +116,9 @@ GEM
102
116
  rubocop (~> 1.33)
103
117
  ruby-progressbar (1.11.0)
104
118
  ruby2_keywords (0.0.5)
119
+ ruby_git_crypt (0.1.0.pre.2)
120
+ immutable-struct (~> 2.4)
121
+ lino (~> 3.0)
105
122
  ruby_gpg2 (0.10.0)
106
123
  lino (~> 3.0)
107
124
  sawyer (0.9.2)
@@ -133,6 +150,8 @@ DEPENDENCIES
133
150
  openssl
134
151
  rake
135
152
  rake_circle_ci
153
+ rake_git
154
+ rake_git_crypt
136
155
  rake_github
137
156
  rake_gpg
138
157
  rake_ssh
@@ -143,4 +162,4 @@ DEPENDENCIES
143
162
  simplecov
144
163
 
145
164
  BUNDLED WITH
146
- 2.4.2
165
+ 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.2'
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.2
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