ruby_fly 0.40.0.pre.1 → 0.40.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: bce646877693ea9e0ede766b5568f34a613892f745e014b3919343011699dc9d
4
- data.tar.gz: 4758e821d1fdcfe86b935f7b54e3ec56873324f1480fd9b9691631bb073d76a2
3
+ metadata.gz: bfc0a355795b2a1b253169e732a83d07aa803f864a95dc11c68edcd0bfb397aa
4
+ data.tar.gz: f774a4f6a209198f35314d91882699d50f1822db2159ce9ed4958b6f573c7752
5
5
  SHA512:
6
- metadata.gz: e833de2b5ad74f58debf31340e407bacbebc6023792c631010c4f6e9e29b98385c6370661dc9bcae58b837bd8d6ceaa7eb18dad472b7596d53faacef75ba5532
7
- data.tar.gz: be96d77609039d131e85963951b8b41c1191e5331c378e7d4cf0dff637feef840f33b0e31d119a542127603b91ae81e2206880117a59eb23dc04d6e8bcb72b74
6
+ metadata.gz: e7665bb6f6af5107d3f136d0ff830766ae5d0d7a883427fc53be946d3ba6a467f9dc55931dcb2d8536a2e79db1218a3ed553f866a48f99ca2a0ec8708521bdc5
7
+ data.tar.gz: 80c2069852a1f85830ce52ba0a899312a07b710bc93d4502ca9d3d0a1fa978f7cdbd060d55e8c8115eca9545689b37009b8fd9616ff168ca479803979a59ac5d
data/CODE_OF_CONDUCT.md CHANGED
@@ -5,9 +5,9 @@
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 experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
8
+ size, disability, ethnicity, gender identity and expression, level of
9
+ experience, nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
11
 
12
12
  ## Our Standards
13
13
 
@@ -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,9 @@ 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 incident.
62
- Further details of specific enforcement policies may be posted separately.
61
+ obligated to maintain confidentiality with regard to the reporter of an
62
+ incident. Further details of specific enforcement policies may be posted
63
+ separately.
63
64
 
64
65
  Project maintainers who do not follow or enforce the Code of Conduct in good
65
66
  faith may face temporary or permanent repercussions as determined by other
@@ -67,8 +68,9 @@ members of the project's leadership.
67
68
 
68
69
  ## Attribution
69
70
 
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
71
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
72
+ version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
72
73
 
73
74
  [homepage]: http://contributor-covenant.org
