ECS 0.1.1 → 0.1.2
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/CHANGELOG +4 -0
- data/lib/ecs.rb +1 -1
- data/test/unit/ecs_test.rb +4 -0
- metadata +2 -2
data/CHANGELOG
CHANGED
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(
|
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
|
|
data/test/unit/ecs_test.rb
CHANGED
@@ -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.
|
7
|
-
date: 2007-03-
|
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
|