Skip to content

Commit e68fd6f

Browse files
committed
specify rb_sys as gemfile dependencies
1 parent e1ac6d2 commit e68fd6f

3 files changed

Lines changed: 8 additions & 11 deletions

File tree

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ gemspec
88
gem "rake", "~> 13.0"
99

1010
gem "rake-compiler"
11-
gem "rb_sys", "~> 0.9.63"
1211

1312
gem "rspec", "~> 3.0"
1413

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ PATH
22
remote: .
33
specs:
44
markdown_it_ruby (0.1.0)
5+
rb_sys (~> 0.9.63)
56

67
GEM
78
remote: https://rubygems.org/
@@ -67,7 +68,6 @@ DEPENDENCIES
6768
markdown_it_ruby!
6869
rake (~> 13.0)
6970
rake-compiler
70-
rb_sys (~> 0.9.63)
7171
rspec (~> 3.0)
7272
rubocop (~> 1.21)
7373
rubocop-rspec

markdown_it_ruby.gemspec

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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{\Aexe/}) { |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

Comments
 (0)