saml_idp_metadata 0.1.7 → 0.2.2

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: 282a75c0a7b442a39eaf12bbb5a2e023d03aed8cb3f0273f88efc9fa672bb002
4
- data.tar.gz: f2fa8c885ead3c24a698ba1380d99868f2675fa7b90142879bb53724c3045ccf
3
+ metadata.gz: 9fffdaeeac3abf24a29747d9658a5a5ad6d404b004754f69bc56e555f4e0090d
4
+ data.tar.gz: 785eda19c7a0f55369df4d86c5262c87f65631c4fa21f41ce925fccd92526452
5
5
  SHA512:
6
- metadata.gz: 2822d733c51c8bfdb061e535db9eb4cefc42953c5dbd3353e72d81bab9fecb1f2a2187387c7f3000d5d6a73c2dd54b8da7189567af03162dce7f0dd406323188
7
- data.tar.gz: 32bdaae37a5185369122c0bfc60829e27ad8dc1abc59b2613efd2ea982e24654e9bc4a5f219a5e1842d942480d5349bd853cc4fb053a5415ab790a0d6b59d715
6
+ metadata.gz: 841e9d9c1cd40d6880f84cd01291b56168139719f2a601d6308098356c2b570ed7d5ec8a812f84ee9f106b7b97077d6e03aa30227a45a1da980727961d7ddf08
7
+ data.tar.gz: 3bb146cacb0d59634c5b067209c3672701010df80d260052b2a587a72c4119f12734b708c1bb8dbc8223297c636571d82c3efe7f3a59186e94aafced7e77cbfe
data/.circleci/config.yml CHANGED
@@ -2,15 +2,18 @@ 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.1-focal
5
8
  ruby_2_7:
6
9
  docker:
7
- - image: rubylang/ruby:2.7.1-bionic
10
+ - image: rubylang/ruby:2.7.3-bionic
8
11
  ruby_2_6:
9
12
  docker:
10
- - image: rubylang/ruby:2.6.6-bionic
13
+ - image: rubylang/ruby:2.6.7-bionic
11
14
  ruby_2_5:
12
15
  docker:
13
- - image: rubylang/ruby:2.5.7-bionic
16
+ - image: rubylang/ruby:2.5.9-bionic
14
17
 
15
18
  commands:
16
19
  install_system_dependencies:
@@ -42,6 +45,14 @@ commands:
42
45
  path: coverage
43
46
 
44
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
+
45
56
  run_tests_on_ruby_2_7:
46
57
  executor: ruby_2_7
47
58
  steps:
@@ -70,6 +81,7 @@ workflows:
70
81
  version: 2
71
82
  test:
72
83
  jobs:
84
+ - run_tests_on_ruby_3_0
73
85
  - run_tests_on_ruby_2_7
74
86
  - run_tests_on_ruby_2_6
75
87
  - run_tests_on_ruby_2_5
@@ -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.1.4 --force
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 2019-11-25 10:02:54 +0900 using RuboCop version 0.76.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
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: 2
14
- # Configuration parameters: CountComments, ExcludedMethods.
15
- # ExcludedMethods: refine
21
+ # Offense count: 4
22
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
23
+ # IgnoredMethods: refine
16
24
  Metrics/BlockLength:
17
- # Max: 69
18
- Exclude:
19
- - 'spec/**/*'
25
+ Max: 267
20
26
 
21
- # Offense count: 29
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
- Metrics/LineLength:
26
- Max: 128
31
+ Layout/LineLength:
32
+ Max: 126
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.1
1
+ 3.0.1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,157 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.2.1](https://github.com/tknzk/saml_idp_metadata/tree/v0.2.1) (2021-01-21)
4
+
5
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.2.0...v0.2.1)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - bumpup [\#176](https://github.com/tknzk/saml_idp_metadata/pull/176) ([tknzk](https://github.com/tknzk))
10
+ - parse nameid\_format [\#175](https://github.com/tknzk/saml_idp_metadata/pull/175) ([tknzk](https://github.com/tknzk))
11
+
12
+ ## [v0.2.0](https://github.com/tknzk/saml_idp_metadata/tree/v0.2.0) (2021-01-21)
13
+
14
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.9...v0.2.0)
15
+
16
+ **Merged pull requests:**
17
+
18
+ - bumpup 0.2.0 [\#174](https://github.com/tknzk/saml_idp_metadata/pull/174) ([tknzk](https://github.com/tknzk))
19
+ - Require ruby version [\#173](https://github.com/tknzk/saml_idp_metadata/pull/173) ([tknzk](https://github.com/tknzk))
20
+ - 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))
21
+ - 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))
22
+ - 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))
23
+ - 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))
24
+ - 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))
25
+ - 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))
26
+ - 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))
27
+ - 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))
28
+ - 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))
29
+ - 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))
30
+ - 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))
31
+ - 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))
32
+ - 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))
33
+ - 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))
34
+ - 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))
35
+ - 💎 Ruby 3.0.0 [\#155](https://github.com/tknzk/saml_idp_metadata/pull/155) ([tknzk](https://github.com/tknzk))
36
+ - 3.0.0 preview2, 3.0.0-rc1 [\#154](https://github.com/tknzk/saml_idp_metadata/pull/154) ([tknzk](https://github.com/tknzk))
37
+ - 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))
38
+ - 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))
39
+ - 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))
40
+ - 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))
41
+ - 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))
42
+ - 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))
43
+ - add require 'active\_support/dependencies/autoload' [\#146](https://github.com/tknzk/saml_idp_metadata/pull/146) ([tknzk](https://github.com/tknzk))
44
+ - 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))
45
+ - 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))
46
+ - 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))
47
+ - 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))
48
+ - 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))
49
+ - 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))
50
+ - 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))
51
+ - 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))
52
+ - 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))
53
+ - 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))
54
+ - 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))
55
+ - 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))
56
+ - 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))
57
+ - 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))
58
+ - 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))
59
+ - 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))
60
+ - 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))
61
+ - 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))
62
+ - 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))
63
+
64
+ ## [v0.1.9](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.9) (2020-11-02)
65
+
66
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.8...v0.1.9)
67
+
68
+ **Merged pull requests:**
69
+
70
+ - bumpup [\#125](https://github.com/tknzk/saml_idp_metadata/pull/125) ([tknzk](https://github.com/tknzk))
71
+ - 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))
72
+ - 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))
73
+ - 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))
74
+ - 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))
75
+ - 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))
76
+ - 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))
77
+ - 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))
78
+ - 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))
79
+ - 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))
80
+ - 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))
81
+ - 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))
82
+ - 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))
83
+ - 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))
84
+ - 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))
85
+ - 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))
86
+ - 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))
87
+ - add Ruby 3.0.0-preview1 test [\#107](https://github.com/tknzk/saml_idp_metadata/pull/107) ([tknzk](https://github.com/tknzk))
88
+ - 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))
89
+ - 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))
90
+ - 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))
91
+ - 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))
92
+ - 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))
93
+ - 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))
94
+ - 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))
95
+ - 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))
96
+ - 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))
97
+ - 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))
98
+ - 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))
99
+ - 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))
100
+ - 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))
101
+
102
+ ## [v0.1.8](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.8) (2020-09-10)
103
+
104
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.7...v0.1.8)
105
+
106
+ **Merged pull requests:**
107
+
108
+ - bumpup [\#92](https://github.com/tknzk/saml_idp_metadata/pull/92) ([tknzk](https://github.com/tknzk))
109
+ - 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))
110
+ - 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))
111
+ - 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))
112
+ - 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))
113
+ - 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))
114
+ - 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))
115
+ - 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))
116
+ - Rubocop config [\#84](https://github.com/tknzk/saml_idp_metadata/pull/84) ([tknzk](https://github.com/tknzk))
117
+ - 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))
118
+ - 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))
119
+ - 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))
120
+ - 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))
121
+ - 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))
122
+ - 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))
123
+ - 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))
124
+ - 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))
125
+ - update changelog [\#75](https://github.com/tknzk/saml_idp_metadata/pull/75) ([tknzk](https://github.com/tknzk))
126
+ - 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))
127
+
128
+ ## [v0.1.7](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.7) (2020-07-02)
129
+
130
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.6...v0.1.7)
131
+
132
+ **Merged pull requests:**
133
+
134
+ - bumpup [\#74](https://github.com/tknzk/saml_idp_metadata/pull/74) ([tknzk](https://github.com/tknzk))
135
+ - 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))
136
+ - 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))
137
+ - 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))
138
+ - 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))
139
+ - 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))
140
+ - 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))
141
+ - 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))
142
+ - 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))
143
+ - 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))
144
+ - 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))
145
+ - 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))
146
+ - 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))
147
+ - 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))
148
+ - 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))
149
+ - 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))
150
+ - 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))
151
+ - remvoe codecov [\#55](https://github.com/tknzk/saml_idp_metadata/pull/55) ([tknzk](https://github.com/tknzk))
152
+ - add simplecov [\#54](https://github.com/tknzk/saml_idp_metadata/pull/54) ([tknzk](https://github.com/tknzk))
153
+ - update changelog [\#53](https://github.com/tknzk/saml_idp_metadata/pull/53) ([tknzk](https://github.com/tknzk))
154
+
3
155
  ## [v0.1.6](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.6) (2020-05-19)
4
156
 
5
157
  [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.1.5...v0.1.6)
@@ -69,7 +221,6 @@
69
221
  - Ruby 2.7.0 [\#8](https://github.com/tknzk/saml_idp_metadata/pull/8) ([tknzk](https://github.com/tknzk))
70
222
  - change email [\#7](https://github.com/tknzk/saml_idp_metadata/pull/7) ([tknzk](https://github.com/tknzk))
71
223
  - add changelog [\#6](https://github.com/tknzk/saml_idp_metadata/pull/6) ([tknzk](https://github.com/tknzk))
72
- - ruby 2.5.x , bundler 2.0.2 [\#4](https://github.com/tknzk/saml_idp_metadata/pull/4) ([tknzk](https://github.com/tknzk))
73
224
 
74
225
  ## [v0.1.3](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.3) (2019-11-27)
75
226
 
@@ -78,6 +229,7 @@
78
229
  **Merged pull requests:**
79
230
 
80
231
  - bumpup [\#5](https://github.com/tknzk/saml_idp_metadata/pull/5) ([tknzk](https://github.com/tknzk))
232
+ - ruby 2.5.x , bundler 2.0.2 [\#4](https://github.com/tknzk/saml_idp_metadata/pull/4) ([tknzk](https://github.com/tknzk))
81
233
  - fix a typo [\#3](https://github.com/tknzk/saml_idp_metadata/pull/3) ([tknzk](https://github.com/tknzk))
82
234
 
83
235
  ## [v0.1.2](https://github.com/tknzk/saml_idp_metadata/tree/v0.1.2) (2019-11-25)
data/Gemfile.lock CHANGED
@@ -1,74 +1,76 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- saml_idp_metadata (0.1.7)
4
+ saml_idp_metadata (0.2.2)
5
5
  activesupport
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (6.0.3.2)
10
+ activesupport (6.1.3.1)
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.6)
19
- diff-lcs (1.4.3)
20
- docile (1.3.2)
21
- i18n (1.8.3)
18
+ concurrent-ruby (1.1.8)
19
+ diff-lcs (1.4.4)
20
+ docile (1.3.5)
21
+ i18n (1.8.10)
22
22
  concurrent-ruby (~> 1.0)
23
23
  method_source (1.0.0)
24
- minitest (5.14.1)
25
- parallel (1.19.2)
26
- parser (2.7.1.4)
24
+ minitest (5.14.4)
25
+ parallel (1.20.1)
26
+ parser (3.0.0.0)
27
27
  ast (~> 2.4.1)
28
- pry (0.13.1)
28
+ pry (0.14.0)
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.7.1)
34
- rexml (3.2.4)
35
- rspec (3.9.0)
36
- rspec-core (~> 3.9.0)
37
- rspec-expectations (~> 3.9.0)
38
- rspec-mocks (~> 3.9.0)
39
- rspec-core (3.9.2)
40
- rspec-support (~> 3.9.3)
41
- rspec-expectations (3.9.2)
32
+ rake (13.0.3)
33
+ regexp_parser (2.1.1)
34
+ rexml (3.2.5)
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)
42
42
  diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.9.0)
44
- rspec-mocks (3.9.1)
43
+ rspec-support (~> 3.10.0)
44
+ rspec-mocks (3.10.2)
45
45
  diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.9.0)
47
- rspec-support (3.9.3)
48
- rubocop (0.86.0)
46
+ rspec-support (~> 3.10.0)
47
+ rspec-support (3.10.2)
48
+ rubocop (1.12.1)
49
49
  parallel (~> 1.10)
50
- parser (>= 2.7.0.1)
50
+ parser (>= 3.0.0.0)
51
51
  rainbow (>= 2.2.2, < 4.0)
52
- regexp_parser (>= 1.7)
52
+ regexp_parser (>= 1.8, < 3.0)
53
53
  rexml
54
- rubocop-ast (>= 0.0.3, < 1.0)
54
+ rubocop-ast (>= 1.2.0, < 2.0)
55
55
  ruby-progressbar (~> 1.7)
56
- unicode-display_width (>= 1.4.0, < 2.0)
57
- rubocop-ast (0.1.0)
58
- parser (>= 2.7.0.1)
59
- ruby-progressbar (1.10.1)
60
- simplecov (0.18.5)
56
+ unicode-display_width (>= 1.4.0, < 3.0)
57
+ rubocop-ast (1.4.1)
58
+ parser (>= 2.7.1.5)
59
+ ruby-progressbar (1.11.0)
60
+ simplecov (0.21.2)
61
61
  docile (~> 1.1)
62
62
  simplecov-html (~> 0.11)
63
- simplecov-html (0.12.2)
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.3.1)
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)
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.1.4
85
+ 2.2.15
@@ -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,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'].class == Array
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']
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SamlIdpMetadata
4
- VERSION = '0.1.7'
4
+ VERSION = '0.2.2'
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.7
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - tknzk
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-02 00:00:00.000000000 Z
11
+ date: 2021-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -140,7 +140,7 @@ homepage: https://github.com/tknzk/saml_idp_metadata
140
140
  licenses:
141
141
  - MIT
142
142
  metadata: {}
143
- post_install_message:
143
+ post_install_message:
144
144
  rdoc_options: []
145
145
  require_paths:
146
146
  - lib
@@ -148,15 +148,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - ">="
150
150
  - !ruby/object:Gem::Version
151
- version: '0'
151
+ version: '2.5'
152
+ - - "<"
153
+ - !ruby/object:Gem::Version
154
+ version: '4'
152
155
  required_rubygems_version: !ruby/object:Gem::Requirement
153
156
  requirements:
154
157
  - - ">="
155
158
  - !ruby/object:Gem::Version
156
159
  version: '0'
157
160
  requirements: []
158
- rubygems_version: 3.1.2
159
- signing_key:
161
+ rubygems_version: 3.2.15
162
+ signing_key:
160
163
  specification_version: 4
161
164
  summary: SAML IdP metadata.xml parser
162
165
  test_files: []