dsp_blueprint_parser 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a181366a669ee47d48b13fe5e80155a456e013c318ddfb9b94fd2633151413f
4
- data.tar.gz: 2c4dcbfb7d409146e8c4ee8c0ad43a7c5f8d9e2bd2560d24f4c69f3663079fd4
3
+ metadata.gz: b9baf4b18fc67f8fe06013269399d35b62baad46e0470daa636ddf054aa7e905
4
+ data.tar.gz: 17f09abd0eafa71e784dc60f1d515c0ccf0dd0ce0cfeda587cea5fa49d00ca77
5
5
  SHA512:
6
- metadata.gz: 7ab4a71875f57d3cf60b655df592388537db117cf08f41b41401e79cb85f5e9a61dfb2073a37670ca2254e352bf6235335a9823658f89cbf83918aa85c85441f
7
- data.tar.gz: 15410c98c9dacc405bb230cb955d648bb90b751f6dba9884250554cc73c468252ab2d9d02250d973eb949a38a291e44f16a52d7e86449e74fce6f8fddc94ba89
6
+ metadata.gz: 687e04170fbdb1f772f5bbd98ea37f76a3f12bedfaecd6e942f7a792b6930b0a4e60952a21110fe7d50c546ad1d11c8d23beeb55c065d3b0268f7f9e79accc1b
7
+ data.tar.gz: c18b5eb0aff64cc5b523431ab283fb1080f95e795a21e4b2a51d00cfe9acf1c3a04699e649c9b045a4a63d2ee83a5f98a2a918cbe7ef6b04a4bce91df7d1b5ce
data/.gitignore CHANGED
@@ -1,16 +1,16 @@
1
- /.idea/
2
- /.bundle/
3
- /.yardoc
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
-
11
- # rspec failure tracking
12
- .rspec_status
13
-
14
- # rspec failure tracking
15
- *.so
16
- *.gem
1
+ /.idea/
2
+ /.bundle/
3
+ /.yardoc
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
13
+
14
+ # rspec failure tracking
15
+ *.so
16
+ *.gem
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml CHANGED
@@ -1,22 +1,22 @@
1
- AllCops:
2
- TargetRubyVersion: 3.0
3
-
4
- Style/StringLiterals:
5
- Enabled: true
6
- EnforcedStyle: single_quotes
7
-
8
- Style/StringLiteralsInInterpolation:
9
- Enabled: true
10
- EnforcedStyle: double_quotes
11
-
12
- Layout/LineLength:
13
- Max: 120
14
-
15
- Metrics/MethodLength:
16
- Max: 30
17
-
18
- Metrics/BlockLength:
19
- Max: 30
20
-
21
- Metrics/AbcSize:
1
+ AllCops:
2
+ TargetRubyVersion: 3.0
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: single_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
14
+
15
+ Metrics/MethodLength:
16
+ Max: 30
17
+
18
+ Metrics/BlockLength:
19
+ Max: 30
20
+
21
+ Metrics/AbcSize:
22
22
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,17 +1,21 @@
1
- ## [Unreleased]
2
-
3
- ## [0.2.2] 2025-12-22
4
-
5
- - Quit including `.so` file in published gem.
6
-
7
- ## [0.2.1] 2025-12-22
8
-
9
- - Version bump to fix published gem.
10
-
11
- ## [0.2.0] 2025-12-20
12
-
13
- - Add support for new building metadata.
14
-
15
- ## [0.1.0] - 2021-07-31
16
-
17
- - Initial release
1
+ ## [Unreleased]
2
+
3
+ ## [0.2.3] 2026-01-24
4
+
5
+ - Handle new header datapoints.
6
+
7
+ ## [0.2.2] 2025-12-22
8
+
9
+ - Quit including `.so` file in published gem.
10
+
11
+ ## [0.2.1] 2025-12-22
12
+
13
+ - Version bump to fix published gem.
14
+
15
+ ## [0.2.0] 2025-12-20
16
+
17
+ - Add support for new building metadata.
18
+
19
+ ## [0.1.0] - 2021-07-31
20
+
21
+ - Initial release
data/Gemfile CHANGED
@@ -1,15 +1,15 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in dsp_blueprint_parser.gemspec
6
- gemspec
7
-
8
- gem 'rake', '~> 13.0'
9
-
10
- gem 'rspec', '~> 3.0'
11
-
12
- gem 'pry', '~> 0.14.0'
13
- gem 'rspec-expectations', '~> 3.10.1'
14
- gem 'rspec-its', '~> 1.3.0'
15
- gem 'rubocop', '~> 1.7'
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in dsp_blueprint_parser.gemspec
6
+ gemspec
7
+
8
+ gem 'rake', '~> 13.0'
9
+
10
+ gem 'rspec', '~> 3.0'
11
+
12
+ gem 'pry', '~> 0.14.0'
13
+ gem 'rspec-expectations', '~> 3.10.1'
14
+ gem 'rspec-its', '~> 1.3.0'
15
+ gem 'rubocop', '~> 1.7'
data/Gemfile.lock CHANGED
@@ -1,69 +1,69 @@
1
- PATH
2
- remote: .
3
- specs:
4
- dsp_blueprint_parser (0.2.2)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- ast (2.4.2)
10
- coderay (1.1.3)
11
- diff-lcs (1.4.4)
12
- method_source (1.0.0)
13
- parallel (1.20.1)
14
- parser (3.0.2.0)
15
- ast (~> 2.4.1)
16
- pry (0.14.1)
17
- coderay (~> 1.1)
18
- method_source (~> 1.0)
19
- rainbow (3.0.0)
20
- rake (13.0.6)
21
- rake-compiler (1.2.7)
22
- rake
23
- regexp_parser (2.1.1)
24
- rexml (3.2.5)
25
- rspec (3.10.0)
26
- rspec-core (~> 3.10.0)
27
- rspec-expectations (~> 3.10.0)
28
- rspec-mocks (~> 3.10.0)
29
- rspec-core (3.10.1)
30
- rspec-support (~> 3.10.0)
31
- rspec-expectations (3.10.1)
32
- diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.10.0)
34
- rspec-its (1.3.0)
35
- rspec-core (>= 3.0.0)
36
- rspec-expectations (>= 3.0.0)
37
- rspec-mocks (3.10.2)
38
- diff-lcs (>= 1.2.0, < 2.0)
39
- rspec-support (~> 3.10.0)
40
- rspec-support (3.10.2)
41
- rubocop (1.18.4)
42
- parallel (~> 1.10)
43
- parser (>= 3.0.0.0)
44
- rainbow (>= 2.2.2, < 4.0)
45
- regexp_parser (>= 1.8, < 3.0)
46
- rexml
47
- rubocop-ast (>= 1.8.0, < 2.0)
48
- ruby-progressbar (~> 1.7)
49
- unicode-display_width (>= 1.4.0, < 3.0)
50
- rubocop-ast (1.9.0)
51
- parser (>= 3.0.1.1)
52
- ruby-progressbar (1.11.0)
53
- unicode-display_width (2.0.0)
54
-
55
- PLATFORMS
56
- x86_64-linux
57
-
58
- DEPENDENCIES
59
- dsp_blueprint_parser!
60
- pry (~> 0.14.0)
61
- rake (~> 13.0)
62
- rake-compiler (~> 1.0)
63
- rspec (~> 3.0)
64
- rspec-expectations (~> 3.10.1)
65
- rspec-its (~> 1.3.0)
66
- rubocop (~> 1.7)
67
-
68
- BUNDLED WITH
69
- 2.3.22
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ dsp_blueprint_parser (0.2.2)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.2)
10
+ coderay (1.1.3)
11
+ diff-lcs (1.4.4)
12
+ method_source (1.0.0)
13
+ parallel (1.20.1)
14
+ parser (3.0.2.0)
15
+ ast (~> 2.4.1)
16
+ pry (0.14.1)
17
+ coderay (~> 1.1)
18
+ method_source (~> 1.0)
19
+ rainbow (3.0.0)
20
+ rake (13.0.6)
21
+ rake-compiler (1.2.7)
22
+ rake
23
+ regexp_parser (2.1.1)
24
+ rexml (3.2.5)
25
+ rspec (3.10.0)
26
+ rspec-core (~> 3.10.0)
27
+ rspec-expectations (~> 3.10.0)
28
+ rspec-mocks (~> 3.10.0)
29
+ rspec-core (3.10.1)
30
+ rspec-support (~> 3.10.0)
31
+ rspec-expectations (3.10.1)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.10.0)
34
+ rspec-its (1.3.0)
35
+ rspec-core (>= 3.0.0)
36
+ rspec-expectations (>= 3.0.0)
37
+ rspec-mocks (3.10.2)
38
+ diff-lcs (>= 1.2.0, < 2.0)
39
+ rspec-support (~> 3.10.0)
40
+ rspec-support (3.10.2)
41
+ rubocop (1.18.4)
42
+ parallel (~> 1.10)
43
+ parser (>= 3.0.0.0)
44
+ rainbow (>= 2.2.2, < 4.0)
45
+ regexp_parser (>= 1.8, < 3.0)
46
+ rexml
47
+ rubocop-ast (>= 1.8.0, < 2.0)
48
+ ruby-progressbar (~> 1.7)
49
+ unicode-display_width (>= 1.4.0, < 3.0)
50
+ rubocop-ast (1.9.0)
51
+ parser (>= 3.0.1.1)
52
+ ruby-progressbar (1.11.0)
53
+ unicode-display_width (2.0.0)
54
+
55
+ PLATFORMS
56
+ x86_64-linux
57
+
58
+ DEPENDENCIES
59
+ dsp_blueprint_parser!
60
+ pry (~> 0.14.0)
61
+ rake (~> 13.0)
62
+ rake-compiler (~> 1.0)
63
+ rspec (~> 3.0)
64
+ rspec-expectations (~> 3.10.1)
65
+ rspec-its (~> 1.3.0)
66
+ rubocop (~> 1.7)
67
+
68
+ BUNDLED WITH
69
+ 2.3.22
data/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2021 Lucas Falk
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.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Lucas Falk
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 CHANGED
@@ -1,46 +1,46 @@
1
- # DspBlueprintParser
2
-
3
- Small Ruby gem to handle parsing of Dyson Sphere Program's blueprint data.
4
-
5
- Currently the gem does not support validating the MD5 hash of the blueprint. It appears as if the DSP devs wrote their own MD5 algorithm which would need it's own Ruby port.
6
-
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'dsp_blueprint_parser'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle install
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install dsp_blueprint_parser
22
-
23
- ## Usage
24
-
25
- Module `DspBlueprintParser` has a single static method `parse` which takes the DSP blueprint string to be parsed.
26
-
27
- ```ruby
28
- DspBlueprintParser.parse(str_blueprint)
29
- ```
30
-
31
- This method returns a [BlueprintData](https://github.com/LRFalk01/DSP-Blueprint-Parser/blob/master/lib/dsp_blueprint_parser/blueprint_data.rb) object which includes the various metadata of the blueprint.
32
- Part of the `BlueprintData` object are properties for [areas](https://github.com/LRFalk01/DSP-Blueprint-Parser/blob/master/lib/dsp_blueprint_parser/area.rb) and [buildings](https://github.com/LRFalk01/DSP-Blueprint-Parser/blob/master/lib/dsp_blueprint_parser/building.rb) which are what one would mostly be interested in further evaluating.
33
-
34
- ## Development
35
-
36
- 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.
37
-
38
- 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).
39
-
40
- ## Contributing
41
-
42
- Bug reports and pull requests are welcome on GitHub at https://github.com/LRFalk01/dsp_blueprint_parser.
43
-
44
- ## License
45
-
46
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
1
+ # DspBlueprintParser
2
+
3
+ Small Ruby gem to handle parsing of Dyson Sphere Program's blueprint data.
4
+
5
+ Currently the gem does not support validating the MD5 hash of the blueprint. It appears as if the DSP devs wrote their own MD5 algorithm which would need it's own Ruby port.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'dsp_blueprint_parser'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install dsp_blueprint_parser
22
+
23
+ ## Usage
24
+
25
+ Module `DspBlueprintParser` has a single static method `parse` which takes the DSP blueprint string to be parsed.
26
+
27
+ ```ruby
28
+ DspBlueprintParser.parse(str_blueprint)
29
+ ```
30
+
31
+ This method returns a [BlueprintData](https://github.com/LRFalk01/DSP-Blueprint-Parser/blob/master/lib/dsp_blueprint_parser/blueprint_data.rb) object which includes the various metadata of the blueprint.
32
+ Part of the `BlueprintData` object are properties for [areas](https://github.com/LRFalk01/DSP-Blueprint-Parser/blob/master/lib/dsp_blueprint_parser/area.rb) and [buildings](https://github.com/LRFalk01/DSP-Blueprint-Parser/blob/master/lib/dsp_blueprint_parser/building.rb) which are what one would mostly be interested in further evaluating.
33
+
34
+ ## Development
35
+
36
+ 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.
37
+
38
+ 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).
39
+
40
+ ## Contributing
41
+
42
+ Bug reports and pull requests are welcome on GitHub at https://github.com/LRFalk01/dsp_blueprint_parser.
43
+
44
+ ## License
45
+
46
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile CHANGED
@@ -1,16 +1,16 @@
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
- require 'rubocop/rake_task'
9
-
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]
13
-
14
-
15
- require 'rake/extensiontask'
16
- Rake::ExtensionTask.new('md5f')
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
+ require 'rubocop/rake_task'
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
13
+
14
+
15
+ require 'rake/extensiontask'
16
+ Rake::ExtensionTask.new('md5f')
data/bin/console CHANGED
@@ -1,15 +1,15 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'dsp_blueprint_parser'
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require 'irb'
15
- IRB.start(__FILE__)
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'dsp_blueprint_parser'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup CHANGED
@@ -1,9 +1,9 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
9
- bundle exec rake compile
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
9
+ bundle exec rake compile
@@ -1,41 +1,41 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'lib/dsp_blueprint_parser/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'dsp_blueprint_parser'
7
- spec.version = DspBlueprintParser::VERSION
8
- spec.authors = ['Lucas Falk']
9
- spec.email = ['LRFalk01@gmail.com']
10
-
11
- spec.summary = 'Parse Dyson Sphere Program blueprint string'
12
- spec.description = 'Parse Dyson Sphere Program blueprint string'
13
- spec.homepage = 'https://github.com/LRFalk01/DSP-Blueprint-Parser'
14
- spec.license = 'MIT'
15
- spec.required_ruby_version = '>= 3.0'
16
-
17
- # spec.metadata["allowed_push_host"] = "TODO: Set to 'https://mygemserver.com'"
18
-
19
- spec.metadata['homepage_uri'] = spec.homepage
20
- spec.metadata['source_code_uri'] = spec.homepage
21
- # spec.metadata['changelog_uri'] = spec.homepage
22
-
23
- # Specify which files should be added to the gem when it is released.
24
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
27
- end
28
-
29
- spec.bindir = 'exe'
30
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
- spec.require_paths = ['lib']
32
-
33
- # Uncomment to register a new dependency of your gem
34
- # spec.add_dependency "example-gem", "~> 1.0"
35
-
36
- # For more information and examples about making a new gem, checkout our
37
- # guide at: https://bundler.io/guides/creating_gem.html
38
- spec.add_development_dependency "rake-compiler", "~> 1.0"
39
-
40
- spec.extensions = %w[ext/md5f/extconf.rb]
41
- end
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/dsp_blueprint_parser/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'dsp_blueprint_parser'
7
+ spec.version = DspBlueprintParser::VERSION
8
+ spec.authors = ['Lucas Falk']
9
+ spec.email = ['LRFalk01@gmail.com']
10
+
11
+ spec.summary = 'Parse Dyson Sphere Program blueprint string'
12
+ spec.description = 'Parse Dyson Sphere Program blueprint string'
13
+ spec.homepage = 'https://github.com/LRFalk01/DSP-Blueprint-Parser'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = '>= 3.0'
16
+
17
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'https://mygemserver.com'"
18
+
19
+ spec.metadata['homepage_uri'] = spec.homepage
20
+ spec.metadata['source_code_uri'] = spec.homepage
21
+ # spec.metadata['changelog_uri'] = spec.homepage
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
27
+ end
28
+
29
+ spec.bindir = 'exe'
30
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ['lib']
32
+
33
+ # Uncomment to register a new dependency of your gem
34
+ # spec.add_dependency "example-gem", "~> 1.0"
35
+
36
+ # For more information and examples about making a new gem, checkout our
37
+ # guide at: https://bundler.io/guides/creating_gem.html
38
+ spec.add_development_dependency "rake-compiler", "~> 1.0"
39
+
40
+ spec.extensions = %w[ext/md5f/extconf.rb]
41
+ end
data/ext/md5f/extconf.rb CHANGED
@@ -1,3 +1,3 @@
1
- require 'mkmf'
2
-
1
+ require 'mkmf'
2
+
3
3
  create_makefile 'md5f'