kaki-utils 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 62b65ad5a3d3cf387d0ed409af3fef6fec5420f1
4
- data.tar.gz: 86a9ce6aae504087fc55b0be0d6600d414f16237
3
+ metadata.gz: 992ee753aa44459ca58c709ef6a7e78a7e66bbdd
4
+ data.tar.gz: f2a285320513e1c920eb0d5133e0922b1d732983
5
5
  SHA512:
6
- metadata.gz: bdc1393b41f9ad80f31b9e006bb4ca4973abca2e22bea47b3e4702a7922bb0ef4299966d028872eaf5e6c6596a469a4d3a641de9d593d82cc2a6c7ba1509e51d
7
- data.tar.gz: e0b52357499469ef6e53bcc0f317a87ec739cdd7cdf25db095a34ad1099ab7675d1283ca15281221413e9d6df8d9f66ba261c235bb4cd8649abfb1ca2f185cc8
6
+ metadata.gz: 28560cce70f89996f586baa06c99593e835f2c09b2f4304ea6ad3373f2f80691410c7058ee19ac025f4e5faca1fac3c97715dda65228ee710a4ce0c8aa94cb51
7
+ data.tar.gz: 0d76a60adc6bb949e6097831c2cbc89430bb27186439ecec06232b36b19430983181679ae01ca1baac7d3c2e7524665634ed063e19c9a1e4dc3742ab59e72a0b
@@ -1,4 +1,5 @@
1
1
  class String
2
+ #拡張子が画像ならばその拡張子を返す
2
3
  def imgsuffix
3
4
  [".jpg", ".gif", ".png", ".jpeg", ".bmp", ".JPG", ".GIF", ".PNG", ".JPEG", ".BMP"].each do |sf|
4
5
  return sf if include?(sf)
@@ -25,8 +25,8 @@ class Rational
25
25
  end
26
26
 
27
27
  class String
28
- #循環小数を分数に直す
29
28
  alias :__to_r__ :to_r
29
+ #循環小数を分数に直す
30
30
  def to_r
31
31
  st = delete(" ")
32
32
  return st.__to_r__ unless (m = /^([^\d]?)(\d+)\.(\d*)\((\d+)\)$/.match(st))
@@ -1,4 +1,5 @@
1
1
  class Integer
2
+ #例外ならば n 回リトライする
2
3
  def times_retry(message: true, wait: 0)
3
4
  n = 1
4
5
  begin
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.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - obelisk