saml_idp_metadata 0.1.6 → 0.2.1
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 +15 -1
- data/.github/workflows/ruby.yml +2 -1
- data/.rubocop.yml +69 -0
- data/.rubocop_todo.yml +16 -10
- data/.ruby-version +1 -1
- data/CHANGELOG.md +167 -1
- data/Gemfile.lock +50 -37
- data/lib/saml_idp_metadata/parser.rb +18 -2
- data/lib/saml_idp_metadata/version.rb +1 -1
- data/saml_idp_metadata.gemspec +11 -9
- metadata +24 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6bd6e1fcb0dcaad25999f46a36863538467613ae69ff577c58ca4640465c24e
|
4
|
+
data.tar.gz: 43fbe8571133e8d31c36f058da67fbe4c264faa6841272b70d92e0ee11bdfc59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ced85c46f92e62885bbf4f64dd16cf446dbde8e650521bd611acf7a2f0460272c800dc4d16c0d7d146432e2b3c2e3a2802acfb72be44bab87473ddb3bc22f70
|
7
|
+
data.tar.gz: fb67c611f477419025067cb23cd9d8160c1d43434157a982e095b3998f689a4a03f8e778a6287d403fde43897f49486b6f8058f093d12a13da1e42651ad81d5a
|
data/.circleci/config.yml
CHANGED
@@ -2,9 +2,12 @@ version: 2.1
|
|
2
2
|
|
3
3
|
executors:
|
4
4
|
working_directory: /root/saml_idp_metadata
|
5
|
+
ruby_3_0:
|
6
|
+
docker:
|
7
|
+
- image: rubylang/ruby:3.0.0-focal
|
5
8
|
ruby_2_7:
|
6
9
|
docker:
|
7
|
-
- image: rubylang/ruby:2.7.
|
10
|
+
- image: rubylang/ruby:2.7.2-bionic
|
8
11
|
ruby_2_6:
|
9
12
|
docker:
|
10
13
|
- image: rubylang/ruby:2.6.6-bionic
|
@@ -38,8 +41,18 @@ commands:
|
|
38
41
|
command: |
|
39
42
|
bundle exec rake
|
40
43
|
bundle exec rubocop
|
44
|
+
- store_artifacts:
|
45
|
+
path: coverage
|
41
46
|
|
42
47
|
jobs:
|
48
|
+
run_tests_on_ruby_3_0:
|
49
|
+
executor: ruby_3_0
|
50
|
+
steps:
|
51
|
+
- install_system_dependencies
|
52
|
+
- checkout
|
53
|
+
- bundle_gems
|
54
|
+
- run_tests
|
55
|
+
|
43
56
|
run_tests_on_ruby_2_7:
|
44
57
|
executor: ruby_2_7
|
45
58
|
steps:
|
@@ -68,6 +81,7 @@ workflows:
|
|
68
81
|
version: 2
|
69
82
|
test:
|
70
83
|
jobs:
|
84
|
+
- run_tests_on_ruby_3_0
|
71
85
|
- run_tests_on_ruby_2_7
|
72
86
|
- run_tests_on_ruby_2_6
|
73
87
|
- run_tests_on_ruby_2_5
|
data/.github/workflows/ruby.yml
CHANGED
@@ -12,6 +12,7 @@ jobs:
|
|
12
12
|
- '2.5-bionic'
|
13
13
|
- '2.6-bionic'
|
14
14
|
- '2.7-bionic'
|
15
|
+
- '3.0.0-focal'
|
15
16
|
- 'latest'
|
16
17
|
container:
|
17
18
|
image: rubylang/ruby:${{ matrix.ruby }}
|
@@ -20,7 +21,7 @@ jobs:
|
|
20
21
|
- uses: actions/checkout@master
|
21
22
|
- name: Build and test
|
22
23
|
run: |
|
23
|
-
gem install bundler -v 2.
|
24
|
+
gem install bundler -v 2.2.0 --force
|
24
25
|
bundle install
|
25
26
|
bundle exec rubocop
|
26
27
|
bundle exec rake
|
data/.rubocop.yml
CHANGED
@@ -1 +1,70 @@
|
|
1
1
|
inherit_from: .rubocop_todo.yml
|
2
|
+
|
3
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
4
|
+
Enabled: false
|
5
|
+
|
6
|
+
Layout/SpaceAroundMethodCallOperator:
|
7
|
+
Enabled: false
|
8
|
+
|
9
|
+
Lint/DeprecatedOpenSSLConstant:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
Lint/DuplicateElsifCondition:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
Lint/MixedRegexpCaptureTypes:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
Lint/RaiseException:
|
19
|
+
Enabled: false
|
20
|
+
|
21
|
+
Lint/StructNewOverride:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
Style/AccessorGrouping:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
Style/ArrayCoercion:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Style/BisectedAttrAccessor:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
Style/CaseLikeIf:
|
34
|
+
Enabled: false
|
35
|
+
|
36
|
+
Style/ExponentialNotation:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
Style/HashAsLastArrayItem:
|
40
|
+
Enabled: false
|
41
|
+
|
42
|
+
Style/HashEachMethods:
|
43
|
+
Enabled: false
|
44
|
+
|
45
|
+
Style/HashLikeCase:
|
46
|
+
Enabled: false
|
47
|
+
|
48
|
+
Style/HashTransformKeys:
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
Style/HashTransformValues:
|
52
|
+
Enabled: false
|
53
|
+
|
54
|
+
Style/RedundantAssignment:
|
55
|
+
Enabled: false
|
56
|
+
|
57
|
+
Style/RedundantFetchBlock:
|
58
|
+
Enabled: false
|
59
|
+
|
60
|
+
Style/RedundantFileExtensionInRequire:
|
61
|
+
Enabled: false
|
62
|
+
|
63
|
+
Style/RedundantRegexpCharacterClass:
|
64
|
+
Enabled: false
|
65
|
+
|
66
|
+
Style/RedundantRegexpEscape:
|
67
|
+
Enabled: false
|
68
|
+
|
69
|
+
Style/SlicingWithRange:
|
70
|
+
Enabled: false
|
data/.rubocop_todo.yml
CHANGED
@@ -1,26 +1,32 @@
|
|
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
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
9
|
# Offense count: 1
|
10
|
+
# Configuration parameters: Include.
|
11
|
+
# Include: **/*.gemspec
|
12
|
+
Gemspec/RequiredRubyVersion:
|
13
|
+
Exclude:
|
14
|
+
- 'saml_idp_metadata.gemspec'
|
15
|
+
|
16
|
+
# Offense count: 1
|
17
|
+
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
10
18
|
Metrics/AbcSize:
|
11
19
|
Max: 21
|
12
20
|
|
13
|
-
# Offense count:
|
14
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
15
|
-
#
|
21
|
+
# Offense count: 4
|
22
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
23
|
+
# IgnoredMethods: refine
|
16
24
|
Metrics/BlockLength:
|
17
|
-
|
18
|
-
Exclude:
|
19
|
-
- 'spec/**/*'
|
25
|
+
Max: 267
|
20
26
|
|
21
|
-
# Offense count:
|
27
|
+
# Offense count: 17
|
22
28
|
# Cop supports --auto-correct.
|
23
29
|
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
24
30
|
# URISchemes: http, https
|
25
|
-
|
26
|
-
Max:
|
31
|
+
Layout/LineLength:
|
32
|
+
Max: 126
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,171 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.2.0](https://github.com/tknzk/saml_idp_metadata/tree/v0.2.0) (2021-01-21)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.9...v0.2.0)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- bumpup 0.2.0 [\#174](https://github.com/tknzk/saml_idp_metadata/pull/174) ([tknzk](https://github.com/tknzk))
|
10
|
+
- Require ruby version [\#173](https://github.com/tknzk/saml_idp_metadata/pull/173) ([tknzk](https://github.com/tknzk))
|
11
|
+
- 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))
|
12
|
+
- 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))
|
13
|
+
- 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))
|
14
|
+
- 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))
|
15
|
+
- 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))
|
16
|
+
- 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))
|
17
|
+
- 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))
|
18
|
+
- 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))
|
19
|
+
- 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))
|
20
|
+
- 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))
|
21
|
+
- 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))
|
22
|
+
- 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))
|
23
|
+
- 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))
|
24
|
+
- 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))
|
25
|
+
- 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))
|
26
|
+
- 💎 Ruby 3.0.0 [\#155](https://github.com/tknzk/saml_idp_metadata/pull/155) ([tknzk](https://github.com/tknzk))
|
27
|
+
- 3.0.0 preview2, 3.0.0-rc1 [\#154](https://github.com/tknzk/saml_idp_metadata/pull/154) ([tknzk](https://github.com/tknzk))
|
28
|
+
- 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))
|
29
|
+
- 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))
|
30
|
+
- 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))
|
31
|
+
- 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))
|
32
|
+
- 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))
|
33
|
+
- 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))
|
34
|
+
- add require 'active\_support/dependencies/autoload' [\#146](https://github.com/tknzk/saml_idp_metadata/pull/146) ([tknzk](https://github.com/tknzk))
|
35
|
+
- 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))
|
36
|
+
- 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))
|
37
|
+
- 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))
|
38
|
+
- 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))
|
39
|
+
- 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))
|
40
|
+
- 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))
|
41
|
+
- 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))
|
42
|
+
- 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))
|
43
|
+
- 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))
|
44
|
+
- 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))
|
45
|
+
- 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))
|
46
|
+
- 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))
|
47
|
+
- 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))
|
48
|
+
- 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))
|
49
|
+
- 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))
|
50
|
+
- 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))
|
51
|
+
- 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))
|
52
|
+
- 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))
|
53
|
+
- 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))
|
54
|
+
|
55
|
+
## [v0.1.9](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.9) (2020-11-02)
|
56
|
+
|
57
|
+
[Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.8...v0.1.9)
|
58
|
+
|
59
|
+
**Merged pull requests:**
|
60
|
+
|
61
|
+
- bumpup [\#125](https://github.com/tknzk/saml_idp_metadata/pull/125) ([tknzk](https://github.com/tknzk))
|
62
|
+
- Bump rspec-expectations from 3.9.3 to 3.9.4 [\#124](https://github.com/tknzk/saml_idp_metadata/pull/124) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
63
|
+
- Bump rspec from 3.9.0 to 3.10.0 [\#123](https://github.com/tknzk/saml_idp_metadata/pull/123) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
64
|
+
- Bump rubocop from 1.0.0 to 1.1.0 [\#122](https://github.com/tknzk/saml_idp_metadata/pull/122) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
65
|
+
- Bump zeitwerk from 2.4.0 to 2.4.1 [\#121](https://github.com/tknzk/saml_idp_metadata/pull/121) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
66
|
+
- Bump rubocop-ast from 1.0.1 to 1.1.0 [\#120](https://github.com/tknzk/saml_idp_metadata/pull/120) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
67
|
+
- Bump simplecov from 0.19.0 to 0.19.1 [\#119](https://github.com/tknzk/saml_idp_metadata/pull/119) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
68
|
+
- Bump rspec-support from 3.9.3 to 3.9.4 [\#118](https://github.com/tknzk/saml_idp_metadata/pull/118) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
69
|
+
- Bump rspec-expectations from 3.9.2 to 3.9.3 [\#117](https://github.com/tknzk/saml_idp_metadata/pull/117) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
70
|
+
- Bump rubocop-ast from 1.0.0 to 1.0.1 [\#116](https://github.com/tknzk/saml_idp_metadata/pull/116) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
71
|
+
- Bump rubocop-ast from 0.8.0 to 1.0.0 [\#115](https://github.com/tknzk/saml_idp_metadata/pull/115) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
72
|
+
- Bump rubocop from 0.93.1 to 1.0.0 [\#114](https://github.com/tknzk/saml_idp_metadata/pull/114) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
73
|
+
- Bump rubocop-ast from 0.7.1 to 0.8.0 [\#113](https://github.com/tknzk/saml_idp_metadata/pull/113) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
74
|
+
- Bump rubocop from 0.93.0 to 0.93.1 [\#112](https://github.com/tknzk/saml_idp_metadata/pull/112) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
75
|
+
- Bump rubocop from 0.92.0 to 0.93.0 [\#110](https://github.com/tknzk/saml_idp_metadata/pull/110) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
76
|
+
- Bump activesupport from 6.0.3.3 to 6.0.3.4 [\#109](https://github.com/tknzk/saml_idp_metadata/pull/109) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
77
|
+
- Bump parser from 2.7.1.5 to 2.7.2.0 [\#108](https://github.com/tknzk/saml_idp_metadata/pull/108) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
78
|
+
- add Ruby 3.0.0-preview1 test [\#107](https://github.com/tknzk/saml_idp_metadata/pull/107) ([tknzk](https://github.com/tknzk))
|
79
|
+
- Bump rspec-core from 3.9.2 to 3.9.3 [\#106](https://github.com/tknzk/saml_idp_metadata/pull/106) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
80
|
+
- Bump rubocop-ast from 0.6.0 to 0.7.1 [\#105](https://github.com/tknzk/saml_idp_metadata/pull/105) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
81
|
+
- Bump regexp\_parser from 1.8.0 to 1.8.1 [\#104](https://github.com/tknzk/saml_idp_metadata/pull/104) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
82
|
+
- Bump rubocop-ast from 0.5.0 to 0.5.1 [\#103](https://github.com/tknzk/saml_idp_metadata/pull/103) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
83
|
+
- Bump rubocop from 0.91.1 to 0.92.0 [\#102](https://github.com/tknzk/saml_idp_metadata/pull/102) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
84
|
+
- Bump rubocop-ast from 0.4.2 to 0.5.0 [\#101](https://github.com/tknzk/saml_idp_metadata/pull/101) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
85
|
+
- Bump rubocop from 0.91.0 to 0.91.1 [\#99](https://github.com/tknzk/saml_idp_metadata/pull/99) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
86
|
+
- Bump rubocop-ast from 0.4.1 to 0.4.2 [\#96](https://github.com/tknzk/saml_idp_metadata/pull/96) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
87
|
+
- Bump rubocop-ast from 0.4.0 to 0.4.1 [\#95](https://github.com/tknzk/saml_idp_metadata/pull/95) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
88
|
+
- Bump rubocop from 0.90.0 to 0.91.0 [\#94](https://github.com/tknzk/saml_idp_metadata/pull/94) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
89
|
+
- Bump rubocop-ast from 0.3.0 to 0.4.0 [\#93](https://github.com/tknzk/saml_idp_metadata/pull/93) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
90
|
+
|
91
|
+
## [v0.1.8](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.8) (2020-09-10)
|
92
|
+
|
93
|
+
[Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.7...v0.1.8)
|
94
|
+
|
95
|
+
**Merged pull requests:**
|
96
|
+
|
97
|
+
- Bump simplecov-html from 0.12.2 to 0.12.3 [\#98](https://github.com/tknzk/saml_idp_metadata/pull/98) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
98
|
+
- Bump regexp\_parser from 1.7.1 to 1.8.0 [\#97](https://github.com/tknzk/saml_idp_metadata/pull/97) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
99
|
+
- bumpup [\#92](https://github.com/tknzk/saml_idp_metadata/pull/92) ([tknzk](https://github.com/tknzk))
|
100
|
+
- Bump activesupport from 6.0.3.2 to 6.0.3.3 [\#91](https://github.com/tknzk/saml_idp_metadata/pull/91) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
101
|
+
- Bump minitest from 5.14.1 to 5.14.2 [\#90](https://github.com/tknzk/saml_idp_metadata/pull/90) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
102
|
+
- Bump rubocop from 0.89.1 to 0.90.0 [\#89](https://github.com/tknzk/saml_idp_metadata/pull/89) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
103
|
+
- Bump simplecov from 0.18.5 to 0.19.0 [\#88](https://github.com/tknzk/saml_idp_metadata/pull/88) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
104
|
+
- Bump concurrent-ruby from 1.1.6 to 1.1.7 [\#87](https://github.com/tknzk/saml_idp_metadata/pull/87) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
105
|
+
- Bump rubocop from 0.89.0 to 0.89.1 [\#86](https://github.com/tknzk/saml_idp_metadata/pull/86) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
106
|
+
- Bump rubocop from 0.88.0 to 0.89.0 [\#85](https://github.com/tknzk/saml_idp_metadata/pull/85) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
107
|
+
- Rubocop config [\#84](https://github.com/tknzk/saml_idp_metadata/pull/84) ([tknzk](https://github.com/tknzk))
|
108
|
+
- Bump rubocop-ast from 0.2.0 to 0.3.0 [\#83](https://github.com/tknzk/saml_idp_metadata/pull/83) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
109
|
+
- Bump i18n from 1.8.4 to 1.8.5 [\#82](https://github.com/tknzk/saml_idp_metadata/pull/82) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
110
|
+
- Bump i18n from 1.8.3 to 1.8.4 [\#81](https://github.com/tknzk/saml_idp_metadata/pull/81) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
111
|
+
- Bump rubocop-ast from 0.1.0 to 0.2.0 [\#80](https://github.com/tknzk/saml_idp_metadata/pull/80) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
112
|
+
- Bump zeitwerk from 2.3.1 to 2.4.0 [\#79](https://github.com/tknzk/saml_idp_metadata/pull/79) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
113
|
+
- Bump rubocop from 0.87.1 to 0.88.0 [\#78](https://github.com/tknzk/saml_idp_metadata/pull/78) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
114
|
+
- Bump rubocop from 0.87.0 to 0.87.1 [\#77](https://github.com/tknzk/saml_idp_metadata/pull/77) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
115
|
+
- Bump rubocop from 0.86.0 to 0.87.0 [\#76](https://github.com/tknzk/saml_idp_metadata/pull/76) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
116
|
+
- update changelog [\#75](https://github.com/tknzk/saml_idp_metadata/pull/75) ([tknzk](https://github.com/tknzk))
|
117
|
+
- Bump diff-lcs from 1.4.3 to 1.4.4 [\#73](https://github.com/tknzk/saml_idp_metadata/pull/73) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
118
|
+
|
119
|
+
## [v0.1.7](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.7) (2020-07-02)
|
120
|
+
|
121
|
+
[Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.6...v0.1.7)
|
122
|
+
|
123
|
+
**Merged pull requests:**
|
124
|
+
|
125
|
+
- bumpup [\#74](https://github.com/tknzk/saml_idp_metadata/pull/74) ([tknzk](https://github.com/tknzk))
|
126
|
+
- Bump zeitwerk from 2.3.0 to 2.3.1 [\#72](https://github.com/tknzk/saml_idp_metadata/pull/72) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
127
|
+
- Bump diff-lcs from 1.4.2 to 1.4.3 [\#71](https://github.com/tknzk/saml_idp_metadata/pull/71) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
128
|
+
- Bump rubocop-ast from 0.0.3 to 0.1.0 [\#70](https://github.com/tknzk/saml_idp_metadata/pull/70) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
129
|
+
- Bump diff-lcs from 1.4.1 to 1.4.2 [\#69](https://github.com/tknzk/saml_idp_metadata/pull/69) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
130
|
+
- Bump diff-lcs from 1.3 to 1.4.1 [\#68](https://github.com/tknzk/saml_idp_metadata/pull/68) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
131
|
+
- Bump rubocop from 0.85.1 to 0.86.0 [\#67](https://github.com/tknzk/saml_idp_metadata/pull/67) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
132
|
+
- Bump parser from 2.7.1.3 to 2.7.1.4 [\#66](https://github.com/tknzk/saml_idp_metadata/pull/66) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
133
|
+
- Bump parallel from 1.19.1 to 1.19.2 [\#65](https://github.com/tknzk/saml_idp_metadata/pull/65) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
134
|
+
- Bump activesupport from 6.0.3.1 to 6.0.3.2 [\#64](https://github.com/tknzk/saml_idp_metadata/pull/64) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
135
|
+
- Bump ast from 2.4.0 to 2.4.1 [\#63](https://github.com/tknzk/saml_idp_metadata/pull/63) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
136
|
+
- Bump rubocop from 0.85.0 to 0.85.1 [\#62](https://github.com/tknzk/saml_idp_metadata/pull/62) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
137
|
+
- Bump i18n from 1.8.2 to 1.8.3 [\#60](https://github.com/tknzk/saml_idp_metadata/pull/60) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
138
|
+
- Bump rubocop from 0.84.0 to 0.85.0 [\#59](https://github.com/tknzk/saml_idp_metadata/pull/59) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
139
|
+
- Bump coderay from 1.1.2 to 1.1.3 [\#58](https://github.com/tknzk/saml_idp_metadata/pull/58) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
140
|
+
- Bump parser from 2.7.1.2 to 2.7.1.3 [\#57](https://github.com/tknzk/saml_idp_metadata/pull/57) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
141
|
+
- Bump rubocop from 0.83.0 to 0.84.0 [\#56](https://github.com/tknzk/saml_idp_metadata/pull/56) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
142
|
+
- remvoe codecov [\#55](https://github.com/tknzk/saml_idp_metadata/pull/55) ([tknzk](https://github.com/tknzk))
|
143
|
+
- add simplecov [\#54](https://github.com/tknzk/saml_idp_metadata/pull/54) ([tknzk](https://github.com/tknzk))
|
144
|
+
- update changelog [\#53](https://github.com/tknzk/saml_idp_metadata/pull/53) ([tknzk](https://github.com/tknzk))
|
145
|
+
|
146
|
+
## [v0.1.6](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.6) (2020-05-19)
|
147
|
+
|
148
|
+
[Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.5...v0.1.6)
|
149
|
+
|
150
|
+
**Security fixes:**
|
151
|
+
|
152
|
+
- \[Security\] Bump activesupport from 6.0.3 to 6.0.3.1 [\#50](https://github.com/tknzk/saml_idp_metadata/pull/50) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
153
|
+
|
154
|
+
**Merged pull requests:**
|
155
|
+
|
156
|
+
- bumpup 0.1.6 [\#52](https://github.com/tknzk/saml_idp_metadata/pull/52) ([tknzk](https://github.com/tknzk))
|
157
|
+
- Bump minitest from 5.14.0 to 5.14.1 [\#51](https://github.com/tknzk/saml_idp_metadata/pull/51) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
158
|
+
- Bump rubocop from 0.82.0 to 0.83.0 [\#49](https://github.com/tknzk/saml_idp_metadata/pull/49) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
159
|
+
- Bump rspec-expectations from 3.9.1 to 3.9.2 [\#48](https://github.com/tknzk/saml_idp_metadata/pull/48) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
160
|
+
- Bump activesupport from 6.0.2.2 to 6.0.3 [\#47](https://github.com/tknzk/saml_idp_metadata/pull/47) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
161
|
+
- Bump rspec-support from 3.9.2 to 3.9.3 [\#46](https://github.com/tknzk/saml_idp_metadata/pull/46) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
162
|
+
- Bump rspec-core from 3.9.1 to 3.9.2 [\#45](https://github.com/tknzk/saml_idp_metadata/pull/45) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
163
|
+
- Bump parser from 2.7.1.1 to 2.7.1.2 [\#44](https://github.com/tknzk/saml_idp_metadata/pull/44) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
164
|
+
- Bump rubocop from 0.81.0 to 0.82.0 [\#43](https://github.com/tknzk/saml_idp_metadata/pull/43) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
165
|
+
- Bump parser from 2.7.1.0 to 2.7.1.1 [\#42](https://github.com/tknzk/saml_idp_metadata/pull/42) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
166
|
+
- Bump pry from 0.13.0 to 0.13.1 [\#41](https://github.com/tknzk/saml_idp_metadata/pull/41) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
|
167
|
+
- update changelog [\#40](https://github.com/tknzk/saml_idp_metadata/pull/40) ([tknzk](https://github.com/tknzk))
|
168
|
+
|
3
169
|
## [v0.1.5](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.5) (2020-04-08)
|
4
170
|
|
5
171
|
[Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.4...v0.1.5)
|
@@ -46,7 +212,6 @@
|
|
46
212
|
- Ruby 2.7.0 [\#8](https://github.com/tknzk/saml_idp_metadata/pull/8) ([tknzk](https://github.com/tknzk))
|
47
213
|
- change email [\#7](https://github.com/tknzk/saml_idp_metadata/pull/7) ([tknzk](https://github.com/tknzk))
|
48
214
|
- add changelog [\#6](https://github.com/tknzk/saml_idp_metadata/pull/6) ([tknzk](https://github.com/tknzk))
|
49
|
-
- bumpup [\#5](https://github.com/tknzk/saml_idp_metadata/pull/5) ([tknzk](https://github.com/tknzk))
|
50
215
|
|
51
216
|
## [v0.1.3](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.3) (2019-11-27)
|
52
217
|
|
@@ -54,6 +219,7 @@
|
|
54
219
|
|
55
220
|
**Merged pull requests:**
|
56
221
|
|
222
|
+
- bumpup [\#5](https://github.com/tknzk/saml_idp_metadata/pull/5) ([tknzk](https://github.com/tknzk))
|
57
223
|
- ruby 2.5.x , bundler 2.0.2 [\#4](https://github.com/tknzk/saml_idp_metadata/pull/4) ([tknzk](https://github.com/tknzk))
|
58
224
|
- fix a typo [\#3](https://github.com/tknzk/saml_idp_metadata/pull/3) ([tknzk](https://github.com/tknzk))
|
59
225
|
|
data/Gemfile.lock
CHANGED
@@ -1,64 +1,76 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
saml_idp_metadata (0.1
|
4
|
+
saml_idp_metadata (0.2.1)
|
5
5
|
activesupport
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (6.
|
10
|
+
activesupport (6.1.1)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
|
-
i18n (>=
|
13
|
-
minitest (
|
14
|
-
tzinfo (~>
|
15
|
-
zeitwerk (~> 2.
|
16
|
-
ast (2.4.
|
17
|
-
coderay (1.1.
|
18
|
-
concurrent-ruby (1.1.
|
19
|
-
diff-lcs (1.
|
20
|
-
|
12
|
+
i18n (>= 1.6, < 2)
|
13
|
+
minitest (>= 5.1)
|
14
|
+
tzinfo (~> 2.0)
|
15
|
+
zeitwerk (~> 2.3)
|
16
|
+
ast (2.4.1)
|
17
|
+
coderay (1.1.3)
|
18
|
+
concurrent-ruby (1.1.8)
|
19
|
+
diff-lcs (1.4.4)
|
20
|
+
docile (1.3.5)
|
21
|
+
i18n (1.8.7)
|
21
22
|
concurrent-ruby (~> 1.0)
|
22
23
|
method_source (1.0.0)
|
23
|
-
minitest (5.14.
|
24
|
-
parallel (1.
|
25
|
-
parser (
|
26
|
-
ast (~> 2.4.
|
24
|
+
minitest (5.14.3)
|
25
|
+
parallel (1.20.1)
|
26
|
+
parser (3.0.0.0)
|
27
|
+
ast (~> 2.4.1)
|
27
28
|
pry (0.13.1)
|
28
29
|
coderay (~> 1.1)
|
29
30
|
method_source (~> 1.0)
|
30
31
|
rainbow (3.0.0)
|
31
|
-
rake (13.0.
|
32
|
+
rake (13.0.3)
|
33
|
+
regexp_parser (2.0.3)
|
32
34
|
rexml (3.2.4)
|
33
|
-
rspec (3.
|
34
|
-
rspec-core (~> 3.
|
35
|
-
rspec-expectations (~> 3.
|
36
|
-
rspec-mocks (~> 3.
|
37
|
-
rspec-core (3.
|
38
|
-
rspec-support (~> 3.
|
39
|
-
rspec-expectations (3.
|
35
|
+
rspec (3.10.0)
|
36
|
+
rspec-core (~> 3.10.0)
|
37
|
+
rspec-expectations (~> 3.10.0)
|
38
|
+
rspec-mocks (~> 3.10.0)
|
39
|
+
rspec-core (3.10.1)
|
40
|
+
rspec-support (~> 3.10.0)
|
41
|
+
rspec-expectations (3.10.1)
|
40
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
-
rspec-support (~> 3.
|
42
|
-
rspec-mocks (3.
|
43
|
+
rspec-support (~> 3.10.0)
|
44
|
+
rspec-mocks (3.10.1)
|
43
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
44
|
-
rspec-support (~> 3.
|
45
|
-
rspec-support (3.
|
46
|
-
rubocop (
|
46
|
+
rspec-support (~> 3.10.0)
|
47
|
+
rspec-support (3.10.1)
|
48
|
+
rubocop (1.8.1)
|
47
49
|
parallel (~> 1.10)
|
48
|
-
parser (>=
|
50
|
+
parser (>= 3.0.0.0)
|
49
51
|
rainbow (>= 2.2.2, < 4.0)
|
52
|
+
regexp_parser (>= 1.8, < 3.0)
|
50
53
|
rexml
|
54
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
51
55
|
ruby-progressbar (~> 1.7)
|
52
|
-
unicode-display_width (>= 1.4.0, <
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
56
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
57
|
+
rubocop-ast (1.4.0)
|
58
|
+
parser (>= 2.7.1.5)
|
59
|
+
ruby-progressbar (1.11.0)
|
60
|
+
simplecov (0.21.2)
|
61
|
+
docile (~> 1.1)
|
62
|
+
simplecov-html (~> 0.11)
|
63
|
+
simplecov_json_formatter (~> 0.1)
|
64
|
+
simplecov-html (0.12.3)
|
65
|
+
simplecov_json_formatter (0.1.2)
|
66
|
+
tzinfo (2.0.4)
|
67
|
+
concurrent-ruby (~> 1.0)
|
68
|
+
unicode-display_width (2.0.0)
|
69
|
+
zeitwerk (2.4.2)
|
59
70
|
|
60
71
|
PLATFORMS
|
61
72
|
ruby
|
73
|
+
x86_64-darwin-19
|
62
74
|
|
63
75
|
DEPENDENCIES
|
64
76
|
bundler (~> 2)
|
@@ -67,6 +79,7 @@ DEPENDENCIES
|
|
67
79
|
rspec
|
68
80
|
rubocop
|
69
81
|
saml_idp_metadata!
|
82
|
+
simplecov
|
70
83
|
|
71
84
|
BUNDLED WITH
|
72
|
-
2.
|
85
|
+
2.2.3
|
@@ -1,12 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'active_support/dependencies/autoload'
|
3
4
|
require 'active_support/core_ext'
|
5
|
+
|
4
6
|
module SamlIdpMetadata
|
5
7
|
#
|
6
8
|
# SAML IdP metadata parser
|
7
9
|
#
|
8
10
|
class Parser
|
9
|
-
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
|
10
13
|
|
11
14
|
def initialize(xml:)
|
12
15
|
@xml = xml
|
@@ -17,6 +20,7 @@ module SamlIdpMetadata
|
|
17
20
|
@sso_http_redirect_url = nil
|
18
21
|
@sso_http_post_url = nil
|
19
22
|
@slo_url = nil
|
23
|
+
@nameid_format = nil
|
20
24
|
@x509_certificate = nil
|
21
25
|
end
|
22
26
|
|
@@ -31,6 +35,7 @@ module SamlIdpMetadata
|
|
31
35
|
@sso_http_redirect_url = parse_sso_http_redirect_url
|
32
36
|
@sso_http_post_url = parse_sso_http_post_url
|
33
37
|
@slo_url = parse_slo_url
|
38
|
+
@nameid_format = parse_nameid_format
|
34
39
|
@x509_certificate = parse_x509_certificate
|
35
40
|
|
36
41
|
self
|
@@ -51,6 +56,7 @@ module SamlIdpMetadata
|
|
51
56
|
sso_http_post_url: sso_http_post_url,
|
52
57
|
certificate: x509_certificate,
|
53
58
|
slo_url: slo_url,
|
59
|
+
nameid_format: nameid_format,
|
54
60
|
metadata: xml
|
55
61
|
}
|
56
62
|
end
|
@@ -105,10 +111,20 @@ module SamlIdpMetadata
|
|
105
111
|
end
|
106
112
|
end
|
107
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
|
+
|
108
124
|
def parse_x509_certificate
|
109
125
|
return nil if entity_descriptor.dig('IDPSSODescriptor', 'KeyDescriptor').nil?
|
110
126
|
|
111
|
-
if entity_descriptor['IDPSSODescriptor']['KeyDescriptor'].
|
127
|
+
if entity_descriptor['IDPSSODescriptor']['KeyDescriptor'].instance_of?(Array)
|
112
128
|
entity_descriptor['IDPSSODescriptor']['KeyDescriptor'].last['KeyInfo']['X509Data']['X509Certificate']
|
113
129
|
else
|
114
130
|
entity_descriptor['IDPSSODescriptor']['KeyDescriptor']['KeyInfo']['X509Data']['X509Certificate']
|
data/saml_idp_metadata.gemspec
CHANGED
@@ -5,19 +5,20 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
require 'saml_idp_metadata/version'
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
|
-
spec.name
|
9
|
-
spec.
|
10
|
-
spec.
|
11
|
-
spec.
|
8
|
+
spec.name = 'saml_idp_metadata'
|
9
|
+
spec.required_ruby_version = '>= 2.5', '< 4'
|
10
|
+
spec.version = SamlIdpMetadata::VERSION
|
11
|
+
spec.authors = ['tknzk']
|
12
|
+
spec.email = ['tkm.knzk@gmail.com']
|
12
13
|
|
13
|
-
spec.summary
|
14
|
-
spec.description
|
15
|
-
spec.homepage
|
16
|
-
spec.license
|
14
|
+
spec.summary = 'SAML IdP metadata.xml parser'
|
15
|
+
spec.description = 'SAML IdP metadata.xml parser'
|
16
|
+
spec.homepage = 'https://github.com/tknzk/saml_idp_metadata'
|
17
|
+
spec.license = 'MIT'
|
17
18
|
|
18
19
|
# Specify which files should be added to the gem when it is released.
|
19
20
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
-
spec.files
|
21
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
21
22
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
23
|
end
|
23
24
|
spec.bindir = 'exe'
|
@@ -31,4 +32,5 @@ Gem::Specification.new do |spec|
|
|
31
32
|
spec.add_development_dependency 'rake'
|
32
33
|
spec.add_development_dependency 'rspec'
|
33
34
|
spec.add_development_dependency 'rubocop'
|
35
|
+
spec.add_development_dependency 'simplecov'
|
34
36
|
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.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tknzk
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
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'
|
97
111
|
description: SAML IdP metadata.xml parser
|
98
112
|
email:
|
99
113
|
- tkm.knzk@gmail.com
|
@@ -126,7 +140,7 @@ homepage: https://github.com/tknzk/saml_idp_metadata
|
|
126
140
|
licenses:
|
127
141
|
- MIT
|
128
142
|
metadata: {}
|
129
|
-
post_install_message:
|
143
|
+
post_install_message:
|
130
144
|
rdoc_options: []
|
131
145
|
require_paths:
|
132
146
|
- lib
|
@@ -134,15 +148,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
148
|
requirements:
|
135
149
|
- - ">="
|
136
150
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
151
|
+
version: '2.5'
|
152
|
+
- - "<"
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '4'
|
138
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
156
|
requirements:
|
140
157
|
- - ">="
|
141
158
|
- !ruby/object:Gem::Version
|
142
159
|
version: '0'
|
143
160
|
requirements: []
|
144
|
-
rubygems_version: 3.
|
145
|
-
signing_key:
|
161
|
+
rubygems_version: 3.2.3
|
162
|
+
signing_key:
|
146
163
|
specification_version: 4
|
147
164
|
summary: SAML IdP metadata.xml parser
|
148
165
|
test_files: []
|