aptible-auth 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/aptible-auth.gemspec +2 -2
- data/lib/aptible/auth.rb +0 -4
- data/lib/aptible/auth/adapter.rb +1 -3
- data/lib/aptible/auth/organization.rb +4 -0
- data/lib/aptible/auth/resource.rb +1 -0
- data/lib/aptible/auth/role.rb +3 -0
- data/lib/aptible/auth/user.rb +12 -0
- metadata +17 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05b6f13b708d4d05d8f553239c5ed83f6a41c2d2
|
4
|
+
data.tar.gz: fcf947d45817171ba9f2475eb02e7e2427d25d9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb8ed96ad97b48e2d9f3187ad25cf1958e07ebc76ca40a2b02ddc5c48138eacbf27cb2fdf948f4e3ea5d01e9dd517edd8ad3999a2d64189261c6dc1045173efb
|
7
|
+
data.tar.gz: c4915d38cc80121139bd52502f37d668dae10e7777bc0e33264fc5c447670bc57c6833851873c5a3d709b994a3e95887e75c27d04c49e7991e9ad9af2bf73ffb
|
data/aptible-auth.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'English'
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'aptible-auth'
|
9
|
-
spec.version = '0.2.
|
9
|
+
spec.version = '0.2.1'
|
10
10
|
spec.authors = ['Frank Macreery']
|
11
11
|
spec.email = ['frank@macreery.com']
|
12
12
|
spec.description = 'Ruby client for auth.aptible.com'
|
@@ -22,10 +22,10 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_dependency 'oauth2'
|
23
23
|
spec.add_dependency 'hyperresource'
|
24
24
|
spec.add_dependency 'fridge'
|
25
|
-
spec.add_dependency 'activesupport'
|
26
25
|
|
27
26
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
28
27
|
spec.add_development_dependency 'aptible-tasks', '>= 0.2.0'
|
28
|
+
spec.add_development_dependency 'activesupport'
|
29
29
|
spec.add_development_dependency 'rake'
|
30
30
|
spec.add_development_dependency 'rspec', '~> 2.0'
|
31
31
|
spec.add_development_dependency 'pry'
|
data/lib/aptible/auth.rb
CHANGED
data/lib/aptible/auth/adapter.rb
CHANGED
data/lib/aptible/auth/role.rb
CHANGED
data/lib/aptible/auth/user.rb
CHANGED
@@ -3,5 +3,17 @@ module Aptible
|
|
3
3
|
def verified?
|
4
4
|
!!attributes['verified']
|
5
5
|
end
|
6
|
+
|
7
|
+
def organizations
|
8
|
+
roles.map(&:organization)
|
9
|
+
end
|
10
|
+
|
11
|
+
def privileged_organizations
|
12
|
+
privileged_roles.map(&:organization)
|
13
|
+
end
|
14
|
+
|
15
|
+
def privileged_roles
|
16
|
+
@privileged_roles ||= roles.select(&:privileged?)
|
17
|
+
end
|
6
18
|
end
|
7
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aptible-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_config
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: activesupport
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '>='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '>='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: bundler
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +94,20 @@ dependencies:
|
|
108
94
|
- - '>='
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: 0.2.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: activesupport
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,6 +170,7 @@ files:
|
|
170
170
|
- lib/aptible/auth/adapter.rb
|
171
171
|
- lib/aptible/auth/client.rb
|
172
172
|
- lib/aptible/auth/membership.rb
|
173
|
+
- lib/aptible/auth/organization.rb
|
173
174
|
- lib/aptible/auth/resource.rb
|
174
175
|
- lib/aptible/auth/role.rb
|
175
176
|
- lib/aptible/auth/session.rb
|