tugboat 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +5 -4
  4. data/CHANGELOG.md +325 -102
  5. data/CHANGELOG_old.md +150 -0
  6. data/Gemfile +6 -0
  7. data/README.md +12 -6
  8. data/Rakefile +7 -3
  9. data/features/step_definitions/steps.rb +0 -0
  10. data/features/support/env.rb +9 -0
  11. data/features/vagrant-adam/config_current_directory.feature +27 -0
  12. data/lib/tugboat/cli.rb +31 -3
  13. data/lib/tugboat/config.rb +13 -5
  14. data/lib/tugboat/middleware.rb +8 -0
  15. data/lib/tugboat/middleware/ask_for_credentials.rb +5 -4
  16. data/lib/tugboat/middleware/authentication_middleware.rb +2 -2
  17. data/lib/tugboat/middleware/config.rb +29 -0
  18. data/lib/tugboat/middleware/custom_logger.rb +2 -2
  19. data/lib/tugboat/middleware/find_droplet.rb +4 -0
  20. data/lib/tugboat/middleware/info_droplet.rb +5 -0
  21. data/lib/tugboat/middleware/inject_client.rb +1 -1
  22. data/lib/tugboat/middleware/list_droplets.rb +5 -1
  23. data/lib/tugboat/middleware/list_regions.rb +2 -2
  24. data/lib/tugboat/middleware/ssh_droplet.rb +17 -2
  25. data/lib/tugboat/version.rb +1 -1
  26. data/spec/cli/add_key_spec.rb +9 -9
  27. data/spec/cli/authorize_cli_spec.rb +76 -52
  28. data/spec/cli/create_cli_spec.rb +39 -4
  29. data/spec/cli/debug_cli_spec.rb +44 -0
  30. data/spec/cli/destroy_cli_spec.rb +30 -11
  31. data/spec/cli/destroy_image_cli_spec.rb +11 -11
  32. data/spec/cli/droplets_cli_spec.rb +6 -6
  33. data/spec/cli/halt_cli_spec.rb +9 -9
  34. data/spec/cli/images_cli_spec.rb +6 -6
  35. data/spec/cli/info_cli_spec.rb +42 -7
  36. data/spec/cli/info_image_cli_spec.rb +6 -6
  37. data/spec/cli/keys_cli_spec.rb +1 -1
  38. data/spec/cli/password_reset_cli_spec.rb +8 -8
  39. data/spec/cli/rebuild_cli_spec.rb +49 -49
  40. data/spec/cli/regions_cli_spec.rb +4 -4
  41. data/spec/cli/resize_cli_spec.rb +8 -8
  42. data/spec/cli/restart_cli_spec.rb +8 -8
  43. data/spec/cli/sizes_cli_spec.rb +1 -1
  44. data/spec/cli/snapshot_cli_spec.rb +7 -7
  45. data/spec/cli/ssh_cli_spec.rb +4 -4
  46. data/spec/cli/start_cli_spec.rb +7 -7
  47. data/spec/cli/verify_cli_spec.rb +10 -2
  48. data/spec/cli/wait_cli_spec.rb +6 -6
  49. data/spec/fixtures/500.html +68 -0
  50. data/spec/fixtures/show_droplet.json +1 -0
  51. data/spec/fixtures/show_droplet_fuzzy.json +13 -0
  52. data/spec/fixtures/show_droplet_inactive.json +1 -0
  53. data/spec/fixtures/show_droplets.json +2 -0
  54. data/spec/fixtures/show_droplets_fuzzy.json +35 -0
  55. data/spec/fixtures/show_droplets_inactive.json +2 -0
  56. data/spec/fixtures/show_regions.json +9 -6
  57. data/spec/middleware/base_spec.rb +1 -1
  58. data/spec/middleware/check_credentials_spec.rb +1 -1
  59. data/spec/middleware/inject_client_spec.rb +29 -0
  60. data/spec/middleware/inject_configuration_spec.rb +1 -1
  61. data/spec/middleware/ssh_droplet_spec.rb +30 -7
  62. data/spec/shared/environment.rb +1 -0
  63. data/spec/spec_helper.rb +11 -4
  64. data/tugboat.gemspec +9 -7
  65. metadata +64 -33
metadata CHANGED
@@ -1,141 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tugboat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Pearkes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-15 00:00:00.000000000 Z
11
+ date: 2015-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.18.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.18.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: digital_ocean
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.0.1
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
40
  version: 1.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: middleware
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.1.0
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
54
  version: 0.1.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-core
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 2.13.0
75
+ version: 2.14.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 2.13.0
82
+ version: 2.14.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec-expectations
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 2.13.0
89
+ version: 2.14.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 2.13.0
96
+ version: 2.14.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec-mocks
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.13.0
103
+ version: 2.14.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.13.0
110
+ version: 2.14.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: webmock
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.11.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 1.11.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: coveralls
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
131
  version: 0.6.7
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.6.7
139
+ - !ruby/object:Gem::Dependency
140
+ name: aruba
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.6.2
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.6.2
139
153
  description: A command line tool for interacting with your DigitalOcean droplets.
140
154
  email:
141
155
  - jackpearkes@gmail.com
@@ -144,15 +158,19 @@ executables:
144
158
  extensions: []
145
159
  extra_rdoc_files: []
146
160
  files:
147
- - .gitignore
148
- - .travis.yml
161
+ - ".gitignore"
162
+ - ".travis.yml"
149
163
  - CHANGELOG.md
164
+ - CHANGELOG_old.md
150
165
  - CONTRIBUTING.md
151
166
  - Gemfile
152
167
  - LICENSE.md
153
168
  - README.md
