cloudfiles 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/cloudfiles.gemspec +1 -1
- data/lib/cloudfiles/storage_object.rb +1 -1
- data/test/cf-testunit.rb +4 -4
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.4
|
data/cloudfiles.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{cloudfiles}
|
8
|
-
s.version = "1.4.
|
8
|
+
s.version = "1.4.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["H. Wade Minter", "Rackspace Hosting"]
|
@@ -74,7 +74,7 @@ module CloudFiles
|
|
74
74
|
end
|
75
75
|
response = self.container.connection.cfreq("GET",@storagehost,@storagepath,@storageport,@storagescheme,headers)
|
76
76
|
raise NoSuchObjectException, "Object #{@name} does not exist" unless (response.code =~ /^20/)
|
77
|
-
response.body
|
77
|
+
response.body
|
78
78
|
end
|
79
79
|
|
80
80
|
# Retrieves the data from an object and returns a stream that must be passed to a block. Throws a
|
data/test/cf-testunit.rb
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
require File.dirname(__FILE__) + '/../lib/cloudfiles'
|
6
6
|
|
7
|
-
username = "
|
8
|
-
apikey = "
|
7
|
+
username = "YOUR_USERNAME"
|
8
|
+
apikey = "YOUR_API_KEY"
|
9
9
|
|
10
10
|
def assert_test(testtext,bool)
|
11
11
|
booltext = (bool)? " PASS" : "*FAIL*" ;
|
@@ -19,7 +19,7 @@ cf = CloudFiles::Connection.new(username,apikey)
|
|
19
19
|
puts assert_test("Connecting to CloudFiles",cf.class == CloudFiles::Connection)
|
20
20
|
|
21
21
|
# Test container creation
|
22
|
-
testingcontainer = "
|
22
|
+
testingcontainer = "RubyCFTest"
|
23
23
|
cntnr = cf.create_container(testingcontainer)
|
24
24
|
puts assert_test("Creating test container",cntnr.class == CloudFiles::Container)
|
25
25
|
|
@@ -121,7 +121,7 @@ cdnurl = cntnr.cdn_url
|
|
121
121
|
puts assert_test(" Getting CDN URL",cdnurl)
|
122
122
|
|
123
123
|
# Setting CDN URL
|
124
|
-
bool = cntnr.make_public(7200)
|
124
|
+
bool = cntnr.make_public(:ttl => 7200)
|
125
125
|
puts assert_test(" Setting CDN TTL",bool)
|
126
126
|
|
127
127
|
# Make container private
|