cf-uaa-lib 4.0.4 → 4.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gem-push.yml +14 -19
- data/cf-uaa-lib.gemspec +2 -1
- data/lib/uaa/util.rb +5 -5
- data/lib/uaa/version.rb +1 -1
- metadata +25 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0e403a09ef6239150df20123d5596e3990054b67f718d1c08ed4a157475c14b
|
4
|
+
data.tar.gz: 2707255f7d895a3c1a56f1cb67af4200eeb16bf9311dfe00accaf23645c8afc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94eebb8323b3f10f4afffa26c87eb2a36725b20c3d7926b0ca17aa6edab9e389cdb10a2e2d117a0e9152d8d97a75378c5785c3433ec673c44b82747398966873
|
7
|
+
data.tar.gz: 6b4a915f3adcc507943830d0b0ed438931fa29780c09b14bf9e2c3f0a48cd66e4d53c775bbfa489bb725536a12fa6eb64707090014d508974871cda0b284e59b
|
@@ -3,27 +3,22 @@ name: Ruby Gem
|
|
3
3
|
on: workflow_dispatch
|
4
4
|
|
5
5
|
jobs:
|
6
|
-
|
7
|
-
name:
|
6
|
+
push:
|
7
|
+
name: Push gem to RubyGems.org
|
8
8
|
runs-on: ubuntu-latest
|
9
|
+
|
9
10
|
permissions:
|
10
|
-
|
11
|
-
|
11
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
12
|
+
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag
|
12
13
|
|
13
14
|
steps:
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
# Set up
|
16
|
+
- uses: actions/checkout@v4
|
17
|
+
- name: Set up Ruby
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
bundler-cache: true
|
21
|
+
ruby-version: ruby
|
19
22
|
|
20
|
-
|
21
|
-
|
22
|
-
mkdir -p $HOME/.gem
|
23
|
-
touch $HOME/.gem/credentials
|
24
|
-
chmod 0600 $HOME/.gem/credentials
|
25
|
-
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
26
|
-
gem build *.gemspec
|
27
|
-
gem push *.gem
|
28
|
-
env:
|
29
|
-
GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_AUTH_TOKEN }}"
|
23
|
+
# Release
|
24
|
+
- uses: rubygems/release-gem@v1
|
data/cf-uaa-lib.gemspec
CHANGED
@@ -32,6 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
|
33
33
|
# dependencies
|
34
34
|
s.add_dependency 'multi_json', '>= 1.12.1', '< 1.16'
|
35
|
+
s.add_dependency 'json_pure', '~>2.7'
|
35
36
|
s.add_dependency 'httpclient', '~> 2.8', '>= 2.8.2.4'
|
36
37
|
s.add_dependency 'addressable', '~> 2.8', '>= 2.8.0'
|
37
38
|
|
@@ -41,7 +42,7 @@ Gem::Specification.new do |s|
|
|
41
42
|
s.add_development_dependency 'simplecov', '~> 0.22.0'
|
42
43
|
s.add_development_dependency 'simplecov-rcov', '~> 0.3.0'
|
43
44
|
s.add_development_dependency 'ci_reporter', '>= 1.9.2', '~> 2.0'
|
44
|
-
s.add_development_dependency 'json_pure', '
|
45
|
+
s.add_development_dependency 'json_pure', '~>2.7'
|
45
46
|
s.add_development_dependency 'ci_reporter_rspec', '~> 1.0'
|
46
47
|
|
47
48
|
end
|
data/lib/uaa/util.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
# subcomponent's license, as noted in the LICENSE file.
|
12
12
|
#++
|
13
13
|
|
14
|
-
require '
|
14
|
+
require 'json/pure'
|
15
15
|
require "base64"
|
16
16
|
require 'logger'
|
17
17
|
require 'uri'
|
@@ -141,11 +141,11 @@ class Util
|
|
141
141
|
|
142
142
|
# Converts +obj+ to JSON
|
143
143
|
# @return [String] obj in JSON form.
|
144
|
-
def self.json(obj)
|
144
|
+
def self.json(obj) JSON.dump(obj) end
|
145
145
|
|
146
146
|
# Converts +obj+ to nicely formatted JSON
|
147
147
|
# @return [String] obj in formatted json
|
148
|
-
def self.json_pretty(obj)
|
148
|
+
def self.json_pretty(obj) JSON.pretty_generate(obj) end
|
149
149
|
|
150
150
|
# Converts +obj+ to a URL-safe base 64 encoded string
|
151
151
|
# @return [String]
|
@@ -182,8 +182,8 @@ class Util
|
|
182
182
|
# @param style (see Util.hash_key)
|
183
183
|
# @return [Hash] parsed data
|
184
184
|
def self.json_parse(str, style = nil)
|
185
|
-
hash_keys!(
|
186
|
-
rescue
|
185
|
+
hash_keys!(JSON.parse(str), style) if str && !str.empty?
|
186
|
+
rescue Exception
|
187
187
|
raise DecodeError, "json decoding error"
|
188
188
|
end
|
189
189
|
|
data/lib/uaa/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf-uaa-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.6
|
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: 2024-11-01 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: multi_json
|
@@ -34,6 +34,20 @@ dependencies:
|
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: '1.16'
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: json_pure
|
39
|
+
requirement: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '2.7'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - "~>"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '2.7'
|
37
51
|
- !ruby/object:Gem::Dependency
|
38
52
|
name: httpclient
|
39
53
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,22 +72,22 @@ dependencies:
|
|
58
72
|
name: addressable
|
59
73
|
requirement: !ruby/object:Gem::Requirement
|
60
74
|
requirements:
|
61
|
-
- - ">="
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 2.8.0
|
64
75
|
- - "~>"
|
65
76
|
- !ruby/object:Gem::Version
|
66
77
|
version: '2.8'
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 2.8.0
|
67
81
|
type: :runtime
|
68
82
|
prerelease: false
|
69
83
|
version_requirements: !ruby/object:Gem::Requirement
|
70
84
|
requirements:
|
71
|
-
- - ">="
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: 2.8.0
|
74
85
|
- - "~>"
|
75
86
|
- !ruby/object:Gem::Version
|
76
87
|
version: '2.8'
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 2.8.0
|
77
91
|
- !ruby/object:Gem::Dependency
|
78
92
|
name: bundler
|
79
93
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,22 +194,16 @@ dependencies:
|
|
180
194
|
name: json_pure
|
181
195
|
requirement: !ruby/object:Gem::Requirement
|
182
196
|
requirements:
|
183
|
-
- - ">="
|
184
|
-
- !ruby/object:Gem::Version
|
185
|
-
version: 1.8.1
|
186
197
|
- - "~>"
|
187
198
|
- !ruby/object:Gem::Version
|
188
|
-
version: '2.
|
199
|
+
version: '2.7'
|
189
200
|
type: :development
|
190
201
|
prerelease: false
|
191
202
|
version_requirements: !ruby/object:Gem::Requirement
|
192
203
|
requirements:
|
193
|
-
- - ">="
|
194
|
-
- !ruby/object:Gem::Version
|
195
|
-
version: 1.8.1
|
196
204
|
- - "~>"
|
197
205
|
- !ruby/object:Gem::Version
|
198
|
-
version: '2.
|
206
|
+
version: '2.7'
|
199
207
|
- !ruby/object:Gem::Dependency
|
200
208
|
name: ci_reporter_rspec
|
201
209
|
requirement: !ruby/object:Gem::Requirement
|
@@ -273,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
273
281
|
- !ruby/object:Gem::Version
|
274
282
|
version: '0'
|
275
283
|
requirements: []
|
276
|
-
rubygems_version: 3.
|
284
|
+
rubygems_version: 3.5.16
|
277
285
|
signing_key:
|
278
286
|
specification_version: 4
|
279
287
|
summary: Client library for CloudFoundry UAA
|