openstack-swift 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/Gemfile.lock +2 -2
  2. data/README.rdoc +47 -0
  3. data/doc/Gemfile.html +100 -0
  4. data/doc/Object.html +177 -0
  5. data/doc/Openstack.html +162 -0
  6. data/doc/Openstack/Swift.html +182 -0
  7. data/doc/Openstack/Swift/AuthenticationError.html +151 -0
  8. data/doc/Openstack/Swift/Client.html +316 -0
  9. data/doc/Openstack/Swift/UnauthorizedError.html +147 -0
  10. data/doc/Openstack/Swift/WebApi.html +417 -0
  11. data/doc/Rakefile.html +98 -0
  12. data/doc/created.rid +11 -0
  13. data/doc/images/brick.png +0 -0
  14. data/doc/images/brick_link.png +0 -0
  15. data/doc/images/bug.png +0 -0
  16. data/doc/images/bullet_black.png +0 -0
  17. data/doc/images/bullet_toggle_minus.png +0 -0
  18. data/doc/images/bullet_toggle_plus.png +0 -0
  19. data/doc/images/date.png +0 -0
  20. data/doc/images/find.png +0 -0
  21. data/doc/images/loadingAnimation.gif +0 -0
  22. data/doc/images/macFFBgHack.png +0 -0
  23. data/doc/images/package.png +0 -0
  24. data/doc/images/page_green.png +0 -0
  25. data/doc/images/page_white_text.png +0 -0
  26. data/doc/images/page_white_width.png +0 -0
  27. data/doc/images/plugin.png +0 -0
  28. data/doc/images/ruby.png +0 -0
  29. data/doc/images/tag_green.png +0 -0
  30. data/doc/images/wrench.png +0 -0
  31. data/doc/images/wrench_orange.png +0 -0
  32. data/doc/images/zoom.png +0 -0
  33. data/doc/index.html +88 -0
  34. data/doc/js/darkfish.js +116 -0
  35. data/doc/js/jquery.js +32 -0
  36. data/doc/js/quicksearch.js +114 -0
  37. data/doc/js/thickbox-compressed.js +10 -0
  38. data/doc/lib/openstack-swift/client_rb.html +52 -0
  39. data/doc/lib/openstack-swift/errors_rb.html +52 -0
  40. data/doc/lib/openstack-swift/version_rb.html +52 -0
  41. data/doc/lib/openstack-swift/web_api_rb.html +52 -0
  42. data/doc/lib/openstack-swift_rb.html +66 -0
  43. data/doc/rdoc.css +763 -0
  44. data/doc/spec/openstack-swift/client_spec_rb.html +54 -0
  45. data/doc/spec/openstack-swift/web_api_spec_rb.html +54 -0
  46. data/doc/spec/spec_helper_rb.html +58 -0
  47. data/lib/openstack-swift/api.rb +77 -1
  48. data/lib/openstack-swift/client.rb +12 -57
  49. data/lib/openstack-swift/errors.rb +1 -0
  50. data/lib/openstack-swift/version.rb +1 -1
  51. data/spec/openstack-swift/{web_api_spec.rb → api_spec.rb} +23 -2
  52. data/spec/openstack-swift/client_spec.rb +19 -4
  53. metadata +60 -16
  54. data/openstack-swift-0.1.0.gem +0 -0
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openstack-swift (0.1.0)
4
+ openstack-swift (0.2.0)
5
+ httparty
5
6
 
6
7
  GEM
7
8
  remote: http://gems.locaweb.com.br/
@@ -37,7 +38,6 @@ PLATFORMS
37
38
  ruby
38
39
 
39
40
  DEPENDENCIES
40
- httparty
41
41
  openstack-swift!
42
42
  rspec (~> 2.6)
43
43
  ruby-debug19
