kaki-utils 0.1.9 → 0.1.10

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: 81a9e92b5b558c29283f40441b6c7668dd907187679bf2fa93b9c4703444bff2
4
- data.tar.gz: 260ba53ea81d76f43b7018117d168c426a3238aec1c865d6645de71960a7e80b
3
+ metadata.gz: '0749cd8e17d8067cd321cdb44972ead355f2e5c267bfc98299e00ee357668d6a'
4
+ data.tar.gz: a132888a9c3fc57677c6c4175cce0a5d0ad8972d9dcc7ddd4b10c9683447c216
5
5
  SHA512:
6
- metadata.gz: dca7bb512e35bbdeb5d81dd2afbd797d3f3df73a207386716180ec2597f48034b47baa8f6da5b2d7d4d3de847a4703cf92f6b81a66e27fcfd27a05658df9d6a8
7
- data.tar.gz: ef7b7110a00e47460f5546a9f7aa8afb8dbbce83e32f02f9243b21ea5edbc6b289d90c826d49607d772d350d48e8d9188e8592d8c8f7b0bbe1986c95d9c40585
6
+ metadata.gz: 33e6e2c77c6dfd161d9436a43355ce497010429d796643b387e1e0768ba0289af7ae74f94fb792e1a30c8b233b1d9a2e56ca94272c88a04aa0c42243740440f4
7
+ data.tar.gz: 18267187cd15833a87e0fea4563500bb5ac7bfe488816e030ebd8e54dc7e75fd65f3a40daa0409b0c9337076e6af2a47ac164f93ca97db073f8c4bcfadc868ee
@@ -7,7 +7,8 @@ require 'set'
7
7
  module Utils
8
8
  #画像か?
9
9
  def imgexist?(url)
10
- FastImage.size(url)
10
+ s = FastImage.size(url)
11
+ s ? s != [0, 0] : s
11
12
  end
12
13
 
13
14
 
@@ -1,4 +1,5 @@
1
1
  require_relative '../utils'
2
2
 
3
- fnames = Dir.glob("./lib/kaki/utils/*").map {|f| File.basename(f, ".rb")}
4
- fnames.reject {|f| f == "all"}.each {|f| require_relative "./#{f}"}
3
+ current_dir = File.dirname(File.expand_path(__FILE__))
4
+ fnames = Dir.glob("#{current_dir}/*").map {|f| File.basename(f, ".rb")}
5
+ fnames.reject {|f| f == "all"}.each {|f| require_relative f}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaki-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - obelisk