gem-rebuild 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c7f4412645fddedb4cf94c9a24b5c523204673da900dd86e69137a87249bf545
4
+ data.tar.gz: 8b57bb69bc1e6a2aec099f8fc77ccee2bd9276039913a84f28184b2fc6da8c08
5
+ SHA512:
6
+ metadata.gz: 5bb3ca2988655bcc59c03a7a766c2ae4dd1544d14f191bdc6325e40fb5b869822c7e5a3c2c5773a498600a2e274be61d0391b52fc8c57b5b51507d40e1f53b05
7
+ data.tar.gz: 7d1e996d70c0f36e547d341e368b35686b05f7a639a18d9c4c68c67e0eb0599c6774ccc48213b580fc08ebe6cda5616270d96d8a22fb3c2934ca24d4f2984138
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at me@duckie.co. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Ellen Marie Dash
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,101 @@
1
+ # gem-rebuild (plugin)
2
+
3
+ The `gem rebuild` command allows you to build a gem and compare it to an existing `.gem` file, to see if they are identical.
4
+
5
+ This command provides a base for implementing [Reproducible Builds](https://reproducible-builds.org/) for Ruby gems.
6
+
7
+ ## Installation
8
+
9
+ Install the gem by executing:
10
+
11
+ $ gem install gem-rebuild
12
+
13
+ ## Usage
14
+
15
+ General usage is:
16
+
17
+ $ gem rebuild GEM_NAME GEM_VERSION
18
+
19
+ When `gem rebuild` succeeds, it prints the line `SUCCESS - original and rebuild hashes matched`.
20
+
21
+ However, when `gem rebuild` fails, it prints the line `FAILURE - original and rebuild hashes did not match`.
22
+
23
+ You can also specify `--diff` to compare the two files using [`diffoscope`](https://diffoscope.org/) on failure.
24
+
25
+ <details>
26
+ <summary>Example success</summary>
27
+
28
+ ```
29
+ ~/test$ git clone --quiet https://github.com/duckinator/okay.git
30
+ ~/test$ cd okay
31
+ ~/test/okay$ git checkout v12.0.3
32
+ HEAD is now at 40fe265 Merge pull request #16 from duckinator/bump-deps
33
+ puppy@orthrus:~/test/okay$ gem rebuild okay 12.0.3
34
+ Fetching okay-12.0.3.gem
35
+ Downloaded okay version 12.0.3 as /tmp/gem_rebuild20240130-73307-ai5jxs/old/okay-12.0.3.gem.
36
+ Successfully built RubyGem
37
+ Name: okay
38
+ Version: 12.0.3
39
+ File: okay-12.0.3.gem
40
+
41
+ Built at: 2024-01-01 08:05:03 EST (1704114303)
42
+ Original build saved to: /tmp/gem_rebuild20240130-73307-ai5jxs/old/okay-12.0.3.gem
43
+ Reproduced build saved to: /tmp/gem_rebuild20240130-73307-ai5jxs/new/okay-12.0.3.gem
44
+ Working directory: /usr/home/puppy/test/okay
45
+
46
+ Hash comparison:
47
+ c6017966f3498623910f9a4a7bfcbd98ebab881f0e1315491b3340afa2e20b1c /tmp/gem_rebuild20240130-73307-ai5jxs/old/okay-12.0.3.gem
48
+ c6017966f3498623910f9a4a7bfcbd98ebab881f0e1315491b3340afa2e20b1c /tmp/gem_rebuild20240130-73307-ai5jxs/new/okay-12.0.3.gem
49
+
50
+ SUCCESS - original and rebuild hashes matched
51
+ ~/test/okay$
52
+ ```
53
+
54
+ </details>
55
+
56
+ <details>
57
+ <summary>Example failure</summary>
58
+
59
+ ```
60
+ ~/test/okay$ echo "# some change" >> lib/okay.rb
61
+ ~/test/okay$ gem rebuild okay 12.0.3
62
+ Fetching okay-12.0.3.gem
63
+ Downloaded okay version 12.0.3 as /tmp/gem_rebuild20240130-73881-x2dknj/old/okay-12.0.3.gem.
64
+ WARNING: open-ended dependency on cacert (>= 0) is not recommended
65
+ use a bounded requirement, such as "~> x.y"
66
+ WARNING: See https://guides.rubygems.org/specification-reference/ for help
67
+ Successfully built RubyGem
68
+ Name: okay
69
+ Version: 12.0.3
70
+ File: okay-12.0.3.gem
71
+
72
+ Built at: 2024-01-01 08:05:03 EST (1704114303)
73
+ Original build saved to: /tmp/gem_rebuild20240130-73881-x2dknj/old/okay-12.0.3.gem
74
+ Reproduced build saved to: /tmp/gem_rebuild20240130-73881-x2dknj/new/okay-12.0.3.gem
75
+ Working directory: /usr/home/puppy/test/okay
76
+
77
+ Hash comparison:
78
+ c6017966f3498623910f9a4a7bfcbd98ebab881f0e1315491b3340afa2e20b1c /tmp/gem_rebuild20240130-73881-x2dknj/old/okay-12.0.3.gem
79
+ 8910ae67d46e9cccc59c2a2dd08b29ddf03ac703bc95bcc7f69e1722926def94 /tmp/gem_rebuild20240130-73881-x2dknj/new/okay-12.0.3.gem
80
+
81
+ FAILURE - original and rebuild hashes did not match
82
+ ~/test/okay$
83
+ ```
84
+
85
+ ## Development
86
+
87
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
88
+
89
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
90
+
91
+ ## Contributing
92
+
93
+ Bug reports and pull requests are welcome on GitHub at https://github.com/duckinator/gem-rebuild. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/duckinator/gem-rebuild/blob/main/CODE_OF_CONDUCT.md).
94
+
95
+ ## License
96
+
97
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
98
+
99
+ ## Code of Conduct
100
+
101
+ Everyone interacting in the gem-rebuild project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/duckinator/gem-rebuild/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Gem
4
+ module Rebuild
5
+ VERSION = "0.1.0"
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "rebuild/version"
4
+
5
+ module Gem
6
+ module Rebuild
7
+ class Error < StandardError; end
8
+ # Your code goes here...
9
+ end
10
+ end
@@ -0,0 +1,264 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "date"
4
+ require "digest"
5
+ require "fileutils"
6
+ require "tmpdir"
7
+ require_relative "../gemspec_helpers"
8
+ require "rubygems/package"
9
+
10
+ class Gem::Commands::RebuildCommand < Gem::Command
11
+ include Gem::GemspecHelpers
12
+
13
+ def initialize
14
+ super "rebuild", "Attempt to reproduce a build of a gem."
15
+
16
+ add_option("--version", "Print gem-rebuild version and exist") { |_, _| require "gem/rebuild/version"; puts "gem-rebuild v#{Gem::Rebuild::VERSION}"; exit }
17
+
18
+ add_option "--diff", "If the files don't match, compare them using diffoscope." do |_value, options|
19
+ options[:diff] = true
20
+ end
21
+
22
+ add_option "--force", "Skip validation of the spec." do |_value, options|
23
+ options[:force] = true
24
+ end
25
+
26
+ add_option "--strict", "Consider warnings as errors when validating the spec." do |_value, options|
27
+ options[:strict] = true
28
+ end
29
+
30
+ add_option "--source GEM_SOURCE", "Specify the source to download the gem from." do |value, options|
31
+ options[:source] = value
32
+ end
33
+
34
+ add_option "--original GEM_FILE", "Specify a local file to compare against (instead of downloading it)." do |value, options|
35
+ options[:original_gem_file] = value
36
+ end
37
+
38
+ add_option "--gemspec GEMSPEC_FILE", "Specify the name of the gemspec file." do |value, options|
39
+ options[:gemspec_file] = value
40
+ end
41
+
42
+ add_option "-C PATH", "Run as if gem build was started in <PATH> instead of the current working directory." do |value, options|
43
+ options[:build_path] = value
44
+ end
45
+ end
46
+
47
+ def arguments # :nodoc:
48
+ "GEM_NAME gem name on gem server\n" \
49
+ "GEM_VERSION gem version you are attempting to rebuild"
50
+ end
51
+
52
+ def description # :nodoc:
53
+ <<-EOF
54
+ The rebuild command allows you to (attempt to) reproduce a build of a gem
55
+ from a ruby gemspec.
56
+
57
+ This command assumes the gemspec can be built with the `gem build` command.
58
+ If you use any of `gem build`, `rake build`, or`rake release` in the
59
+ build/release process for a gem, it is a potential candidate.
60
+
61
+ You will need to match the RubyGems version used, since this is included in
62
+ the Gem metadata.
63
+
64
+ If the gem includes lockfiles (e.g. Gemfile.lock) and similar, it will
65
+ require more effort to reproduce a build. For example, it might require
66
+ more precisely matched versions of Ruby and/or Bundler to be used.
67
+ EOF
68
+ end
69
+
70
+ def usage # :nodoc:
71
+ "#{program_name} GEM_NAME GEM_VERSION"
72
+ end
73
+
74
+ def execute
75
+ gem_name, gem_version = get_gem_name_and_version
76
+
77
+ old_dir, new_dir = prep_dirs
78
+
79
+ gem_filename = "#{gem_name}-#{gem_version}.gem"
80
+ old_file = File.join(old_dir, gem_filename)
81
+ new_file = File.join(new_dir, gem_filename)
82
+
83
+ if options[:original_gem_file]
84
+ FileUtils.copy_file(options[:original_gem_file], old_file)
85
+ else
86
+ download_gem(gem_name, gem_version, old_file)
87
+ end
88
+
89
+ rg_version = rubygems_version(old_file)
90
+ unless rg_version == Gem::VERSION
91
+ alert_error <<-EOF
92
+ You need to use the same RubyGems version #{gem_name} v#{gem_version} was built with.
93
+
94
+ #{gem_name} v#{gem_version} was built using RubyGems v#{rg_version}.
95
+ Gem files include the version of RubyGems used to build them.
96
+ This means in order to reproduce #{gem_filename}, you must also use RubyGems v#{rg_version}.
97
+
98
+ You're using RubyGems v#{Gem::VERSION}.
99
+
100
+ Please install RubyGems v#{rg_version} and try again.
101
+ EOF
102
+ terminate_interaction 1
103
+ end
104
+
105
+ source_date_epoch = get_timestamp(old_file).to_s
106
+
107
+ if build_path = options[:build_path]
108
+ Dir.chdir(build_path) { build_gem(gem_name, source_date_epoch, new_file) }
109
+ else
110
+ build_gem(gem_name, source_date_epoch, new_file)
111
+ end
112
+
113
+ compare(source_date_epoch, old_file, new_file)
114
+ end
115
+
116
+ private
117
+
118
+ def sha256(file)
119
+ Digest::SHA256.hexdigest(Gem.read_binary(file))
120
+ end
121
+
122
+ def get_timestamp(file)
123
+ mtime = nil
124
+ File.open(file, Gem.binary_mode) do |f|
125
+ Gem::Package::TarReader.new(f) do |tar|
126
+ mtime = tar.seek("metadata.gz") {|tf| tf.header.mtime }
127
+ end
128
+ end
129
+
130
+ mtime
131
+ end
132
+
133
+ def compare(source_date_epoch, old_file, new_file)
134
+ date = Time.at(source_date_epoch.to_i).strftime("%F %T %Z")
135
+
136
+ old_hash = sha256(old_file)
137
+ new_hash = sha256(new_file)
138
+
139
+ say
140
+ say "Built at: #{date} (#{source_date_epoch})"
141
+ say "Original build saved to: #{old_file}"
142
+ say "Reproduced build saved to: #{new_file}"
143
+ say "Working directory: #{options[:build_path] || Dir.pwd}"
144
+ say
145
+ say "Hash comparison:"
146
+ say " #{old_hash}\t#{old_file}"
147
+ say " #{new_hash}\t#{new_file}"
148
+ say
149
+
150
+ if old_hash == new_hash
151
+ say "SUCCESS - original and rebuild hashes matched"
152
+ else
153
+ say "FAILURE - original and rebuild hashes did not match"
154
+ say
155
+
156
+ if options[:diff]
157
+ if system("diffoscope", old_file, new_file).nil?
158
+ alert_error "error: could not find `diffoscope` executable"
159
+ end
160
+ else
161
+ say "Pass --diff for more details (requires diffoscope to be installed)."
162
+ end
163
+
164
+ terminate_interaction 1
165
+ end
166
+ end
167
+
168
+ def prep_dirs
169
+ rebuild_dir = Dir.mktmpdir("gem_rebuild")
170
+ old_dir = File.join(rebuild_dir, "old")
171
+ new_dir = File.join(rebuild_dir, "new")
172
+
173
+ FileUtils.mkdir_p(old_dir)
174
+ FileUtils.mkdir_p(new_dir)
175
+
176
+ [old_dir, new_dir]
177
+ end
178
+
179
+ def get_gem_name_and_version
180
+ args = options[:args] || []
181
+ if args.length == 2
182
+ gem_name, gem_version = args
183
+ elsif args.length > 2
184
+ raise Gem::CommandLineError, "Too many arguments"
185
+ else
186
+ raise Gem::CommandLineError, "Expected GEM_NAME and GEM_VERSION arguments (gem rebuild GEM_NAME GEM_VERSION)"
187
+ end
188
+
189
+ [gem_name, gem_version]
190
+ end
191
+
192
+ def build_gem(gem_name, source_date_epoch, output_file)
193
+ gemspec = options[:gemspec_file] || find_gemspec("#{gem_name}.gemspec")
194
+
195
+ if gemspec
196
+ build_package(gemspec, source_date_epoch, output_file)
197
+ else
198
+ alert_error error_message(gem_name)
199
+ terminate_interaction(1)
200
+ end
201
+ end
202
+
203
+ def build_package(gemspec, source_date_epoch, output_file)
204
+ with_source_date_epoch(source_date_epoch) do
205
+ spec = Gem::Specification.load(gemspec)
206
+ if spec
207
+ Gem::Package.build(
208
+ spec,
209
+ options[:force],
210
+ options[:strict],
211
+ output_file
212
+ )
213
+ else
214
+ alert_error "Error loading gemspec. Aborting."
215
+ terminate_interaction 1
216
+ end
217
+ end
218
+ end
219
+
220
+ def with_source_date_epoch(source_date_epoch)
221
+ old_sde = ENV["SOURCE_DATE_EPOCH"]
222
+ ENV["SOURCE_DATE_EPOCH"] = source_date_epoch.to_s
223
+
224
+ yield
225
+ ensure
226
+ ENV["SOURCE_DATE_EPOCH"] = old_sde
227
+ end
228
+
229
+ def error_message(gem_name)
230
+ if gem_name
231
+ "Couldn't find a gemspec file matching '#{gem_name}' in #{Dir.pwd}"
232
+ else
233
+ "Couldn't find a gemspec file in #{Dir.pwd}"
234
+ end
235
+ end
236
+
237
+ def download_gem(gem_name, gem_version, old_file)
238
+ # This code was based loosely off the `gem fetch` command.
239
+ version = "= #{gem_version}"
240
+ dep = Gem::Dependency.new gem_name, version
241
+
242
+ specs_and_sources, errors =
243
+ Gem::SpecFetcher.fetcher.spec_for_dependency dep
244
+
245
+ # There should never be more than one item in specs_and_sources,
246
+ # since we search for an exact version.
247
+ spec, source = specs_and_sources[0]
248
+
249
+ if spec.nil?
250
+ show_lookup_failure gem_name, version, errors, options[:domain]
251
+ terminate_interaction 1
252
+ end
253
+
254
+ download_path = source.download spec
255
+
256
+ FileUtils.move(download_path, old_file)
257
+
258
+ say "Downloaded #{gem_name} version #{gem_version} as #{old_file}."
259
+ end
260
+
261
+ def rubygems_version(gem_file)
262
+ Gem::Package.new(gem_file).spec.rubygems_version
263
+ end
264
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rubygems"
4
+
5
+ ##
6
+ # Mixin methods for commands that work with gemspecs.
7
+
8
+ module Gem::GemspecHelpers
9
+ def find_gemspec(glob = "*.gemspec")
10
+ gemspecs = Dir.glob(glob).sort
11
+
12
+ if gemspecs.size > 1
13
+ alert_error "Multiple gemspecs found: #{gemspecs}, please specify one"
14
+ terminate_interaction(1)
15
+ end
16
+
17
+ gemspecs.first
18
+ end
19
+ end
@@ -0,0 +1,3 @@
1
+ require 'rubygems/command_manager'
2
+
3
+ Gem::CommandManager.instance.register_command :rebuild
@@ -0,0 +1,6 @@
1
+ module Gem
2
+ module Rebuild
3
+ VERSION: String
4
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,56 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gem-rebuild
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Ellen Marie Dash
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-04-01 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ - me@duckie.co
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".rspec"
21
+ - CODE_OF_CONDUCT.md
22
+ - LICENSE.txt
23
+ - README.md
24
+ - Rakefile
25
+ - lib/gem/rebuild.rb
26
+ - lib/gem/rebuild/version.rb
27
+ - lib/rubygems/commands/rebuild_command.rb
28
+ - lib/rubygems/gemspec_helpers.rb
29
+ - lib/rubygems_plugin.rb
30
+ - sig/gem/rebuild.rbs
31
+ homepage:
32
+ licenses:
33
+ - MIT
34
+ metadata:
35
+ allowed_push_host: https://rubygems.org
36
+ source_code_uri: https://github.com/duckinator/gem-rebuild
37
+ post_install_message:
38
+ rdoc_options: []
39
+ require_paths:
40
+ - lib
41
+ required_ruby_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: 3.0.0
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ requirements: []
52
+ rubygems_version: 3.5.7
53
+ signing_key:
54
+ specification_version: 4
55
+ summary: Adds a 'gem rebuild' command for testing reproducible builds.
56
+ test_files: []