forked from whiteleaf7/narou
-
Notifications
You must be signed in to change notification settings - Fork 0
/
narou.gemspec
79 lines (72 loc) · 3.27 KB
/
narou.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# -*- mode: ruby -*-
# -*- coding: utf-8 -*-
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "version"
require "fileutils"
module Narou
def self.create_git_commit_version
File.write("commitversion", `git describe --always`.strip)
"commitversion"
end
end
at_exit do
if File.exist?("commitversion")
FileUtils.rm("commitversion")
end
end
Encoding.default_external = Encoding::UTF_8
Gem::Specification.new do |gem|
gem.name = "narou"
gem.version = ::Narou::VERSION
gem.license = "MIT"
gem.authors = ["whiteleaf7"]
gem.email = ["[email protected]"]
gem.homepage = "http://whiteleaf.hatenablog.com/"
gem.summary = %q{Narou.rb ― 小説家になろうダウンローダ&縦書用整形スクリプト}
gem.description = %q{
小説家になろうで公開されている小説の管理、及び電子書籍データへの
変換を支援します。縦書用に特化されており、横書き用に特化されたWEB小説
を違和感なく縦書で読むことが出来るようになります。
}.split("\n").join
install_message = <<-EOS
#{"*" * 60}
3.7.0: 2021/01/23
-----------------
#### 修正内容
- Apple Silicon 搭載 Mac でも動く様にライブラリをアップデート
- device を kobo に設定し、ebook-filename-length-limit でファイル名が制限され
た場合に send コマンドが正常に実行できない不具合を修正
#{"*" * 60}
EOS
gem.post_install_message = install_message.gsub("\t", " ")
gem.required_ruby_version = ">=2.3.0"
gem.files = `git ls-files`.split("\n").reject { |fn| fn =~ %r!^spec/|^"spec! } << Narou.create_git_commit_version
gem.executables = gem.files.grep(%r!^bin/!).map { |f| File.basename(f) }
gem.add_runtime_dependency 'termcolorlight', '~> 1.0', '>= 1.1.1'
gem.add_runtime_dependency 'rubyzip', '~> 2.0', '>= 2.0.0'
gem.add_runtime_dependency 'mail', '~> 2.6.0', '>= 2.6.6'
gem.add_runtime_dependency 'pony', '~> 1', '>= 1.11'
gem.add_runtime_dependency 'diff-lcs', '~> 1.2', '>= 1.2.5'
gem.add_runtime_dependency 'sinatra', '~> 2.0', '>= 2.0.8.1'
gem.add_runtime_dependency 'sinatra-contrib', '~> 2.0', '>= 2.0.8.1'
gem.add_runtime_dependency 'tilt', '~> 2.0', '>= 2.0.10'
gem.add_runtime_dependency 'sassc', '~> 2.4'
gem.add_runtime_dependency 'ffi', '~> 1.4', '>= 1.4.2'
gem.add_runtime_dependency 'haml', '>= 5.1.2', '< 6'
gem.add_runtime_dependency 'memoist', '~> 0.11.0'
gem.add_runtime_dependency 'systemu', '~> 2.6', '>= 2.6.5'
gem.add_runtime_dependency 'erubis', '~> 2.7'
gem.add_runtime_dependency 'open_uri_redirections', '~> 0.2', '>= 0.2.1'
gem.add_runtime_dependency 'activesupport', '>= 6.1', '< 8.0'
gem.add_runtime_dependency 'unicode-display_width', '~> 1.4'
gem.add_runtime_dependency 'webrick', '~> 1.7'
gem.add_development_dependency 'rspec', '~> 3.10'
gem.add_development_dependency 'rspec-retry', '~> 0.6'
gem.add_development_dependency 'rspec_junit_formatter', '~> 0.4'
gem.add_development_dependency 'timecop', '~> 0.9'
gem.add_development_dependency 'pry', '~> 0.12'
gem.add_development_dependency 'pry-byebug', '~> 3.8'
gem.add_development_dependency 'awesome_print', '~> 1.8'
gem.add_development_dependency 'simplecov', '~> 0.20'
end