brightbox-cli 2.4.0 → 2.4.1

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: 19a5a3b2411db9bbb8a93da680fcaa462d0b6676
4
- data.tar.gz: 71069abea72fc45d2f70b9332e4a0452dee57cc6
3
+ metadata.gz: f4a1616593204f04408c2c5ab64a4455cb717cf7
4
+ data.tar.gz: 1fb4cc2fe3f5120b0782ff7a515b0bbb900fd520
5
5
  SHA512:
6
- metadata.gz: 30fb4fcb513d901a2c5597208223bc5a19790fef47f506622e005d5c600e1b3f6359f5f97c63029f9b981f0014e4f90008c9665c6692679bd3d48bd3bf08a8d8
7
- data.tar.gz: b1a024f43884334d5672b77d0ceeb4af69f9f9ad5214f56eac8fbdb5d8b8b36e44c54a2b42a80ce3e4e5370ab574efa85b1fa0a49d4fd434ed8c85b39d6129c3
6
+ metadata.gz: 28659190077191592bc361f9b1be924fa714e8a59cd83b67754d58b3db9711accdb08dafd3b4c52f1d8a556ac8de2329d0afe934bf40d2485ff0b52c5efb1c63
7
+ data.tar.gz: 816128112c83172c47f481753f4af184405eb62fcb22d912295573ca8429ebb398b20f2623a2f926ce3d3bbc54832572a7ab6ad464faacd9b19d5f9565d10af0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### v2.4.1 / 2016-06-06
2
+
3
+ [Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.4.0...v2.4.1)
4
+
5
+ Enhancements:
6
+
7
+ * Optimise API call used when listing images
8
+
1
9
  ### v2.4.0 / 2016-01-20
2
10
 
3
11
  [Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v2.3.4...v2.4.0)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brightbox-cli (2.4.0)
4
+ brightbox-cli (2.4.1)
5
5
  fog-brightbox (>= 0.10.1)
6
6
  gli (~> 2.12.0)
7
7
  highline (~> 1.6.0)
@@ -20,18 +20,15 @@ GEM
20
20
  crack (0.4.2)
21
21
  safe_yaml (~> 1.0.0)
22
22
  diff-lcs (1.2.5)
23
- excon (0.45.4)
23
+ excon (0.49.0)
24
24
  fog-brightbox (0.10.1)
25
25
  fog-core (~> 1.22)
26
26
  fog-json
27
27
  inflecto (~> 0.0.2)
28
- fog-core (1.32.1)
28
+ fog-core (1.39.0)
29
29
  builder
30
- excon (~> 0.45)
30
+ excon (~> 0.49)
31
31
  formatador (~> 0.2)
32
- mime-types
33
- net-scp (~> 1.1)
34
- net-ssh (>= 2.1.3)
35
32
  fog-json (1.0.2)
36
33
  fog-core (~> 1.0)
37
34
  multi_json (~> 1.10)
@@ -43,13 +40,11 @@ GEM
43
40
  inflecto (0.0.2)
44
41
  metaclass (0.0.1)
45
42
  method_source (0.8.1)
46
- mime-types (2.99)
43
+ mime-types (2.99.1)
47
44
  mocha (0.14.0)
48
45
  metaclass (~> 0.0.1)
49
- multi_json (1.11.2)
50
- net-scp (1.2.1)
51
- net-ssh (>= 2.6.5)
52
- net-ssh (2.9.2)
46
+ multi_json (1.11.3)
47
+ net-ssh (2.9.4)
53
48
  pry (0.9.12.2)
54
49
  coderay (~> 1.0.5)
55
50
  method_source (~> 0.8)
@@ -40,8 +40,8 @@ module Brightbox
40
40
  end
41
41
 
42
42
  unless options[:a]
43
- account = Account.conn.account
44
- images.reject! { |i| !i.official && i.owner_id != account.id }
43
+ account = Account.conn.get_scoped_account(:nested => false)
44
+ images.reject! { |i| !i.official && i.owner_id != account[:id] }
45
45
  end
46
46
 
47
47
  snapshots = images.select { |i| i.source_type == 'snapshot' }
@@ -1,3 +1,3 @@
1
1
  module Brightbox
2
- VERSION = "2.4.0" unless defined?(Brightbox::VERSION)
2
+ VERSION = "2.4.1" unless defined?(Brightbox::VERSION)
3
3
  end
@@ -17,7 +17,7 @@ describe "brightbox database-snapshots" do
17
17
  let(:argv) { %w(sql snapshots list) }
18
18
 
19
19
  it "does not output to stderr" do
20
- expect(stderr).to be_empty
20
+ expect(stderr).to eql("")
21
21
  end
22
22
 
23
23
  it "outputs table details to stdout" do
@@ -17,7 +17,7 @@ describe "brightbox database-snapshots" do
17
17
  let(:argv) { %w(sql snapshots show dbi-12345) }
18
18
 
19
19
  it "does not output to stderr" do
20
- expect(stderr).to be_empty
20
+ expect(stderr).to eql("")
21
21
  end
22
22
 
23
23
  it "outputs table details to stdout" do
data/spec/spec_helper.rb CHANGED
@@ -30,10 +30,13 @@ RSpec.configure do |config|
30
30
  config.include TokenHelpers
31
31
  config.include PasswordPromptHelpers
32
32
 
33
- # For each test, point to the testing endpoint to make it safer and easier to
34
- # record from dev endpoints. Devs can DNS api.brightbox.dev to their dev service
35
33
  config.before do
34
+ # For each test, point to the testing endpoint to make it safer and easier to
35
+ # record from dev endpoints. Devs can DNS api.brightbox.dev to their dev service
36
36
  stub_const("Brightbox::DEFAULT_API_ENDPOINT", ENV["BRIGHTBOX_API_URL"] || "http://api.brightbox.dev")
37
+ # And set a sane terminal size for Hirb
38
+ ENV["COLUMNS"] = "120"
39
+ ENV["LINES"] = "120"
37
40
  end
38
41
 
39
42
  # For each test, isolate the testing users $HOME so that we control the config
@@ -5,7 +5,7 @@ describe Brightbox::BBConfig, "#section_names" do
5
5
 
6
6
  context "when no sections exist" do
7
7
  let(:ini) { "" }
8
- it { expect(config.section_names).to be_empty }
8
+ it { expect(config.section_names).to eql([]) }
9
9
  end
10
10
 
11
11
  context "when only a 'core' section exists" do
@@ -15,7 +15,7 @@ describe Brightbox::BBConfig, "#section_names" do
15
15
  setting = value
16
16
  EOS
17
17
  end
18
- it { expect(config.section_names).to be_empty }
18
+ it { expect(config.section_names).to eql([]) }
19
19
  end
20
20
 
21
21
  context "when only an 'alias' section exists" do
@@ -25,7 +25,7 @@ describe Brightbox::BBConfig, "#section_names" do
25
25
  setting = value
26
26
  EOS
27
27
  end
28
- it { expect(config.section_names).to be_empty }
28
+ it { expect(config.section_names).to eql([]) }
29
29
  end
30
30
 
31
31
  context "when multiple sections exist" do
@@ -22,7 +22,7 @@ describe Brightbox::CollaboratingAccount do
22
22
 
23
23
  [:cloud_ips_limit, :lb_limit, :ram_limit, :ram_used, :ram_free].each do |key|
24
24
  it "returns empty string for #{key}" do
25
- expect(row_data[key]).to be_empty
25
+ expect(row_data[key]).to eql("")
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightbox-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Leach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-20 00:00:00.000000000 Z
11
+ date: 2016-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-brightbox