dronejob 1.1.8 → 1.1.9

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: 72e95a002487cbd82ec7e7d4624f0ca3b6b8f2ba
4
- data.tar.gz: 5f91348f2960eeed742cda0aa547f07a51dc1e29
3
+ metadata.gz: 0c94ba81da81adb2eec9c74286d3ee853ee5afeb
4
+ data.tar.gz: 33703463749cd88f918d58ecc601fa57beba2c60
5
5
  SHA512:
6
- metadata.gz: 6cd67c59b1c7127b3aa6e68e7937800b838af487b00e0633e574b1e7f8b63de81259d3b1b980ff73dad9c746f940ebf8a355ad33d5945320d159991bba20f607
7
- data.tar.gz: 9d28731e9e9bdd512211976ea89f290e809e0dcd4c42638091b2c77a244e587aba8705aee615889cb7faaddc6a25e96b5c48b1cafb03e46d28a5175b5babf794
6
+ metadata.gz: 6ff736fee739b754e522f48f7b128585eaf46ab6a72b0b48df59431f6530101490ea2a60346a681b69b1ee98a7acf22e1363a32ffa44dba5a37a1a76539f9079
7
+ data.tar.gz: 5e1e844fdbe97aa49a815ae39e0a10e139f3473cbf4d9a889f7a3cd7d5f7166531357e23705618109c02ae00200c11ad430ee0a7f7152ac6b3163034af2cb666
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dronejob (1.1.8)
4
+ dronejob (1.1.9)
5
5
  activejob (~> 4.2)
6
6
  bundler (>= 1.3.0, < 2.0)
7
7
  git (~> 1.2)
@@ -1,3 +1,3 @@
1
1
  module Dronejob
2
- VERSION = "1.1.8"
2
+ VERSION = "1.1.9"
3
3
  end
@@ -35,6 +35,10 @@ module Dronejob
35
35
  cache_file = cache_dir.file("#{Digest::MD5.hexdigest(url)}.#{ext}")
36
36
  request = cache_file.queue_download(url) do
37
37
  cache_file.optimize!
38
+ if original_url[0..1] == "//"
39
+ html.gsub!("http:#{original_url}", cache_file.relative_path)
40
+ html.gsub!("https:#{original_url}", cache_file.relative_path)
41
+ end
38
42
  html.gsub!(original_url, cache_file.relative_path)
39
43
  end
40
44
  hydra.queue(request)
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.1.8
4
+ version: 1.1.9
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-08-15 00:00:00.000000000 Z
11
+ date: 2016-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler