barge 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -21
- data/Gemfile +25 -0
- data/Gemfile.lock +346 -0
- data/Guardfile +8 -0
- data/README.md +57 -19
- data/Rakefile +19 -0
- data/barge.gemspec +20 -0
- data/lib/barge/client.rb +5 -1
- data/lib/barge/resource.rb +1 -0
- data/lib/barge/resource/floating_ip.rb +38 -0
- data/lib/barge/version.rb +1 -1
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c103dc607ad334f63dc1af53b2d5bf55ebdcb0b
|
4
|
+
data.tar.gz: 8f318775396465c19f5af5f26300b71ca3b5aeaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a0005568d3852c5ab6af90957857381e002fe34624eb9df2851802e74d4c839152645ba62a59cb8595933eff33f57c06fe28351733e4266ef297415f5f10345
|
7
|
+
data.tar.gz: 7a36b3bb8169c02de705cf81d0e9b76e99154dfa396da9b22accc1e4d292dc38e47fc305dba49070d9fe334dc507cd9d47ee0d15413b94e10ee63db93be799a8
|
data/CHANGELOG.md
CHANGED
@@ -1,62 +1,68 @@
|
|
1
|
-
|
1
|
+
2015-11-22 - 0.12.0
|
2
2
|
-------------------
|
3
3
|
|
4
|
-
* [
|
5
|
-
* [
|
6
|
-
|
7
|
-
|
4
|
+
* [Add floating_ip resource](https://github.com/blom/barge/commit/fd5f960b17ae1509ba697616c6a7c9d2e544807a)
|
5
|
+
* [Make #faraday public](https://github.com/blom/barge/commit/660dd56ea4ad71d7d62a86ee442d87c77a3f712a)
|
6
|
+
|
7
|
+
2014-11-23 - 0.11.0
|
8
|
+
-------------------
|
9
|
+
|
10
|
+
* [Fix character set issue](https://github.com/blom/barge/commit/07144026bbe3702791dffcbad2675e84fc0b358f)
|
11
|
+
* [Drop support for Ruby 1.9.2](https://github.com/blom/barge/commit/5ce2a854f023f72268677129d51615bb28874dd7)
|
12
|
+
* [Add request_options to Barge::Client](https://github.com/blom/barge/commit/a56396bbf9fd177a7159c3b9d822be685f11295a)
|
13
|
+
* [Add account resource](https://github.com/blom/barge/commit/d1eee34ff52e141539389bac5f0d1914c3cb3c7e)
|
8
14
|
|
9
15
|
2014-08-03 - 0.10.0
|
10
16
|
-------------------
|
11
17
|
|
12
|
-
* [Use option hashes everywhere for attributes](https://github.com/
|
18
|
+
* [Use option hashes everywhere for attributes](https://github.com/blom/barge/commit/731d7b9af6a4a69d29531166b2e3c793a14b2d5d)
|
13
19
|
|
14
20
|
2014-07-27 - 0.9.0
|
15
21
|
------------------
|
16
22
|
|
17
|
-
* [Add Droplet#snapshot](https://github.com/
|
23
|
+
* [Add Droplet#snapshot](https://github.com/blom/barge/commit/7651ea6e142f2f096835a097428576084b773b24)
|
18
24
|
|
19
25
|
2014-07-18 - 0.8.0
|
20
26
|
------------------
|
21
27
|
|
22
|
-
* [Add basic pagination support](https://github.com/
|
28
|
+
* [Add basic pagination support](https://github.com/blom/barge/compare/8dd84d2...7dc6208)
|
23
29
|
|
24
30
|
2014-07-03 - 0.7.0
|
25
31
|
------------------
|
26
32
|
|
27
|
-
* [Add Droplet#enable_private_networking](https://github.com/
|
28
|
-
* [Add Droplet#disable_backups](https://github.com/
|
29
|
-
* [Add Droplet#enable_ipv6](https://github.com/
|
30
|
-
* [Add Droplet#change_kernel](https://github.com/
|
33
|
+
* [Add Droplet#enable_private_networking](https://github.com/blom/barge/commit/b6ebb9364abf0303f4f20c2e8560663f1e2bc97b)
|
34
|
+
* [Add Droplet#disable_backups](https://github.com/blom/barge/commit/aebb0fe8d8a656475d59eb836b8d3dff8b12f99b)
|
35
|
+
* [Add Droplet#enable_ipv6](https://github.com/blom/barge/commit/c6cff2754f0aa48d3c735b2f9411b91a8d4ae810)
|
36
|
+
* [Add Droplet#change_kernel](https://github.com/blom/barge/commit/4f84d00a7f71c00eebb51239131efc796d2ab8a2)
|
31
37
|
|
32
38
|
2014-07-01 - 0.6.0
|
33
39
|
------------------
|
34
40
|
|
35
|
-
* [Add Key#update](https://github.com/
|
41
|
+
* [Add Key#update](https://github.com/blom/barge/commit/bccd671e68ce42194577350fb6addf78ca9a46b2)
|
36
42
|
|
37
43
|
2014-06-29 - 0.5.0
|
38
44
|
------------------
|
39
45
|
|
40
|
-
* [Increase per_page](https://github.com/
|
41
|
-
* [Add Droplet#kernels](https://github.com/
|
42
|
-
* [Add Droplet#actions](https://github.com/
|
46
|
+
* [Increase per_page](https://github.com/blom/barge/commit/fb5ef4d34aba9c2a6513411e8bbf85e80009f9c7)
|
47
|
+
* [Add Droplet#kernels](https://github.com/blom/barge/commit/6f0543af777707ff59c8fbcc8c421079cb4bd8d1)
|
48
|
+
* [Add Droplet#actions](https://github.com/blom/barge/commit/6e3a2f8da909c703095dce71d9d4fee495c40315)
|
43
49
|
|
44
50
|
2014-06-28 - 0.4.0
|
45
51
|
------------------
|
46
52
|
|
47
|
-
* [Add action resource](https://github.com/
|
53
|
+
* [Add action resource](https://github.com/blom/barge/commit/5fac0be55860d96831d0c0aecd5d4de9f04217dd)
|
48
54
|
|
49
55
|
2014-06-10 - 0.3.0
|
50
56
|
------------------
|
51
57
|
|
52
|
-
* [Add Droplet#snapshots](https://github.com/
|
53
|
-
* [Add Droplet#backups](https://github.com/
|
58
|
+
* [Add Droplet#snapshots](https://github.com/blom/barge/commit/2f06fd03617f750388e6457d82abbb789ba397b0)
|
59
|
+
* [Add Droplet#backups](https://github.com/blom/barge/commit/7962e6d365d0ed699b037b50c0fe8ce461944630)
|
54
60
|
|
55
61
|
2014-06-08 - 0.2.0
|
56
62
|
------------------
|
57
63
|
|
58
|
-
* [Add Image#show_action](https://github.com/
|
59
|
-
* [Add Droplet#show_action](https://github.com/
|
64
|
+
* [Add Image#show_action](https://github.com/blom/barge/commit/7fb754f02d4f997a2f811ce62876bcb1f3292e9a)
|
65
|
+
* [Add Droplet#show_action](https://github.com/blom/barge/commit/ce1db15a98bc72c844c39fbbf8f1f5c753e340af)
|
60
66
|
|
61
67
|
2014-06-07 - 0.1.0
|
62
68
|
------------------
|
data/Gemfile
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
gemspec
|
3
|
+
|
4
|
+
gem 'coveralls', require: false
|
5
|
+
gem 'guard'
|
6
|
+
gem 'guard-rspec'
|
7
|
+
gem 'rake'
|
8
|
+
gem 'rspec'
|
9
|
+
gem 'rubocop', '~> 0.34.0'
|
10
|
+
gem 'simplecov'
|
11
|
+
gem 'webmock', require: false
|
12
|
+
gem 'yard'
|
13
|
+
|
14
|
+
platforms :jruby do
|
15
|
+
gem 'kramdown'
|
16
|
+
end
|
17
|
+
|
18
|
+
platforms :rbx do
|
19
|
+
gem 'rubysl'
|
20
|
+
end
|
21
|
+
|
22
|
+
platforms :ruby do
|
23
|
+
gem 'github-markup'
|
24
|
+
gem 'redcarpet'
|
25
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,346 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
barge (0.12.0)
|
5
|
+
faraday (~> 0.9)
|
6
|
+
faraday_middleware (~> 0.10)
|
7
|
+
hashie (~> 3.4)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
addressable (2.3.8)
|
13
|
+
ast (2.1.0)
|
14
|
+
astrolabe (1.3.1)
|
15
|
+
parser (~> 2.2)
|
16
|
+
coderay (1.1.0)
|
17
|
+
coveralls (0.8.9)
|
18
|
+
json (~> 1.8)
|
19
|
+
rest-client (>= 1.6.8, < 2)
|
20
|
+
simplecov (~> 0.10.0)
|
21
|
+
term-ansicolor (~> 1.3)
|
22
|
+
thor (~> 0.19.1)
|
23
|
+
tins (~> 1.6.0)
|
24
|
+
crack (0.4.2)
|
25
|
+
safe_yaml (~> 1.0.0)
|
26
|
+
diff-lcs (1.2.5)
|
27
|
+
docile (1.1.5)
|
28
|
+
domain_name (0.5.25)
|
29
|
+
unf (>= 0.0.5, < 1.0.0)
|
30
|
+
faraday (0.9.2)
|
31
|
+
multipart-post (>= 1.2, < 3)
|
32
|
+
faraday_middleware (0.10.0)
|
33
|
+
faraday (>= 0.7.4, < 0.10)
|
34
|
+
ffi (1.9.10)
|
35
|
+
ffi2-generators (0.1.1)
|
36
|
+
formatador (0.2.5)
|
37
|
+
github-markup (1.4.0)
|
38
|
+
guard (2.13.0)
|
39
|
+
formatador (>= 0.2.4)
|
40
|
+
listen (>= 2.7, <= 4.0)
|
41
|
+
lumberjack (~> 1.0)
|
42
|
+
nenv (~> 0.1)
|
43
|
+
notiffany (~> 0.0)
|
44
|
+
pry (>= 0.9.12)
|
45
|
+
shellany (~> 0.0)
|
46
|
+
thor (>= 0.18.1)
|
47
|
+
guard-compat (1.2.1)
|
48
|
+
guard-rspec (4.6.4)
|
49
|
+
guard (~> 2.1)
|
50
|
+
guard-compat (~> 1.1)
|
51
|
+
rspec (>= 2.99.0, < 4.0)
|
52
|
+
hashdiff (0.2.3)
|
53
|
+
hashie (3.4.3)
|
54
|
+
http-cookie (1.0.2)
|
55
|
+
domain_name (~> 0.5)
|
56
|
+
json (1.8.3)
|
57
|
+
listen (3.0.5)
|
58
|
+
rb-fsevent (>= 0.9.3)
|
59
|
+
rb-inotify (>= 0.9)
|
60
|
+
lumberjack (1.0.9)
|
61
|
+
method_source (0.8.2)
|
62
|
+
mime-types (2.6.2)
|
63
|
+
multipart-post (2.0.0)
|
64
|
+
nenv (0.2.0)
|
65
|
+
netrc (0.11.0)
|
66
|
+
notiffany (0.0.8)
|
67
|
+
nenv (~> 0.1)
|
68
|
+
shellany (~> 0.0)
|
69
|
+
parser (2.2.3.0)
|
70
|
+
ast (>= 1.1, < 3.0)
|
71
|
+
powerpack (0.1.1)
|
72
|
+
pry (0.10.3)
|
73
|
+
coderay (~> 1.1.0)
|
74
|
+
method_source (~> 0.8.1)
|
75
|
+
slop (~> 3.4)
|
76
|
+
rainbow (2.0.0)
|
77
|
+
rake (10.4.2)
|
78
|
+
rb-fsevent (0.9.6)
|
79
|
+
rb-inotify (0.9.5)
|
80
|
+
ffi (>= 0.5.0)
|
81
|
+
redcarpet (3.3.3)
|
82
|
+
rest-client (1.8.0)
|
83
|
+
http-cookie (>= 1.0.2, < 2.0)
|
84
|
+
mime-types (>= 1.16, < 3.0)
|
85
|
+
netrc (~> 0.7)
|
86
|
+
rspec (3.4.0)
|
87
|
+
rspec-core (~> 3.4.0)
|
88
|
+
rspec-expectations (~> 3.4.0)
|
89
|
+
rspec-mocks (~> 3.4.0)
|
90
|
+
rspec-core (3.4.1)
|
91
|
+
rspec-support (~> 3.4.0)
|
92
|
+
rspec-expectations (3.4.0)
|
93
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
94
|
+
rspec-support (~> 3.4.0)
|
95
|
+
rspec-mocks (3.4.0)
|
96
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
97
|
+
rspec-support (~> 3.4.0)
|
98
|
+
rspec-support (3.4.0)
|
99
|
+
rubocop (0.34.2)
|
100
|
+
astrolabe (~> 1.3)
|
101
|
+
parser (>= 2.2.2.5, < 3.0)
|
102
|
+
powerpack (~> 0.1)
|
103
|
+
rainbow (>= 1.99.1, < 3.0)
|
104
|
+
ruby-progressbar (~> 1.4)
|
105
|
+
ruby-progressbar (1.7.5)
|
106
|
+
rubysl (2.1.0)
|
107
|
+
rubysl-abbrev (~> 2.0)
|
108
|
+
rubysl-base64 (~> 2.0)
|
109
|
+
rubysl-benchmark (~> 2.0)
|
110
|
+
rubysl-bigdecimal (~> 2.0)
|
111
|
+
rubysl-cgi (~> 2.0)
|
112
|
+
rubysl-cgi-session (~> 2.0)
|
113
|
+
rubysl-cmath (~> 2.0)
|
114
|
+
rubysl-complex (~> 2.0)
|
115
|
+
rubysl-continuation (~> 2.0)
|
116
|
+
rubysl-coverage (~> 2.0)
|
117
|
+
rubysl-csv (~> 2.0)
|
118
|
+
rubysl-curses (~> 2.0)
|
119
|
+
rubysl-date (~> 2.0)
|
120
|
+
rubysl-delegate (~> 2.0)
|
121
|
+
rubysl-digest (~> 2.0)
|
122
|
+
rubysl-drb (~> 2.0)
|
123
|
+
rubysl-e2mmap (~> 2.0)
|
124
|
+
rubysl-english (~> 2.0)
|
125
|
+
rubysl-enumerator (~> 2.0)
|
126
|
+
rubysl-erb (~> 2.0)
|
127
|
+
rubysl-etc (~> 2.0)
|
128
|
+
rubysl-expect (~> 2.0)
|
129
|
+
rubysl-fcntl (~> 2.0)
|
130
|
+
rubysl-fiber (~> 2.0)
|
131
|
+
rubysl-fileutils (~> 2.0)
|
132
|
+
rubysl-find (~> 2.0)
|
133
|
+
rubysl-forwardable (~> 2.0)
|
134
|
+
rubysl-getoptlong (~> 2.0)
|
135
|
+
rubysl-gserver (~> 2.0)
|
136
|
+
rubysl-io-console (~> 2.0)
|
137
|
+
rubysl-io-nonblock (~> 2.0)
|
138
|
+
rubysl-io-wait (~> 2.0)
|
139
|
+
rubysl-ipaddr (~> 2.0)
|
140
|
+
rubysl-irb (~> 2.1)
|
141
|
+
rubysl-logger (~> 2.0)
|
142
|
+
rubysl-mathn (~> 2.0)
|
143
|
+
rubysl-matrix (~> 2.0)
|
144
|
+
rubysl-mkmf (~> 2.0)
|
145
|
+
rubysl-monitor (~> 2.0)
|
146
|
+
rubysl-mutex_m (~> 2.0)
|
147
|
+
rubysl-net-ftp (~> 2.0)
|
148
|
+
rubysl-net-http (~> 2.0)
|
149
|
+
rubysl-net-imap (~> 2.0)
|
150
|
+
rubysl-net-pop (~> 2.0)
|
151
|
+
rubysl-net-protocol (~> 2.0)
|
152
|
+
rubysl-net-smtp (~> 2.0)
|
153
|
+
rubysl-net-telnet (~> 2.0)
|
154
|
+
rubysl-nkf (~> 2.0)
|
155
|
+
rubysl-observer (~> 2.0)
|
156
|
+
rubysl-open-uri (~> 2.0)
|
157
|
+
rubysl-open3 (~> 2.0)
|
158
|
+
rubysl-openssl (~> 2.0)
|
159
|
+
rubysl-optparse (~> 2.0)
|
160
|
+
rubysl-ostruct (~> 2.0)
|
161
|
+
rubysl-pathname (~> 2.0)
|
162
|
+
rubysl-prettyprint (~> 2.0)
|
163
|
+
rubysl-prime (~> 2.0)
|
164
|
+
rubysl-profile (~> 2.0)
|
165
|
+
rubysl-profiler (~> 2.0)
|
166
|
+
rubysl-pstore (~> 2.0)
|
167
|
+
rubysl-pty (~> 2.0)
|
168
|
+
rubysl-rational (~> 2.0)
|
169
|
+
rubysl-resolv (~> 2.0)
|
170
|
+
rubysl-rexml (~> 2.0)
|
171
|
+
rubysl-rinda (~> 2.0)
|
172
|
+
rubysl-rss (~> 2.0)
|
173
|
+
rubysl-scanf (~> 2.0)
|
174
|
+
rubysl-securerandom (~> 2.0)
|
175
|
+
rubysl-set (~> 2.0)
|
176
|
+
rubysl-shellwords (~> 2.0)
|
177
|
+
rubysl-singleton (~> 2.0)
|
178
|
+
rubysl-socket (~> 2.0)
|
179
|
+
rubysl-stringio (~> 2.0)
|
180
|
+
rubysl-strscan (~> 2.0)
|
181
|
+
rubysl-sync (~> 2.0)
|
182
|
+
rubysl-syslog (~> 2.0)
|
183
|
+
rubysl-tempfile (~> 2.0)
|
184
|
+
rubysl-thread (~> 2.0)
|
185
|
+
rubysl-thwait (~> 2.0)
|
186
|
+
rubysl-time (~> 2.0)
|
187
|
+
rubysl-timeout (~> 2.0)
|
188
|
+
rubysl-tmpdir (~> 2.0)
|
189
|
+
rubysl-tsort (~> 2.0)
|
190
|
+
rubysl-un (~> 2.0)
|
191
|
+
rubysl-uri (~> 2.0)
|
192
|
+
rubysl-weakref (~> 2.0)
|
193
|
+
rubysl-webrick (~> 2.0)
|
194
|
+
rubysl-xmlrpc (~> 2.0)
|
195
|
+
rubysl-yaml (~> 2.0)
|
196
|
+
rubysl-zlib (~> 2.0)
|
197
|
+
rubysl-abbrev (2.0.4)
|
198
|
+
rubysl-base64 (2.0.0)
|
199
|
+
rubysl-benchmark (2.0.1)
|
200
|
+
rubysl-bigdecimal (2.0.2)
|
201
|
+
rubysl-cgi (2.0.1)
|
202
|
+
rubysl-cgi-session (2.0.1)
|
203
|
+
rubysl-cmath (2.0.0)
|
204
|
+
rubysl-complex (2.0.0)
|
205
|
+
rubysl-continuation (2.0.0)
|
206
|
+
rubysl-coverage (2.0.3)
|
207
|
+
rubysl-csv (2.0.2)
|
208
|
+
rubysl-english (~> 2.0)
|
209
|
+
rubysl-curses (2.0.1)
|
210
|
+
rubysl-date (2.0.9)
|
211
|
+
rubysl-delegate (2.0.1)
|
212
|
+
rubysl-digest (2.0.8)
|
213
|
+
rubysl-drb (2.0.1)
|
214
|
+
rubysl-e2mmap (2.0.0)
|
215
|
+
rubysl-english (2.0.0)
|
216
|
+
rubysl-enumerator (2.0.0)
|
217
|
+
rubysl-erb (2.0.2)
|
218
|
+
rubysl-etc (2.0.3)
|
219
|
+
ffi2-generators (~> 0.1)
|
220
|
+
rubysl-expect (2.0.0)
|
221
|
+
rubysl-fcntl (2.0.4)
|
222
|
+
ffi2-generators (~> 0.1)
|
223
|
+
rubysl-fiber (2.0.0)
|
224
|
+
rubysl-fileutils (2.0.3)
|
225
|
+
rubysl-find (2.0.1)
|
226
|
+
rubysl-forwardable (2.0.1)
|
227
|
+
rubysl-getoptlong (2.0.0)
|
228
|
+
rubysl-gserver (2.0.0)
|
229
|
+
rubysl-socket (~> 2.0)
|
230
|
+
rubysl-thread (~> 2.0)
|
231
|
+
rubysl-io-console (2.0.0)
|
232
|
+
rubysl-io-nonblock (2.0.0)
|
233
|
+
rubysl-io-wait (2.0.0)
|
234
|
+
rubysl-ipaddr (2.0.0)
|
235
|
+
rubysl-irb (2.1.1)
|
236
|
+
rubysl-e2mmap (~> 2.0)
|
237
|
+
rubysl-mathn (~> 2.0)
|
238
|
+
rubysl-thread (~> 2.0)
|
239
|
+
rubysl-logger (2.1.0)
|
240
|
+
rubysl-mathn (2.0.0)
|
241
|
+
rubysl-matrix (2.1.0)
|
242
|
+
rubysl-e2mmap (~> 2.0)
|
243
|
+
rubysl-mkmf (2.0.1)
|
244
|
+
rubysl-fileutils (~> 2.0)
|
245
|
+
rubysl-shellwords (~> 2.0)
|
246
|
+
rubysl-monitor (2.0.0)
|
247
|
+
rubysl-mutex_m (2.0.0)
|
248
|
+
rubysl-net-ftp (2.0.1)
|
249
|
+
rubysl-net-http (2.0.4)
|
250
|
+
rubysl-cgi (~> 2.0)
|
251
|
+
rubysl-erb (~> 2.0)
|
252
|
+
rubysl-singleton (~> 2.0)
|
253
|
+
rubysl-net-imap (2.0.1)
|
254
|
+
rubysl-net-pop (2.0.1)
|
255
|
+
rubysl-net-protocol (2.0.1)
|
256
|
+
rubysl-net-smtp (2.0.1)
|
257
|
+
rubysl-net-telnet (2.0.0)
|
258
|
+
rubysl-nkf (2.0.1)
|
259
|
+
rubysl-observer (2.0.0)
|
260
|
+
rubysl-open-uri (2.0.0)
|
261
|
+
rubysl-open3 (2.0.0)
|
262
|
+
rubysl-openssl (2.3.1)
|
263
|
+
rubysl-optparse (2.0.1)
|
264
|
+
rubysl-shellwords (~> 2.0)
|
265
|
+
rubysl-ostruct (2.0.4)
|
266
|
+
rubysl-pathname (2.1.0)
|
267
|
+
rubysl-prettyprint (2.0.3)
|
268
|
+
rubysl-prime (2.0.1)
|
269
|
+
rubysl-profile (2.0.0)
|
270
|
+
rubysl-profiler (2.0.1)
|
271
|
+
rubysl-pstore (2.0.0)
|
272
|
+
rubysl-pty (2.0.3)
|
273
|
+
rubysl-rational (2.0.1)
|
274
|
+
rubysl-resolv (2.1.2)
|
275
|
+
rubysl-rexml (2.0.4)
|
276
|
+
rubysl-rinda (2.0.1)
|
277
|
+
rubysl-rss (2.0.0)
|
278
|
+
rubysl-scanf (2.0.0)
|
279
|
+
rubysl-securerandom (2.0.0)
|
280
|
+
rubysl-set (2.0.1)
|
281
|
+
rubysl-shellwords (2.0.0)
|
282
|
+
rubysl-singleton (2.0.0)
|
283
|
+
rubysl-socket (2.0.1)
|
284
|
+
rubysl-stringio (2.0.0)
|
285
|
+
rubysl-strscan (2.0.0)
|
286
|
+
rubysl-sync (2.0.0)
|
287
|
+
rubysl-syslog (2.1.0)
|
288
|
+
ffi2-generators (~> 0.1)
|
289
|
+
rubysl-tempfile (2.0.1)
|
290
|
+
rubysl-thread (2.0.3)
|
291
|
+
rubysl-thwait (2.0.0)
|
292
|
+
rubysl-time (2.0.3)
|
293
|
+
rubysl-timeout (2.0.0)
|
294
|
+
rubysl-tmpdir (2.0.1)
|
295
|
+
rubysl-tsort (2.0.1)
|
296
|
+
rubysl-un (2.0.0)
|
297
|
+
rubysl-fileutils (~> 2.0)
|
298
|
+
rubysl-optparse (~> 2.0)
|
299
|
+
rubysl-uri (2.0.0)
|
300
|
+
rubysl-weakref (2.0.0)
|
301
|
+
rubysl-webrick (2.0.0)
|
302
|
+
rubysl-xmlrpc (2.0.0)
|
303
|
+
rubysl-yaml (2.1.0)
|
304
|
+
rubysl-zlib (2.0.1)
|
305
|
+
safe_yaml (1.0.4)
|
306
|
+
shellany (0.0.1)
|
307
|
+
simplecov (0.10.0)
|
308
|
+
docile (~> 1.1.0)
|
309
|
+
json (~> 1.8)
|
310
|
+
simplecov-html (~> 0.10.0)
|
311
|
+
simplecov-html (0.10.0)
|
312
|
+
slop (3.6.0)
|
313
|
+
term-ansicolor (1.3.2)
|
314
|
+
tins (~> 1.0)
|
315
|
+
thor (0.19.1)
|
316
|
+
tins (1.6.0)
|
317
|
+
unf (0.1.4)
|
318
|
+
unf_ext
|
319
|
+
unf_ext (0.0.7.1)
|
320
|
+
webmock (1.22.3)
|
321
|
+
addressable (>= 2.3.6)
|
322
|
+
crack (>= 0.3.2)
|
323
|
+
hashdiff
|
324
|
+
yard (0.8.7.6)
|
325
|
+
|
326
|
+
PLATFORMS
|
327
|
+
ruby
|
328
|
+
|
329
|
+
DEPENDENCIES
|
330
|
+
barge!
|
331
|
+
coveralls
|
332
|
+
github-markup
|
333
|
+
guard
|
334
|
+
guard-rspec
|
335
|
+
kramdown
|
336
|
+
rake
|
337
|
+
redcarpet
|
338
|
+
rspec
|
339
|
+
rubocop (~> 0.34.0)
|
340
|
+
rubysl
|
341
|
+
simplecov
|
342
|
+
webmock
|
343
|
+
yard
|
344
|
+
|
345
|
+
BUNDLED WITH
|
346
|
+
1.10.6
|
data/Guardfile
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
guard :rspec do
|
2
|
+
watch(%r{\Aspec/.+_spec\.rb\z})
|
3
|
+
watch(%r{\Alib/(.+)\.rb\z}) { |_, match| "spec/#{match}_spec.rb" }
|
4
|
+
watch('spec/spec_helper.rb') { 'spec' }
|
5
|
+
watch(%r{\Aspec/fixtures/(.+)/.*\.json\z}) do |_, match|
|
6
|
+
"spec/barge/resource/#{match.chop}_spec.rb"
|
7
|
+
end
|
8
|
+
end
|
data/README.md
CHANGED
@@ -1,32 +1,29 @@
|
|
1
1
|
Barge
|
2
2
|
=====
|
3
3
|
|
4
|
-
[![Gem Version](
|
5
|
-
[![Build Status](
|
6
|
-
[![Coverage Status](
|
7
|
-
[![Code Climate](
|
8
|
-
[![Dependency Status](
|
9
|
-
|
10
|
-
[gem]:
|
11
|
-
[travis]: https://travis-ci.org/
|
12
|
-
[coveralls]: https://coveralls.io/r/
|
13
|
-
[codeclimate]: https://codeclimate.com/github/
|
14
|
-
[gemnasium]: https://gemnasium.com/
|
4
|
+
[![Gem Version](https://img.shields.io/gem/v/barge.svg)][gem]
|
5
|
+
[![Build Status](https://img.shields.io/travis/blom/barge/master.svg)][travis]
|
6
|
+
[![Coverage Status](https://img.shields.io/coveralls/blom/barge.svg)][coveralls]
|
7
|
+
[![Code Climate](https://img.shields.io/codeclimate/github/blom/barge.svg)][codeclimate]
|
8
|
+
[![Dependency Status](https://img.shields.io/gemnasium/blom/barge.svg)][gemnasium]
|
9
|
+
|
10
|
+
[gem]: https://rubygems.org/gems/barge
|
11
|
+
[travis]: https://travis-ci.org/blom/barge
|
12
|
+
[coveralls]: https://coveralls.io/r/blom/barge
|
13
|
+
[codeclimate]: https://codeclimate.com/github/blom/barge
|
14
|
+
[gemnasium]: https://gemnasium.com/blom/barge
|
15
15
|
|
16
16
|
Ruby library for [version 2 of DigitalOcean's
|
17
17
|
API](https://developers.digitalocean.com/v2/).
|
18
18
|
|
19
|
-
**Please note that version 2 of DigitalOcean's API is in beta, and is still
|
20
|
-
being developed. Everything is subject to change.**
|
21
|
-
|
22
19
|
### Installation
|
23
20
|
|
24
21
|
``` sh
|
25
22
|
gem install barge
|
26
23
|
```
|
27
24
|
|
28
|
-
Ruby 1.9 and up is required. See the [.travis.yml](.travis.yml) file for a
|
29
|
-
of supported rubies.
|
25
|
+
Ruby 1.9.3 and up is required. See the [.travis.yml](.travis.yml) file for a
|
26
|
+
list of supported rubies.
|
30
27
|
|
31
28
|
### Initialize
|
32
29
|
|
@@ -70,9 +67,7 @@ droplet['droplet']['size']['slug'] # => "512mb"
|
|
70
67
|
```
|
71
68
|
|
72
69
|
See the [API documentation on responses][api-responses] if you are wondering
|
73
|
-
why attributes are contained within a `droplet` key.
|
74
|
-
pagination is fully implemented so you can say for instance `droplet.name`
|
75
|
-
instead.
|
70
|
+
why attributes are contained within a `droplet` key.
|
76
71
|
|
77
72
|
[api-responses]: https://developers.digitalocean.com/#responses
|
78
73
|
|
@@ -319,6 +314,9 @@ Image
|
|
319
314
|
|
320
315
|
``` ruby
|
321
316
|
barge.image.all
|
317
|
+
barge.image.all(private: true)
|
318
|
+
barge.image.all(type: :application)
|
319
|
+
barge.image.all(type: :distribution)
|
322
320
|
```
|
323
321
|
|
324
322
|
### Show image
|
@@ -490,3 +488,43 @@ Size
|
|
490
488
|
``` ruby
|
491
489
|
barge.size.all
|
492
490
|
```
|
491
|
+
|
492
|
+
Floating IP
|
493
|
+
-----------
|
494
|
+
|
495
|
+
### Show all floating IPs
|
496
|
+
|
497
|
+
``` ruby
|
498
|
+
barge.floating_ip.all
|
499
|
+
```
|
500
|
+
|
501
|
+
### Create floating IP
|
502
|
+
|
503
|
+
``` ruby
|
504
|
+
barge.floating_ip.create(droplet_id: droplet_id)
|
505
|
+
barge.floating_ip.create(region: region)
|
506
|
+
```
|
507
|
+
|
508
|
+
### Show floating IP
|
509
|
+
|
510
|
+
``` ruby
|
511
|
+
barge.floating_ip.show(ip_address)
|
512
|
+
```
|
513
|
+
|
514
|
+
### Destroy floating IP
|
515
|
+
|
516
|
+
``` ruby
|
517
|
+
barge.floating_ip.destroy(ip_address)
|
518
|
+
```
|
519
|
+
|
520
|
+
### Assign a floating IP to a droplet
|
521
|
+
|
522
|
+
``` ruby
|
523
|
+
barge.floating_ip.assign(ip_address, droplet_id: droplet_id)
|
524
|
+
```
|
525
|
+
|
526
|
+
### Unassign a floating IP
|
527
|
+
|
528
|
+
``` ruby
|
529
|
+
barge.floating_ip.unassign(ip_address)
|
530
|
+
```
|
data/Rakefile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rake/clean'
|
3
|
+
require 'rspec/core/rake_task'
|
4
|
+
require 'rubocop/rake_task'
|
5
|
+
require 'yard'
|
6
|
+
|
7
|
+
task default: [:rubocop, :spec]
|
8
|
+
|
9
|
+
CLOBBER.include %w(.rbx .yardoc coverage doc pkg)
|
10
|
+
|
11
|
+
RSpec::Core::RakeTask.new
|
12
|
+
RuboCop::RakeTask.new
|
13
|
+
YARD::Rake::YardocTask.new
|
14
|
+
|
15
|
+
desc 'Generate coverage data'
|
16
|
+
task :coverage do
|
17
|
+
ENV['SIMPLECOV'] = 'true'
|
18
|
+
Rake::Task['spec'].invoke
|
19
|
+
end
|
data/barge.gemspec
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
require File.expand_path '../lib/barge/version', __FILE__
|
3
|
+
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
spec.name = 'barge'
|
6
|
+
spec.version = Barge::Version
|
7
|
+
spec.summary = 'Ruby library for DigitalOcean'
|
8
|
+
spec.description = "Ruby library for version 2 of DigitalOcean's API"
|
9
|
+
spec.license = 'MIT'
|
10
|
+
spec.authors = ['Ørjan Blom']
|
11
|
+
spec.email = %w(blom@blom.tv)
|
12
|
+
spec.homepage = 'https://github.com/blom/barge'
|
13
|
+
spec.files = Dir['lib/**/*.rb', '[A-Z][A-Z]*']
|
14
|
+
|
15
|
+
spec.required_ruby_version = '>= 1.9.3'
|
16
|
+
|
17
|
+
spec.add_dependency 'faraday', '~> 0.9'
|
18
|
+
spec.add_dependency 'faraday_middleware', '~> 0.10'
|
19
|
+
spec.add_dependency 'hashie', '~> 3.4'
|
20
|
+
end
|
data/lib/barge/client.rb
CHANGED
@@ -51,7 +51,9 @@ module Barge
|
|
51
51
|
@size ||= Resource::Size.new(faraday)
|
52
52
|
end
|
53
53
|
|
54
|
-
|
54
|
+
def floating_ip
|
55
|
+
@floating_ip ||= Resource::FloatingIP.new(faraday)
|
56
|
+
end
|
55
57
|
|
56
58
|
def faraday
|
57
59
|
@faraday ||= Faraday.new faraday_options do |f|
|
@@ -67,6 +69,8 @@ module Barge
|
|
67
69
|
end
|
68
70
|
end
|
69
71
|
|
72
|
+
private
|
73
|
+
|
70
74
|
def faraday_options
|
71
75
|
{
|
72
76
|
headers: {
|
data/lib/barge/resource.rb
CHANGED
@@ -4,6 +4,7 @@ require 'barge/resource/account'
|
|
4
4
|
require 'barge/resource/action'
|
5
5
|
require 'barge/resource/domain'
|
6
6
|
require 'barge/resource/droplet'
|
7
|
+
require 'barge/resource/floating_ip'
|
7
8
|
require 'barge/resource/image'
|
8
9
|
require 'barge/resource/key'
|
9
10
|
require 'barge/resource/region'
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Barge
|
2
|
+
module Resource
|
3
|
+
class FloatingIP
|
4
|
+
include Resource::Base
|
5
|
+
|
6
|
+
def all(options = {})
|
7
|
+
get('floating_ips', options)
|
8
|
+
end
|
9
|
+
|
10
|
+
def create(options)
|
11
|
+
post('floating_ips', options.to_json)
|
12
|
+
end
|
13
|
+
|
14
|
+
def show(ip_address)
|
15
|
+
get("floating_ips/#{ip_address}")
|
16
|
+
end
|
17
|
+
|
18
|
+
def destroy(ip_address)
|
19
|
+
delete("floating_ips/#{ip_address}")
|
20
|
+
end
|
21
|
+
|
22
|
+
def assign(ip_address, options)
|
23
|
+
action(ip_address, __method__, options)
|
24
|
+
end
|
25
|
+
|
26
|
+
def unassign(ip_address)
|
27
|
+
action(ip_address, __method__)
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def action(ip_address, type, params = {})
|
33
|
+
post("floating_ips/#{ip_address}/actions",
|
34
|
+
{ type: type }.merge(params).to_json)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
data/lib/barge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Ørjan Blom"
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.10'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.10'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: hashie
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
47
|
+
version: '3.4'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3.
|
54
|
+
version: '3.4'
|
55
55
|
description: Ruby library for version 2 of DigitalOcean's API
|
56
56
|
email:
|
57
57
|
- blom@blom.tv
|
@@ -61,8 +61,13 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- CHANGELOG.md
|
63
63
|
- CONTRIBUTING.md
|
64
|
+
- Gemfile
|
65
|
+
- Gemfile.lock
|
66
|
+
- Guardfile
|
64
67
|
- LICENSE
|
65
68
|
- README.md
|
69
|
+
- Rakefile
|
70
|
+
- barge.gemspec
|
66
71
|
- lib/barge.rb
|
67
72
|
- lib/barge/client.rb
|
68
73
|
- lib/barge/resource.rb
|
@@ -71,13 +76,14 @@ files:
|
|
71
76
|
- lib/barge/resource/base.rb
|
72
77
|
- lib/barge/resource/domain.rb
|
73
78
|
- lib/barge/resource/droplet.rb
|
79
|
+
- lib/barge/resource/floating_ip.rb
|
74
80
|
- lib/barge/resource/image.rb
|
75
81
|
- lib/barge/resource/key.rb
|
76
82
|
- lib/barge/resource/region.rb
|
77
83
|
- lib/barge/resource/size.rb
|
78
84
|
- lib/barge/response.rb
|
79
85
|
- lib/barge/version.rb
|
80
|
-
homepage: https://github.com/
|
86
|
+
homepage: https://github.com/blom/barge
|
81
87
|
licenses:
|
82
88
|
- MIT
|
83
89
|
metadata: {}
|
@@ -97,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
103
|
version: '0'
|
98
104
|
requirements: []
|
99
105
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.4.5.1
|
101
107
|
signing_key:
|
102
108
|
specification_version: 4
|
103
109
|
summary: Ruby library for DigitalOcean
|