fig 0.1.20 → 0.1.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/fig/os.rb +3 -2
  2. metadata +8 -9
data/lib/fig/os.rb CHANGED
@@ -30,7 +30,7 @@ module Fig
30
30
  end
31
31
 
32
32
  def write(path, content)
33
- File.open(path, "w") { |f| f.binmode; f << content }
33
+ File.open(path, "wb") { |f| f.binmode; f << content }
34
34
  end
35
35
 
36
36
  SUCCESS = 0
@@ -94,7 +94,8 @@ module Fig
94
94
  when "http"
95
95
  http = Net::HTTP.new(uri.host)
96
96
  puts "downloading #{url}"
97
- File.open(path, "w") do |file|
97
+ File.open(path, "wb") do |file|
98
+ file.binmode
98
99
  http.get(uri.path) do |block|
99
100
  file.write(block)
100
101
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fig
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 20
10
- version: 0.1.20
9
+ - 21
10
+ version: 0.1.21
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthew Foemmel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-16 00:00:00 -06:00
18
+ date: 2010-11-22 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -104,14 +104,13 @@ dependencies:
104
104
  requirement: &id006 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
- - - ">="
107
+ - - ~>
108
108
  - !ruby/object:Gem::Version
109
- hash: 13
109
+ hash: 9
110
110
  segments:
111
111
  - 1
112
- - 2
113
- - 9
114
- version: 1.2.9
112
+ - 3
113
+ version: "1.3"
115
114
  type: :development
116
115
  version_requirements: *id006
117
116
  - !ruby/object:Gem::Dependency