-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from takahashim/rubygems
packaging as rubygems
- Loading branch information
Showing
10 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,9 @@ luac.out | |
*.x86_64 | ||
*.hex | ||
|
||
# RubyGems | ||
/.bundle/ | ||
/.yardoc | ||
/_yardoc/ | ||
/coverage/ | ||
/pkg/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'simplecov' | ||
gem 'test-unit' | ||
gem 'unicode-eaw' | ||
# Specify your gem's dependencies in pandoc2review.gemspec | ||
gemspec | ||
|
||
gem "rake", "~> 12.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require "bundler/gem_tasks" | ||
require "rake/testtask" | ||
|
||
desc 'Run tests' | ||
task :test, :target do |_, argv| | ||
if argv[:target].nil? | ||
ruby('test/run_test.rb') | ||
else | ||
ruby('test/run_test.rb', "--pattern=#{argv[:target]}") | ||
end | ||
end | ||
|
||
task :default => :test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env ruby | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Kenshi Muto | ||
require_relative 'pandoc2review-lib' | ||
require 'pandoc2review' | ||
main |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Gem::Specification.new do |spec| | ||
spec.name = "pandoc2review" | ||
# spec.version = Pandoc2review::VERSION | ||
spec.version = "1.1.0" | ||
spec.authors = ["kmuto"] | ||
spec.email = ["[email protected]"] | ||
|
||
spec.summary = %q{Re:VIEW Filter/Writer for Pandoc.} | ||
spec.description = %q{Re:VIEW Filter/Writer for Pandoc.} | ||
spec.homepage = "https://github.com/kmuto/pandoc2review" | ||
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") | ||
|
||
spec.metadata["homepage_uri"] = spec.homepage | ||
spec.metadata["source_code_uri"] = "https://github.com/kmuto/pandoc2review" | ||
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here." | ||
|
||
# Specify which files should be added to the gem when it is released. | ||
# The `git ls-files -z` loads the files in the RubyGem that have been added into git. | ||
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do | ||
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
end | ||
spec.bindir = "exe" | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ["lib"] | ||
|
||
spec.add_dependency('unicode-eaw') | ||
spec.add_development_dependency('simplecov') | ||
spec.add_development_dependency('test-unit') | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters