dshelf 0.2.11 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/dshelf.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module DistributedShelf
2
- VERSION = '0.2.11'
2
+ VERSION = '0.2.12'
3
3
 
4
4
  @@config = {}
5
5
 
data/lib/dshelf/dfile.rb CHANGED
@@ -92,7 +92,7 @@ class DistributedFile
92
92
  when 402
93
93
  raise Errno::ENOSPC
94
94
  when 404
95
- raise Errno::ENOENT
95
+ raise Errno::ENOENT, absolutepath
96
96
  end
97
97
  end
98
98
  end
data/lib/dshelf/dir.rb CHANGED
@@ -33,7 +33,7 @@ class Dir
33
33
  when 204
34
34
  0
35
35
  when 404
36
- raise Errno::ENOENT
36
+ raise Errno::ENOENT, dir
37
37
  end
38
38
  end
39
39
  end
@@ -46,7 +46,7 @@ class Dir
46
46
  when 200
47
47
  JSON.parse response
48
48
  when 404
49
- raise Errno::ENOENT
49
+ raise Errno::ENOENT, dir
50
50
  end
51
51
  end
52
52
  end
@@ -59,7 +59,7 @@ class Dir
59
59
  when 402
60
60
  raise Errno::ENOSPC
61
61
  when 409
62
- raise Errno::EEXIST
62
+ raise Errno::EEXIST, dir
63
63
  end
64
64
  end
65
65
  end
data/lib/dshelf/file.rb CHANGED
@@ -36,7 +36,7 @@ class File < IO
36
36
  when 402
37
37
  raise Errno::ENOSPC
38
38
  when 404
39
- raise Errno::ENOENT
39
+ raise Errno::ENOENT, args.join(', ')
40
40
  end
41
41
  end
42
42
  end
@@ -52,7 +52,7 @@ class File < IO
52
52
  when 402
53
53
  raise Errno::ENOSPC
54
54
  when 404
55
- raise Errno::ENOENT
55
+ raise Errno::ENOENT, args.join(', ')
56
56
  end
57
57
  end
58
58
  end
@@ -67,7 +67,7 @@ class File < IO
67
67
  when 402
68
68
  raise Errno::ENOSPC
69
69
  when 404
70
- raise Errno::ENOENT
70
+ raise Errno::ENOENT, absolutepath
71
71
  end
72
72
  end
73
73
  end
data/lib/dshelf/stat.rb CHANGED
@@ -14,7 +14,7 @@ class DistributedStat
14
14
  when 200
15
15
  parse_stat response
16
16
  when 404
17
- raise Errno::ENOENT
17
+ raise Errno::ENOENT, absolutepath
18
18
  end
19
19
  end
20
20
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 11
9
- version: 0.2.11
8
+ - 12
9
+ version: 0.2.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Phil Pirozhkov
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-10 00:00:00 +03:00
17
+ date: 2010-11-12 00:00:00 +03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency