brightbox-cli 2.3.3 → 2.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 341aea988c85cfae2bae2a480ed6a3536423fd97
4
- data.tar.gz: 4891a8b6731c6f002b8629d077f155026763441c
3
+ metadata.gz: 9cf0beb67f410d3e6ea79a9e185061bcb55459e8
4
+ data.tar.gz: a36384bb42af2559dbe1abc52d42d8467e67a4e5
5
5
  SHA512:
6
- metadata.gz: 90e8b0b8efe3011b75f13355103bbd0da84b0b346df32b5a2edaa3a370b10a59b91fc5ef6741c095efdf9ddba7dc5c6c1217a72e0a74b263ddbf6de9af500257
7
- data.tar.gz: ab82aa008e71a0759ae29a3e5e5053dd880bef75c95798abb02815a7c9e6824f8f563849ac7b09405a750b8376204cac091614a1a78f465a4ac12787fdcafcf6
6
+ metadata.gz: 85a949a8c34514f1cec2ab33bfde714837f6df01545272479697f851b96b6ca21e1bb05ba706ea99c2b7196c049586d32ea67e26bec7db60c783d75e2503ce91
7
+ data.tar.gz: eaa699fc2ca894d4925dc2559e7c2259cda25ea042b1cd7c43ca8279c1462bb5eb1e12ee2a913eee43d90c890b96a0195fb54ae03bb8066fdb9e50e54c7c2d4f
@@ -1,3 +1,11 @@
1
+ ### v2.3.4 / 2015-11-23
2
+
3
+ [Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.3.3...v2.3.4)
4
+
5
+ Bug fixes:
6
+
7
+ * Lock `mime-types` to 2.x series. Ruby 1.9.3 support is dropped in v3.0 (fixes GH#80)
8
+
1
9
  ### v2.3.3 / 2015-11-04
2
10
 
3
11
  [Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.3.2...v2.3.3)
@@ -1,12 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brightbox-cli (2.3.3)
4
+ brightbox-cli (2.3.4)
5
5
  fog-brightbox (>= 0.9.0)
6
6
  gli (~> 2.12.0)
7
7
  highline (~> 1.6.0)
8
8
  hirb (~> 0.6)
9
9
  i18n (~> 0.6.0)
10
+ mime-types (~> 2.6)
10
11
  multi_json (~> 1.11.0)
11
12
  net-ssh (< 3.0)
12
13
 
@@ -0,0 +1 @@
1
+ README
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.add_dependency "fog-brightbox", ">= 0.9.0"
25
25
  s.add_dependency "gli", "~> 2.12.0"
26
26
  s.add_dependency "i18n", "~> 0.6.0"
27
+ s.add_dependency "mime-types", "~> 2.6"
27
28
  s.add_dependency "multi_json", "~> 1.11.0"
28
29
  s.add_dependency "net-ssh", "< 3.0"
29
30
  s.add_dependency "highline", "~> 1.6.0"
@@ -1,3 +1,3 @@
1
1
  module Brightbox
2
- VERSION = "2.3.3" unless defined?(Brightbox::VERSION)
2
+ VERSION = "2.3.4" unless defined?(Brightbox::VERSION)
3
3
  end
metadata CHANGED
@@ -1,195 +1,209 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightbox-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Leach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-04 00:00:00.000000000 Z
11
+ date: 2015-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: fog-brightbox
14
+ prerelease: false
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.9.0
20
+ name: fog-brightbox
20
21
  type: :runtime
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.9.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: gli
28
+ prerelease: false
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.12.0
34
+ name: gli
34
35
  type: :runtime
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: 2.12.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: i18n
42
+ prerelease: false
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.6.0
48
+ name: i18n
48
49
  type: :runtime
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.6.0
55
55
  - !ruby/object:Gem::Dependency
56
- name: multi_json
56
+ prerelease: false
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 1.11.0
61
+ version: '2.6'
62
+ name: mime-types
62
63
  type: :runtime
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '2.6'
69
+ - !ruby/object:Gem::Dependency
63
70
  prerelease: false
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 1.11.0
76
+ name: multi_json
77
+ type: :runtime
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - "~>"
80
+ - - ~>
67
81
  - !ruby/object:Gem::Version
68
82
  version: 1.11.0
69
83
  - !ruby/object:Gem::Dependency
70
- name: net-ssh
84
+ prerelease: false
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - "<"
87
+ - - <
74
88
  - !ruby/object:Gem::Version
75
89
  version: '3.0'
90
+ name: net-ssh
76
91
  type: :runtime
77
- prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - "<"
94
+ - - <
81
95
  - !ruby/object:Gem::Version
82
96
  version: '3.0'
83
97
  - !ruby/object:Gem::Dependency
84
- name: highline
98
+ prerelease: false
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - "~>"
101
+ - - ~>
88
102
  - !ruby/object:Gem::Version
89
103
  version: 1.6.0
104
+ name: highline
90
105
  type: :runtime
91
- prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - "~>"
108
+ - - ~>
95
109
  - !ruby/object:Gem::Version
96
110
  version: 1.6.0
97
111
  - !ruby/object:Gem::Dependency
98
- name: hirb
112
+ prerelease: false
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - "~>"
115
+ - - ~>
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0.6'
118
+ name: hirb
104
119
  type: :runtime
105
- prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - "~>"
122
+ - - ~>
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0.6'
111
125
  - !ruby/object:Gem::Dependency
112
- name: mocha
126
+ prerelease: false
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
- - - ">="
129
+ - - '>='
116
130
  - !ruby/object:Gem::Version
117
131
  version: '0'
132
+ name: mocha
118
133
  type: :development
119
- prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
- - - ">="
136
+ - - '>='
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
- name: pry-remote
140
+ prerelease: false
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - ">="
143
+ - - '>='
130
144
  - !ruby/object:Gem::Version
131
145
  version: '0'
146
+ name: pry-remote
132
147
  type: :development
133
- prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
- - - ">="
150
+ - - '>='
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  - !ruby/object:Gem::Dependency
140
- name: rake
154
+ prerelease: false
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
- - - ">="
157
+ - - '>='
144
158
  - !ruby/object:Gem::Version
145
159
  version: '0'
160
+ name: rake
146
161
  type: :development
147
- prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
- - - ">="
164
+ - - '>='
151
165
  - !ruby/object:Gem::Version
152
166
  version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
- name: rspec
168
+ prerelease: false
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
- - - "~>"
171
+ - - ~>
158
172
  - !ruby/object:Gem::Version
159
173
  version: '2.99'
174
+ name: rspec
160
175
  type: :development
161
- prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
- - - "~>"
178
+ - - ~>
165
179
  - !ruby/object:Gem::Version
166
180
  version: '2.99'
167
181
  - !ruby/object:Gem::Dependency
168
- name: vcr
182
+ prerelease: false
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
- - - "~>"
185
+ - - ~>
172
186
  - !ruby/object:Gem::Version
173
187
  version: '2.5'
188
+ name: vcr
174
189
  type: :development
175
- prerelease: false
176
190
  version_requirements: !ruby/object:Gem::Requirement
177
191
  requirements:
178
- - - "~>"
192
+ - - ~>
179
193
  - !ruby/object:Gem::Version
180
194
  version: '2.5'
181
195
  - !ruby/object:Gem::Dependency
182
- name: webmock
196
+ prerelease: false
183
197
  requirement: !ruby/object:Gem::Requirement
184
198
  requirements:
185
- - - ">="
199
+ - - '>='
186
200
  - !ruby/object:Gem::Version
187
201
  version: '0'
202
+ name: webmock
188
203
  type: :development
189
- prerelease: false
190
204
  version_requirements: !ruby/object:Gem::Requirement
191
205
  requirements:
192
- - - ">="
206
+ - - '>='
193
207
  - !ruby/object:Gem::Version
194
208
  version: '0'
195
209
  description: Scripts to interact with the Brightbox cloud API
@@ -213,8 +227,8 @@ executables:
213
227
  extensions: []
214
228
  extra_rdoc_files: []
215
229
  files:
216
- - ".gitignore"
217
- - ".travis.yml"
230
+ - .gitignore
231
+ - .travis.yml
218
232
  - CHANGELOG.md
219
233
  - Gemfile
220
234
  - Gemfile.lock
@@ -716,17 +730,17 @@ require_paths:
716
730
  - lib
717
731
  required_ruby_version: !ruby/object:Gem::Requirement
718
732
  requirements:
719
- - - ">="
733
+ - - '>='
720
734
  - !ruby/object:Gem::Version
721
735
  version: 1.9.3
722
736
  required_rubygems_version: !ruby/object:Gem::Requirement
723
737
  requirements:
724
- - - ">="
738
+ - - '>='
725
739
  - !ruby/object:Gem::Version
726
740
  version: '0'
727
741
  requirements: []
728
742
  rubyforge_project: brightbox-cli
729
- rubygems_version: 2.4.5.1
743
+ rubygems_version: 2.5.0
730
744
  signing_key:
731
745
  specification_version: 4
732
746
  summary: The Brightbox cloud management system
@@ -1042,4 +1056,3 @@ test_files:
1042
1056
  - spec/unit/ruby_core_ext_spec.rb
1043
1057
  - spec/unit/temporary_home_spec.rb
1044
1058
  - spec/unit/tmp_config_spec.rb
1045
- has_rdoc:
@@ -1,170 +0,0 @@
1
- = Brightbox Cloud Command Line Interface
2
-
3
- `brightbox-cli` is a set of cli tools to interact with the Brightbox Cloud API.
4
-
5
- You will need a user account on the Brightbox Cloud in order to make use of
6
- these tools.
7
-
8
- You can sign up at https://manage.brightbox.com
9
-
10
- {<img src="https://travis-ci.org/brightbox/brightbox-cli.png?branch=master" alt="Build Status" />}[https://travis-ci.org/brightbox/brightbox-cli]
11
-
12
- == UPGRADE NOTES
13
-
14
- Version 1.0.0 adds a new top level `brightbox` command for the suite.
15
-
16
- This may clash with our `brightbox` (brightbox-deployment) gem which, before
17
- version 2.4.0, used `brightbox` as the name for it's binary. Please ensure you
18
- update your `brightbox` gem to avoid using the wrong command.
19
-
20
- We have included backwards compatible binaries for all the older CLI commands
21
- (brightbox-accounts, brightbox-servers etc...) but recommend getting used to the
22
- new form.
23
-
24
- == Installation instructions
25
-
26
- Install from Rubygems
27
-
28
- $ gem install brightbox-cli
29
-
30
- == Usage
31
-
32
- The Brightbox CLI is a suite of tools that are accessible through the
33
- `brightbox` command in a similar way to how you access `git` commands.
34
-
35
- For a list of available commands use:
36
-
37
- $ brightbox help
38
-
39
- To add client (account based) credentials use:
40
-
41
- $ brightbox config client_add cli-2igtb theclientsecret
42
- Using config file /home/ubuntu/.brightbox/config
43
- Creating new api client config cli-2igtb
44
-
45
- To browse available resources use the resource name as the command:
46
-
47
- $ brightbox servers
48
- ... List of servers
49
- $ brightbox images
50
- ... List of images
51
-
52
- Command structure may be subject to change.
53
-
54
- === Using GPG to secure passwords
55
-
56
- If you use an OAuth application to access your accounts
57
- (https://www.brightbox.com/docs/guides/manager/oauth-applications/) then you
58
- frequently need to renter your password.
59
-
60
- From v1.5.0 you can store your password locally encrypted by GPG (https://www.gnupg.org/)
61
- which will decrypt the password when needed. This will prompt for your GPG key
62
- if not available to the GPG agent using your OS's configured pinentry program.
63
-
64
- You need to have setup GPG with your own keys and have configured the pinentry
65
- to prompt you when the key is locked.
66
-
67
- The password file is named after your configuration's alias:
68
-
69
- $ brightbox config
70
- alias client_id secret api_url auth_url
71
- ------------------------------------------------------------------------------------------------------------------
72
- *main app-12345 xxxxxxxxxxxxxxx https://api.gb1.brightbox.com https://api.gb1.brightbox.com
73
- ------------------------------------------------------------------------------------------------------------------
74
-
75
- The alias here is `main`. To prepare the password run this command:
76
-
77
- $ gpg --encrypt --recipient gpg@example.com > ~/.brightbox/main.password.gpg
78
- (type your password)<RETURN>
79
- <CTRL+D>
80
- # Test it with...
81
- $ gpg --decrypt ~/.brightbox/main.password.gpg
82
- password!2015
83
- $ brightbox accounts
84
- INFO: client_id: app-12345 (main)
85
- INFO: Decrypting /home/user/.brightbox/main.password.gpg to obtain password
86
- gpg: encrypted with 2048-bit RSA key, ID ABCDE890, created 2015-01-01
87
- "Jason Null <gpg@example.com>"
88
- Your API credentials have been updated, please re-run your command.
89
-
90
- Now when making commands you should only have to unlock your keyring to avoid
91
- typing your password.
92
-
93
- If you are prompted to enter your password still then the file may be named
94
- incorrectly or there may be an issue with your GPG configuration.
95
-
96
- To remove the password delete the `~/.brightbox/main.password.gpg` file.
97
-
98
- == Usage guides
99
-
100
- * http://docs.brightbox.com/reference/cli
101
- * http://brightbox.com
102
- * http://docs.brightbox.com/reference/api/
103
-
104
- == BASH Auto-completion
105
-
106
- A bash shell auto-completion script is provided to allow
107
- autocompletion of all sub-commands, options and resource
108
- identifiers. It is automatically configured by the Debian/Ubuntu
109
- packages, but if you're installing from a gem you can manually tell
110
- bash about it like this:
111
-
112
- complete -C _brightbox-bash-completer -o filenames brightbox
113
-
114
- The command `_brightbox-bash-completer` should be installed in the
115
- system path when you install the gem. If for whatever reason it is not
116
- in the path, just specify the full path to it:
117
-
118
- complete -C /full/path/to/bin/_brightbox-bash-completer -o filenames brightbox
119
-
120
- == Testing
121
-
122
- You should be able to run the specs and features with the following steps:
123
-
124
- $ bundle install
125
- $ bundle exec rake
126
-
127
- The specs use VCR to playback filtered recordings from real API sessions. This
128
- process is not perfect, please report an issue
129
-
130
- == Alternatives
131
-
132
- There are a number of alternative ways to interact with the Brightbox Cloud.
133
-
134
- * The Web GUI - https://manage.brightbox.com/
135
- * fog - https://github.com/fog/fog
136
- * knife plugin - https://github.com/rubiojr/knife-brightbox
137
- * Vagrant plugin - https://github.com/NeilW/vagrant-brightbox
138
-
139
- == Packaging
140
-
141
- === Vendoring libraries
142
-
143
- gems can be vendored into `lib/brightbox-cli/vendor/` for packaging and will be
144
- prioritised over any gems.
145
-
146
- === Debian/Ubuntu packaging
147
-
148
- Packaging scripts are available in https://github.com/NeilW/brightbox-cli-debian-packaging
149
-
150
- == License
151
-
152
- Copyright (c) 2010-2013 John Leach, Brightbox Systems Ltd <john@brightbox.co.uk>
153
-
154
- Permission is hereby granted, free of charge, to any person obtaining a copy
155
- of this software and associated documentation files (the "Software"), to deal
156
- in the Software without restriction, including without limitation the rights
157
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
158
- copies of the Software, and to permit persons to whom the Software is
159
- furnished to do so, subject to the following conditions:
160
-
161
- The above copyright notice and this permission notice shall be included in
162
- all copies or substantial portions of the Software.
163
-
164
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
165
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
166
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
167
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
168
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
169
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
170
- THE SOFTWARE.