75
+
74
76
  [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile.lock CHANGED
@@ -1,60 +1,88 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_fly (0.40.0.pre.1)
4
+ ruby_fly (0.40.0.pre.2)
5
5
  lino (~> 3.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (7.0.4)
10
+ activesupport (7.1.1)
11
+ base64
12
+ bigdecimal
11
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ connection_pool (>= 2.2.5)
15
+ drb
12
16
  i18n (>= 1.6, < 2)
13
17
  minitest (>= 5.1)
18
+ mutex_m
14
19
  tzinfo (~> 2.0)
15
- addressable (2.8.1)
20
+ addressable (2.8.5)
16
21
  public_suffix (>= 2.0.2, < 6.0)
17
22
  ast (2.4.2)
23
+ base64 (0.1.1)
24
+ bigdecimal (3.1.4)
18
25
  colored2 (3.1.2)
19
- concurrent-ruby (1.1.10)
26
+ concurrent-ruby (1.2.2)
27
+ connection_pool (2.4.1)
20
28
  diff-lcs (1.5.0)
21
29
  docile (1.4.0)
22
- excon (0.95.0)
23
- fakefs (1.9.0)
24
- faker (3.1.0)
30
+ drb (2.1.1)
31
+ ruby2_keywords
32
+ excon (0.104.0)
33
+ fakefs (2.5.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)
51
+ language_server-protocol (3.17.0.3)
36
52
  lino (3.1.0)
37
53
  hamster (~> 3.0)
38
54
  open4 (~> 1.3)
39
- minitest (5.17.0)
40
- octokit (6.0.1)
55
+ minitest (5.20.0)
56
+ mutex_m (0.1.2)
57
+ octokit (6.1.1)
41
58
  faraday (>= 1, < 3)
42
59
  sawyer (~> 0.9)
43
60
  open4 (1.3.4)
44
- parallel (1.22.1)
45
- parser (3.1.3.0)
61
+ parallel (1.23.0)
62
+ parser (3.2.2.4)
46
63
  ast (~> 2.4.1)
47
- public_suffix (5.0.1)
64
+ racc
65
+ public_suffix (5.0.3)
66
+ racc (1.7.1)
48
67
  rainbow (3.1.1)
49
- rake (13.0.6)
68
+ rake (13.1.0)
50
69
  rake_circle_ci (0.11.0)
51
70
  colored2 (~> 3.1)
52
71
  excon (~> 0.72)
53
72
  rake_factory (~> 0.23)
54
73
  sshkey (~> 2.0)
55
- rake_factory (0.31.0)
74
+ rake_factory (0.32.0.pre.2)
56
75
  activesupport (>= 4)
57
76
  rake (~> 13.0)
77
+ rake_git (0.1.0.pre.8)
78
+ colored2 (~> 3.1)
79
+ git (~> 1.13, >= 1.13.2)
80
+ rake_factory (= 0.32.0.pre.2)
81
+ rake_git_crypt (0.1.0.pre.27)
82
+ colored2 (~> 3.1)
83
+ rake_factory (= 0.32.0.pre.2)
84
+ ruby_git_crypt (= 0.1.0.pre.2)
85
+ ruby_gpg2 (~> 0.6)
58
86
  rake_github (0.11.0)
59
87
  colored2 (~> 3.1)
60
88
  octokit (>= 4.16, < 7.0)
@@ -63,43 +91,54 @@ GEM
63
91
  rake_gpg (0.18.0)
64
92
  rake_factory (~> 0.23)
65
93
  ruby_gpg2 (~> 0.6)
66
- rake_ssh (0.8.0)
94
+ rake_ssh (0.10.0)
67
95
  colored2 (~> 3.1)
68
96
  rake_factory (~> 0.23)
69
97
  sshkey (~> 2.0)
70
- regexp_parser (2.6.1)
71
- rexml (3.2.5)
98
+ rchardet (1.8.0)
99
+ regexp_parser (2.8.2)
100
+ rexml (3.2.6)
72
101
  rspec (3.12.0)
73
102
  rspec-core (~> 3.12.0)
74
103
  rspec-expectations (~> 3.12.0)
75
104
  rspec-mocks (~> 3.12.0)
76
- rspec-core (3.12.0)
105
+ rspec-core (3.12.2)
77
106
  rspec-support (~> 3.12.0)
78
- rspec-expectations (3.12.1)
107
+ rspec-expectations (3.12.3)
79
108
  diff-lcs (>= 1.2.0, < 2.0)
80
109
  rspec-support (~> 3.12.0)
81
- rspec-mocks (3.12.1)
110
+ rspec-mocks (3.12.6)
82
111
  diff-lcs (>= 1.2.0, < 2.0)
83
112
  rspec-support (~> 3.12.0)
84
- rspec-support (3.12.0)
85
- rubocop (1.42.0)
113
+ rspec-support (3.12.1)
114
+ rubocop (1.57.2)
86
115
  json (~> 2.3)
116
+ language_server-protocol (>= 3.17.0)
87
117
  parallel (~> 1.10)
88
- parser (>= 3.1.2.1)
118
+ parser (>= 3.2.2.4)
89
119
  rainbow (>= 2.2.2, < 4.0)
90
120
  regexp_parser (>= 1.8, < 3.0)
91
121
  rexml (>= 3.2.5, < 4.0)
92
- rubocop-ast (>= 1.24.1, < 2.0)
122
+ rubocop-ast (>= 1.28.1, < 2.0)
93
123
  ruby-progressbar (~> 1.7)
94
- unicode-display_width (>= 1.4.0, < 3.0)
95
- rubocop-ast (1.24.1)
96
- parser (>= 3.1.1.0)
124
+ unicode-display_width (>= 2.4.0, < 3.0)
125
+ rubocop-ast (1.30.0)
126
+ parser (>= 3.2.1.0)
127
+ rubocop-capybara (2.19.0)
128
+ rubocop (~> 1.41)
129
+ rubocop-factory_bot (2.24.0)
130
+ rubocop (~> 1.33)
97
131
  rubocop-rake (0.6.0)
98
132
  rubocop (~> 1.0)
99
- rubocop-rspec (2.16.0)
100
- rubocop (~> 1.33)
101
- ruby-progressbar (1.11.0)
133
+ rubocop-rspec (2.25.0)
134
+ rubocop (~> 1.40)
135
+ rubocop-capybara (~> 2.17)
136
+ rubocop-factory_bot (~> 2.22)
137
+ ruby-progressbar (1.13.0)
102
138
  ruby2_keywords (0.0.5)
139
+ ruby_git_crypt (0.1.0.pre.2)
140
+ immutable-struct (~> 2.4)
141
+ lino (~> 3.0)
103
142
  ruby_gpg2 (0.10.0)
104
143
  lino (~> 3.0)
105
144
  sawyer (0.9.2)
@@ -112,12 +151,18 @@ GEM
112
151
  simplecov-html (0.12.3)
113
152
  simplecov_json_formatter (0.1.4)
114
153
  sshkey (2.0.0)
115
- tzinfo (2.0.5)
154
+ tzinfo (2.0.6)
116
155
  concurrent-ruby (~> 1.0)
117
- unicode-display_width (2.3.0)
156
+ unicode-display_width (2.5.0)
118
157
 
119
158
  PLATFORMS
159
+ arm64-darwin-21
160
+ arm64-darwin-22
120
161
  ruby
162
+ x86_64-darwin-19
163
+ x86_64-darwin-20
164
+ x86_64-darwin-21
165
+ x86_64-linux
121
166
 
122
167
  DEPENDENCIES
123
168
  bundler
@@ -126,6 +171,8 @@ DEPENDENCIES
126
171
  gem-release
127
172
  rake
128
173
  rake_circle_ci
174
+ rake_git
175
+ rake_git_crypt
129
176
  rake_github
130
177
  rake_gpg
131
178
  rake_ssh
@@ -137,4 +184,4 @@ DEPENDENCIES
137
184
  simplecov
138
185
 
139
186
  BUNDLED WITH
140
- 2.4.2
187
+ 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
@@ -19,7 +19,7 @@ module RubyFly
19
19
  end
20
20
 
21
21
  def do_after(_opts)
22
- @version_string.string.gsub(/\n/, '')
22
+ @version_string.string.gsub("\n", '')
23
23
  end
24
24
  end
25
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyFly
4
- VERSION = '0.40.0.pre.1'
4
+ VERSION = '0.40.0.pre.2'
5
5
  end
data/ruby_fly.gemspec CHANGED
@@ -44,6 +44,8 @@ Gem::Specification.new do |spec|
44
44
  spec.add_development_dependency 'gem-release'
45
45
  spec.add_development_dependency 'rake'
46
46
  spec.add_development_dependency 'rake_circle_ci'
47
+ spec.add_development_dependency 'rake_git'
48
+ spec.add_development_dependency 'rake_git_crypt'
47
49
  spec.add_development_dependency 'rake_github'
48
50
  spec.add_development_dependency 'rake_gpg'
49
51
  spec.add_development_dependency 'rake_ssh'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_fly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.40.0.pre.1
4
+ version: 0.40.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-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lino
@@ -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