@@ -0,0 +1,47 @@
1
+ = Openstack::Swift
2
+
3
+ Communicate with Swift
4
+
5
+ == Installation
6
+
7
+ gem install openstack-swift
8
+
9
+ == Usage
10
+
11
+ === Simple upload
12
+
13
+ swift = Openstack::Swift::Client.new(
14
+ "https://myserver.com/swift",
15
+ "system:root",
16
+ "testpass"
17
+ )
18
+
19
+ swift.upload("choosed_container", "/path/of/your/file")
20
+
21
+ == Maintainers
22
+
23
+ * PotHix (Willian Molinari) (http://pothix.com)
24
+ * Morellon (Thiago Morello) (http://morellon.com.br)
25
+
26
+ == License
27
+
28
+ (The MIT License)
29
+
30
+ Permission is hereby granted, free of charge, to any person obtaining
31
+ a copy of this software and associated documentation files (the
32
+ 'Software'), to deal in the Software without restriction, including
33
+ without limitation the rights to use, copy, modify, merge, publish,
34
+ distribute, sublicense, and/or sell copies of the Software, and to
35
+ permit persons to whom the Software is furnished to do so, subject to
36
+ the following conditions:
37
+
38
+ The above copyright notice and this permission notice shall be
39
+ included in all copies or substantial portions of the Software.
40
+
41
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
42
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
43
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
44
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
45
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
46
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
47
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,100 @@
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
+
@@ -0,0 +1,177 @@
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
+
@@ -0,0 +1,162 @@
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>Module: Openstack</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="module">
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="./lib/openstack-swift_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/openstack-swift.rb">lib/openstack-swift.rb</a></li>
39
+
40
+ <li><a href="./lib/openstack-swift/version_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
41
+ class="thickbox" title="lib/openstack-swift/version.rb">lib/openstack-swift/version.rb</a></li>
42
+
43
+ <li><a href="./lib/openstack-swift/web_api_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
44
+ class="thickbox" title="lib/openstack-swift/web_api.rb">lib/openstack-swift/web_api.rb</a></li>
45
+
46
+ <li><a href="./lib/openstack-swift/client_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
47
+ class="thickbox" title="lib/openstack-swift/client.rb">lib/openstack-swift/client.rb</a></li>
48
+
49
+ </ul>
50
+ </div>
51
+ </div>
52
+
53
+
54
+ </div>
55
+
56
+ <div id="class-metadata">
57
+
58
+
59
+
60
+
61
+
62
+ <!-- Namespace Contents -->
63
+ <div id="namespace-list-section" class="section">
64
+ <h3 class="section-header">Namespace</h3>
65
+ <ul class="link-list">
66
+
67
+ <li><span class="type">MODULE</span> <a href="Openstack/Swift.html">Openstack::Swift</a></li>
68
+
69
+ </ul>
70
+ </div>
71
+
72
+
73
+
74
+
75
+
76
+ </div>
77
+
78
+ <div id="project-metadata">
79
+
80
+
81
+ <div id="fileindex-section" class="section project-section">
82
+ <h3 class="section-header">Files</h3>
83
+ <ul>
84
+
85
+ <li class="file"><a href="./Gemfile.html">Gemfile</a></li>
86
+
87
+ <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
88
+
89
+ </ul>
90
+ </div>
91
+
92
+
93
+ <div id="classindex-section" class="section project-section">
94
+ <h3 class="section-header">Class/Module Index
95
+ <span class="search-toggle"><img src="./images/find.png"
96
+ height="16" width="16" alt="[+]"
97
+ title="show/hide quicksearch" /></span></h3>
98
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
99
+ <fieldset>
100
+ <legend>Quicksearch</legend>
101
+ <input type="text" name="quicksearch" value=""
102
+ class="quicksearch-field" />
103
+ </fieldset>
104
+ </form>
105
+
106
+ <ul class="link-list">
107
+
108
+ <li><a href="./Openstack.html">Openstack</a></li>
109
+
110
+ <li><a href="./Openstack/Swift.html">Openstack::Swift</a></li>
111
+
112
+ <li><a href="./Openstack/Swift/AuthenticationError.html">Openstack::Swift::AuthenticationError</a></li>
113
+
114
+ <li><a href="./Openstack/Swift/Client.html">Openstack::Swift::Client</a></li>
115
+
116
+ <li><a href="./Openstack/Swift/WebApi.html">Openstack::Swift::WebApi</a></li>
117
+
118
+ <li><a href="./Object.html">Object</a></li>
119
+
120
+ </ul>
121
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
122
+ </div>
123
+
124
+
125
+ </div>
126
+ </div>
127
+
128
+ <div id="documentation">
129
+ <h1 class="module">Openstack</h1>
130
+
131
+ <div id="description" class="description">
132
+
133
+ </div><!-- description -->
134
+
135
+
136
+
137
+
138
+ <div id="5Buntitled-5D" class="documentation-section">
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+ <!-- Methods -->
148
+
149
+ </div><!-- 5Buntitled-5D -->
150
+
151
+
152
+ </div><!-- documentation -->
153
+
154
+ <div id="validator-badges">
155
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
156
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
157
+ Rdoc Generator</a> 2</small>.</p>
158
+ </div>
159
+
160
+ </body>
161
+ </html>
162
+