fig 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/fig/grammar.treetop +2 -2
  2. data/lib/fig/os.rb +3 -3
  3. metadata +4 -4
@@ -32,7 +32,7 @@ grammar Fig
32
32
  end
33
33
 
34
34
  rule retrieve
35
- "retrieve" ws var:[@a-zA-Z0-9/\._]+ "->" path:[a-zA-Z0-9/\.-\[\]]+ ws {
35
+ "retrieve" ws var:[@a-zA-Z0-9/\._]+ "->" path:[a-zA-Z0-9/\.\-\[\]]+ ws {
36
36
  def to_package_statement
37
37
  Retrieve.new(var.text_value, path.text_value)
38
38
  end
@@ -138,4 +138,4 @@ grammar Fig
138
138
  end
139
139
  end
140
140
 
141
- end
141
+ end
@@ -30,7 +30,7 @@ module Fig
30
30
  end
31
31
 
32
32
  def write(path, content)
33
- File.open(path, "w") { |f| f << content }
33
+ File.open(path, "w") { |f| f.binmode; f << content }
34
34
  end
35
35
 
36
36
  SUCCESS = 0
@@ -185,7 +185,7 @@ module Fig
185
185
  entry.pathname = fn
186
186
  ar.write_header(entry)
187
187
  if !entry.directory?
188
- ar.write_data(open(fn) {|f| f.read })
188
+ ar.write_data(open(fn) {|f| f.binmode; f.read })
189
189
  end
190
190
  end
191
191
  end
@@ -260,7 +260,7 @@ module Fig
260
260
  return false
261
261
  when NOT_FOUND
262
262
  tempfile.delete
263
- raise "File not found: #{uri}"
263
+ raise "File not found: #{path}"
264
264
  when SUCCESS
265
265
  FileUtils.mv(tempfile.path, path)
266
266
  return true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Foemmel
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-04 00:00:00 -06:00
12
+ date: 2010-05-10 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -135,6 +135,6 @@ signing_key:
135
135
  specification_version: 3
136
136
  summary: Fig is a utility for configuring environments and managing dependencies across a team of developers..
137
137
  test_files:
138
- - spec/fig_spec.rb
139
- - spec/spec_helper.rb
140
138
  - spec/win_spec.rb
139
+ - spec/spec_helper.rb
140
+ - spec/fig_spec.rb