@@ -7,35 +7,33 @@ Gem::Specification.new do |spec|
77 spec . version = MarkdownIt ::VERSION
88 spec . authors = [ "Koji Onishi" ]
99 spec . email = [ "fursich0@gmail.com" ]
10-
1110 spec . summary = "ruby integration of markdown-it-rust (with custom plugins)"
1211 spec . description = ""
1312 spec . homepage = "https://github.com/fursich/markdown_it_ruby"
1413 spec . license = "MIT"
1514 spec . required_ruby_version = ">= 3.2.0"
1615 spec . required_rubygems_version = ">= 3.3.11"
1716
18- spec . metadata [ "allowed_push_host" ] = "TODO: Set to your gem server 'https://example.com'"
19-
2017 spec . metadata [ "homepage_uri" ] = spec . homepage
2118 spec . metadata [ "source_code_uri" ] = "https://github.com/fursich/markdown_it_ruby"
2219 # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
2320
24- # Specify which files should be added to the gem when it is released.
21+ # Specify which files 0hould be added to the gem when it is released.
2522 # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
26- spec . files = Dir . chdir ( __dir__ ) {
27- `git ls-files -z` . split ( "\x0 " ) . reject do |f |
28- ( File . expand_path ( f ) == __FILE__ ) ||
23+ gemspec = File . basename ( __FILE__ )
24+ spec . files = IO . popen ( %w[ git ls-files -z ] , chdir : __dir__ , err : IO ::NULL ) { |ls |
25+ ls . readlines ( "\x0 " , chomp : true ) . reject { |f |
26+ ( f == gemspec ) ||
2927 f . start_with? ( *%w[ bin/ test/ spec/ features/ .git .github appveyor Gemfile ] )
30- end
28+ }
3129 }
3230 spec . bindir = "exe"
3331 spec . executables = spec . files . grep ( %r{\A exe/} ) { |f | File . basename ( f ) }
3432 spec . require_paths = [ "lib" ]
3533 spec . extensions = [ "ext/markdown_it_ruby/Cargo.toml" ]
3634
3735 # Uncomment to register a new dependency of your gem
38- # spec.add_dependency "example-gem ", "~> 1.0 "
36+ spec . add_dependency "rb_sys " , "~> 0.9.63 "
3937
4038 # For more information and examples about making a new gem, check out our
4139 # guide at: https://bundler.io/guides/creating_gem.html
0 commit comments