saml_idp_metadata 0.2.0 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +4 -4
- data/.github/dependabot.yml +12 -0
- data/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +7 -7
- data/.ruby-version +1 -1
- data/CHANGELOG.md +89 -1
- data/Gemfile.lock +28 -22
- data/lib/saml_idp_metadata/parser.rb +15 -1
- data/lib/saml_idp_metadata/version.rb +1 -1
- data/saml_idp_metadata.gemspec +2 -0
- metadata +32 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38766406d033b7df3b066460ca11038f5066f96a1f525c37c3301fb453e9ceba
|
4
|
+
data.tar.gz: 03fc04671d3273e5ad87741a4549cd5932a342f780f5d190157ae8f6a7d5d291
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfa59f812a5c49908803fca07251e8d710accb504422e076753beaa72316b1bbf604a7a0ad329c08aaa679c1894d3c8bb882728160bb24b06b0fedae9e3702e3
|
7
|
+
data.tar.gz: 45d9735bcaca66c274b5e930c1d517083a560cb3c0da5ef85fcebfbf63991e712f71225d332fd615bb2d2051d25de71f6d2bcdbccf4a98ef96247fdfb36003a0
|
data/.circleci/config.yml
CHANGED
@@ -4,16 +4,16 @@ executors:
|
|
4
4
|
working_directory: /root/saml_idp_metadata
|
5
5
|
ruby_3_0:
|
6
6
|
docker:
|
7
|
-
- image: rubylang/ruby:3.0.
|
7
|
+
- image: rubylang/ruby:3.0.2-focal
|
8
8
|
ruby_2_7:
|
9
9
|
docker:
|
10
|
-
- image: rubylang/ruby:2.7.
|
10
|
+
- image: rubylang/ruby:2.7.4-bionic
|
11
11
|
ruby_2_6:
|
12
12
|
docker:
|
13
|
-
- image: rubylang/ruby:2.6.
|
13
|
+
- image: rubylang/ruby:2.6.8-bionic
|
14
14
|
ruby_2_5:
|
15
15
|
docker:
|
16
|
-
- image: rubylang/ruby:2.5.
|
16
|
+
- image: rubylang/ruby:2.5.9-bionic
|
17
17
|
|
18
18
|
commands:
|
19
19
|
install_system_dependencies:
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2021-01-21 06:10:48 UTC using RuboCop version 1.8.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -14,17 +14,17 @@ Gemspec/RequiredRubyVersion:
|
|
14
14
|
- 'saml_idp_metadata.gemspec'
|
15
15
|
|
16
16
|
# Offense count: 1
|
17
|
-
# Configuration parameters: IgnoredMethods.
|
17
|
+
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
18
18
|
Metrics/AbcSize:
|
19
19
|
Max: 21
|
20
20
|
|
21
|
-
# Offense count:
|
22
|
-
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
|
23
|
-
#
|
21
|
+
# Offense count: 4
|
22
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
23
|
+
# IgnoredMethods: refine
|
24
24
|
Metrics/BlockLength:
|
25
|
-
Max:
|
25
|
+
Max: 267
|
26
26
|
|
27
|
-
# Offense count:
|
27
|
+
# Offense count: 17
|
28
28
|
# Cop supports --auto-correct.
|
29
29
|
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
30
30
|
# URISchemes: http, https
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,93 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.2.3](https://github.com/tknzk/saml_idp_metadata/tree/v0.2.3) (2021-08-03)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.2.2...v0.2.3)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- bumpup 0.2.3 [\#189](https://github.com/tknzk/saml_idp_metadata/pull/189) ([tknzk](https://github.com/tknzk))
|
10
|
+
- bumpup simplecov\_json\_formatter [\#188](https://github.com/tknzk/saml_idp_metadata/pull/188) ([tknzk](https://github.com/tknzk))
|
11
|
+
- bumpup docile [\#187](https://github.com/tknzk/saml_idp_metadata/pull/187) ([tknzk](https://github.com/tknzk))
|
12
|
+
- bumpup rake [\#186](https://github.com/tknzk/saml_idp_metadata/pull/186) ([tknzk](https://github.com/tknzk))
|
13
|
+
- bump up pry [\#185](https://github.com/tknzk/saml_idp_metadata/pull/185) ([tknzk](https://github.com/tknzk))
|
14
|
+
- bumpup rubocop [\#184](https://github.com/tknzk/saml_idp_metadata/pull/184) ([tknzk](https://github.com/tknzk))
|
15
|
+
- bumpup activesupport [\#183](https://github.com/tknzk/saml_idp_metadata/pull/183) ([tknzk](https://github.com/tknzk))
|
16
|
+
- ruby 3.0.2 [\#182](https://github.com/tknzk/saml_idp_metadata/pull/182) ([tknzk](https://github.com/tknzk))
|
17
|
+
- Upgrade to GitHub-native Dependabot [\#181](https://github.com/tknzk/saml_idp_metadata/pull/181) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
18
|
+
|
19
|
+
## [v0.2.2](https://github.com/tknzk/saml_idp_metadata/tree/v0.2.2) (2021-04-06)
|
20
|
+
|
21
|
+
[Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.2.1...v0.2.2)
|
22
|
+
|
23
|
+
**Merged pull requests:**
|
24
|
+
|
25
|
+
- bumpup 0.2.2 [\#180](https://github.com/tknzk/saml_idp_metadata/pull/180) ([tknzk](https://github.com/tknzk))
|
26
|
+
- bundle update [\#179](https://github.com/tknzk/saml_idp_metadata/pull/179) ([tknzk](https://github.com/tknzk))
|
27
|
+
- ruby 3.0.1 [\#178](https://github.com/tknzk/saml_idp_metadata/pull/178) ([tknzk](https://github.com/tknzk))
|
28
|
+
- bundle update [\#177](https://github.com/tknzk/saml_idp_metadata/pull/177) ([tknzk](https://github.com/tknzk))
|
29
|
+
|
30
|
+
## [v0.2.1](https://github.com/tknzk/saml_idp_metadata/tree/v0.2.1) (2021-01-21)
|
31
|
+
|
32
|
+
[Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.2.0...v0.2.1)
|
33
|
+
|
34
|
+
**Merged pull requests:**
|
35
|
+
|
36
|
+
- bumpup [\#176](https://github.com/tknzk/saml_idp_metadata/pull/176) ([tknzk](https://github.com/tknzk))
|
37
|
+
- parse nameid\_format [\#175](https://github.com/tknzk/saml_idp_metadata/pull/175) ([tknzk](https://github.com/tknzk))
|
38
|
+
|
39
|
+
## [v0.2.0](https://github.com/tknzk/saml_idp_metadata/tree/v0.2.0) (2021-01-21)
|
40
|
+
|
41
|
+
[Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.9...v0.2.0)
|
42
|
+
|
43
|
+
**Merged pull requests:**
|
44
|
+
|
45
|
+
- bumpup 0.2.0 [\#174](https://github.com/tknzk/saml_idp_metadata/pull/174) ([tknzk](https://github.com/tknzk))
|
46
|
+
- Require ruby version [\#173](https://github.com/tknzk/saml_idp_metadata/pull/173) ([tknzk](https://github.com/tknzk))
|
47
|
+
- Bump docile from 1.3.4 to 1.3.5 [\#172](https://github.com/tknzk/saml_idp_metadata/pull/172) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
48
|
+
- Bump simplecov from 0.21.1 to 0.21.2 [\#171](https://github.com/tknzk/saml_idp_metadata/pull/171) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
49
|
+
- Bump rubocop from 1.8.0 to 1.8.1 [\#170](https://github.com/tknzk/saml_idp_metadata/pull/170) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
50
|
+
- Bump activesupport from 6.1.0 to 6.1.1 [\#169](https://github.com/tknzk/saml_idp_metadata/pull/169) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
51
|
+
- Bump rubocop from 1.7.0 to 1.8.0 [\#168](https://github.com/tknzk/saml_idp_metadata/pull/168) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
52
|
+
- Bump minitest from 5.14.2 to 5.14.3 [\#167](https://github.com/tknzk/saml_idp_metadata/pull/167) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
53
|
+
- Bump rubocop-ast from 1.3.0 to 1.4.0 [\#166](https://github.com/tknzk/saml_idp_metadata/pull/166) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
54
|
+
- Bump simplecov from 0.20.0 to 0.21.1 [\#165](https://github.com/tknzk/saml_idp_metadata/pull/165) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
55
|
+
- Bump i18n from 1.8.5 to 1.8.7 [\#164](https://github.com/tknzk/saml_idp_metadata/pull/164) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
56
|
+
- Bump ruby-progressbar from 1.10.1 to 1.11.0 [\#163](https://github.com/tknzk/saml_idp_metadata/pull/163) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
57
|
+
- Bump rspec-mocks from 3.10.0 to 3.10.1 [\#161](https://github.com/tknzk/saml_idp_metadata/pull/161) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
58
|
+
- Bump rspec-expectations from 3.10.0 to 3.10.1 [\#160](https://github.com/tknzk/saml_idp_metadata/pull/160) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
59
|
+
- Bump rspec-core from 3.10.0 to 3.10.1 [\#159](https://github.com/tknzk/saml_idp_metadata/pull/159) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
60
|
+
- Bump regexp\_parser from 2.0.1 to 2.0.3 [\#158](https://github.com/tknzk/saml_idp_metadata/pull/158) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
61
|
+
- Bump rubocop from 1.6.1 to 1.7.0 [\#157](https://github.com/tknzk/saml_idp_metadata/pull/157) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
62
|
+
- 💎 Ruby 3.0.0 [\#155](https://github.com/tknzk/saml_idp_metadata/pull/155) ([tknzk](https://github.com/tknzk))
|
63
|
+
- 3.0.0 preview2, 3.0.0-rc1 [\#154](https://github.com/tknzk/saml_idp_metadata/pull/154) ([tknzk](https://github.com/tknzk))
|
64
|
+
- Bump docile from 1.3.3 to 1.3.4 [\#153](https://github.com/tknzk/saml_idp_metadata/pull/153) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
65
|
+
- Bump regexp\_parser from 2.0.0 to 2.0.1 [\#152](https://github.com/tknzk/saml_idp_metadata/pull/152) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
66
|
+
- Bump rake from 13.0.1 to 13.0.3 [\#151](https://github.com/tknzk/saml_idp_metadata/pull/151) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
67
|
+
- Bump docile from 1.3.2 to 1.3.3 [\#150](https://github.com/tknzk/saml_idp_metadata/pull/150) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
68
|
+
- Bump tzinfo from 2.0.3 to 2.0.4 [\#149](https://github.com/tknzk/saml_idp_metadata/pull/149) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
69
|
+
- Bump rubocop from 1.6.0 to 1.6.1 [\#147](https://github.com/tknzk/saml_idp_metadata/pull/147) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
70
|
+
- add require 'active\_support/dependencies/autoload' [\#146](https://github.com/tknzk/saml_idp_metadata/pull/146) ([tknzk](https://github.com/tknzk))
|
71
|
+
- Bump rubocop from 1.5.2 to 1.6.0 [\#145](https://github.com/tknzk/saml_idp_metadata/pull/145) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
72
|
+
- Bump activesupport from 6.0.3.4 to 6.1.0 [\#143](https://github.com/tknzk/saml_idp_metadata/pull/143) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
73
|
+
- Bump rubocop from 1.5.1 to 1.5.2 [\#142](https://github.com/tknzk/saml_idp_metadata/pull/142) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
74
|
+
- Bump rubocop from 1.5.0 to 1.5.1 [\#141](https://github.com/tknzk/saml_idp_metadata/pull/141) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
75
|
+
- Bump rubocop-ast from 1.2.0 to 1.3.0 [\#140](https://github.com/tknzk/saml_idp_metadata/pull/140) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
76
|
+
- Bump rubocop from 1.4.2 to 1.5.0 [\#139](https://github.com/tknzk/saml_idp_metadata/pull/139) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
77
|
+
- Bump simplecov from 0.19.1 to 0.20.0 [\#138](https://github.com/tknzk/saml_idp_metadata/pull/138) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
78
|
+
- Bump zeitwerk from 2.4.1 to 2.4.2 [\#137](https://github.com/tknzk/saml_idp_metadata/pull/137) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
79
|
+
- Bump rubocop from 1.4.1 to 1.4.2 [\#136](https://github.com/tknzk/saml_idp_metadata/pull/136) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
80
|
+
- Bump regexp\_parser from 1.8.2 to 2.0.0 [\#135](https://github.com/tknzk/saml_idp_metadata/pull/135) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
81
|
+
- Bump rubocop-ast from 1.1.1 to 1.2.0 [\#134](https://github.com/tknzk/saml_idp_metadata/pull/134) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
82
|
+
- Bump parallel from 1.20.0 to 1.20.1 [\#133](https://github.com/tknzk/saml_idp_metadata/pull/133) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
83
|
+
- Bump rubocop from 1.3.1 to 1.4.1 [\#132](https://github.com/tknzk/saml_idp_metadata/pull/132) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
84
|
+
- Bump rubocop from 1.3.0 to 1.3.1 [\#131](https://github.com/tknzk/saml_idp_metadata/pull/131) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
85
|
+
- Bump rubocop from 1.2.0 to 1.3.0 [\#130](https://github.com/tknzk/saml_idp_metadata/pull/130) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
86
|
+
- Bump tzinfo from 1.2.7 to 1.2.8 [\#129](https://github.com/tknzk/saml_idp_metadata/pull/129) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
87
|
+
- Bump parallel from 1.19.2 to 1.20.0 [\#128](https://github.com/tknzk/saml_idp_metadata/pull/128) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
88
|
+
- Bump rubocop from 1.1.0 to 1.2.0 [\#127](https://github.com/tknzk/saml_idp_metadata/pull/127) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
89
|
+
- Bump rubocop-ast from 1.1.0 to 1.1.1 [\#126](https://github.com/tknzk/saml_idp_metadata/pull/126) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
90
|
+
|
3
91
|
## [v0.1.9](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.9) (2020-11-02)
|
4
92
|
|
5
93
|
[Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.8...v0.1.9)
|
@@ -139,7 +227,6 @@
|
|
139
227
|
- Bump unicode-display\_width from 1.6.0 to 1.6.1 [\#23](https://github.com/tknzk/saml_idp_metadata/pull/23) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
140
228
|
- Bump minitest from 5.13.0 to 5.14.0 [\#22](https://github.com/tknzk/saml_idp_metadata/pull/22) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
141
229
|
- update changelog [\#21](https://github.com/tknzk/saml_idp_metadata/pull/21) ([tknzk](https://github.com/tknzk))
|
142
|
-
- Modified GitHub workflow [\#16](https://github.com/tknzk/saml_idp_metadata/pull/16) ([tknzk](https://github.com/tknzk))
|
143
230
|
|
144
231
|
## [v0.1.4](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.4) (2020-01-11)
|
145
232
|
|
@@ -151,6 +238,7 @@
|
|
151
238
|
- bundle update [\#19](https://github.com/tknzk/saml_idp_metadata/pull/19) ([tknzk](https://github.com/tknzk))
|
152
239
|
- fix working\_dir [\#18](https://github.com/tknzk/saml_idp_metadata/pull/18) ([tknzk](https://github.com/tknzk))
|
153
240
|
- add build status badge [\#17](https://github.com/tknzk/saml_idp_metadata/pull/17) ([tknzk](https://github.com/tknzk))
|
241
|
+
- Modified GitHub workflow [\#16](https://github.com/tknzk/saml_idp_metadata/pull/16) ([tknzk](https://github.com/tknzk))
|
154
242
|
- Modified circleci config [\#15](https://github.com/tknzk/saml_idp_metadata/pull/15) ([tknzk](https://github.com/tknzk))
|
155
243
|
- Bump rubocop from 0.78.0 to 0.79.0 [\#14](https://github.com/tknzk/saml_idp_metadata/pull/14) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
156
244
|
- rename [\#13](https://github.com/tknzk/saml_idp_metadata/pull/13) ([tknzk](https://github.com/tknzk))
|
data/Gemfile.lock
CHANGED
@@ -1,37 +1,37 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
saml_idp_metadata (0.2.
|
4
|
+
saml_idp_metadata (0.2.4)
|
5
5
|
activesupport
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (6.1.1)
|
10
|
+
activesupport (6.1.4.1)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 1.6, < 2)
|
13
13
|
minitest (>= 5.1)
|
14
14
|
tzinfo (~> 2.0)
|
15
15
|
zeitwerk (~> 2.3)
|
16
|
-
ast (2.4.
|
16
|
+
ast (2.4.2)
|
17
17
|
coderay (1.1.3)
|
18
|
-
concurrent-ruby (1.1.
|
18
|
+
concurrent-ruby (1.1.9)
|
19
19
|
diff-lcs (1.4.4)
|
20
|
-
docile (1.
|
21
|
-
i18n (1.8.
|
20
|
+
docile (1.4.0)
|
21
|
+
i18n (1.8.10)
|
22
22
|
concurrent-ruby (~> 1.0)
|
23
23
|
method_source (1.0.0)
|
24
|
-
minitest (5.14.
|
25
|
-
parallel (1.
|
26
|
-
parser (3.0.
|
24
|
+
minitest (5.14.4)
|
25
|
+
parallel (1.21.0)
|
26
|
+
parser (3.0.2.0)
|
27
27
|
ast (~> 2.4.1)
|
28
|
-
pry (0.
|
28
|
+
pry (0.14.1)
|
29
29
|
coderay (~> 1.1)
|
30
30
|
method_source (~> 1.0)
|
31
31
|
rainbow (3.0.0)
|
32
|
-
rake (13.0.
|
33
|
-
regexp_parser (2.
|
34
|
-
rexml (3.2.
|
32
|
+
rake (13.0.6)
|
33
|
+
regexp_parser (2.1.1)
|
34
|
+
rexml (3.2.5)
|
35
35
|
rspec (3.10.0)
|
36
36
|
rspec-core (~> 3.10.0)
|
37
37
|
rspec-expectations (~> 3.10.0)
|
@@ -41,31 +41,35 @@ GEM
|
|
41
41
|
rspec-expectations (3.10.1)
|
42
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
43
|
rspec-support (~> 3.10.0)
|
44
|
-
rspec-mocks (3.10.
|
44
|
+
rspec-mocks (3.10.2)
|
45
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
46
46
|
rspec-support (~> 3.10.0)
|
47
|
-
rspec-support (3.10.
|
48
|
-
rubocop (1.
|
47
|
+
rspec-support (3.10.2)
|
48
|
+
rubocop (1.22.0)
|
49
49
|
parallel (~> 1.10)
|
50
50
|
parser (>= 3.0.0.0)
|
51
51
|
rainbow (>= 2.2.2, < 4.0)
|
52
52
|
regexp_parser (>= 1.8, < 3.0)
|
53
53
|
rexml
|
54
|
-
rubocop-ast (>= 1.
|
54
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
55
55
|
ruby-progressbar (~> 1.7)
|
56
56
|
unicode-display_width (>= 1.4.0, < 3.0)
|
57
|
-
rubocop-ast (1.
|
58
|
-
parser (>=
|
57
|
+
rubocop-ast (1.12.0)
|
58
|
+
parser (>= 3.0.1.1)
|
59
|
+
rubocop-rake (0.6.0)
|
60
|
+
rubocop (~> 1.0)
|
61
|
+
rubocop-rspec (2.5.0)
|
62
|
+
rubocop (~> 1.19)
|
59
63
|
ruby-progressbar (1.11.0)
|
60
64
|
simplecov (0.21.2)
|
61
65
|
docile (~> 1.1)
|
62
66
|
simplecov-html (~> 0.11)
|
63
67
|
simplecov_json_formatter (~> 0.1)
|
64
68
|
simplecov-html (0.12.3)
|
65
|
-
simplecov_json_formatter (0.1.
|
69
|
+
simplecov_json_formatter (0.1.3)
|
66
70
|
tzinfo (2.0.4)
|
67
71
|
concurrent-ruby (~> 1.0)
|
68
|
-
unicode-display_width (2.
|
72
|
+
unicode-display_width (2.1.0)
|
69
73
|
zeitwerk (2.4.2)
|
70
74
|
|
71
75
|
PLATFORMS
|
@@ -78,8 +82,10 @@ DEPENDENCIES
|
|
78
82
|
rake
|
79
83
|
rspec
|
80
84
|
rubocop
|
85
|
+
rubocop-rake
|
86
|
+
rubocop-rspec
|
81
87
|
saml_idp_metadata!
|
82
88
|
simplecov
|
83
89
|
|
84
90
|
BUNDLED WITH
|
85
|
-
2.2.
|
91
|
+
2.2.24
|
@@ -8,7 +8,8 @@ module SamlIdpMetadata
|
|
8
8
|
# SAML IdP metadata parser
|
9
9
|
#
|
10
10
|
class Parser
|
11
|
-
attr_reader :xml, :xmlns, :entity_id, :sso_http_redirect_url, :sso_http_post_url, :slo_url, :
|
11
|
+
attr_reader :xml, :xmlns, :entity_id, :sso_http_redirect_url, :sso_http_post_url, :slo_url, :nameid_format,
|
12
|
+
:x509_certificate
|
12
13
|
|
13
14
|
def initialize(xml:)
|
14
15
|
@xml = xml
|
@@ -19,6 +20,7 @@ module SamlIdpMetadata
|
|
19
20
|
@sso_http_redirect_url = nil
|
20
21
|
@sso_http_post_url = nil
|
21
22
|
@slo_url = nil
|
23
|
+
@nameid_format = nil
|
22
24
|
@x509_certificate = nil
|
23
25
|
end
|
24
26
|
|
@@ -33,6 +35,7 @@ module SamlIdpMetadata
|
|
33
35
|
@sso_http_redirect_url = parse_sso_http_redirect_url
|
34
36
|
@sso_http_post_url = parse_sso_http_post_url
|
35
37
|
@slo_url = parse_slo_url
|
38
|
+
@nameid_format = parse_nameid_format
|
36
39
|
@x509_certificate = parse_x509_certificate
|
37
40
|
|
38
41
|
self
|
@@ -53,6 +56,7 @@ module SamlIdpMetadata
|
|
53
56
|
sso_http_post_url: sso_http_post_url,
|
54
57
|
certificate: x509_certificate,
|
55
58
|
slo_url: slo_url,
|
59
|
+
nameid_format: nameid_format,
|
56
60
|
metadata: xml
|
57
61
|
}
|
58
62
|
end
|
@@ -107,6 +111,16 @@ module SamlIdpMetadata
|
|
107
111
|
end
|
108
112
|
end
|
109
113
|
|
114
|
+
def parse_nameid_format
|
115
|
+
return nil if entity_descriptor.dig('IDPSSODescriptor', 'NameIDFormat').nil?
|
116
|
+
|
117
|
+
if entity_descriptor['IDPSSODescriptor']['NameIDFormat'].instance_of?(Array)
|
118
|
+
entity_descriptor['IDPSSODescriptor']['NameIDFormat'].last
|
119
|
+
else
|
120
|
+
entity_descriptor['IDPSSODescriptor']['NameIDFormat']
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
110
124
|
def parse_x509_certificate
|
111
125
|
return nil if entity_descriptor.dig('IDPSSODescriptor', 'KeyDescriptor').nil?
|
112
126
|
|
data/saml_idp_metadata.gemspec
CHANGED
@@ -32,5 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_development_dependency 'rake'
|
33
33
|
spec.add_development_dependency 'rspec'
|
34
34
|
spec.add_development_dependency 'rubocop'
|
35
|
+
spec.add_development_dependency 'rubocop-rake'
|
36
|
+
spec.add_development_dependency 'rubocop-rspec'
|
35
37
|
spec.add_development_dependency 'simplecov'
|
36
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saml_idp_metadata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tknzk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01
|
11
|
+
date: 2021-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -94,6 +94,34 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop-rake
|
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
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
97
125
|
- !ruby/object:Gem::Dependency
|
98
126
|
name: simplecov
|
99
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,6 +145,7 @@ extra_rdoc_files: []
|
|
117
145
|
files:
|
118
146
|
- ".circleci/config.yml"
|
119
147
|
- ".github/CODEOWNERS"
|
148
|
+
- ".github/dependabot.yml"
|
120
149
|
- ".github/workflows/ruby.yml"
|
121
150
|
- ".gitignore"
|
122
151
|
- ".rspec"
|
@@ -158,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
187
|
- !ruby/object:Gem::Version
|
159
188
|
version: '0'
|
160
189
|
requirements: []
|
161
|
-
rubygems_version: 3.2.
|
190
|
+
rubygems_version: 3.2.22
|
162
191
|
signing_key:
|
163
192
|
specification_version: 4
|
164
193
|
summary: SAML IdP metadata.xml parser
|