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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec18b7af2736542f939dab136eb1f7d2b728fa394a6c845423eb1e5c1a9c5b59
4
- data.tar.gz: 1aaa66c33d5070d78b22e6e8f6ee4d31940182bd23918e8b8e4ff5203c271e68
3
+ metadata.gz: c0e403a09ef6239150df20123d5596e3990054b67f718d1c08ed4a157475c14b
4
+ data.tar.gz: 2707255f7d895a3c1a56f1cb67af4200eeb16bf9311dfe00accaf23645c8afc4
5
5
  SHA512:
6
- metadata.gz: b4b3af6298e27f3941596509fc3cfcd90434d173d83ecc3d70094ca366ce550fdf9e78c54aaa29753d831cfb1cfae06cf077fb57c5bce8acd8109f4c2e35ae31
7
- data.tar.gz: daaf82f350b34392b3cf2fef2748a9403ede4e311e8856e0ce6a4df48d1d70a294f506f15292e5f17762a1c327e46800a29acf48d5d13266f705d28f97be8535
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
- build:
7
- name: Build + Publish
6
+ push:
7
+ name: Push gem to RubyGems.org
8
8
  runs-on: ubuntu-latest
9
+
9
10
  permissions:
10
- contents: read
11
- packages: write
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
- - uses: actions/checkout@v4
15
- - name: Set up Ruby 2.6
16
- uses: ruby/setup-ruby@v1
17
- with:
18
- ruby-version: '2.6'
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
- - name: Publish to RubyGems
21
- run: |
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', '>= 1.8.1', '~> 2.5'
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 'multi_json'
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) MultiJson.dump(obj) end
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) MultiJson.dump(obj, pretty: true) end
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!(MultiJson.load(str), style) if str && !str.empty?
186
- rescue MultiJson::DecodeError
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
@@ -14,6 +14,6 @@
14
14
  # Cloud Foundry namespace
15
15
  module CF
16
16
  module UAA
17
- VERSION = '4.0.4'
17
+ VERSION = '4.0.6'
18
18
  end
19
19
  end
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
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: 2023-10-17 00:00:00.000000000 Z
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.5'
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.5'
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.0.3.1
284
+ rubygems_version: 3.5.16
277
285
  signing_key:
278
286
  specification_version: 4
279
287
  summary: Client library for CloudFoundry UAA