kindlegen 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa25bd7075e56327aa57252627e4a6942304a962119ccf1dcc6b60db0d6e468c
4
- data.tar.gz: 91d23647cfbb87f27343e961d656eac991d8384b7873bc9fdd784ad3d5dc96ed
3
+ metadata.gz: 429e8b1357f7cfccb98126e33cce7949b61263ce1739b3785b3fa7e8cf54adfd
4
+ data.tar.gz: e5e7a6adf9ea504443f7032ebfbf6912a3475a47562ed9ce07238340ea535be4
5
5
  SHA512:
6
- metadata.gz: 72280f6dae8e5082161340c186d27946149f3236fd65b00d5c7e016efd9844e203ed649db55c8021608b0c44c089ce638bee7ffd2e4622f394b90b25e55ba772
7
- data.tar.gz: c24c8be58fd34494fe4d4b0b80e5caec846053ff604e7d9fa693ca0af8fae798d4e532e11b9a3c355b210cc64b36bc0f564afba577c5b4a47903acef31acdbe7
6
+ metadata.gz: 0c5ce8434ec59ade59563f0e76ed2ca6f27a89a411295e828d4149f8770e1907c23964ef7dbf943927cfa0f3085a4db8c237ad57e26bf05507dae6a9f6f80661
7
+ data.tar.gz: 5de495290ee07d96d8a0e72fa2bb235e5787e7a954cd745c5a41cfe6262521521d5539414c256d192be8b96b957882bc4b0ac2929b83c0dd53e25b5707338288
@@ -5,7 +5,7 @@ jobs:
5
5
  build:
6
6
  strategy:
7
7
  matrix:
8
- ruby: [2.4, 2.5, 2.6, 2.7]
8
+ ruby: [2.5, 2.6, 2.7, 3.0]
9
9
  # TODO: https://github.com/tdtds/kindlegen/issues/36
10
10
  # Add macos-latest when kindlegen is fixed to work on Catalina
11
11
  platform: [ubuntu-latest, windows-latest]
@@ -0,0 +1,18 @@
1
+ name: Publish to RubyGems.org
2
+ on:
3
+ push:
4
+ tags:
5
+ - '*'
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+ - name: Set up Ruby
12
+ uses: ruby/setup-ruby@v1
13
+ with:
14
+ ruby-version: '3.0'
15
+ - name: Publish to RubyGems.org
16
+ uses: dawidd6/action-publish-gem@v1
17
+ with:
18
+ api_key: ${{ secrets.RUBYGEMS_API_KEY }}
data/ext/Rakefile CHANGED
@@ -51,7 +51,7 @@ end
51
51
  def curl(url, tarball)
52
52
  puts "open(#{url})"
53
53
  puts "save to #{tarball}"
54
- open(url) do |file|
54
+ URI.open(url) do |file|
55
55
  IO.copy_stream(file, tarball)
56
56
  end
57
57
  end
@@ -99,7 +99,7 @@ when /mingw32|mswin32/i
99
99
  create_task_for_windows(
100
100
  { tarball: 'kindlegen_win32_v2_9.zip',
101
101
  target: 'kindlegen.exe',
102
- url: 'http://web.archive.org/web/20150407060917/http://kindlegen.s3.amazonaws.com/kindlegen_win32_v2_9.zip' })
102
+ url: 'https://web.archive.org/web/20150407060917/https://kindlegen.s3.amazonaws.com/kindlegen_win32_v2_9.zip' })
103
103
  else
104
104
  STDERR.puts "Host OS unsupported!"
105
105
  exit(1)
data/kindlegen.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  s.name = "kindlegen"
7
7
  s.version = Kindlegen::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
- s.required_ruby_version = '>= 2.4.0'
9
+ s.required_ruby_version = '>= 2.5.0'
10
10
 
11
11
  s.authors = ["TADA Tadashi"]
12
12
  s.email = ["t@tdtds.jp"]
@@ -1,3 +1,3 @@
1
1
  module Kindlegen
2
- VERSION = '3.1.0' unless const_defined?(:VERSION)
2
+ VERSION = '3.1.1' unless const_defined?(:VERSION)
3
3
  end
@@ -9,7 +9,7 @@ class KindlegenTest < Test::Unit::TestCase
9
9
  kindlegen_lib_dir = nil
10
10
  gem_version = File.read(File.join(KINDLEGEN_PROJECT_DIR, 'lib/kindlegen/version.rb')).match(/VERSION = ["'](.*?)["']/)[1]
11
11
  gem_file = File.join(KINDLEGEN_PROJECT_DIR, 'pkg', %(kindlegen-#{gem_version}.gem))
12
- result = Gem::Installer.at(gem_file).install rescue Gem::Installer.new(gem_file).install
12
+ result = Gem::Installer.at(gem_file).install rescue Gem::Installer.new(gem_file).install rescue Gem::Installer.new(Gem::Package.new gem_file).install
13
13
  begin
14
14
  require 'kindlegen'
15
15
  rescue ::LoadError
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kindlegen
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TADA Tadashi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-23 00:00:00.000000000 Z
11
+ date: 2021-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -77,6 +77,7 @@ extensions:
77
77
  extra_rdoc_files: []
78
78
  files:
79
79
  - ".github/workflows/ci.yml"
80
+ - ".github/workflows/release.yml"
80
81
  - ".gitignore"
81
82
  - ".tachikoma.yml"
82
83
  - Gemfile
@@ -101,14 +102,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
102
  requirements:
102
103
  - - ">="
103
104
  - !ruby/object:Gem::Version
104
- version: 2.4.0
105
+ version: 2.5.0
105
106
  required_rubygems_version: !ruby/object:Gem::Requirement
106
107
  requirements:
107
108
  - - ">="
108
109
  - !ruby/object:Gem::Version
109
110
  version: '0'
110
111
  requirements: []
111
- rubygems_version: 3.1.6
112
+ rubygems_version: 3.2.15
112
113
  signing_key:
113
114
  specification_version: 4
114
115
  summary: Installing kindlegen command.