stove 3.2.4 → 3.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: d3ef428f508059e005c170b50e007ea448d95184
4
- data.tar.gz: df9a1982be3cb933dbcaa32314e78aa8fc8ebb83
3
+ metadata.gz: adf59176016fc650340c083aaafcbdc16726942a
4
+ data.tar.gz: 2e6daf3d348e3f52de76c33442117d7ddab28607
5
5
  SHA512:
6
- metadata.gz: c3647a5ed6e7de9304e5cc157b840792c36b7a5fdee942c5ab355b4009f1724663bd66df0915c15473e79263e0c20d99cbc3907df03f4f771c30095af08548a6
7
- data.tar.gz: d1ef86c49cd85c01cab9e1d30772ec8d950efd35164841449c5d937d2be5e10af841691f7537dec2ea9be58a65799a0cb1146dcd853b8d6664dfc0b303f8be2a
6
+ metadata.gz: 552f55caf16682fcda07f1aaf690851514c8b82ebfec6a97d19cc3ef86b3e9d9f13e691c927001902f1e1dfc1280aa325e3b0fcb86877a47d9c10417f44c2541
7
+ data.tar.gz: 7da0d469bdc7f4517ea2a84f8c6f44ab6ef94059fb081b66ec61dae905c7418d7c7811525ff973eb04f2b2b43f27b31fa4eec1497c33c2b0d42419c65de9f53f
@@ -2,6 +2,10 @@ Stove CHANGELOG
2
2
  ===============
3
3
  This is the Changelog for the Stove gem.
4
4
 
5
+ v3.2.5 (2014-12-19)
6
+ -------------------
7
+ - Fix a bug with line endings when generating tarballs
8
+
5
9
  v3.2.4 (2014-12-07)
6
10
  -------------------
7
11
  - Add support for `issues_url` and `source_url` metadata attributes
@@ -77,7 +77,7 @@ module Stove
77
77
  io = tar(File.dirname(cookbook.path), packaging_slip)
78
78
  tgz = gzip(io)
79
79
 
80
- tempfile = Tempfile.new([cookbook.name, '.tar.gz'])
80
+ tempfile = Tempfile.new([cookbook.name, '.tar.gz'], Dir.tmpdir, mode: File::RDWR|File::CREAT|File::EXCL|File::BINARY)
81
81
 
82
82
  while buffer = tgz.read(1024)
83
83
  tempfile.write(buffer)
@@ -103,7 +103,7 @@ module Stove
103
103
  # the io object that contains the tarball contents
104
104
  #
105
105
  def tar(root, slip)
106
- io = StringIO.new('')
106
+ io = StringIO.new('', 'r+b')
107
107
  Gem::Package::TarWriter.new(io) do |tar|
108
108
  slip.each do |original_file, tarball_file|
109
109
  mode = File.stat(original_file).mode
@@ -1,3 +1,3 @@
1
1
  module Stove
2
- VERSION = '3.2.4'
2
+ VERSION = '3.2.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stove
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.4
4
+ version: 3.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-08 00:00:00.000000000 Z
11
+ date: 2014-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-api