aipp 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/aipp/aip.rb +4 -4
- data/lib/aipp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49d074cd575fab6f3620f201d538c6a2d8accf1d375438b7cd4fd2e2d77aca56
|
4
|
+
data.tar.gz: 1e1ca6f26498e1033385c7b2dc8aeb558c19b28300df0a5521699956661dd026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1212764315987bacfac6a5429742ef3e9faeff0249cb3bbb4e44554d8a74ef59407e66cf61c3c02475a0a9f316b445449c6adaff3f980a385ab829fbf6472a46
|
7
|
+
data.tar.gz: 503d02d65c4ce0e161e0aebafada72110095104a90910131c87d33e8a91196e9c98289db9b5e0e2b7013a1ed664cd5cb550b01f5ddf4ca074e1cee706c3ba782
|
data/CHANGELOG.md
CHANGED
data/lib/aipp/aip.rb
CHANGED
@@ -42,12 +42,12 @@ module AIPP
|
|
42
42
|
# @return [Nokogiri::HTML5] HTML document
|
43
43
|
def load_html(aip_file: nil)
|
44
44
|
aip_file ||= aip
|
45
|
-
unless (
|
46
|
-
info("Downloading #{
|
45
|
+
unless (aip_path = storage_path(aip_file)).exist?
|
46
|
+
info("Downloading #{aip_file}", force: true)
|
47
47
|
storage_path.mkpath
|
48
|
-
IO.copy_stream(open(url_for(aip_file)),
|
48
|
+
IO.copy_stream(open(url_for(aip_file)), aip_path)
|
49
49
|
end
|
50
|
-
Nokogiri::HTML5(
|
50
|
+
Nokogiri::HTML5(aip_path)
|
51
51
|
end
|
52
52
|
|
53
53
|
private
|
data/lib/aipp/version.rb
CHANGED