dronejob 1.2.4 → 1.2.5

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: 1a12d7e94d4ad92847e925cf48b50d89a2382ebe
4
- data.tar.gz: ebf39c3ab69a49b592488966926477513e41d41d
3
+ metadata.gz: a65362e28162761f9e1634f03102011dd5d0aef0
4
+ data.tar.gz: 5556e1f1eedca9b8d4fd6ce651557b31e6b47882
5
5
  SHA512:
6
- metadata.gz: 1ae7a94b90e466f29ee0cfec056ed268f7709342ba8e8ac4c4e1667792dc833b5b427c3b54340ee52dced2900faecd4d4ba45b56ffc18582bbde32e1b5cef9ae
7
- data.tar.gz: 0f6e7e8e71df16254ca562e51f58620bda0342e55dacc0f4cee927a5c06237ff19d365888067f9154a791c7737b9a0da0127d84c1bbae8c6ff08a248404ea78b
6
+ metadata.gz: 54778d7a24c202bd96cac46ebaf05619cf13f40733173c7e4c6e3b8f130a97d3bbef6ff3a98897a100b45600cfd82ad177594a0164cf6e5a48ddf08e85d117ac
7
+ data.tar.gz: 9bc0090e79d14bb41552ca99c82c9302ae9550f251114466538343b4370c998691608484ee303da0690970929a7ca36c68efdda89e8d8a6ae66b92720ca5dd9e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dronejob (1.2.4)
4
+ dronejob (1.2.5)
5
5
  activejob (~> 4.2)
6
6
  bundler (>= 1.3.0, < 2.0)
7
7
  git (~> 1.2)
@@ -40,7 +40,7 @@ GEM
40
40
  i18n (0.7.0)
41
41
  json (1.8.3)
42
42
  method_source (0.8.2)
43
- minitest (5.9.1)
43
+ minitest (5.10.1)
44
44
  open_uri_redirections (0.2.1)
45
45
  pry (0.10.3)
46
46
  coderay (~> 1.1.0)
@@ -64,7 +64,7 @@ GEM
64
64
  rspec-support (~> 3.4.0)
65
65
  rspec-support (3.4.1)
66
66
  rubyzip (1.2.0)
67
- sidekiq (4.2.6)
67
+ sidekiq (4.2.7)
68
68
  concurrent-ruby (~> 1.0)
69
69
  connection_pool (~> 2.2, >= 2.2.0)
70
70
  rack-protection (>= 1.5.0)
@@ -72,7 +72,7 @@ GEM
72
72
  sidekiq-status (0.6.0)
73
73
  sidekiq (>= 2.7)
74
74
  slop (3.6.0)
75
- thor (0.19.1)
75
+ thor (0.19.4)
76
76
  thread_safe (0.3.5)
77
77
  tilt (2.0.5)
78
78
  typhoeus (1.1.0)
@@ -1,3 +1,3 @@
1
1
  module Dronejob
2
- VERSION = "1.2.4"
2
+ VERSION = "1.2.5"
3
3
  end
@@ -23,9 +23,9 @@ module Dronejob
23
23
  request
24
24
  end
25
25
 
26
- def download(url)
26
+ def download(url, opts={})
27
27
  url = "http:#{url}" if url[0..1] == "//"
28
- contents = open(url, { ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE, allow_redirections: :safe }).read
28
+ contents = open(url, { ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE, allow_redirections: :safe }.merge(opts)).read
29
29
  dir.create if !dir.exists?
30
30
  write(contents)
31
31
  self
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dronejob
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-30 00:00:00.000000000 Z
11
+ date: 2016-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler