rake_factory 0.32.0.pre.2 → 0.32.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: d8306a600f273866bc37d6e3630b96e36c52c5d53bb9c0eeb927bf0a2a913b09
4
- data.tar.gz: 985e837b28592994825dbad808f8a6e09073e0e4cfd20fc2a2aada71336f4ca7
3
+ metadata.gz: c84227a18b2fae2938a4d4000e3ce9c1310b2a00becbc0cb8a829ea53f7dd7c1
4
+ data.tar.gz: f4912ae460147ae1fb4f7397134ffc4ee70a232af1011094e65859cfb11b4e2d
5
5
  SHA512:
6
- metadata.gz: 66eda00be02833cd96c09dd8468f52d825ecaa944c7bb8d14395a1f4dd045b89ff7414368f87a3b5e31519917b6290725fa2444e2630d456d2b9805f08a3814d
7
- data.tar.gz: d084c4c7a3081c08de880604b9dafc208315183cd15f52a495568866ef09c52950125d4d913f0d3cc96ec6696c5d0339f71dc94d8c1127d9bc109fd696734508
6
+ metadata.gz: 9203f62dff62eaea703e54518201095a22c49df1e91cf287ec41eff6f78b1ef614bcf410cd5f623ba2043167960a826385be4b02a5d9ffe1e0afb799c5272b03
7
+ data.tar.gz: a96b17e55b4bb44a984306c9517662243685f2b34bd91b9e0b7249d80fdecce872320c3d95d7915e7255743736ef67ac0a1f902cde28173e6b13f6856b8ef08d
data/CODE_OF_CONDUCT.md CHANGED
@@ -5,8 +5,8 @@
5
5
  In the interest of fostering an open and welcoming environment, we as
6
6
  contributors and maintainers pledge to making participation in our project and
7
7
  our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of
9
- experience, nationality, personal appearance, race, religion, or sexual identity
8
+ size, disability, ethnicity, gender identity and expression, level of
9
+ experience, nationality, personal appearance, race, religion, or sexual identity
10
10
  and orientation.
11
11
 
12
12
  ## Our Standards
@@ -23,7 +23,7 @@ include:
23
23
  Examples of unacceptable behavior by participants include:
24
24
 
25
25
  * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
26
+ advances
27
27
  * Trolling, insulting/derogatory comments, and personal or political attacks
28
28
  * Public or private harassment
29
29
  * Publishing others' private information, such as a physical or electronic
@@ -37,11 +37,11 @@ Project maintainers are responsible for clarifying the standards of acceptable
37
37
  behavior and are expected to take appropriate and fair corrective action in
38
38
  response to any instances of unacceptable behavior.
39
39
 
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
40
+ Project maintainers have the right and responsibility to remove, edit, or reject
41
+ comments, commits, code, wiki edits, issues, and other contributions that are
42
+ not aligned to this Code of Conduct, or to ban temporarily or permanently any
43
+ contributor for other behaviors that they deem inappropriate, threatening,
44
+ offensive, or harmful.
45
45
 
46
46
  ## Scope
47
47
 
@@ -58,8 +58,8 @@ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
58
  reported by contacting the project team at maintainers@infrablocks.io. All
59
59
  complaints will be reviewed and investigated and will result in a response that
60
60
  is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an
62
- incident. Further details of specific enforcement policies may be posted
61
+ obligated to maintain confidentiality with regard to the reporter of an
62
+ incident. Further details of specific enforcement policies may be posted
63
63
  separately.
64
64
 
65
65
  Project maintainers who do not follow or enforce the Code of Conduct in good
@@ -68,8 +68,9 @@ members of the project's leadership.
68
68
 
69
69
  ## Attribution
70
70
 
71
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
71
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
72
72
  version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
73
73
 
74
74
  [homepage]: http://contributor-covenant.org
75
+
75
76
  [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile.lock CHANGED
@@ -1,56 +1,84 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_factory (0.32.0.pre.2)
4
+ rake_factory (0.32.0.pre.3)
5
5
  activesupport (>= 4)
6
6
  rake (~> 13.0)
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
- fakefs (2.0.0)
25
- faraday (2.7.2)
31
+ drb (2.1.1)
32
+ ruby2_keywords
33
+ excon (0.104.0)
34
+ fakefs (2.5.0)
35
+ faraday (2.7.11)
36
+ base64
26
37
  faraday-net_http (>= 2.0, < 3.1)
27
38
  ruby2_keywords (>= 0.0.4)
28
39
  faraday-net_http (3.0.2)
29
40
  gem-release (2.2.2)
41
+ git (1.18.0)
42
+ addressable (~> 2.8)
43
+ rchardet (~> 1.8)
30
44
  hamster (3.0.0)
31
45
  concurrent-ruby (~> 1.0)
32
- i18n (1.12.0)
46
+ i18n (1.14.1)
33
47
  concurrent-ruby (~> 1.0)
48
+ immutable-struct (2.4.1)
34
49
  json (2.6.3)
50
+ language_server-protocol (3.17.0.3)
35
51
  lino (3.1.0)
36
52
  hamster (~> 3.0)
37
53
  open4 (~> 1.3)
38
- minitest (5.17.0)
39
- octokit (6.0.1)
54
+ minitest (5.20.0)
55
+ mutex_m (0.1.2)
56
+ octokit (6.1.1)
40
57
  faraday (>= 1, < 3)
41
58
  sawyer (~> 0.9)
42
59
  open4 (1.3.4)
43
- parallel (1.22.1)
44
- parser (3.1.3.0)
60
+ parallel (1.23.0)
61
+ parser (3.2.2.4)
45
62
  ast (~> 2.4.1)
46
- public_suffix (5.0.1)
63
+ racc
64
+ public_suffix (5.0.3)
65
+ racc (1.7.1)
47
66
  rainbow (3.1.1)
48
- rake (13.0.6)
67
+ rake (13.1.0)
49
68
  rake_circle_ci (0.11.0)
50
69
  colored2 (~> 3.1)
51
70
  excon (~> 0.72)
52
71
  rake_factory (~> 0.23)
53
72
  sshkey (~> 2.0)
73
+ rake_git (0.1.0.pre.7)
74
+ colored2 (~> 3.1)
75
+ git (~> 1.13, >= 1.13.2)
76
+ rake_factory (= 0.32.0.pre.2)
77
+ rake_git_crypt (0.1.0.pre.26)
78
+ 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)
54
82
  rake_github (0.11.0)
55
83
  colored2 (~> 3.1)
56
84
  octokit (>= 4.16, < 7.0)
@@ -59,43 +87,54 @@ GEM
59
87
  rake_gpg (0.18.0)
60
88
  rake_factory (~> 0.23)
61
89
  ruby_gpg2 (~> 0.6)
62
- rake_ssh (0.8.0)
90
+ rake_ssh (0.10.0)
63
91
  colored2 (~> 3.1)
64
92
  rake_factory (~> 0.23)
65
93
  sshkey (~> 2.0)
66
- regexp_parser (2.6.1)
67
- rexml (3.2.5)
94
+ rchardet (1.8.0)
95
+ regexp_parser (2.8.2)
96
+ rexml (3.2.6)
68
97
  rspec (3.12.0)
69
98
  rspec-core (~> 3.12.0)
70
99
  rspec-expectations (~> 3.12.0)
71
100
  rspec-mocks (~> 3.12.0)
72
- rspec-core (3.12.0)
101
+ rspec-core (3.12.2)
73
102
  rspec-support (~> 3.12.0)
74
- rspec-expectations (3.12.1)
103
+ rspec-expectations (3.12.3)
75
104
  diff-lcs (>= 1.2.0, < 2.0)
76
105
  rspec-support (~> 3.12.0)
77
- rspec-mocks (3.12.1)
106
+ rspec-mocks (3.12.6)
78
107
  diff-lcs (>= 1.2.0, < 2.0)
79
108
  rspec-support (~> 3.12.0)
80
- rspec-support (3.12.0)
81
- rubocop (1.42.0)
109
+ rspec-support (3.12.1)
110
+ rubocop (1.57.2)
82
111
  json (~> 2.3)
112
+ language_server-protocol (>= 3.17.0)
83
113
  parallel (~> 1.10)
84
- parser (>= 3.1.2.1)
114
+ parser (>= 3.2.2.4)
85
115
  rainbow (>= 2.2.2, < 4.0)
86
116
  regexp_parser (>= 1.8, < 3.0)
87
117
  rexml (>= 3.2.5, < 4.0)
88
- rubocop-ast (>= 1.24.1, < 2.0)
118
+ rubocop-ast (>= 1.28.1, < 2.0)
89
119
  ruby-progressbar (~> 1.7)
90
- unicode-display_width (>= 1.4.0, < 3.0)
91
- rubocop-ast (1.24.1)
92
- parser (>= 3.1.1.0)
120
+ 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)
93
127
  rubocop-rake (0.6.0)
94
128
  rubocop (~> 1.0)
