mogilefs-client 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/test/test_backend.rb CHANGED
@@ -80,6 +80,14 @@ class TestBackend < Test::Unit::TestCase
80
80
  assert MogileFS::Backend.const_defined?('PebKacError')
81
81
  end
82
82
 
83
+ def test_size_verify_error_defined
84
+ # "ErrorError" just looks dumb, but we used to get it
85
+ # since mogilefs would send us "size_verify_error" and we'd
86
+ # blindly append "Error" to the exception
87
+ assert ! MogileFS::Backend.const_defined?('SizeVerifyErrorError')
88
+ assert MogileFS::Backend.const_defined?('SizeVerifyError')
89
+ end
90
+
83
91
  def test_do_request_truncated
84
92
  socket_request = ''
85
93
  socket = Object.new
@@ -107,6 +115,7 @@ class TestBackend < Test::Unit::TestCase
107
115
  @backend.parse_response('ERR you totally suck')
108
116
  rescue MogileFS::Error => err
109
117
  assert_equal 'MogileFS::Backend::YouError', err.class.to_s
118
+ assert_equal 'totally suck', err.message
110
119
  end
111
120
  assert_equal 'MogileFS::Backend::YouError', err.class.to_s
112
121
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mogilefs-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Wong
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-02-25 00:00:00 -08:00
13
+ date: 2009-03-02 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -64,6 +64,7 @@ files:
64
64
  - lib/mogilefs/network.rb
65
65
  - lib/mogilefs/pool.rb
66
66
  - lib/mogilefs/util.rb
67
+ - setup.rb
67
68
  - test/.gitignore
68
69
  - test/aggregate.rb
69
70
  - test/setup.rb
@@ -78,7 +79,7 @@ files:
78
79
  - test/test_pool.rb
79
80
  - test/test_util.rb
80
81
  has_rdoc: true
81
- homepage: http://seattlerb.org/mogilefs-client
82
+ homepage: http://seattlerb.rubyforge.org/mogilefs-client
82
83
  post_install_message:
83
84
  rdoc_options:
84
85
  - --main