cf-uaa-lib 4.0.4 → 4.0.5

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: 1265b1f30cfa697725fbdac34316f57c9bb202b84b28ca8a193e24747c223cc0
4
+ data.tar.gz: 442bdf0d2344510386518e92c27c05e19638bc64540315750d101c43d004bb5f
5
5
  SHA512:
6
- metadata.gz: b4b3af6298e27f3941596509fc3cfcd90434d173d83ecc3d70094ca366ce550fdf9e78c54aaa29753d831cfb1cfae06cf077fb57c5bce8acd8109f4c2e35ae31
7
- data.tar.gz: daaf82f350b34392b3cf2fef2748a9403ede4e311e8856e0ce6a4df48d1d70a294f506f15292e5f17762a1c327e46800a29acf48d5d13266f705d28f97be8535
6
+ metadata.gz: 2105ab1ec2909280fc9298478faad438bf33a4822269d3d026c8a47b4ecbe52204e2b884ad688282eb852c500fd3c9cd3c00f14734dc73b4c73eca8f46fb414b
7
+ data.tar.gz: 570f8db56441c4bcb0082838e5c473a2759ffe08def98b4d766853fdc05772714871df92ea4f010461c7cc8e1d0fea6d07ef116cce568186ba1f5f71543f4f72
@@ -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
@@ -0,0 +1,24 @@
1
+ name: Ruby Gem
2
+
3
+ on: workflow_dispatch
4
+
5
+ jobs:
6
+ push:
7
+ name: Push gem to RubyGems.org
8
+ runs-on: ubuntu-latest
9
+
10
+ permissions:
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
13
+
14
+ steps:
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
22
+
23
+ # Release
24
+ - uses: rubygems/release-gem@v1
data/cf-uaa-lib.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.require_paths = ['lib']
32
32
 
33
33
  # dependencies
34
- s.add_dependency 'multi_json', '>= 1.12.1', '< 1.16'
34
+ s.add_dependency 'json_pure', '~>2.7'
35
35
  s.add_dependency 'httpclient', '~> 2.8', '>= 2.8.2.4'
36
36
  s.add_dependency 'addressable', '~> 2.8', '>= 2.8.0'
37
37
 
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
41
41
  s.add_development_dependency 'simplecov', '~> 0.22.0'
42
42
  s.add_development_dependency 'simplecov-rcov', '~> 0.3.0'
43
43
  s.add_development_dependency 'ci_reporter', '>= 1.9.2', '~> 2.0'
44
- s.add_development_dependency 'json_pure', '>= 1.8.1', '~> 2.5'
44
+ s.add_development_dependency 'json_pure', '~>2.7'
45
45
  s.add_development_dependency 'ci_reporter_rspec', '~> 1.0'
46
46
 
47
47
  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.5'
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.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Syer
@@ -12,28 +12,22 @@ 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-10-31 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
- name: multi_json
18
+ name: json_pure
19
19
  requirement: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 1.12.1
24
- - - "<"
21
+ - - "~>"
25
22
  - !ruby/object:Gem::Version
26
- version: '1.16'
23
+ version: '2.7'
27
24
  type: :runtime
28
25
  prerelease: false
29
26
  version_requirements: !ruby/object:Gem::Requirement
30
27
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.12.1
34
- - - "<"
28
+ - - "~>"
35
29
  - !ruby/object:Gem::Version
36
- version: '1.16'
30
+ version: '2.7'
37
31
  - !ruby/object:Gem::Dependency
38
32
  name: httpclient
39
33
  requirement: !ruby/object:Gem::Requirement
@@ -58,22 +52,22 @@ dependencies:
58
52
  name: addressable
59
53
  requirement: !ruby/object:Gem::Requirement
60
54
  requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: 2.8.0
64
55
  - - "~>"
65
56
  - !ruby/object:Gem::Version
66
57
  version: '2.8'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 2.8.0
67
61
  type: :runtime
68
62
  prerelease: false
69
63
  version_requirements: !ruby/object:Gem::Requirement
70
64
  requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: 2.8.0
74
65
  - - "~>"
75
66
  - !ruby/object:Gem::Version
76
67
  version: '2.8'
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 2.8.0
77
71
  - !ruby/object:Gem::Dependency
78
72
  name: bundler
79
73
  requirement: !ruby/object:Gem::Requirement
@@ -180,22 +174,16 @@ dependencies:
180
174
  name: json_pure
181
175
  requirement: !ruby/object:Gem::Requirement
182
176
  requirements:
183
- - - ">="
184
- - !ruby/object:Gem::Version
185
- version: 1.8.1
186
177
  - - "~>"
187
178
  - !ruby/object:Gem::Version
188
- version: '2.5'
179
+ version: '2.7'
189
180
  type: :development
190
181
  prerelease: false
191
182
  version_requirements: !ruby/object:Gem::Requirement
192
183
  requirements:
193
- - - ">="
194
- - !ruby/object:Gem::Version
195
- version: 1.8.1
196
184
  - - "~>"
197
185
  - !ruby/object:Gem::Version
198
- version: '2.5'
186
+ version: '2.7'
199
187
  - !ruby/object:Gem::Dependency
200
188
  name: ci_reporter_rspec
201
189
  requirement: !ruby/object:Gem::Requirement
@@ -227,6 +215,7 @@ extra_rdoc_files: []
227
215
  files:
228
216
  - ".github/dependabot.yml"
229
217
  - ".github/workflows/gem-push.yml"
218
+ - ".github/workflows/push_gem.yml"
230
219
  - ".github/workflows/ruby.yml"
231
220
  - ".gitignore"
232
221
  - ".yardopts"
@@ -273,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
273
262
  - !ruby/object:Gem::Version
274
263
  version: '0'
275
264
  requirements: []
276
- rubygems_version: 3.0.3.1
265
+ rubygems_version: 3.5.16
277
266
  signing_key:
278
267
  specification_version: 4
279
268
  summary: Client library for CloudFoundry UAA