154
169
  - Rakefile
155
170
  - bin/tugboat
171
+ - features/step_definitions/steps.rb
172
+ - features/support/env.rb
173
+ - features/vagrant-adam/config_current_directory.feature
156
174
  - lib/tugboat.rb
157
175
  - lib/tugboat/cli.rb
158
176
  - lib/tugboat/config.rb
@@ -165,6 +183,7 @@ files:
165
183
  - lib/tugboat/middleware/check_credentials.rb
166
184
  - lib/tugboat/middleware/check_droplet_active.rb
167
185
  - lib/tugboat/middleware/check_droplet_inactive.rb
186
+ - lib/tugboat/middleware/config.rb
168
187
  - lib/tugboat/middleware/confirm_action.rb
169
188
  - lib/tugboat/middleware/create_droplet.rb
170
189
  - lib/tugboat/middleware/custom_logger.rb
@@ -194,6 +213,7 @@ files:
194
213
  - spec/cli/add_key_spec.rb
195
214
  - spec/cli/authorize_cli_spec.rb
196
215
  - spec/cli/create_cli_spec.rb
216
+ - spec/cli/debug_cli_spec.rb
197
217
  - spec/cli/destroy_cli_spec.rb
198
218
  - spec/cli/destroy_image_cli_spec.rb
199
219
  - spec/cli/droplets_cli_spec.rb
@@ -216,12 +236,15 @@ files:
216
236
  - spec/cli/version_cli_spec.rb
217
237
  - spec/cli/wait_cli_spec.rb
218
238
  - spec/config_spec.rb
239
+ - spec/fixtures/500.html
219
240
  - spec/fixtures/create_droplet.json
220
241
  - spec/fixtures/create_ssh_key.json
221
242
  - spec/fixtures/show_droplet.json
243
+ - spec/fixtures/show_droplet_fuzzy.json
222
244
  - spec/fixtures/show_droplet_inactive.json
223
245
  - spec/fixtures/show_droplets.json
224
246
  - spec/fixtures/show_droplets_empty.json
247
+ - spec/fixtures/show_droplets_fuzzy.json
225
248
  - spec/fixtures/show_droplets_inactive.json
226
249
  - spec/fixtures/show_image.json
227
250
  - spec/fixtures/show_images.json
@@ -237,6 +260,7 @@ files:
237
260
  - spec/middleware/check_droplet_inactive_spec.rb
238
261
  - spec/middleware/find_droplet_spec.rb
239
262
  - spec/middleware/find_image_spec.rb
263
+ - spec/middleware/inject_client_spec.rb
240
264
  - spec/middleware/inject_configuration_spec.rb
241
265
  - spec/middleware/ssh_droplet_spec.rb
242
266
  - spec/shared/environment.rb
@@ -252,24 +276,28 @@ require_paths:
252
276
  - lib
253
277
  required_ruby_version: !ruby/object:Gem::Requirement
254
278
  requirements:
255
- - - '>='
279
+ - - ">="
256
280
  - !ruby/object:Gem::Version
257
- version: '0'
281
+ version: 1.9.2
258
282
  required_rubygems_version: !ruby/object:Gem::Requirement
259
283
  requirements:
260
- - - '>='
284
+ - - ">="
261
285
  - !ruby/object:Gem::Version
262
286
  version: '0'
263
287
  requirements: []
264
288
  rubyforge_project:
265
- rubygems_version: 2.0.3
289
+ rubygems_version: 2.4.6
266
290
  signing_key:
267
291
  specification_version: 4
268
292
  summary: A command line tool for interacting with your DigitalOcean droplets.
269
293
  test_files:
294
+ - features/step_definitions/steps.rb
295
+ - features/support/env.rb
296
+ - features/vagrant-adam/config_current_directory.feature
270
297
  - spec/cli/add_key_spec.rb
271
298
  - spec/cli/authorize_cli_spec.rb
272
299
  - spec/cli/create_cli_spec.rb
300
+ - spec/cli/debug_cli_spec.rb
273
301
  - spec/cli/destroy_cli_spec.rb
274
302
  - spec/cli/destroy_image_cli_spec.rb
275
303
  - spec/cli/droplets_cli_spec.rb
@@ -292,12 +320,15 @@ test_files:
292
320
  - spec/cli/version_cli_spec.rb
293
321
  - spec/cli/wait_cli_spec.rb
294
322
  - spec/config_spec.rb
323
+ - spec/fixtures/500.html
295
324
  - spec/fixtures/create_droplet.json
296
325
  - spec/fixtures/create_ssh_key.json
297
326
  - spec/fixtures/show_droplet.json
327
+ - spec/fixtures/show_droplet_fuzzy.json
298
328
  - spec/fixtures/show_droplet_inactive.json
299
329
  - spec/fixtures/show_droplets.json
300
330
  - spec/fixtures/show_droplets_empty.json
331
+ - spec/fixtures/show_droplets_fuzzy.json
301
332
  - spec/fixtures/show_droplets_inactive.json
302
333
  - spec/fixtures/show_image.json
303
334
  - spec/fixtures/show_images.json
@@ -313,8 +344,8 @@ test_files:
313
344
  - spec/middleware/check_droplet_inactive_spec.rb
314
345
  - spec/middleware/find_droplet_spec.rb
315
346
  - spec/middleware/find_image_spec.rb
347
+ - spec/middleware/inject_client_spec.rb
316
348
  - spec/middleware/inject_configuration_spec.rb
317
349
  - spec/middleware/ssh_droplet_spec.rb
318
350
  - spec/shared/environment.rb
319
351
  - spec/spec_helper.rb
320
- has_rdoc: