mini_portile 0.5.2 → 0.5.3

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 (5) hide show
  1. checksums.yaml +4 -4
  2. data/History.txt +8 -0
  3. data/Rakefile +1 -1
  4. data/lib/mini_portile.rb +15 -2
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68971ad5491d04db792cc4c302012dba5c426a8f
4
- data.tar.gz: 4e4dbabe7a1ea8310f95aa6e7617f7ab54980e5d
3
+ metadata.gz: cee87cb39d1d3f26fada711165e1270a45ad07b5
4
+ data.tar.gz: 608e501834649a00f3236fff4fb405fd6e16a2e9
5
5
  SHA512:
6
- metadata.gz: bd5797cd26aa5b37cef63b0c16315d31445d95362d9102c4800af077dc40d495f0810a2abc28090526cc276f7b3712839915adb0c7fa68cf604645d245081ace
7
- data.tar.gz: d27ce0daed9bf07388092c125e90a75e32763e4f7fcfdf71ac802dd1f2ce7574aad988800636b2439ce89762c0f1675a80769a5def71bb4002b6c6f6363fa547
6
+ metadata.gz: 85b9ea5ef46b6e824bb17df60123cf0ddaea05bae22580b90ef2fbebeb383632f4a83257dc0db32e20cb68276e63d09421b7640663c3323b1ace022761c83773
7
+ data.tar.gz: 5a3677ffb69d4e119fc8f45ec3a1367d23a65c1055b0c3831320a0bfb7711cc54effb386940d171907e6183db3aef129cb6fde7e880cf634a4f34bb5ee6fa7eb
@@ -1,3 +1,11 @@
1
+ === 0.5.3 / 2014-03-24
2
+
3
+ * Bugfixes:
4
+ * Shell escape paths in tar command. Pull #29. [quickshiftin]
5
+ * Support older versions of tar that cannot auto-detect
6
+ the compression type. Pull #27. Closes #21. [b-dean]
7
+ * Try RbConfig's CC before fall back to 'gcc'. Ref #28.
8
+
1
9
  === 0.5.2 / 2013-10-23
2
10
 
3
11
  * Bugfixes:
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require "rubygems/package_task"
4
4
  GEM_SPEC = Gem::Specification.new do |s|
5
5
  # basic information
6
6
  s.name = "mini_portile"
7
- s.version = "0.5.2"
7
+ s.version = "0.5.3"
8
8
  s.platform = Gem::Platform::RUBY
9
9
 
10
10
  # description and details
@@ -200,6 +200,19 @@ private
200
200
  end
201
201
  end
202
202
 
203
+ def tar_compression_switch(filename)
204
+ case File.extname(filename)
205
+ when '.gz', '.tgz'
206
+ 'z'
207
+ when '.bz2', '.tbz2'
208
+ 'j'
209
+ when '.Z'
210
+ 'Z'
211
+ else
212
+ ''
213
+ end
214
+ end
215
+
203
216
  # From: http://stackoverflow.com/a/5471032/7672
204
217
  # Thanks, Mislav!
205
218
  #
@@ -239,7 +252,7 @@ private
239
252
  FileUtils.mkdir_p target
240
253
 
241
254
  message "Extracting #{filename} into #{target}... "
242
- result = `#{tar_exe} xf #{file} -C #{target} 2>&1`
255
+ result = `#{tar_exe} #{tar_compression_switch(filename)}xf "#{file}" -C "#{target}" 2>&1`
243
256
  if $?.success?
244
257
  output "OK"
245
258
  else
@@ -393,7 +406,7 @@ private
393
406
  end
394
407
 
395
408
  def gcc_cmd
396
- cc = ENV["CC"] || "gcc"
409
+ cc = ENV["CC"] || RbConfig::CONFIG["CC"] || "gcc"
397
410
  return cc.dup
398
411
  end
399
412
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_portile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis Lavena
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-24 00:00:00.000000000 Z
11
+ date: 2014-03-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Simplistic port-like solution for developers. It provides a standard
14
14
  and simplified way to compile against dependency libraries without messing up your
@@ -51,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  version: 1.3.5
52
52
  requirements: []
53
53
  rubyforge_project:
54
- rubygems_version: 2.0.12
54
+ rubygems_version: 2.0.14
55
55
  signing_key:
56
56
  specification_version: 4
57
57
  summary: Simplistic port-like solution for developers