95
- rubocop-rspec (2.16.0)
96
- rubocop (~> 1.33)
97
- ruby-progressbar (1.11.0)
129
+ rubocop-rspec (2.25.0)
130
+ rubocop (~> 1.40)
131
+ rubocop-capybara (~> 2.17)
132
+ rubocop-factory_bot (~> 2.22)
133
+ ruby-progressbar (1.13.0)
98
134
  ruby2_keywords (0.0.5)
135
+ ruby_git_crypt (0.1.0.pre.2)
136
+ immutable-struct (~> 2.4)
137
+ lino (~> 3.0)
99
138
  ruby_gpg2 (0.10.0)
100
139
  lino (~> 3.0)
101
140
  sawyer (0.9.2)
@@ -108,9 +147,9 @@ GEM
108
147
  simplecov-html (0.12.3)
109
148
  simplecov_json_formatter (0.1.4)
110
149
  sshkey (2.0.0)
111
- tzinfo (2.0.5)
150
+ tzinfo (2.0.6)
112
151
  concurrent-ruby (~> 1.0)
113
- unicode-display_width (2.3.0)
152
+ unicode-display_width (2.5.0)
114
153
 
115
154
  PLATFORMS
116
155
  ruby
@@ -122,6 +161,8 @@ DEPENDENCIES
122
161
  rake
123
162
  rake_circle_ci
124
163
  rake_factory!
164
+ rake_git
165
+ rake_git_crypt
125
166
  rake_github
126
167
  rake_gpg
127
168
  rake_ssh
@@ -132,4 +173,4 @@ DEPENDENCIES
132
173
  simplecov
133
174
 
134
175
  BUNDLED WITH
135
- 2.4.5
176
+ 2.4.17
data/Rakefile CHANGED
@@ -1,19 +1,44 @@
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
18
43
  namespace :directory do
19
44
  desc 'Ensure CI secrets directory exists.'
@@ -23,10 +48,12 @@ namespace :encryption do
23
48
  end
24
49
 
25
50
  namespace :passphrase do
26
- desc 'Generate encryption passphrase used by CI.'
51
+ desc 'Generate encryption passphrase for CI GPG key'
27
52
  task generate: ['directory:ensure'] do
28
- File.write('config/secrets/ci/encryption.passphrase',
29
- SecureRandom.base64(36))
53
+ File.write(
54
+ 'config/secrets/ci/encryption.passphrase',
55
+ SecureRandom.base64(36)
56
+ )
30
57
  end
31
58
  end
32
59
  end
@@ -51,12 +78,33 @@ namespace :keys do
51
78
  end
52
79
 
53
80
  namespace :secrets do
54
- desc 'Regenerate all generatable secrets.'
55
- task regenerate: %w[
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[
56
93
  encryption:passphrase:generate
57
94
  keys:deploy:generate
58
95
  keys:gpg:generate
59
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']
60
108
  end
61
109
 
62
110
  RuboCop::RakeTask.new
@@ -116,7 +164,6 @@ end
116
164
  namespace :pipeline do
117
165
  desc 'Prepare CircleCI Pipeline'
118
166
  task prepare: %i[
119
- circle_ci:project:follow
120
167
  circle_ci:env_vars:ensure
121
168
  circle_ci:checkout_keys:ensure
122
169
  circle_ci:ssh_keys:ensure
@@ -42,12 +42,12 @@ module RakeFactory
42
42
  return unless parameter.configurable?
43
43
 
44
44
  define_singleton_method parameter.writer_method do |value|
45
- if target.respond_to?(parameter.writer_method)
46
- target.send(
47
- parameter.writer_method,
48
- Values.resolve(value).append_argument(runtime_arguments)
49
- )
50
- end
45
+ return unless target.respond_to?(parameter.writer_method)
46
+
47
+ target.send(
48
+ parameter.writer_method,
49
+ Values.resolve(value).append_argument(runtime_arguments)
50
+ )
51
51
  end
52
52
  end
53
53
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeFactory
4
- VERSION = '0.32.0.pre.2'
4
+ VERSION = '0.32.0.pre.3'
5
5
  end
data/rake_factory.gemspec CHANGED
@@ -46,6 +46,8 @@ Gem::Specification.new do |spec|
46
46
  spec.add_development_dependency 'gem-release'
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'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_factory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0.pre.2
4
+ version: 0.32.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-27 00:00:00.000000000 Z
11
+ date: 2023-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -108,6 +108,34 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rake_git
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake_git_crypt
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: rake_github
113
141
  requirement: !ruby/object:Gem::Requirement