kaki-utils 0.1.14 → 0.1.15

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/kaki/utils.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 223c00de5d5832b469f8843b5e80941693cf2a884691b637062c2f866dd16c9a
4
- data.tar.gz: ba03c11aed9788107dae0348ff2539305f3b759d494ac8cefcf9538a355bf9da
3
+ metadata.gz: 7066817b7e50f3494530bf95ddf731fc7e0bb445b0228f9ab0f822b86cb9850f
4
+ data.tar.gz: 7ddd507c8bc6a553d00681dbf23139c7de9a62b30f367b5ae610921adef2964c
5
5
  SHA512:
6
- metadata.gz: bb99fee613dd5dc052ea5fbf875f83b7a1b4238145e7f2a7be5f3b0af15c97ec0437521709f52feabf23a95279361ce3f5c7cd76dae1e8515d9718b7b2eda003
7
- data.tar.gz: fe76e9862cc2af59cc0cd7ebb2a295a01afb143c087d8fb3a6b7fd69743cca3b65d0d0334cb029c10445528f6a6e2a249b8617d06077219995718878617d5ccb
6
+ metadata.gz: 8049baa78a0fd5a13a0612b20b272a617124ec136c5e9235b2835751f058ec696574bfd3c9fecd2c7bd99d836c795bcb26be7d0783dce5efc73dbc3020b79942
7
+ data.tar.gz: 73098bba12d3a70117bc344fb776eb941ea515f2f82a50bdc93cd7ae64bc82a42b15009eecbb83ea3bf37711abde0a4660c46f5a69452f52bb3275ab93a46aec
data/README.md CHANGED
@@ -20,7 +20,7 @@ methods
20
20
  * Utils.generate\_random\_strings(num, string_length = nil)
21
21
  * Utils.m3u8(url, fname)
22
22
  * Utils.modify\_serial\_numbers(dir = Dir.pwd)
23
- * Utils.timer(minutes) (only Ubuntu)
23
+ * Utils.timer(minutes)    (only Ubuntu)
24
24
 
25
25
  ## Recurring decimal
26
26
 
@@ -19,7 +19,7 @@ module Utils
19
19
  opt = ua ? {'User-Agent' => ua} : {}
20
20
  begin
21
21
  open(filename, 'wb') do |file|
22
- open(url, opt) {|data| file.write(data.read)}
22
+ URI.open(url, opt) {|data| file.write(data.read)}
23
23
  end
24
24
  true
25
25
  rescue
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaki-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - obelisk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-17 00:00:00.000000000 Z
11
+ date: 2020-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastimage