cf-uaac 4.3.0 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +26 -0
- data/cf-uaac.gemspec +4 -5
- data/spec/client_reg_spec.rb +2 -2
- data/spec/spec_helper.rb +6 -0
- data/spec/user_spec.rb +2 -2
- data/version.txt +1 -1
- metadata +32 -18
- data/.travis.yml +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5166dc3408b2860dd74b3beae7c699a4da045d871f194f379949e8458d207cc5
|
4
|
+
data.tar.gz: 0b4fc22bae413905c699f81590b482b5d74b1d6f480f428a02b839f34e60cd90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b380a1b762644585a61a9218ff83edc4dd50b39e35b3dd15b8deb856edd0b741d82e714c61b5d3f88eb0eaecb650c206ca987c4fc48e95df98f03a703706ad6c
|
7
|
+
data.tar.gz: 9d1c5a109a13dcc8642bb4b522d3ef7ee712f84341a98fd3f0f5c50eaf9beabd1bb74fd97eb9000c8a2f5b5d2e3a1ab13338d34c7cfcfa0961e9df80a6ac1c4a
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: Ruby
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
strategy:
|
14
|
+
fail-fast: false
|
15
|
+
matrix:
|
16
|
+
ruby-version: ['2.5', '2.7', '3.0', '3.1']
|
17
|
+
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
- name: Set up Ruby
|
21
|
+
uses: ruby/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby-version }}
|
24
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
25
|
+
- name: Run tests
|
26
|
+
run: bundle exec rake cov
|
data/cf-uaac.gemspec
CHANGED
@@ -24,8 +24,6 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.summary = %q{Command line interface for CloudFoundry UAA}
|
25
25
|
s.description = %q{Client command line tools for interacting with the CloudFoundry User Account and Authorization (UAA) server. The UAA is an OAuth2 Authorization Server so it can be used by webapps and command line apps to obtain access tokens to act on behalf of users. The tokens can then be used to access protected resources in a Resource Server. This library can be used by clients (as a convenient wrapper for mainstream oauth gems) or by resource servers.}
|
26
26
|
|
27
|
-
s.rubyforge_project = 'cf-uaac'
|
28
|
-
|
29
27
|
s.license = 'Apache-2.0'
|
30
28
|
s.files = `git ls-files`.split("\n")
|
31
29
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -33,13 +31,14 @@ Gem::Specification.new do |s|
|
|
33
31
|
s.require_paths = ['lib']
|
34
32
|
|
35
33
|
# dependencies
|
36
|
-
s.add_runtime_dependency 'cf-uaa-lib', '~> 3.
|
34
|
+
s.add_runtime_dependency 'cf-uaa-lib', '~> 3.14', '> 3.14.3'
|
37
35
|
s.add_development_dependency 'rake', '>= 10.3.1', '~> 13.0'
|
38
36
|
s.add_development_dependency 'rspec', '>= 2.14.1', '~> 3.9'
|
39
37
|
s.add_development_dependency 'simplecov', '~> 0.21.2'
|
40
38
|
s.add_development_dependency 'simplecov-rcov', '~> 0.2.3'
|
41
|
-
s.add_development_dependency 'ci_reporter', '
|
42
|
-
s.
|
39
|
+
s.add_development_dependency 'ci_reporter', '>= 1.9.2', '~> 2.0'
|
40
|
+
s.add_development_dependency 'ci_reporter_rspec', '~> 1.0'
|
41
|
+
s.add_runtime_dependency 'highline', '~> 2.0'
|
43
42
|
s.add_runtime_dependency 'eventmachine', '~> 1.0', '>= 1.0.3'
|
44
43
|
s.add_runtime_dependency 'launchy', '~> 2.4', '>= 2.4.2'
|
45
44
|
s.add_runtime_dependency 'em-http-request', '~> 1.1', '>= 1.1.2'
|
data/spec/client_reg_spec.rb
CHANGED
@@ -58,8 +58,8 @@ describe ClientCli do
|
|
58
58
|
end
|
59
59
|
|
60
60
|
it 'does not wrap the output of the access token in the terminal' do
|
61
|
-
@output.
|
62
|
-
HighLine::
|
61
|
+
allow(@output).to receive(:tty?).and_return(true)
|
62
|
+
allow(HighLine::Terminal).to receive(:terminal_size).and_return([80, 40])
|
63
63
|
Cli.run('context').should be
|
64
64
|
Cli.output.string.should match /access_token: \S+?\s+token_type/m
|
65
65
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -26,6 +26,12 @@ require 'rspec'
|
|
26
26
|
require 'eventmachine'
|
27
27
|
require 'uaa/stub/uaa'
|
28
28
|
|
29
|
+
RSpec.configure do |config|
|
30
|
+
config.expect_with :rspec do |expectations|
|
31
|
+
expectations.syntax = [:expect, :should]
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
29
35
|
module CF::UAA
|
30
36
|
|
31
37
|
module SpecHelper
|
data/spec/user_spec.rb
CHANGED
@@ -69,7 +69,7 @@ describe UserCli do
|
|
69
69
|
Cli.input = StringIO.new("password") # selecting first origin through stdin
|
70
70
|
Cli.run("user add #{user_with_origin} " +
|
71
71
|
'--emails sam@example.com --given_name SamueL ' +
|
72
|
-
"--phones 801-555-1212 --family_name jonES --origin uaa")
|
72
|
+
"--phones 801-555-1212 --family_name jonES --origin uaa")
|
73
73
|
|
74
74
|
expect(Cli.output.string).to match 'Password:'
|
75
75
|
Cli.run("user delete #{user_with_origin}")
|
@@ -80,7 +80,7 @@ describe UserCli do
|
|
80
80
|
Cli.input = StringIO.new("password") # selecting first origin through stdin
|
81
81
|
Cli.run("user add #{user_with_origin} " +
|
82
82
|
'--emails sam@example.com --given_name SamueL ' +
|
83
|
-
"--phones 801-555-1212 --family_name jonES")
|
83
|
+
"--phones 801-555-1212 --family_name jonES")
|
84
84
|
|
85
85
|
expect(Cli.output.string).to match 'Password:'
|
86
86
|
Cli.run("user delete #{user_with_origin}")
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.
|
1
|
+
4.4.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf-uaac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Syer
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2022-01-14 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: cf-uaa-lib
|
@@ -20,14 +20,20 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "~>"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '3.
|
23
|
+
version: '3.14'
|
24
|
+
- - ">"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.14.3
|
24
27
|
type: :runtime
|
25
28
|
prerelease: false
|
26
29
|
version_requirements: !ruby/object:Gem::Requirement
|
27
30
|
requirements:
|
28
31
|
- - "~>"
|
29
32
|
- !ruby/object:Gem::Version
|
30
|
-
version: '3.
|
33
|
+
version: '3.14'
|
34
|
+
- - ">"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 3.14.3
|
31
37
|
- !ruby/object:Gem::Dependency
|
32
38
|
name: rake
|
33
39
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,42 +106,50 @@ dependencies:
|
|
100
106
|
name: ci_reporter
|
101
107
|
requirement: !ruby/object:Gem::Requirement
|
102
108
|
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: 1.9.2
|
103
112
|
- - "~>"
|
104
113
|
- !ruby/object:Gem::Version
|
105
|
-
version: '
|
114
|
+
version: '2.0'
|
115
|
+
type: :development
|
116
|
+
prerelease: false
|
117
|
+
version_requirements: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
106
119
|
- - ">="
|
107
120
|
- !ruby/object:Gem::Version
|
108
121
|
version: 1.9.2
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '2.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: ci_reporter_rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '1.0'
|
109
132
|
type: :development
|
110
133
|
prerelease: false
|
111
134
|
version_requirements: !ruby/object:Gem::Requirement
|
112
135
|
requirements:
|
113
136
|
- - "~>"
|
114
137
|
- !ruby/object:Gem::Version
|
115
|
-
version: '1.
|
116
|
-
- - ">="
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
version: 1.9.2
|
138
|
+
version: '1.0'
|
119
139
|
- !ruby/object:Gem::Dependency
|
120
140
|
name: highline
|
121
141
|
requirement: !ruby/object:Gem::Requirement
|
122
142
|
requirements:
|
123
143
|
- - "~>"
|
124
144
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
126
|
-
- - ">="
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: 1.6.21
|
145
|
+
version: '2.0'
|
129
146
|
type: :runtime
|
130
147
|
prerelease: false
|
131
148
|
version_requirements: !ruby/object:Gem::Requirement
|
132
149
|
requirements:
|
133
150
|
- - "~>"
|
134
151
|
- !ruby/object:Gem::Version
|
135
|
-
version: '
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 1.6.21
|
152
|
+
version: '2.0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: eventmachine
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -257,8 +271,8 @@ extensions: []
|
|
257
271
|
extra_rdoc_files: []
|
258
272
|
files:
|
259
273
|
- ".github/dependabot.yml"
|
274
|
+
- ".github/workflows/ruby.yml"
|
260
275
|
- ".gitignore"
|
261
|
-
- ".travis.yml"
|
262
276
|
- ".yardopts"
|
263
277
|
- Gemfile
|
264
278
|
- LICENSE
|