chrysalis 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ == 0.1.1
2
+
3
+ * Fix corrupted HTTP download issue on Windows caused by not opening files in
4
+ binary mode.
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ require 'rake/rdoctask'
6
6
  require 'rake/testtask'
7
7
 
8
8
  PKG_NAME = 'chrysalis'
9
- PKG_VERSION = '0.1.0'
9
+ PKG_VERSION = '0.1.1'
10
10
 
11
11
  PKG_FILES = FileList[
12
12
  '[A-Z]*',
@@ -38,7 +38,9 @@ module HTTP
38
38
 
39
39
  location = URI::parse(@url)
40
40
  Net::HTTP.start(location.host, location.port) do |http|
41
- ::File.open(path, 'w') do |f|
41
+ mode = (RUBY_PLATFORM.match(/mswin/) ? 'wb' : 'w')
42
+
43
+ ::File.open(path, mode) do |f|
42
44
  http.get(location.path) do |stream|
43
45
  f.write stream
44
46
  end
@@ -1,3 +1,3 @@
1
1
  module Chrysalis
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: chrysalis
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.0
7
- date: 2007-12-09 00:00:00 -08:00
6
+ version: 0.1.1
7
+ date: 2008-05-30 00:00:00 -07:00
8
8
  summary: Simple dependency management with Ruby and Rake.
9
9
  require_paths:
10
10
  - lib
@@ -29,6 +29,7 @@ post_install_message:
29
29
  authors:
30
30
  - Jared Hanson
31
31
  files:
32
+ - CHANGELOG
32
33
  - LICENSE
33
34
  - Rakefile
34
35
  - README