s3fsr 1.4 → 1.5

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/s3fsr.rb +6 -1
  2. metadata +33 -4
data/lib/s3fsr.rb CHANGED
@@ -256,7 +256,12 @@ class S3fsr
256
256
  get_object(path).delete
257
257
  end
258
258
  def touch(path)
259
- get_object(path).touch
259
+ o = get_object(path)
260
+ if o != nil
261
+ o.touch
262
+ else
263
+ write_to(path, "")
264
+ end
260
265
  end
261
266
  private
262
267
  def get_parent_object(path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3fsr
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.4"
4
+ version: "1.5"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Haberman
@@ -9,10 +9,39 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-12 00:00:00 -05:00
12
+ date: 2010-08-06 00:00:00 -05:00
13
13
  default_executable:
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: builder
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: xml-simple
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: mime-types
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
16
45
  description: FUSE File System for Amazon S3
17
46
  email: stephen@exigencecorp.com
18
47
  executables: