-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
43 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Test | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
test: | ||
name: Ruby ${{ matrix.ruby-version }} on ${{ matrix.runs-on }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby-version: | ||
- 2.5 | ||
- 2.6 | ||
- 2.7 | ||
runs-on: | ||
- macos-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: '${{ matrix.ruby-version }}' | ||
- name: Install dependencies | ||
run: | | ||
bundle install | ||
- name: Test | ||
run: | | ||
bundle exec rake |
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,4 +1,5 @@ | ||
/doc/reference/ | ||
/.yardoc/ | ||
/pkg/ | ||
/Gemfile.lock | ||
/doc/reference/ | ||
/pkg/ | ||
/vendor/ |
This file was deleted.
Oops, something went wrong.
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,6 +1,6 @@ | ||
# -*- ruby -*- | ||
# | ||
# Copyright (C) 2017 Kouhei Sutou <[email protected]> | ||
# Copyright (C) 2017-2020 Sutou Kouhei <[email protected]> | ||
# | ||
# This library is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU Lesser General Public | ||
|
@@ -22,9 +22,8 @@ require "pathname" | |
|
||
require "rubygems" | ||
require "bundler/gem_helper" | ||
require "packnga" | ||
|
||
base_dir = Pathname(__FILE__).dirname | ||
base_dir = Pathname(__dir__) | ||
|
||
helper = Bundler::GemHelper.new(base_dir.to_s) | ||
def helper.version_tag | ||
|
@@ -34,12 +33,6 @@ end | |
helper.install | ||
spec = helper.gemspec | ||
|
||
Packnga::DocumentTask.new(spec) do | ||
end | ||
|
||
Packnga::ReleaseTask.new(spec) do | ||
end | ||
|
||
desc "Run tests" | ||
task :test do | ||
ruby("test/run-test.rb") | ||
|
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,6 +1,6 @@ | ||
# -*- ruby -*- | ||
# | ||
# Copyright (C) 2017 Kouhei Sutou <[email protected]> | ||
# Copyright (C) 2017-2020 Sutou Kouhei <[email protected]> | ||
# | ||
# This library is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU Lesser General Public | ||
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec| | |
spec.name = "chupa-text-decomposer-mail" | ||
spec.version = "1.0.0" | ||
spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-mail" | ||
spec.authors = ["Kouhei Sutou"] | ||
spec.authors = ["Sutou Kouhei"] | ||
spec.email = ["[email protected]"] | ||
readme = File.read("README.md", :encoding => "UTF-8") | ||
entries = readme.split(/^\#\#\s(.*)$/) | ||
|
@@ -45,6 +45,4 @@ Gem::Specification.new do |spec| | |
spec.add_development_dependency("bundler") | ||
spec.add_development_dependency("rake") | ||
spec.add_development_dependency("test-unit") | ||
spec.add_development_dependency("packnga") | ||
spec.add_development_dependency("kramdown") | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env ruby | ||
# | ||
# Copyright (C) 2017 Kouhei Sutou <[email protected]> | ||
# Copyright (C) 2017-2020 Sutou Kouhei <[email protected]> | ||
# | ||
# This library is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU Lesser General Public | ||
|
@@ -20,6 +20,8 @@ | |
|
||
ENV["TZ"] = "JST" | ||
|
||
test_dir = __dir__ | ||
|
||
require "bundler/setup" | ||
|
||
require "test-unit" | ||
|
@@ -30,4 +32,4 @@ | |
|
||
require_relative "helper" | ||
|
||
exit(Test::Unit::AutoRunner.run(true)) | ||
exit(Test::Unit::AutoRunner.run(true, test_dir)) |
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,4 +1,4 @@ | ||
# Copyright (C) 2017 Kouhei Sutou <[email protected]> | ||
# Copyright (C) 2017-2020 Sutou Kouhei <[email protected]> | ||
# | ||
# This library is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU Lesser General Public | ||
|
@@ -142,7 +142,7 @@ def decompose(attribute_name) | |
|
||
sub_test_case("one page") do | ||
def test_body | ||
assert_equal(["World\n"], decompose.collect(&:body)) | ||
assert_equal(["World\r\n"], decompose.collect(&:body)) | ||
end | ||
|
||
private | ||
|