shelly 0.0.23 → 0.0.24

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.
@@ -41,8 +41,7 @@ module Shelly
41
41
  response = shelly.apps_users(clouds)
42
42
  response.inject({}) do |result, app|
43
43
  result[app['code_name']] = app['users'].map do |user|
44
- #user['name'] ? "#{user['email']} (#{user['name']})" : user['email']
45
- user['email']
44
+ user['name'] ? "#{user['email']} (#{user['name']})" : user['email']
46
45
  end
47
46
  result
48
47
  end
@@ -1,3 +1,3 @@
1
1
  module Shelly
2
- VERSION = "0.0.23"
2
+ VERSION = "0.0.24"
3
3
  end
@@ -58,7 +58,7 @@ describe Shelly::CLI::User do
58
58
  $stdout.should_receive(:puts).with("Cloud foo-production:")
59
59
  $stdout.should_receive(:puts).with(" user@example.com")
60
60
  $stdout.should_receive(:puts).with("Cloud foo-staging:")
61
- $stdout.should_receive(:puts).with(" user2@example.com")
61
+ $stdout.should_receive(:puts).with(" user2@example.com (username2)")
62
62
  @cli_user.list
63
63
  end
64
64
  end
@@ -27,11 +27,11 @@ describe Shelly::Cloudfile do
27
27
  @cloudfile.write(@hash)
28
28
  @client.should_receive(:apps_users).and_return(response)
29
29
  response = @cloudfile.fetch_users
30
- response.should == {"foo-staging" => ["user@example.com"]}
30
+ response.should == {"foo-staging" => ["user@example.com (username)"]}
31
31
  end
32
32
 
33
33
  def response
34
- [{'code_name' => 'foo-staging','users' => [{'email' => 'user@example.com'}]}]
34
+ [{'code_name' => 'foo-staging','users' => [{'name' => 'username','email' => 'user@example.com'}]}]
35
35
  end
36
36
  end
37
37
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shelly
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 47
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 23
10
- version: 0.0.23
9
+ - 24
10
+ version: 0.0.24
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shelly Cloud team