textbringer 20 → 21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 965d78b83028b05174c4dae6ddb2f0f367650333f605f625a12f898a0fc77f7b
4
- data.tar.gz: c2e895bf76071590e42ad89e26c6d97d246fe68aeba741b9a2ee9eeb8f1110f1
3
+ metadata.gz: 9fb85ae8a3790d1ae876ecac31730522e121047dde8cf759bfb58e137ac5fb59
4
+ data.tar.gz: 70c9b7d737cda7b8fcc2bbfab347c2d22a47743ca9ec5d3c6863c4bee8b5005d
5
5
  SHA512:
6
- metadata.gz: 17a23041efd23bf5dcb1dec4671cefb0645c194435e4f6fbf332fad79959bfb71e47da2d52b07bf7c964438cfb6fc08cb43c804e01f6c59597a50659a2fae7b2
7
- data.tar.gz: cdec4c57a320056d392cced17e7f24dcf17bbfea21bc7053b65f612e84f4353abb8f4a372a3b572b2e18d3180c325b3b4801a16b97ef904ac06dd8f98ef9bef7
6
+ metadata.gz: 87cecff29b608feff2999cda9619b429d4158b74e6e2ef3d5560f2b742170553b5101996a6907ff1d9c8852086e76b429166108586f353ac73a1d0354276f4df
7
+ data.tar.gz: 4208176e8fb0ce43237786129ddbcd5a77b8b052b7003ad414c7b018b35086c5f68dfa944c3ade415969f18484e9e298a980ef5e138668fbd60286cc697456a5
@@ -762,7 +762,10 @@ module Textbringer
762
762
  end
763
763
  background do
764
764
  URI.open(SKK_DICTIONARY_URL) do |f|
765
- File.binwrite(path, f.read)
765
+ FileUtils.mkdir_p(File.dirname(path))
766
+ File.open(path, "wb") do |out|
767
+ IO.copy_stream(f, out)
768
+ end
766
769
  end
767
770
  foreground do
768
771
  message("Downloaded to #{path}")
@@ -1,3 +1,3 @@
1
1
  module Textbringer
2
- VERSION = "20"
2
+ VERSION = "21"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textbringer
3
3
  version: !ruby/object:Gem::Version
4
- version: '20'
4
+ version: '21'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shugo Maeda