ruby_gpg2 0.11.0.pre.1 → 0.11.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: 101f333a7f2fc086ea715751e362b678a2ef1d7ff53fd080891ac842339eb9e7
4
- data.tar.gz: e376ef308e0726378bccfda229bc065480ce75ab034eef665937e271640f2759
3
+ metadata.gz: 24db8b1c2bd5ac7d237ee276eef860883870f73ae02d2328a4bd7c6aa5e2d273
4
+ data.tar.gz: b3df292cd7cec31b3c3d6656fc5b1e6882060dfd159d950b7a81b2b68f66e781
5
5
  SHA512:
6
- metadata.gz: b07043be629836b43f17bd74052c52d9bbf129184af5084ebb48a1b29296cfd59b5822790c534bb61b2cf3a2e005ce7c70d6f130443d9718bca7162483d18cc7
7
- data.tar.gz: 3b4d63eacda13303154c99a64683a177429314d3108a949e2d28daa5e6671b70de66abb3dd2ee24c84cf7d005e1ede9e3f1d35df490668587f30df2aff54c79e
6
+ metadata.gz: 01e95090c580a24c6c42979daa0602c415c051a99d74c12ae6c5f68093c7e8ff4e785451988c634ac4aab22394e23052b7dabcb7ccd04ec7c2d58dd3c0cf5b40
7
+ data.tar.gz: 9e893797c36b0d88954e1a9b22e29a6ceefbcab0316a008358b362c543e7808f80441af4dbba31b58f1901d757169af3a4a65177a4b709b280add25272ef16ad
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,57 +1,85 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_gpg2 (0.11.0.pre.1)
4
+ ruby_gpg2 (0.11.0.pre.3)
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
- faraday (2.7.2)
30
+ drb (2.1.1)
31
+ ruby2_keywords
32
+ excon (0.104.0)
33
+ faraday (2.7.11)
34
+ base64
24
35
  faraday-net_http (>= 2.0, < 3.1)
25
36
  ruby2_keywords (>= 0.0.4)
26
37
  faraday-net_http (3.0.2)
27
38
  gem-release (2.2.2)
39
+ git (1.18.0)
40
+ addressable (~> 2.8)
41
+ rchardet (~> 1.8)
28
42
  hamster (3.0.0)
29
43
  concurrent-ruby (~> 1.0)
30
- i18n (1.12.0)
44
+ i18n (1.14.1)
31
45
  concurrent-ruby (~> 1.0)
46
+ immutable-struct (2.4.1)
32
47
  json (2.6.3)
48
+ language_server-protocol (3.17.0.3)
33
49
  lino (3.1.0)
34
50
  hamster (~> 3.0)
35
51
  open4 (~> 1.3)
36
- minitest (5.17.0)
37
- octokit (6.0.1)
52
+ minitest (5.20.0)
53
+ mutex_m (0.1.2)
54
+ octokit (6.1.1)
38
55
  faraday (>= 1, < 3)
39
56
  sawyer (~> 0.9)
40
57
  open4 (1.3.4)
41
- parallel (1.22.1)
42
- parser (3.1.3.0)
58
+ parallel (1.23.0)
59
+ parser (3.2.2.4)
43
60
  ast (~> 2.4.1)
44
- public_suffix (5.0.1)
61
+ racc
62
+ public_suffix (5.0.3)
63
+ racc (1.7.1)
45
64
  rainbow (3.1.1)
46
- rake (13.0.6)
65
+ rake (13.1.0)
47
66
  rake_circle_ci (0.11.0)
48
67
  colored2 (~> 3.1)
49
68
  excon (~> 0.72)
50
69
  rake_factory (~> 0.23)
51
70
  sshkey (~> 2.0)
52
- rake_factory (0.31.0)
71
+ rake_factory (0.32.0.pre.2)
53
72
  activesupport (>= 4)
54
73
  rake (~> 13.0)
74
+ rake_git (0.1.0.pre.8)
75
+ colored2 (~> 3.1)
76
+ git (~> 1.13, >= 1.13.2)
77
+ rake_factory (= 0.32.0.pre.2)
78
+ rake_git_crypt (0.1.0.pre.27)
79
+ colored2 (~> 3.1)
80
+ rake_factory (= 0.32.0.pre.2)
81
+ ruby_git_crypt (= 0.1.0.pre.2)
82
+ ruby_gpg2 (~> 0.6)
55
83
  rake_github (0.11.0)
56
84
  colored2 (~> 3.1)
57
85
  octokit (>= 4.16, < 7.0)
@@ -60,43 +88,54 @@ GEM
60
88
  rake_gpg (0.18.0)
61
89
  rake_factory (~> 0.23)
62
90
  ruby_gpg2 (~> 0.6)
63
- rake_ssh (0.8.0)
91
+ rake_ssh (0.10.0)
64
92
  colored2 (~> 3.1)
65
93
  rake_factory (~> 0.23)
66
94
  sshkey (~> 2.0)
67
- regexp_parser (2.6.1)
68
- rexml (3.2.5)
95
+ rchardet (1.8.0)
96
+ regexp_parser (2.8.2)
97
+ rexml (3.2.6)
69
98
  rspec (3.12.0)
70
99
  rspec-core (~> 3.12.0)
71
100
  rspec-expectations (~> 3.12.0)
72
101
  rspec-mocks (~> 3.12.0)
73
- rspec-core (3.12.0)
102
+ rspec-core (3.12.2)
74
103
  rspec-support (~> 3.12.0)
75
- rspec-expectations (3.12.1)
104
+ rspec-expectations (3.12.3)
76
105
  diff-lcs (>= 1.2.0, < 2.0)
77
106
  rspec-support (~> 3.12.0)
78
- rspec-mocks (3.12.1)
107
+ rspec-mocks (3.12.6)
79
108
  diff-lcs (>= 1.2.0, < 2.0)
80
109
  rspec-support (~> 3.12.0)
81
- rspec-support (3.12.0)
82
- rubocop (1.42.0)
110
+ rspec-support (3.12.1)
111
+ rubocop (1.57.2)
83
112
  json (~> 2.3)
113
+ language_server-protocol (>= 3.17.0)
84
114
  parallel (~> 1.10)
85
- parser (>= 3.1.2.1)
115
+ parser (>= 3.2.2.4)
86
116
  rainbow (>= 2.2.2, < 4.0)
87
117
  regexp_parser (>= 1.8, < 3.0)
88
118
  rexml (>= 3.2.5, < 4.0)
89
- rubocop-ast (>= 1.24.1, < 2.0)
119
+ rubocop-ast (>= 1.28.1, < 2.0)
90
120
  ruby-progressbar (~> 1.7)
91
- unicode-display_width (>= 1.4.0, < 3.0)
92
- rubocop-ast (1.24.1)
93
- parser (>= 3.1.1.0)
121
+ unicode-display_width (>= 2.4.0, < 3.0)
122
+ rubocop-ast (1.30.0)
123
+ parser (>= 3.2.1.0)
124
+ rubocop-capybara (2.19.0)
125
+ rubocop (~> 1.41)
126
+ rubocop-factory_bot (2.24.0)
127
+ rubocop (~> 1.33)
94
128
  rubocop-rake (0.6.0)
95
129
  rubocop (~> 1.0)
96
- rubocop-rspec (2.16.0)
97
- rubocop (~> 1.33)
98
- ruby-progressbar (1.11.0)
130
+ rubocop-rspec (2.25.0)
131
+ rubocop (~> 1.40)
132
+ rubocop-capybara (~> 2.17)
133
+ rubocop-factory_bot (~> 2.22)
134
+ ruby-progressbar (1.13.0)
99
135
  ruby2_keywords (0.0.5)
136
+ ruby_git_crypt (0.1.0.pre.2)
137
+ immutable-struct (~> 2.4)
138
+ lino (~> 3.0)
100
139
  sawyer (0.9.2)
101
140
  addressable (>= 2.3.5)
102
141
  faraday (>= 0.17.3, < 3)
@@ -107,14 +146,17 @@ GEM
107
146
  simplecov-html (0.12.3)
108
147
  simplecov_json_formatter (0.1.4)
109
148
  sshkey (2.0.0)
110
- tzinfo (2.0.5)
149
+ tzinfo (2.0.6)
111
150
  concurrent-ruby (~> 1.0)
112
- unicode-display_width (2.3.0)
151
+ unicode-display_width (2.5.0)
113
152
 
114
153
  PLATFORMS
115
154
  arm64-darwin-21
155
+ arm64-darwin-22
116
156
  ruby
117
157
  x86_64-darwin-19
158
+ x86_64-darwin-20
159
+ x86_64-darwin-21
118
160
  x86_64-linux
119
161
 
120
162
  DEPENDENCIES
@@ -122,6 +164,8 @@ DEPENDENCIES
122
164
  gem-release
123
165
  rake
124
166
  rake_circle_ci
167
+ rake_git
168
+ rake_git_crypt
125
169
  rake_github
126
170
  rake_gpg
127
171
  rake_ssh
@@ -133,4 +177,4 @@ DEPENDENCIES
133
177
  simplecov
134
178
 
135
179
  BUNDLED WITH
136
- 2.4.2
180
+ 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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative './colon_record'
4
- require_relative './key'
3
+ require_relative 'colon_record'
4
+ require_relative 'key'
5
5
 
6
6
  module RubyGPG2
7
7
  class ColonOutput
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'lino'
4
4
 
5
- require_relative './result'
5
+ require_relative 'result'
6
6
 
7
7
  module RubyGPG2
8
8
  module Commands
@@ -6,11 +6,10 @@ module RubyGPG2
6
6
  module WithoutPassphrase
7
7
  def configure_command(builder, opts)
8
8
  without_passphrase = opts[:without_passphrase]
9
- opts = if without_passphrase
10
- opts.merge(passphrase: '', pinentry_mode: :loopback)
11
- else
12
- opts
13
- end
9
+ if without_passphrase
10
+ opts = opts.merge(passphrase: '',
11
+ pinentry_mode: :loopback)
12
+ end
14
13
  super(builder, opts)
15
14
  end
16
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyGPG2
4
- VERSION = '0.11.0.pre.1'
4
+ VERSION = '0.11.0.pre.3'
5
5
  end
data/ruby_gpg2.gemspec CHANGED
@@ -42,6 +42,8 @@ Gem::Specification.new do |spec|
42
42
  spec.add_development_dependency 'gem-release'
43
43
  spec.add_development_dependency 'rake'
44
44
  spec.add_development_dependency 'rake_circle_ci'
45
+ spec.add_development_dependency 'rake_git'
46
+ spec.add_development_dependency 'rake_git_crypt'
45
47
  spec.add_development_dependency 'rake_github'
46
48
  spec.add_development_dependency 'rake_gpg'
47
49
  spec.add_development_dependency 'rake_ssh'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_gpg2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0.pre.1
4
+ version: 0.11.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-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lino
@@ -80,6 +80,34 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake_git
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake_git_crypt
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: rake_github
85
113
  requirement: !ruby/object:Gem::Requirement