waifu2x 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: 711f2a3a411fa50f68a4ac8287c0e0d879d8170b
4
- data.tar.gz: 5642040d68b9a617c05c0d41e8028c4fe882fe90
3
+ metadata.gz: 50e1df8ba5bb6c368d96d4b46dd58aa401912a20
4
+ data.tar.gz: 2b05f77ed8f83831ae2874ecc6f101e60f1e0cd8
5
5
  SHA512:
6
- metadata.gz: 6d704a1e76c5e09e4aa913a59207517efa70f672e7e2cbd144d1df7d5defcd93637939f88cd34b0717991c5f1db48e91a8838c2a93eec3edb1bbf85f8e38e88a
7
- data.tar.gz: 4583ef9d0705d18b6ae2c1eb90c894244caeb87407833f98fd1a03aa7184252b56714356af2e8052dcf805e8f2678b7552eca9f35b08cbc9f98cf7dd94d48c25
6
+ metadata.gz: f821376a0163a1c2ff02c1954b5758eda9d20e57449639fadbc764a2d3a1b05b2f8ca994a5a663965f5227964535797869817dd671e43ee3d0d2243f9e0b5cd4
7
+ data.tar.gz: 818ec0ddf70ac893dac9b55dbc0f4326fe4587bd5f74f4c7a420a4cc38602a4bef89f15b3e4c97f0ed2e9ab6f9d62215911e5164d59185ffe73e3b7d19b834d8
@@ -21,7 +21,7 @@ module Waifu2x
21
21
 
22
22
  validate_options! noise, scale
23
23
 
24
- if source.start_with?('http', 'ftp')
24
+ if source.downcase.start_with?('http://', 'https://', 'ftp://')
25
25
  source_params = { url: source }
26
26
  else
27
27
  begin
@@ -1,3 +1,3 @@
1
1
  module Waifu2x
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waifu2x
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nihad Abbasov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-24 00:00:00.000000000 Z
11
+ date: 2017-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus