box_cli 0.1.0

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.
Files changed (60) hide show
  1. data/.gitignore +10 -0
  2. data/.travis.yml +7 -0
  3. data/Gemfile +3 -0
  4. data/Gemfile.lock +97 -0
  5. data/LICENSE.txt +20 -0
  6. data/README.md +81 -0
  7. data/Rakefile +22 -0
  8. data/bin/box +28 -0
  9. data/box-cli.gemspec +32 -0
  10. data/features/account_info_command.feature +12 -0
  11. data/features/cli.feature +21 -0
  12. data/features/create_folder_command.feature +11 -0
  13. data/features/delete_command.feature +21 -0
  14. data/features/info_command.feature +20 -0
  15. data/features/settings_command.feature +48 -0
  16. data/features/step_definitions/box.rb +43 -0
  17. data/features/step_definitions/environment.rb +12 -0
  18. data/features/support/box_helpers.rb +63 -0
  19. data/features/support/env.rb +6 -0
  20. data/features/support/hooks.rb +7 -0
  21. data/features/upload_command.feature +20 -0
  22. data/fixtures/cassettes/BoxCli_AccountInfoCommand/returns_account_info_for_good_credentials_and_an_api_key.json +1 -0
  23. data/fixtures/cassettes/BoxCli_CreateFolderCommand/creates_a_folder_when_none_by_that_name_already_exists.json +1 -0
  24. data/fixtures/cassettes/BoxCli_CreateFolderCommand/raises_an_exception_when_a_folder_by_that_name_already_exists.json +1 -0
  25. data/fixtures/cassettes/BoxCli_DeleteCommand/deletes_the_item_when_something_is_there.json +1 -0
  26. data/fixtures/cassettes/BoxCli_DeleteCommand/does_not_raise_an_exception_when_deleting_something_that_exists.json +1 -0
  27. data/fixtures/cassettes/BoxCli_DeleteCommand/raises_an_exception_when_there_is_nothing_to_delete.json +1 -0
  28. data/fixtures/cassettes/BoxCli_InfoCommand/provides_output_regarding_the_item_if_it_exists.json +1 -0
  29. data/fixtures/cassettes/BoxCli_InfoCommand/raises_an_exception_if_nothing_is_there.json +1 -0
  30. data/fixtures/cassettes/BoxCli_UploadCommand/raises_an_exception_when_a_file_by_that_name_already_exists.json +1 -0
  31. data/fixtures/cassettes/BoxCli_UploadCommand/uploads_a_file_when_none_by_that_name_already_exists.json +1 -0
  32. data/fixtures/cassettes/Generic_Box_Command/fails_for_a_bad_api_key.json +1 -0
  33. data/fixtures/cassettes/Generic_Box_Command/fails_for_bad_credentials.json +1 -0
  34. data/lib/box_cli/account_info_command.rb +7 -0
  35. data/lib/box_cli/auth_token_manager.rb +40 -0
  36. data/lib/box_cli/box_command.rb +13 -0
  37. data/lib/box_cli/command.rb +33 -0
  38. data/lib/box_cli/create_folder_command.rb +9 -0
  39. data/lib/box_cli/delete_command.rb +8 -0
  40. data/lib/box_cli/displayer.rb +10 -0
  41. data/lib/box_cli/hash_to_pretty.rb +28 -0
  42. data/lib/box_cli/info_command.rb +10 -0
  43. data/lib/box_cli/settings_command.rb +24 -0
  44. data/lib/box_cli/terminal.rb +13 -0
  45. data/lib/box_cli/upload_command.rb +8 -0
  46. data/lib/box_cli/version.rb +3 -0
  47. data/lib/box_cli/wrapper.rb +149 -0
  48. data/lib/box_cli.rb +27 -0
  49. data/spec/box_cli/account_info_command_spec.rb +8 -0
  50. data/spec/box_cli/box_command_spec.rb +51 -0
  51. data/spec/box_cli/create_folder_command_spec.rb +22 -0
  52. data/spec/box_cli/delete_command_spec.rb +27 -0
  53. data/spec/box_cli/generic_box_command_spec.rb +10 -0
  54. data/spec/box_cli/hash_to_pretty_spec.rb +57 -0
  55. data/spec/box_cli/info_command_spec.rb +22 -0
  56. data/spec/box_cli/settings_command_spec.rb +12 -0
  57. data/spec/box_cli/upload_command_spec.rb +30 -0
  58. data/spec/box_helpers.rb +40 -0
  59. data/spec/spec_helper.rb +41 -0
  60. metadata +332 -0
