ECS 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG +4 -0
  2. data/lib/ecs.rb +1 -1
  3. data/test/unit/ecs_test.rb +4 -0
  4. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 0.1.2
2
+ * Fixed the error raised if the cache_directory is not writable
3
+
4
+
1
5
  0.1.1
2
6
  * Forces ECS API version 2007-02-22
3
7
  * Modified ECS.method_missing to understand methods like ECS.search_INDEX_by_PARAMETER
data/lib/ecs.rb CHANGED
@@ -106,7 +106,7 @@ module ECS
106
106
  def self.cache_directory=( d='' )
107
107
  directory = File.expand_path( d )
108
108
  Dir.mkdir( directory ) unless File.exist?( directory )
109
- raise( EACCESS, "#{directory} is not a suitable cache directory" ) unless File.writable?( directory ) && File.directory?( directory )
109
+ raise( "#{directory} is not a suitable cache directory" ) unless File.writable?( directory ) && File.directory?( directory )
110
110
  @@cache_directory = directory
111
111
  end
112
112
 
@@ -146,6 +146,10 @@ class ECSTest < Test::Unit::TestCase
146
146
  ECS.cache_directory = './test'
147
147
  end
148
148
  assert_equal File.join( Dir.getwd, 'test' ), ECS.cache_directory
149
+
150
+ assert_raises RuntimeError do
151
+ ECS.cache_directory = '/usr/bin'
152
+ end
149
153
  end
150
154
 
151
155
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: ECS
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.1
7
- date: 2007-03-12 00:00:00 -07:00
6
+ version: 0.1.2
7
+ date: 2007-03-13 00:00:00 -07:00
8
8
  summary: A Ruby interface to Amazon's E-Commerce Service.
9
9
  require_paths:
10
10
  - lib