mini_portile2 2.2.0 → 2.3.0

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: 2a300c53f89d0d5c33f152aedaf83c93fd7cf2da
4
- data.tar.gz: ea999f1800170b0eca5d7d2f4ebc34b27ea1dcbd
3
+ metadata.gz: b1ed6b562410bfd09f8cbfedd0cadb7cce5bcce6
4
+ data.tar.gz: 4ac856c665b059f6ce88b2bf8d36ca27e506220e
5
5
  SHA512:
6
- metadata.gz: 47e8494cf606445724bf155bcd430568526c17142659a7dc4596dc0f8572f6b88ac2322565a63cf5323e9cb29a311cfd1c3ed866c323bec7c95e1e885142f5f9
7
- data.tar.gz: '08246743bb302ab883fefa47657ea49d0b132bdeb2c59daf85d890c1b45aacc155111c1e7568e9f228a859150b20535169ad9281148cdf8278506cbfa4b84996'
6
+ metadata.gz: aefb0218e911e548cd168f0f78ec3ee5d70642446f50548578796d69d3fb0d8fb05e28ba3a1d0a99ee3a9e408f8d045a434c697a0c03f7d77f0a7e92853f3004
7
+ data.tar.gz: 49f9c4665911313a37bd7eca9a3feff0b8a51b0fb8a425de13b4f082a3692328544d69fe03923560f3625642c9987d71d86a4304fdc5c290a7ae27ccfeb324b8
@@ -1,3 +1,11 @@
1
+ ### 2.2.1 / 2017-09-13
2
+
3
+ #### Enhancements
4
+
5
+ * Verify checksums of files at extraction time (in addition to at download time). (#56)
6
+ * Clarify error message if a `tar` command can't be found. (#81)
7
+
8
+
1
9
  ### 2.2.0 / 2017-06-04
2
10
 
3
11
  #### Enhancements
@@ -58,6 +58,7 @@ class MiniPortile
58
58
 
59
59
  def extract
60
60
  files_hashs.each do |file|
61
+ verify_file(file)
61
62
  extract_file(file[:local_path], tmp_path)
62
63
  end
63
64
  end
@@ -302,11 +303,12 @@ private
302
303
  }
303
304
  end
304
305
 
306
+ TAR_EXECUTABLES = %w[gtar bsdtar tar basic-bsdtar]
305
307
  def tar_exe
306
308
  @@tar_exe ||= begin
307
- %w[gtar bsdtar tar basic-bsdtar].find { |c|
309
+ TAR_EXECUTABLES.find { |c|
308
310
  which(c)
309
- }
311
+ } or raise("tar not found - please make sure that one of the following commands is in the PATH: #{TAR_EXECUTABLES.join(", ")}")
310
312
  end
311
313
  end
312
314
 
@@ -1,3 +1,3 @@
1
1
  class MiniPortile
2
- VERSION = "2.2.0"
2
+ VERSION = "2.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_portile2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis Lavena
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-06-05 00:00:00.000000000 Z
13
+ date: 2017-09-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.6.10
159
+ rubygems_version: 2.6.12
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Simplistic port-like solution for developers