Skip to content

Commit

Permalink
Remove needless dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 1, 2020
1 parent 4cd94bf commit 4d12ecf
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 27 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
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
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/doc/reference/
/.yardoc/
/pkg/
/Gemfile.lock
/doc/reference/
/pkg/
/vendor/
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

11 changes: 2 additions & 9 deletions Rakefile
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
Expand All @@ -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
Expand All @@ -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")
Expand Down
6 changes: 2 additions & 4 deletions chupa-text-decomposer-mail.gemspec
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
Expand All @@ -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(.*)$/)
Expand All @@ -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
6 changes: 4 additions & 2 deletions test/run-test.rb
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
Expand All @@ -20,6 +20,8 @@

ENV["TZ"] = "JST"

test_dir = __dir__

require "bundler/setup"

require "test-unit"
Expand All @@ -30,4 +32,4 @@

require_relative "helper"

exit(Test::Unit::AutoRunner.run(true))
exit(Test::Unit::AutoRunner.run(true, test_dir))
4 changes: 2 additions & 2 deletions test/test-mail.rb
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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4d12ecf

Please sign in to comment.