saml_idp_metadata 0.1.9 → 0.2.3

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: bb6d155f517d3dcf6f3f250fee6227251e7e06f62b20cc43ffc52eb9581ac3b0
4
- data.tar.gz: 9e171a7f255d4d0bc21c6ff572fc851561d015aefd7d5c44da59c5deed280697
3
+ metadata.gz: 9ee94e5cfd5436d1f8c037d1a2f5540ddca795b1c5c738025c182a8db62e80c8
4
+ data.tar.gz: cb29666d88f4e85ea79889dbb773083f30fd8d92005320ad0c6c8b35601a280f
5
5
  SHA512:
6
- metadata.gz: c302965910669595c8b2a8a286ede2c6e11fe23fc7e7265e2df3f5d77a44cad5bd0340346fd2f12b814f96a6e6137db37ad229fcf3acb5ff79a721e35f527888
7
- data.tar.gz: a6054258ca992a92f904a53dd9af56b9b01ea0310ebf608a1f0c4c154f4344ae1a61ad74505081fb6a6fe24db14bca4b4880ac320cdc15387b341f9f8119a3e2
6
+ metadata.gz: ed98ecdedfeba89f23918e11de671c47b6a52015795b1dff0bb3dd093155a65957140abf7b4ca56b6e2555e43dc1eaecbd1263abc5ab13c5aa221b40d0fdc137
7
+ data.tar.gz: 3ee2c4ad3b25c999bffa0d3ab8df2bff36b70d3fc268ce1119b1a6b4ca6338583de2eeb854770e3f0e8c12e2927c91ed9beefad7c38ca697382c68e83fd9ef4c
data/.circleci/config.yml CHANGED
@@ -2,18 +2,18 @@ version: 2.1
2
2
 
3
3
  executors:
4
4
  working_directory: /root/saml_idp_metadata
5
- ruby_3_0_preview1:
5
+ ruby_3_0:
6
6
  docker:
7
- - image: rubylang/ruby:3.0.0-preview1-bionic
7
+ - image: rubylang/ruby:3.0.2-focal
8
8
  ruby_2_7:
9
9
  docker:
10
- - image: rubylang/ruby:2.7.1-bionic
10
+ - image: rubylang/ruby:2.7.4-bionic
11
11
  ruby_2_6:
12
12
  docker:
13
- - image: rubylang/ruby:2.6.6-bionic
13
+ - image: rubylang/ruby:2.6.8-bionic
14
14
  ruby_2_5:
15
15
  docker:
16
- - image: rubylang/ruby:2.5.7-bionic
16
+ - image: rubylang/ruby:2.5.9-bionic
17
17
 
18
18
  commands:
19
19
  install_system_dependencies:
@@ -45,8 +45,8 @@ commands:
45
45
  path: coverage
46
46
 
47
47
  jobs:
48
- run_tests_on_ruby_3_0_preview1:
49
- executor: ruby_3_0_preview1
48
+ run_tests_on_ruby_3_0:
49
+ executor: ruby_3_0
50
50
  steps:
51
51
  - install_system_dependencies
52
52
  - checkout
@@ -81,6 +81,7 @@ workflows:
81
81
  version: 2
82
82
  test:
83
83
  jobs:
84
+ - run_tests_on_ruby_3_0
84
85
  - run_tests_on_ruby_2_7
85
86
  - run_tests_on_ruby_2_6
86
87
  - run_tests_on_ruby_2_5
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "20:00"
8
+ open-pull-requests-limit: 10
9
+ versioning-strategy: lockfile-only
10
+ allow:
11
+ - dependency-type: direct
12
+ - dependency-type: indirect
@@ -12,7 +12,7 @@ jobs:
12
12
  - '2.5-bionic'
13
13
  - '2.6-bionic'
14
14
  - '2.7-bionic'
15
- - '3.0.0-preview1-bionic'
15
+ - '3.0.0-focal'
16
16
  - 'latest'
17
17
  container:
18
18
  image: rubylang/ruby:${{ matrix.ruby }}
@@ -21,7 +21,7 @@ jobs:
21
21
  - uses: actions/checkout@master
22
22
  - name: Build and test
23
23
  run: |
24
- gem install bundler -v 2.1.4 --force
24
+ gem install bundler -v 2.2.0 --force
25
25
  bundle install
26
26
  bundle exec rubocop
27
27
  bundle exec rake
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2020-08-06 01:31:39 UTC using RuboCop version 0.89.0.
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: 3
22
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
23
- # ExcludedMethods: refine
21
+ # Offense count: 4
22
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
23
+ # IgnoredMethods: refine
24
24
  Metrics/BlockLength:
25
- Max: 230
25
+ Max: 267
26
26
 
27
- # Offense count: 14
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.0-preview1
1
+ 3.0.2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,115 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.2.2](https://github.com/tknzk/saml_idp_metadata/tree/v0.2.2) (2021-04-06)
4
+
5
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.2.1...v0.2.2)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - bumpup 0.2.2 [\#180](https://github.com/tknzk/saml_idp_metadata/pull/180) ([tknzk](https://github.com/tknzk))
10
+ - bundle update [\#179](https://github.com/tknzk/saml_idp_metadata/pull/179) ([tknzk](https://github.com/tknzk))
11
+ - ruby 3.0.1 [\#178](https://github.com/tknzk/saml_idp_metadata/pull/178) ([tknzk](https://github.com/tknzk))
12
+ - bundle update [\#177](https://github.com/tknzk/saml_idp_metadata/pull/177) ([tknzk](https://github.com/tknzk))
13
+ - 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))
14
+
15
+ ## [v0.2.1](https://github.com/tknzk/saml_idp_metadata/tree/v0.2.1) (2021-01-21)
16
+
17
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.2.0...v0.2.1)
18
+
19
+ **Merged pull requests:**
20
+
21
+ - bumpup [\#176](https://github.com/tknzk/saml_idp_metadata/pull/176) ([tknzk](https://github.com/tknzk))
22
+ - parse nameid\_format [\#175](https://github.com/tknzk/saml_idp_metadata/pull/175) ([tknzk](https://github.com/tknzk))
23
+
24
+ ## [v0.2.0](https://github.com/tknzk/saml_idp_metadata/tree/v0.2.0) (2021-01-21)
25
+
26
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.9...v0.2.0)
27
+
28
+ **Merged pull requests:**
29
+
30
+ - bumpup 0.2.0 [\#174](https://github.com/tknzk/saml_idp_metadata/pull/174) ([tknzk](https://github.com/tknzk))
31
+ - Require ruby version [\#173](https://github.com/tknzk/saml_idp_metadata/pull/173) ([tknzk](https://github.com/tknzk))
32
+ - 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))
33
+ - 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))
34
+ - 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))
35
+ - 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))
36
+ - 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))
37
+ - 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))
38
+ - 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))
39
+ - 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))
40
+ - 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))
41
+ - 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))
42
+ - 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))
43
+ - 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))
44
+ - 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))
45
+ - 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))
46
+ - 💎 Ruby 3.0.0 [\#155](https://github.com/tknzk/saml_idp_metadata/pull/155) ([tknzk](https://github.com/tknzk))
47
+ - 3.0.0 preview2, 3.0.0-rc1 [\#154](https://github.com/tknzk/saml_idp_metadata/pull/154) ([tknzk](https://github.com/tknzk))
48
+ - 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))
49
+ - 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))
50
+ - 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))
51
+ - 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))
52
+ - 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))
53
+ - 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))
54
+ - add require 'active\_support/dependencies/autoload' [\#146](https://github.com/tknzk/saml_idp_metadata/pull/146) ([tknzk](https://github.com/tknzk))
55
+ - 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))
56
+ - 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))
57
+ - 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))
58
+ - 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))
59
+ - 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))
60
+ - 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))
61
+ - 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))
62
+ - 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))
63
+ - 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))
64
+ - 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))
65
+ - 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))
66
+ - 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))
67
+ - 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))
68
+ - 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))
69
+ - 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))
70
+ - 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))
71
+ - 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))
72
+ - 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))
73
+ - 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))
74
+
75
+ ## [v0.1.9](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.9) (2020-11-02)
76
+
77
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.8...v0.1.9)
78
+
79
+ **Merged pull requests:**
80
+
81
+ - bumpup [\#125](https://github.com/tknzk/saml_idp_metadata/pull/125) ([tknzk](https://github.com/tknzk))
82
+ - 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))
83
+ - 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))
84
+ - 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))
85
+ - 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))
86
+ - 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))
87
+ - 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))
88
+ - 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))
89
+ - 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))
90
+ - 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))
91
+ - 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))
92
+ - 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))
93
+ - 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))
94
+ - 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))
95
+ - 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))
96
+ - 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))
97
+ - 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))
98
+ - add Ruby 3.0.0-preview1 test [\#107](https://github.com/tknzk/saml_idp_metadata/pull/107) ([tknzk](https://github.com/tknzk))
99
+ - 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))
100
+ - 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))
101
+ - 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))
102
+ - 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))
103
+ - 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))
104
+ - 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))
105
+ - 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))
106
+ - 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))
107
+ - 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))
108
+ - 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))
109
+ - 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))
110
+ - 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))
111
+ - 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))
112
+
3
113
  ## [v0.1.8](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.8) (2020-09-10)
4
114
 
5
115
  [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.7...v0.1.8)
@@ -25,6 +135,7 @@
25
135
  - 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))
26
136
  - update changelog [\#75](https://github.com/tknzk/saml_idp_metadata/pull/75) ([tknzk](https://github.com/tknzk))
27
137
  - 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))
138
+ - 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))
28
139
 
29
140
  ## [v0.1.7](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.7) (2020-07-02)
30
141
 
@@ -38,7 +149,6 @@
38
149
  - 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))
39
150
  - 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))
40
151
  - 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))
41
- - 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))
42
152
  - 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))
43
153
  - 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))
44
154
  - 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))
data/Gemfile.lock CHANGED
@@ -1,74 +1,76 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- saml_idp_metadata (0.1.9)
4
+ saml_idp_metadata (0.2.3)
5
5
  activesupport
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (6.0.3.4)
10
+ activesupport (6.1.4)
11
11
  concurrent-ruby (~> 1.0, >= 1.0.2)
12
- i18n (>= 0.7, < 2)
13
- minitest (~> 5.1)
14
- tzinfo (~> 1.1)
15
- zeitwerk (~> 2.2, >= 2.2.2)
16
- ast (2.4.1)
12
+ i18n (>= 1.6, < 2)
13
+ minitest (>= 5.1)
14
+ tzinfo (~> 2.0)
15
+ zeitwerk (~> 2.3)
16
+ ast (2.4.2)
17
17
  coderay (1.1.3)
18
- concurrent-ruby (1.1.7)
18
+ concurrent-ruby (1.1.9)
19
19
  diff-lcs (1.4.4)
20
- docile (1.3.2)
21
- i18n (1.8.5)
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.2)
25
- parallel (1.19.2)
26
- parser (2.7.2.0)
24
+ minitest (5.14.4)
25
+ parallel (1.20.1)
26
+ parser (3.0.2.0)
27
27
  ast (~> 2.4.1)
28
- pry (0.13.1)
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.1)
33
- regexp_parser (1.8.2)
34
- rexml (3.2.4)
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)
38
38
  rspec-mocks (~> 3.10.0)
39
- rspec-core (3.10.0)
39
+ rspec-core (3.10.1)
40
40
  rspec-support (~> 3.10.0)
41
- rspec-expectations (3.10.0)
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.0)
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.0)
48
- rubocop (1.1.0)
47
+ rspec-support (3.10.2)
48
+ rubocop (1.18.4)
49
49
  parallel (~> 1.10)
50
- parser (>= 2.7.1.5)
50
+ parser (>= 3.0.0.0)
51
51
  rainbow (>= 2.2.2, < 4.0)
52
- regexp_parser (>= 1.8)
52
+ regexp_parser (>= 1.8, < 3.0)
53
53
  rexml
54
- rubocop-ast (>= 1.0.1)
54
+ rubocop-ast (>= 1.8.0, < 2.0)
55
55
  ruby-progressbar (~> 1.7)
56
- unicode-display_width (>= 1.4.0, < 2.0)
57
- rubocop-ast (1.1.0)
58
- parser (>= 2.7.1.5)
59
- ruby-progressbar (1.10.1)
60
- simplecov (0.19.1)
56
+ unicode-display_width (>= 1.4.0, < 3.0)
57
+ rubocop-ast (1.8.0)
58
+ parser (>= 3.0.1.1)
59
+ ruby-progressbar (1.11.0)
60
+ simplecov (0.21.2)
61
61
  docile (~> 1.1)
62
62
  simplecov-html (~> 0.11)
63
+ simplecov_json_formatter (~> 0.1)
63
64
  simplecov-html (0.12.3)
64
- thread_safe (0.3.6)
65
- tzinfo (1.2.7)
66
- thread_safe (~> 0.1)
67
- unicode-display_width (1.7.0)
68
- zeitwerk (2.4.1)
65
+ simplecov_json_formatter (0.1.3)
66
+ tzinfo (2.0.4)
67
+ concurrent-ruby (~> 1.0)
68
+ unicode-display_width (2.0.0)
69
+ zeitwerk (2.4.2)
69
70
 
70
71
  PLATFORMS
71
72
  ruby
73
+ x86_64-darwin-19
72
74
 
73
75
  DEPENDENCIES
74
76
  bundler (~> 2)
@@ -80,4 +82,4 @@ DEPENDENCIES
80
82
  simplecov
81
83
 
82
84
  BUNDLED WITH
83
- 2.2.0.rc.1
85
+ 2.2.24
@@ -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, :x509_certificate
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,6 +111,16 @@ 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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SamlIdpMetadata
4
- VERSION = '0.1.9'
4
+ VERSION = '0.2.3'
5
5
  end
@@ -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 = 'saml_idp_metadata'
9
- spec.version = SamlIdpMetadata::VERSION
10
- spec.authors = ['tknzk']
11
- spec.email = ['tkm.knzk@gmail.com']
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 = 'SAML IdP metadata.xml parser'
14
- spec.description = 'SAML IdP metadata.xml parser'
15
- spec.homepage = 'https://github.com/tknzk/saml_idp_metadata'
16
- spec.license = 'MIT'
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 = Dir.chdir(File.expand_path(__dir__)) do
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'
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.9
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - tknzk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-02 00:00:00.000000000 Z
11
+ date: 2021-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -117,6 +117,7 @@ extra_rdoc_files: []
117
117
  files:
118
118
  - ".circleci/config.yml"
119
119
  - ".github/CODEOWNERS"
120
+ - ".github/dependabot.yml"
120
121
  - ".github/workflows/ruby.yml"
121
122
  - ".gitignore"
122
123
  - ".rspec"
@@ -148,14 +149,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
149
  requirements:
149
150
  - - ">="
150
151
  - !ruby/object:Gem::Version
151
- version: '0'
152
+ version: '2.5'
153
+ - - "<"
154
+ - !ruby/object:Gem::Version
155
+ version: '4'
152
156
  required_rubygems_version: !ruby/object:Gem::Requirement
153
157
  requirements:
154
158
  - - ">="
155
159
  - !ruby/object:Gem::Version
156
160
  version: '0'
157
161
  requirements: []
158
- rubygems_version: 3.2.0.rc.1
162
+ rubygems_version: 3.2.22
159
163
  signing_key:
160
164
  specification_version: 4
161
165
  summary: SAML IdP metadata.xml parser