metadata ADDED
@@ -0,0 +1,332 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: box_cli
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Iora Health
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-11-27 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ none: false
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ hash: 3
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ prerelease: false
31
+ type: :runtime
32
+ name: box-api
33
+ requirement: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ version_requirements: &id002 !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ hash: 3
41
+ segments:
42
+ - 0
43
+ version: "0"
44
+ prerelease: false
45
+ type: :runtime
46
+ name: active_support
47
+ requirement: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ version_requirements: &id003 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ hash: 3
55
+ segments:
56
+ - 0
57
+ version: "0"
58
+ prerelease: false
59
+ type: :runtime
60
+ name: commander
61
+ requirement: *id003
62
+ - !ruby/object:Gem::Dependency
63
+ version_requirements: &id004 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ hash: 17
69
+ segments:
70
+ - 1
71
+ - 6
72
+ - 15
73
+ version: 1.6.15
74
+ prerelease: false
75
+ type: :runtime
76
+ name: highline
77
+ requirement: *id004
78
+ - !ruby/object:Gem::Dependency
79
+ version_requirements: &id005 !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ hash: 3
85
+ segments:
86
+ - 0
87
+ version: "0"
88
+ prerelease: false
89
+ type: :runtime
90
+ name: mechanize
91
+ requirement: *id005
92
+ - !ruby/object:Gem::Dependency
93
+ version_requirements: &id006 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ~>
97
+ - !ruby/object:Gem::Version
98
+ hash: 25
99
+ segments:
100
+ - 0
101
+ - 4
102
+ - 11
103
+ version: 0.4.11
104
+ prerelease: false
105
+ type: :development
106
+ name: aruba
107
+ requirement: *id006
108
+ - !ruby/object:Gem::Dependency
109
+ version_requirements: &id007 !ruby/object:Gem::Requirement
110
+ none: false
111
+ requirements:
112
+ - - ~>
113
+ - !ruby/object:Gem::Version
114
+ hash: 31
115
+ segments:
116
+ - 1
117
+ - 2
118
+ - 0
119
+ version: 1.2.0
120
+ prerelease: false
121
+ type: :development
122
+ name: bourne
123
+ requirement: *id007
124
+ - !ruby/object:Gem::Dependency
125
+ version_requirements: &id008 !ruby/object:Gem::Requirement
126
+ none: false
127
+ requirements:
128
+ - - ~>
129
+ - !ruby/object:Gem::Version
130
+ hash: 29
131
+ segments:
132
+ - 1
133
+ - 2
134
+ - 1
135
+ version: 1.2.1
136
+ prerelease: false
137
+ type: :development
138
+ name: cucumber
139
+ requirement: *id008
140
+ - !ruby/object:Gem::Dependency
141
+ version_requirements: &id009 !ruby/object:Gem::Requirement
142
+ none: false
143
+ requirements:
144
+ - - ~>
145
+ - !ruby/object:Gem::Version
146
+ hash: 27
147
+ segments:
148
+ - 1
149
+ - 3
150
+ - 0
151
+ version: 1.3.0
152
+ prerelease: false
153
+ type: :development
154
+ name: fakeweb
155
+ requirement: *id009
156
+ - !ruby/object:Gem::Dependency
157
+ version_requirements: &id010 !ruby/object:Gem::Requirement
158
+ none: false
159
+ requirements:
160
+ - - ~>
161
+ - !ruby/object:Gem::Version
162
+ hash: 41
163
+ segments:
164
+ - 0
165
+ - 12
166
+ - 3
167
+ version: 0.12.3
168
+ prerelease: false
169
+ type: :development
170
+ name: mocha
171
+ requirement: *id010
172
+ - !ruby/object:Gem::Dependency
173
+ version_requirements: &id011 !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ~>
177
+ - !ruby/object:Gem::Version
178
+ hash: 63
179
+ segments:
180
+ - 0
181
+ - 9
182
+ - 2
183
+ version: 0.9.2
184
+ prerelease: false
185
+ type: :development
186
+ name: rake
187
+ requirement: *id011
188
+ - !ruby/object:Gem::Dependency
189
+ version_requirements: &id012 !ruby/object:Gem::Requirement
190
+ none: false
191
+ requirements:
192
+ - - ~>
193
+ - !ruby/object:Gem::Version
194
+ hash: 35
195
+ segments:
196
+ - 2
197
+ - 11
198
+ - 0
199
+ version: 2.11.0
200
+ prerelease: false
201
+ type: :development
202
+ name: rspec
203
+ requirement: *id012
204
+ - !ruby/object:Gem::Dependency
205
+ version_requirements: &id013 !ruby/object:Gem::Requirement
206
+ none: false
207
+ requirements:
208
+ - - ~>
209
+ - !ruby/object:Gem::Version
210
+ hash: 13
211
+ segments:
212
+ - 2
213
+ - 2
214
+ - 5
215
+ version: 2.2.5
216
+ prerelease: false
217
+ type: :development
218
+ name: vcr
219
+ requirement: *id013
220
+ description: CLI for box
221
+ email: rubygems@iorahealth.com
222
+ executables:
223
+ - box
224
+ extensions: []
225
+
226
+ extra_rdoc_files: []
227
+
228
+ files:
229
+ - .gitignore
230
+ - .travis.yml
231
+ - Gemfile
232
+ - Gemfile.lock
233
+ - LICENSE.txt
234
+ - README.md
235
+ - Rakefile
236
+ - bin/box
237
+ - box-cli.gemspec
238
+ - features/account_info_command.feature
239
+ - features/cli.feature
240
+ - features/create_folder_command.feature
241
+ - features/delete_command.feature
242
+ - features/info_command.feature
243
+ - features/settings_command.feature
244
+ - features/step_definitions/box.rb
245
+ - features/step_definitions/environment.rb
246
+ - features/support/box_helpers.rb
247
+ - features/support/env.rb
248
+ - features/support/hooks.rb
249
+ - features/upload_command.feature
250
+ - fixtures/cassettes/BoxCli_AccountInfoCommand/returns_account_info_for_good_credentials_and_an_api_key.json
251
+ - fixtures/cassettes/BoxCli_CreateFolderCommand/creates_a_folder_when_none_by_that_name_already_exists.json
252
+ - fixtures/cassettes/BoxCli_CreateFolderCommand/raises_an_exception_when_a_folder_by_that_name_already_exists.json
253
+ - fixtures/cassettes/BoxCli_DeleteCommand/deletes_the_item_when_something_is_there.json
254
+ - fixtures/cassettes/BoxCli_DeleteCommand/does_not_raise_an_exception_when_deleting_something_that_exists.json
255
+ - fixtures/cassettes/BoxCli_DeleteCommand/raises_an_exception_when_there_is_nothing_to_delete.json
256
+ - fixtures/cassettes/BoxCli_InfoCommand/provides_output_regarding_the_item_if_it_exists.json
257
+ - fixtures/cassettes/BoxCli_InfoCommand/raises_an_exception_if_nothing_is_there.json
258
+ - fixtures/cassettes/BoxCli_UploadCommand/raises_an_exception_when_a_file_by_that_name_already_exists.json
259
+ - fixtures/cassettes/BoxCli_UploadCommand/uploads_a_file_when_none_by_that_name_already_exists.json
260
+ - fixtures/cassettes/Generic_Box_Command/fails_for_a_bad_api_key.json
261
+ - fixtures/cassettes/Generic_Box_Command/fails_for_bad_credentials.json
262
+ - lib/box_cli.rb
263
+ - lib/box_cli/account_info_command.rb
264
+ - lib/box_cli/auth_token_manager.rb
265
+ - lib/box_cli/box_command.rb
266
+ - lib/box_cli/command.rb
267
+ - lib/box_cli/create_folder_command.rb
268
+ - lib/box_cli/delete_command.rb
269
+ - lib/box_cli/displayer.rb
270
+ - lib/box_cli/hash_to_pretty.rb
271
+ - lib/box_cli/info_command.rb
272
+ - lib/box_cli/settings_command.rb
273
+ - lib/box_cli/terminal.rb
274
+ - lib/box_cli/upload_command.rb
275
+ - lib/box_cli/version.rb
276
+ - lib/box_cli/wrapper.rb
277
+ - spec/box_cli/account_info_command_spec.rb
278
+ - spec/box_cli/box_command_spec.rb
279
+ - spec/box_cli/create_folder_command_spec.rb
280
+ - spec/box_cli/delete_command_spec.rb
281
+ - spec/box_cli/generic_box_command_spec.rb
282
+ - spec/box_cli/hash_to_pretty_spec.rb
283
+ - spec/box_cli/info_command_spec.rb
284
+ - spec/box_cli/settings_command_spec.rb
285
+ - spec/box_cli/upload_command_spec.rb
286
+ - spec/box_helpers.rb
287
+ - spec/spec_helper.rb
288
+ homepage: https://github.com/IoraHealth/box_cli
289
+ licenses: []
290
+
291
+ post_install_message:
292
+ rdoc_options:
293
+ - --charset=UTF-8
294
+ require_paths:
295
+ - lib
296
+ required_ruby_version: !ruby/object:Gem::Requirement
297
+ none: false
298
+ requirements:
299
+ - - ">="
300
+ - !ruby/object:Gem::Version
301
+ hash: 3
302
+ segments:
303
+ - 0
304
+ version: "0"
305
+ required_rubygems_version: !ruby/object:Gem::Requirement
306
+ none: false
307
+ requirements:
308
+ - - ">="
309
+ - !ruby/object:Gem::Version
310
+ hash: 3
311
+ segments:
312
+ - 0
313
+ version: "0"
314
+ requirements: []
315
+
316
+ rubyforge_project:
317
+ rubygems_version: 1.8.24
318
+ signing_key:
319
+ specification_version: 3
320
+ summary: CLI for box
321
+ test_files:
322
+ - spec/box_cli/account_info_command_spec.rb
323
+ - spec/box_cli/box_command_spec.rb
324
+ - spec/box_cli/create_folder_command_spec.rb
325
+ - spec/box_cli/delete_command_spec.rb
326
+ - spec/box_cli/generic_box_command_spec.rb
327
+ - spec/box_cli/hash_to_pretty_spec.rb
328
+ - spec/box_cli/info_command_spec.rb
329
+ - spec/box_cli/settings_command_spec.rb
330
+ - spec/box_cli/upload_command_spec.rb
331
+ - spec/box_helpers.rb
332
+ - spec/spec_helper.rb