cloudfiles 1.4.3 → 1.4.4

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.3
1
+ 1.4.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cloudfiles}
8
- s.version = "1.4.3"
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.chomp
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
@@ -4,8 +4,8 @@
4
4
 
5
5
  require File.dirname(__FILE__) + '/../lib/cloudfiles'
6
6
 
7
- username = "XXXXX"
8
- apikey = "XXXXX"
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 = "CloudFiles Ruby API Testing Container"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudfiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - H. Wade Minter