openstack-swift 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/Gemfile.lock +1 -1
  2. data/doc/classes/Openstack.html +119 -0
  3. data/doc/classes/Openstack/Swift.html +137 -0
  4. data/doc/classes/Openstack/Swift/UnauthorizedError.html +111 -0
  5. data/doc/classes/Openstack/Swift/WebApi.html +185 -0
  6. data/doc/classes/Openstack/Swift/WebApi.src/M000001.html +21 -0
  7. data/doc/classes/Openstack/Swift/WebApi.src/M000002.html +24 -0
  8. data/doc/classes/Openstack/Swift/WebApi.src/M000003.html +20 -0
  9. data/doc/classes/Openstack/Swift/WebApi.src/M000004.html +20 -0
  10. data/doc/created.rid +1 -11
  11. data/doc/files/lib/openstack-swift/errors_rb.html +101 -0
  12. data/doc/files/lib/openstack-swift/version_rb.html +101 -0
  13. data/doc/files/lib/openstack-swift/web_api_rb.html +101 -0
  14. data/doc/files/lib/openstack-swift_rb.html +112 -0
  15. data/doc/files/spec/openstack-swift/web_api_spec_rb.html +131 -0
  16. data/doc/files/spec/spec_helper_rb.html +110 -0
  17. data/doc/fr_class_index.html +30 -0
  18. data/doc/fr_file_index.html +32 -0
  19. data/doc/fr_method_index.html +30 -0
  20. data/doc/index.html +20 -84
  21. data/doc/rdoc-style.css +208 -0
  22. data/lib/openstack-swift/client.rb +2 -2
  23. data/lib/openstack-swift/version.rb +1 -1
  24. data/openstack-swift-0.0.1.gem +0 -0
  25. metadata +81 -96
  26. data/doc/Gemfile.html +0 -100
  27. data/doc/Object.html +0 -177
  28. data/doc/Openstack.html +0 -162
  29. data/doc/Openstack/Swift.html +0 -182
  30. data/doc/Openstack/Swift/AuthenticationError.html +0 -151
  31. data/doc/Openstack/Swift/Client.html +0 -316
  32. data/doc/Openstack/Swift/UnauthorizedError.html +0 -147
  33. data/doc/Openstack/Swift/WebApi.html +0 -417
  34. data/doc/Rakefile.html +0 -98
  35. data/doc/images/brick.png +0 -0
  36. data/doc/images/brick_link.png +0 -0
  37. data/doc/images/bug.png +0 -0
  38. data/doc/images/bullet_black.png +0 -0
  39. data/doc/images/bullet_toggle_minus.png +0 -0
  40. data/doc/images/bullet_toggle_plus.png +0 -0
  41. data/doc/images/date.png +0 -0
  42. data/doc/images/find.png +0 -0
  43. data/doc/images/loadingAnimation.gif +0 -0
  44. data/doc/images/macFFBgHack.png +0 -0
  45. data/doc/images/package.png +0 -0
  46. data/doc/images/page_green.png +0 -0
  47. data/doc/images/page_white_text.png +0 -0
  48. data/doc/images/page_white_width.png +0 -0
  49. data/doc/images/plugin.png +0 -0
  50. data/doc/images/ruby.png +0 -0
  51. data/doc/images/tag_green.png +0 -0
  52. data/doc/images/wrench.png +0 -0
  53. data/doc/images/wrench_orange.png +0 -0
  54. data/doc/images/zoom.png +0 -0
  55. data/doc/js/darkfish.js +0 -116
  56. data/doc/js/jquery.js +0 -32
  57. data/doc/js/quicksearch.js +0 -114
  58. data/doc/js/thickbox-compressed.js +0 -10
  59. data/doc/lib/openstack-swift/client_rb.html +0 -52
  60. data/doc/lib/openstack-swift/errors_rb.html +0 -52
  61. data/doc/lib/openstack-swift/version_rb.html +0 -52
  62. data/doc/lib/openstack-swift/web_api_rb.html +0 -52
  63. data/doc/lib/openstack-swift_rb.html +0 -66
  64. data/doc/rdoc.css +0 -763
  65. data/doc/spec/openstack-swift/client_spec_rb.html +0 -54
  66. data/doc/spec/openstack-swift/web_api_spec_rb.html +0 -54
  67. data/doc/spec/spec_helper_rb.html +0 -58
@@ -59,8 +59,8 @@ module Openstack
59
59
  end
60
60
 
61
61
  # This method downloads a object from a given container
62
- def download(container, object)
63
- Api.download_object(@url, @token, container, object)
62
+ def download(container, object, options={})
63
+ Api.download_object(@url, @token, container, object, options[:file_path])
64
64
  end
65
65
 
66
66
  # Delete a given object from a given container
@@ -1,6 +1,6 @@
1
1
  # -*- coding: UTF-8 -*-
2
2
  module Openstack
3
3
  module Swift
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
6
6
  end
Binary file
metadata CHANGED
@@ -1,141 +1,126 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: openstack-swift
3
- version: !ruby/object:Gem::Version
4
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 0.2.1
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - morellon
9
9
  - pothix
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-08-25 00:00:00.000000000 -03:00
13
+
14
+ date: 2011-08-30 00:00:00 -03:00
14
15
  default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
17
18
  name: httparty
18
- requirement: &6878500 !ruby/object:Gem::Requirement
19
+ prerelease: false
20
+ requirement: &id001 !ruby/object:Gem::Requirement
19
21
  none: false
20
- requirements:
21
- - - ! '>='
22
- - !ruby/object:Gem::Version
23
- version: '0'
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: "0"
24
26
  type: :runtime
25
- prerelease: false
26
- version_requirements: *6878500
27
- - !ruby/object:Gem::Dependency
27
+ version_requirements: *id001
28
+ - !ruby/object:Gem::Dependency
28
29
  name: rspec
29
- requirement: &6874240 !ruby/object:Gem::Requirement
30
+ prerelease: false
31
+ requirement: &id002 !ruby/object:Gem::Requirement
30
32
  none: false
31
- requirements:
33
+ requirements:
32
34
  - - ~>
33
- - !ruby/object:Gem::Version
34
- version: '2.6'
35
+ - !ruby/object:Gem::Version
36
+ version: "2.6"
35
37
  type: :development
36
- prerelease: false
37
- version_requirements: *6874240
38
- - !ruby/object:Gem::Dependency
38
+ version_requirements: *id002
39
+ - !ruby/object:Gem::Dependency
39
40
  name: ruby-debug19
40
- requirement: &6858660 !ruby/object:Gem::Requirement
41
+ prerelease: false
42
+ requirement: &id003 !ruby/object:Gem::Requirement
41
43
  none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: "0"
46
48
  type: :development
47
- prerelease: false
48
- version_requirements: *6858660
49
+ version_requirements: *id003
49
50
  description: Openstack's swift client
50
- email:
51
+ email:
51
52
  - morellon@gmail.com
52
53
  - pothix@pothix.com
53
54
  executables: []
55
+
54
56
  extensions: []
57
+
55
58
  extra_rdoc_files: []
56
- files:
59
+
60
+ files:
61
+ - ./config/swift.yml
62
+ - ./doc/classes/Openstack/Swift/UnauthorizedError.html
63
+ - ./doc/classes/Openstack/Swift/WebApi.html
64
+ - ./doc/classes/Openstack/Swift/WebApi.src/M000001.html
65
+ - ./doc/classes/Openstack/Swift/WebApi.src/M000002.html
66
+ - ./doc/classes/Openstack/Swift/WebApi.src/M000003.html
67
+ - ./doc/classes/Openstack/Swift/WebApi.src/M000004.html
68
+ - ./doc/classes/Openstack/Swift.html
69
+ - ./doc/classes/Openstack.html
70
+ - ./doc/created.rid
71
+ - ./doc/files/lib/openstack-swift/errors_rb.html
72
+ - ./doc/files/lib/openstack-swift/version_rb.html
73
+ - ./doc/files/lib/openstack-swift/web_api_rb.html
74
+ - ./doc/files/lib/openstack-swift_rb.html
75
+ - ./doc/files/spec/openstack-swift/web_api_spec_rb.html
76
+ - ./doc/files/spec/spec_helper_rb.html
77
+ - ./doc/fr_class_index.html
78
+ - ./doc/fr_file_index.html
79
+ - ./doc/fr_method_index.html
80
+ - ./doc/index.html
81
+ - ./doc/rdoc-style.css
82
+ - ./Gemfile
57
83
  - ./Gemfile.lock
84
+ - ./lib/openstack-swift/api.rb
85
+ - ./lib/openstack-swift/client.rb
86
+ - ./lib/openstack-swift/errors.rb
87
+ - ./lib/openstack-swift/swift_config.rb
88
+ - ./lib/openstack-swift/version.rb
89
+ - ./lib/openstack-swift.rb
90
+ - ./openstack-swift-0.0.1.gem
58
91
  - ./openstack-swift.gemspec
59
- - ./doc/Gemfile.html
60
- - ./doc/js/thickbox-compressed.js
61
- - ./doc/js/darkfish.js
62
- - ./doc/js/quicksearch.js
63
- - ./doc/js/jquery.js
64
- - ./doc/rdoc.css
65
- - ./doc/Object.html
66
- - ./doc/index.html
67
- - ./doc/images/macFFBgHack.png
68
- - ./doc/images/page_green.png
69
- - ./doc/images/bullet_toggle_minus.png
70
- - ./doc/images/ruby.png
71
- - ./doc/images/bullet_toggle_plus.png
72
- - ./doc/images/page_white_text.png
73
- - ./doc/images/wrench_orange.png
74
- - ./doc/images/brick_link.png
75
- - ./doc/images/loadingAnimation.gif
76
- - ./doc/images/bullet_black.png
77
- - ./doc/images/package.png
78
- - ./doc/images/tag_green.png
79
- - ./doc/images/plugin.png
80
- - ./doc/images/wrench.png
81
- - ./doc/images/bug.png
82
- - ./doc/images/zoom.png
83
- - ./doc/images/find.png
84
- - ./doc/images/brick.png
85
- - ./doc/images/page_white_width.png
86
- - ./doc/images/date.png
87
- - ./doc/created.rid
88
- - ./doc/spec/openstack-swift/client_spec_rb.html
89
- - ./doc/spec/openstack-swift/web_api_spec_rb.html
90
- - ./doc/spec/spec_helper_rb.html
91
- - ./doc/Openstack.html
92
- - ./doc/Openstack/Swift/WebApi.html
93
- - ./doc/Openstack/Swift/Client.html
94
- - ./doc/Openstack/Swift/UnauthorizedError.html
95
- - ./doc/Openstack/Swift/AuthenticationError.html
96
- - ./doc/Openstack/Swift.html
97
- - ./doc/Rakefile.html
98
- - ./doc/lib/openstack-swift/client_rb.html
99
- - ./doc/lib/openstack-swift/version_rb.html
100
- - ./doc/lib/openstack-swift/web_api_rb.html
101
- - ./doc/lib/openstack-swift/errors_rb.html
102
- - ./doc/lib/openstack-swift_rb.html
103
- - ./config/swift.yml
92
+ - ./Rakefile
104
93
  - ./README.rdoc
105
- - ./spec/spec_helper.rb
106
94
  - ./spec/openstack-swift/api_spec.rb
107
95
  - ./spec/openstack-swift/client_spec.rb
108
- - ./Gemfile
109
- - ./Rakefile
110
- - ./lib/openstack-swift.rb
111
- - ./lib/openstack-swift/version.rb
112
- - ./lib/openstack-swift/errors.rb
113
- - ./lib/openstack-swift/swift_config.rb
114
- - ./lib/openstack-swift/api.rb
115
- - ./lib/openstack-swift/client.rb
96
+ - ./spec/spec_helper.rb
116
97
  has_rdoc: true
117
98
  homepage: http://github.com/morellon/openstack-swift
118
99
  licenses: []
100
+
119
101
  post_install_message:
120
102
  rdoc_options: []
121
- require_paths:
103
+
104
+ require_paths:
122
105
  - lib
123
- required_ruby_version: !ruby/object:Gem::Requirement
106
+ required_ruby_version: !ruby/object:Gem::Requirement
124
107
  none: false
125
- requirements:
126
- - - ! '>='
127
- - !ruby/object:Gem::Version
128
- version: '0'
129
- required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: "0"
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
113
  none: false
131
- requirements:
132
- - - ! '>='
133
- - !ruby/object:Gem::Version
134
- version: '0'
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: "0"
135
118
  requirements: []
119
+
136
120
  rubyforge_project: openstack-swift
137
121
  rubygems_version: 1.6.2
138
122
  signing_key:
139
123
  specification_version: 3
140
124
  summary: Openstack's swift client
141
125
  test_files: []
126
+
@@ -1,100 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
-
9
- <title>File: Gemfile [RDoc Documentation]</title>
10
-
11
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
12
-
13
- <script src="./js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="./js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="./js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="./js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <body class="file">
24
- <div id="metadata">
25
- <div id="home-metadata">
26
- <div id="home-section" class="section">
27
- <h3 class="section-header">
28
- <a href="./index.html">Home</a>
29
- <a href="./index.html#classes">Classes</a>
30
- <a href="./index.html#methods">Methods</a>
31
- </h3>
32
- </div>
33
- </div>
34
-
35
- <div id="project-metadata">
36
-
37
-
38
- <div id="fileindex-section" class="section project-section">
39
- <h3 class="section-header">Files</h3>
40
- <ul>
41
-
42
- <li class="file"><a href="./Gemfile.html">Gemfile</a></li>
43
-
44
- <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
45
-
46
- </ul>
47
- </div>
48
-
49
-
50
- <div id="classindex-section" class="section project-section">
51
- <h3 class="section-header">Class Index
52
- <span class="search-toggle"><img src="./images/find.png"
53
- height="16" width="16" alt="[+]"
54
- title="show/hide quicksearch" /></span></h3>
55
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
56
- <fieldset>
57
- <legend>Quicksearch</legend>
58
- <input type="text" name="quicksearch" value=""
59
- class="quicksearch-field" />
60
- </fieldset>
61
- </form>
62
-
63
- <ul class="link-list">
64
-
65
- <li><a href="./Openstack.html">Openstack</a></li>
66
-
67
- <li><a href="./Openstack/Swift.html">Openstack::Swift</a></li>
68
-
69
- <li><a href="./Openstack/Swift/AuthenticationError.html">Openstack::Swift::AuthenticationError</a></li>
70
-
71
- <li><a href="./Openstack/Swift/Client.html">Openstack::Swift::Client</a></li>
72
-
73
- <li><a href="./Openstack/Swift/WebApi.html">Openstack::Swift::WebApi</a></li>
74
-
75
- <li><a href="./Object.html">Object</a></li>
76
-
77
- </ul>
78
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
79
- </div>
80
-
81
-
82
- </div>
83
- </div>
84
-
85
- <div id="documentation">
86
-
87
- <p>source “<a href="http://gems.locaweb.com.br">gems.locaweb.com.br</a>”</p>
88
-
89
- <p># Specify your gem’s dependencies in openstack-swift.gemspec gemspec</p>
90
-
91
- </div>
92
-
93
- <div id="validator-badges">
94
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
95
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
96
- Rdoc Generator</a> 2</small>.</p>
97
- </div>
98
- </body>
99
- </html>
100
-
@@ -1,177 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
-
8
- <title>Class: Object</title>
9
-
10
- <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
11
-
12
- <script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
- <script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
-
17
- </head>
18
- <body id="top" class="class">
19
-
20
- <div id="metadata">
21
- <div id="home-metadata">
22
- <div id="home-section" class="section">
23
- <h3 class="section-header">
24
- <a href="./index.html">Home</a>
25
- <a href="./index.html#classes">Classes</a>
26
- <a href="./index.html#methods">Methods</a>
27
- </h3>
28
- </div>
29
- </div>
30
-
31
- <div id="file-metadata">
32
- <div id="file-list-section" class="section">
33
- <h3 class="section-header">In Files</h3>
34
- <div class="section-body">
35
- <ul>
36
-
37
- <li><a href="./spec/openstack-swift/web_api_spec_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="spec/openstack-swift/web_api_spec.rb">spec/openstack-swift/web_api_spec.rb</a></li>
39
-
40
- <li><a href="./spec/openstack-swift/client_spec_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
41
- class="thickbox" title="spec/openstack-swift/client_spec.rb">spec/openstack-swift/client_spec.rb</a></li>
42
-
43
- </ul>
44
- </div>
45
- </div>
46
-
47
-
48
- </div>
49
-
50
- <div id="class-metadata">
51
-
52
- <!-- Parent Class -->
53
- <div id="parent-class-section" class="section">
54
- <h3 class="section-header">Parent</h3>
55
-
56
- <p class="link">BasicObject</p>
57
-
58
- </div>
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
- </div>
69
-
70
- <div id="project-metadata">
71
-
72
-
73
- <div id="fileindex-section" class="section project-section">
74
- <h3 class="section-header">Files</h3>
75
- <ul>
76
-
77
- <li class="file"><a href="./Gemfile.html">Gemfile</a></li>
78
-
79
- <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
80
-
81
- </ul>
82
- </div>
83
-
84
-
85
- <div id="classindex-section" class="section project-section">
86
- <h3 class="section-header">Class/Module Index
87
- <span class="search-toggle"><img src="./images/find.png"
88
- height="16" width="16" alt="[+]"
89
- title="show/hide quicksearch" /></span></h3>
90
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
91
- <fieldset>
92
- <legend>Quicksearch</legend>
93
- <input type="text" name="quicksearch" value=""
94
- class="quicksearch-field" />
95
- </fieldset>
96
- </form>
97
-
98
- <ul class="link-list">
99
-
100
- <li><a href="./Openstack.html">Openstack</a></li>
101
-
102
- <li><a href="./Openstack/Swift.html">Openstack::Swift</a></li>
103
-
104
- <li><a href="./Openstack/Swift/AuthenticationError.html">Openstack::Swift::AuthenticationError</a></li>
105
-
106
- <li><a href="./Openstack/Swift/Client.html">Openstack::Swift::Client</a></li>
107
-
108
- <li><a href="./Openstack/Swift/WebApi.html">Openstack::Swift::WebApi</a></li>
109
-
110
- <li><a href="./Object.html">Object</a></li>
111
-
112
- </ul>
113
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
114
- </div>
115
-
116
-
117
- </div>
118
- </div>
119
-
120
- <div id="documentation">
121
- <h1 class="class">Object</h1>
122
-
123
- <div id="description" class="description">
124
-
125
- </div><!-- description -->
126
-
127
-
128
-
129
-
130
- <div id="5Buntitled-5D" class="documentation-section">
131
-
132
-
133
-
134
-
135
-
136
- <!-- Constants -->
137
- <div id="constants-list" class="section">
138
- <h3 class="section-header">Constants</h3>
139
- <dl>
140
-
141
- <dt><a name="PASS">PASS</a></dt>
142
-
143
- <dd class="description"></dd>
144
-
145
-
146
- <dt><a name="URL">URL</a></dt>
147
-
148
- <dd class="description"></dd>
149
-
150
-
151
- <dt><a name="USER">USER</a></dt>
152
-
153
- <dd class="description"></dd>
154
-
155
-
156
- </dl>
157
- </div>
158
-
159
-
160
-
161
-
162
- <!-- Methods -->
163
-
164
- </div><!-- 5Buntitled-5D -->
165
-
166
-
167
- </div><!-- documentation -->
168
-
169
- <div id="validator-badges">
170
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
171
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
172
- Rdoc Generator</a> 2</small>.</p>
173
- </div>
174
-
175
- </body>
176
- </html>
177
-