narou 3.5.0 → 3.5.0.1

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: 3568a8998f6795e4dd689db6ffeb7bc39fd64ccec9d9d5ab13f76dd7fe793f48
4
- data.tar.gz: 91859f904d8a83bc420c0fdc7054083d6c95640abb9badcf4ce7991c055ee03a
3
+ metadata.gz: 95bf07d5d411dc375dc6fdef96d6539c2f3d66b63bd71f0f48ab883f16e42ffc
4
+ data.tar.gz: 53e35c22ca89fb11c8c27945c23790f174e418ce353e818ff28d5374caf30cee
5
5
  SHA512:
6
- metadata.gz: 9cac3a784535bbda3663895282bfd280aebb1b97f6e5d02bae4f743ae323372a3b4b8d3c754bf397ab942aa7b4c4f5926df594b0e3f0198174ae4a6e066642f9
7
- data.tar.gz: 6138585217209d67f5d37587347c5e281b370dba630568206aced564fdf8e407c91e9c43d0a15b4521a8dc8c5af798d00740fcbe0cc2b6273d5ea1896176f17a
6
+ metadata.gz: 41a54f0b642fc2aea1a5e8d52b196c7b9ab6353bfd27bc3f0dbb5f8c5d867432a5783c1640bb64c37451a9ab84a41078f09b85cb5bd4b65043d4d302d248b7a8
7
+ data.tar.gz: 84a52aff09cddeed454fcd07f6b25385c75a3f807145f59f1086fe611a03d966237a4fa5a9e0251158b33f30a76debf8e7033503bc010c98d06b01622bef1e47
@@ -53,7 +53,7 @@ class Illustration
53
53
  if path = search_image(basename)
54
54
  return path
55
55
  end
56
- open(url, make_open_uri_options(allow_redirections: :safe)) do |fp|
56
+ URI.open(url, make_open_uri_options(allow_redirections: :safe)) do |fp|
57
57
  content_type = fp.meta["content-type"]
58
58
  ext = MIME[content_type] or raise UnknownMIMEType, content_type
59
59
  illust_abs_path = create_illust_path(basename) + "." + ext
@@ -54,7 +54,7 @@ module Narou
54
54
 
55
55
  def request_api(ncodes, limit = BATCH_LIMIT)
56
56
  url = "#{@api_url}?gzip=#{GZIP_LEVEL}&ncode=#{ncodes.join("-")}&of=#{@of}&lim=#{limit}&out=json"
57
- open(url) do |fp|
57
+ URI.open(url) do |fp|
58
58
  data = Zlib::GzipReader.wrap(fp).read.force_encoding(Encoding::UTF_8)
59
59
  results = JSON.parse(data)
60
60
  return if results[0]["allcount"].zero?
@@ -5,5 +5,5 @@
5
5
  #
6
6
 
7
7
  module Narou
8
- VERSION = "3.5.0"
8
+ VERSION = "3.5.0.1"
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: narou
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - whiteleaf7