saml_idp_metadata 0.3.1 → 0.3.4

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: d606c1a0e1c5ab5275656283b5bf9377d017e996ec313f0221fe0a92204f7a6a
4
- data.tar.gz: e64d77d093bd881e0675aaa22b2643f219521c036d691e6f9f68fbf79c0b0c3f
3
+ metadata.gz: f1128d7147a6864411dac95248c96ea0e046fb84354ad14789f32dbdc7b01fae
4
+ data.tar.gz: 000ab2563cfbf6694d6262355300e05756876989126d89e40b59dbc8c62f3191
5
5
  SHA512:
6
- metadata.gz: 0a01b0795d89a1be2e9e952d6192726bbddb4e9302c1eab74ca6fb237e1fe394cc9ba433d026a1f257c16f7dc76307c59fff3d251789964bc45df2b2de788a8e
7
- data.tar.gz: 358ca970780ada972ccc4a6b9034f24b0d68ffe985764074a20adaff3bf66f2ac26d8943250a40b1b355e195123d9b992dcf47348270a2cbf53bc5a67365a494
6
+ metadata.gz: 0bcb3afcfcbb8d2ccab3b886bfad0347d9b5bf49185e05ffb8a5ec0296794d94f3c50382ba70556d53fc02701086e8c31af4961d492025143e68a6dfe3f93f13
7
+ data.tar.gz: 8e3418777a2159e7bdf2fdcd4f21b6270663effecb12bdc8c71da7a18e1f6a942d0a2b56f07562aa2e2ab8513542600c7b58555f1f7f4be2639807bf7d22b9de
data/.circleci/config.yml CHANGED
@@ -2,15 +2,15 @@ version: 2.1
2
2
 
3
3
  executors:
4
4
  working_directory: /root/saml_idp_metadata
5
+ ruby_3_2:
6
+ docker:
7
+ - image: rubylang/ruby:3.2-dev-focal
5
8
  ruby_3_1:
6
9
  docker:
7
- - image: rubylang/ruby:3.1-focal
10
+ - image: rubylang/ruby:3.1-dev-focal
8
11
  ruby_3_0:
9
12
  docker:
10
- - image: rubylang/ruby:3.0-focal
11
- ruby_2_7:
12
- docker:
13
- - image: rubylang/ruby:2.7-bionic
13
+ - image: rubylang/ruby:3.0-dev-focal
14
14
 
15
15
  commands:
16
16
  install_system_dependencies:
@@ -27,7 +27,7 @@ commands:
27
27
  - run:
28
28
  name: Bundle gems
29
29
  command: |
30
- gem install bundler -v 2.3.11 --no-document --force
30
+ gem install bundler -v 2.4.6 --no-document --force
31
31
  bundle install
32
32
 
33
33
  run_tests:
@@ -42,24 +42,24 @@ commands:
42
42
  path: coverage
43
43
 
44
44
  jobs:
45
- run_tests_on_ruby_3_1:
46
- executor: ruby_3_1
45
+ run_tests_on_ruby_3_2:
46
+ executor: ruby_3_2
47
47
  steps:
48
48
  - install_system_dependencies
49
49
  - checkout
50
50
  - bundle_gems
51
51
  - run_tests
52
52
 
53
- run_tests_on_ruby_3_0:
54
- executor: ruby_3_0
53
+ run_tests_on_ruby_3_1:
54
+ executor: ruby_3_1
55
55
  steps:
56
56
  - install_system_dependencies
57
57
  - checkout
58
58
  - bundle_gems
59
59
  - run_tests
60
60
 
61
- run_tests_on_ruby_2_7:
62
- executor: ruby_2_7
61
+ run_tests_on_ruby_3_0:
62
+ executor: ruby_3_0
63
63
  steps:
64
64
  - install_system_dependencies
65
65
  - checkout
@@ -70,6 +70,6 @@ workflows:
70
70
  version: 2
71
71
  test:
72
72
  jobs:
73
+ - run_tests_on_ruby_3_2
73
74
  - run_tests_on_ruby_3_1
74
75
  - run_tests_on_ruby_3_0
75
- - run_tests_on_ruby_2_7
@@ -9,10 +9,9 @@ jobs:
9
9
  matrix:
10
10
  ruby:
11
11
  # https://hub.docker.com/r/rubylang/ruby
12
- - '2.7-bionic'
13
- - '3.0-focal'
14
- - '3.1-focal'
15
- - 'latest'
12
+ - '3.0-dev-focal'
13
+ - '3.1-dev-focal'
14
+ - '3.2-dev-focal'
16
15
  container:
17
16
  image: rubylang/ruby:${{ matrix.ruby }}
18
17
 
@@ -20,7 +19,7 @@ jobs:
20
19
  - uses: actions/checkout@master
21
20
  - name: Build and test
22
21
  run: |
23
- gem install bundler -v 2.3.11 --force
22
+ gem install bundler -v 2.4.6 --force
24
23
  bundle install
25
24
  bundle exec rubocop
26
25
  bundle exec rake
data/.rubocop.yml CHANGED
@@ -3,6 +3,9 @@ inherit_from: .rubocop_todo.yml
3
3
  AllCops:
4
4
  NewCops: enable
5
5
 
6
+ Gemspec/DevelopmentDependencies:
7
+ EnforcedStyle: gemspec
8
+
6
9
  Layout/EmptyLinesAroundAttributeAccessor:
7
10
  Enabled: false
8
11
 
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2022-05-11 04:37:11 UTC using RuboCop version 1.29.0.
3
+ # on 2023-02-10 09:02:06 UTC using RuboCop version 1.29.0.
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
@@ -22,9 +22,9 @@ Metrics/AbcSize:
22
22
  # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
23
23
  # IgnoredMethods: refine
24
24
  Metrics/BlockLength:
25
- Max: 333
25
+ Max: 362
26
26
 
27
- # Offense count: 15
27
+ # Offense count: 14
28
28
  # This cop supports safe auto-correction (--auto-correct).
29
29
  # Configuration parameters: EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
30
30
  # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.2.1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.3.3](https://github.com/tknzk/saml_idp_metadata/tree/v0.3.3) (2023-02-10)
4
+
5
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.3.2...v0.3.3)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - bumpup [\#210](https://github.com/tknzk/saml_idp_metadata/pull/210) ([tknzk](https://github.com/tknzk))
10
+ - use redirect\_url if post\_url not exist [\#209](https://github.com/tknzk/saml_idp_metadata/pull/209) ([tknzk](https://github.com/tknzk))
11
+
12
+ ## [v0.3.2](https://github.com/tknzk/saml_idp_metadata/tree/v0.3.2) (2023-02-10)
13
+
14
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.3.1...v0.3.2)
15
+
16
+ **Merged pull requests:**
17
+
18
+ - bumpup [\#208](https://github.com/tknzk/saml_idp_metadata/pull/208) ([tknzk](https://github.com/tknzk))
19
+ - fix sso\_post\_url not exits. [\#207](https://github.com/tknzk/saml_idp_metadata/pull/207) ([tknzk](https://github.com/tknzk))
20
+
21
+ ## [v0.3.1](https://github.com/tknzk/saml_idp_metadata/tree/v0.3.1) (2022-05-11)
22
+
23
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.3.0...v0.3.1)
24
+
25
+ **Merged pull requests:**
26
+
27
+ - bumpup 0.3.1 [\#206](https://github.com/tknzk/saml_idp_metadata/pull/206) ([tknzk](https://github.com/tknzk))
28
+ - remove under version [\#205](https://github.com/tknzk/saml_idp_metadata/pull/205) ([tknzk](https://github.com/tknzk))
29
+
30
+ ## [v0.3.0](https://github.com/tknzk/saml_idp_metadata/tree/v0.3.0) (2022-05-11)
31
+
32
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.2.4...v0.3.0)
33
+
34
+ **Merged pull requests:**
35
+
36
+ - bump up 0.3.0 [\#204](https://github.com/tknzk/saml_idp_metadata/pull/204) ([tknzk](https://github.com/tknzk))
37
+ - bundle update [\#203](https://github.com/tknzk/saml_idp_metadata/pull/203) ([tknzk](https://github.com/tknzk))
38
+ - ruby 2.6 EOL [\#202](https://github.com/tknzk/saml_idp_metadata/pull/202) ([tknzk](https://github.com/tknzk))
39
+ - activesupport \< 7 [\#201](https://github.com/tknzk/saml_idp_metadata/pull/201) ([tknzk](https://github.com/tknzk))
40
+ - parse include EntitiesDescriptor [\#200](https://github.com/tknzk/saml_idp_metadata/pull/200) ([tknzk](https://github.com/tknzk))
41
+ - ruby 3.1.2 [\#199](https://github.com/tknzk/saml_idp_metadata/pull/199) ([tknzk](https://github.com/tknzk))
42
+ - ruby 3.1.0 [\#197](https://github.com/tknzk/saml_idp_metadata/pull/197) ([tknzk](https://github.com/tknzk))
43
+ - ruby 3.1.0-preview1 [\#196](https://github.com/tknzk/saml_idp_metadata/pull/196) ([tknzk](https://github.com/tknzk))
44
+ - create codeql-analysis.yml [\#195](https://github.com/tknzk/saml_idp_metadata/pull/195) ([tknzk](https://github.com/tknzk))
45
+ - bundle update [\#194](https://github.com/tknzk/saml_idp_metadata/pull/194) ([tknzk](https://github.com/tknzk))
46
+ - Drop support ruby 2.5 [\#193](https://github.com/tknzk/saml_idp_metadata/pull/193) ([tknzk](https://github.com/tknzk))
47
+
3
48
  ## [v0.2.4](https://github.com/tknzk/saml_idp_metadata/tree/v0.2.4) (2021-10-01)
4
49
 
5
50
  [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.2.3...v0.2.4)
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- saml_idp_metadata (0.3.1)
5
- activesupport (< 7)
4
+ saml_idp_metadata (0.3.4)
5
+ activesupport (< 8)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (6.1.6)
10
+ activesupport (6.1.7.2)
11
11
  concurrent-ruby (~> 1.0, >= 1.0.2)
12
12
  i18n (>= 1.6, < 2)
13
13
  minitest (>= 5.1)
@@ -15,62 +15,67 @@ GEM
15
15
  zeitwerk (~> 2.3)
16
16
  ast (2.4.2)
17
17
  coderay (1.1.3)
18
- concurrent-ruby (1.1.10)
18
+ concurrent-ruby (1.2.0)
19
19
  diff-lcs (1.5.0)
20
20
  docile (1.4.0)
21
- i18n (1.10.0)
21
+ i18n (1.12.0)
22
22
  concurrent-ruby (~> 1.0)
23
+ json (2.6.3)
23
24
  method_source (1.0.0)
24
- minitest (5.15.0)
25
+ minitest (5.17.0)
25
26
  parallel (1.22.1)
26
- parser (3.1.2.0)
27
+ parser (3.2.1.0)
27
28
  ast (~> 2.4.1)
28
- pry (0.14.1)
29
+ pry (0.14.2)
29
30
  coderay (~> 1.1)
30
31
  method_source (~> 1.0)
31
32
  rainbow (3.1.1)
32
33
  rake (13.0.6)
33
- regexp_parser (2.4.0)
34
+ regexp_parser (2.7.0)
34
35
  rexml (3.2.5)
35
- rspec (3.11.0)
36
- rspec-core (~> 3.11.0)
37
- rspec-expectations (~> 3.11.0)
38
- rspec-mocks (~> 3.11.0)
39
- rspec-core (3.11.0)
40
- rspec-support (~> 3.11.0)
41
- rspec-expectations (3.11.0)
36
+ rspec (3.12.0)
37
+ rspec-core (~> 3.12.0)
38
+ rspec-expectations (~> 3.12.0)
39
+ rspec-mocks (~> 3.12.0)
40
+ rspec-core (3.12.1)
41
+ rspec-support (~> 3.12.0)
42
+ rspec-expectations (3.12.2)
42
43
  diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.11.0)
44
- rspec-mocks (3.11.1)
44
+ rspec-support (~> 3.12.0)
45
+ rspec-mocks (3.12.3)
45
46
  diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.11.0)
47
- rspec-support (3.11.0)
48
- rubocop (1.29.0)
47
+ rspec-support (~> 3.12.0)
48
+ rspec-support (3.12.0)
49
+ rubocop (1.45.1)
50
+ json (~> 2.3)
49
51
  parallel (~> 1.10)
50
- parser (>= 3.1.0.0)
52
+ parser (>= 3.2.0.0)
51
53
  rainbow (>= 2.2.2, < 4.0)
52
54
  regexp_parser (>= 1.8, < 3.0)
53
55
  rexml (>= 3.2.5, < 4.0)
54
- rubocop-ast (>= 1.17.0, < 2.0)
56
+ rubocop-ast (>= 1.24.1, < 2.0)
55
57
  ruby-progressbar (~> 1.7)
56
- unicode-display_width (>= 1.4.0, < 3.0)
57
- rubocop-ast (1.17.0)
58
- parser (>= 3.1.1.0)
58
+ unicode-display_width (>= 2.4.0, < 3.0)
59
+ rubocop-ast (1.26.0)
60
+ parser (>= 3.2.1.0)
61
+ rubocop-capybara (2.17.0)
62
+ rubocop (~> 1.41)
59
63
  rubocop-rake (0.6.0)
60
64
  rubocop (~> 1.0)
61
- rubocop-rspec (2.10.0)
62
- rubocop (~> 1.19)
65
+ rubocop-rspec (2.18.1)
66
+ rubocop (~> 1.33)
67
+ rubocop-capybara (~> 2.17)
63
68
  ruby-progressbar (1.11.0)
64
- simplecov (0.21.2)
69
+ simplecov (0.22.0)
65
70
  docile (~> 1.1)
66
71
  simplecov-html (~> 0.11)
67
72
  simplecov_json_formatter (~> 0.1)
68
73
  simplecov-html (0.12.3)
69
74
  simplecov_json_formatter (0.1.4)
70
- tzinfo (2.0.4)
75
+ tzinfo (2.0.6)
71
76
  concurrent-ruby (~> 1.0)
72
- unicode-display_width (2.1.0)
73
- zeitwerk (2.5.4)
77
+ unicode-display_width (2.4.2)
78
+ zeitwerk (2.6.7)
74
79
 
75
80
  PLATFORMS
76
81
  ruby
@@ -88,4 +93,4 @@ DEPENDENCIES
88
93
  simplecov
89
94
 
90
95
  BUNDLED WITH
91
- 2.3.11
96
+ 2.4.6
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'active_support/dependencies/autoload'
3
+ require 'active_support'
4
4
  require 'active_support/core_ext'
5
5
 
6
6
  module SamlIdpMetadata
@@ -33,7 +33,7 @@ module SamlIdpMetadata
33
33
 
34
34
  @entity_id = parse_entity_id
35
35
  @sso_http_redirect_url = parse_sso_http_redirect_url
36
- @sso_http_post_url = parse_sso_http_post_url
36
+ @sso_http_post_url = parse_sso_http_post_url.presence || parse_sso_http_redirect_url
37
37
  @slo_url = parse_slo_url
38
38
  @nameid_format = parse_nameid_format
39
39
  @x509_certificate = parse_x509_certificate
@@ -89,6 +89,7 @@ module SamlIdpMetadata
89
89
  single_signon_services.each do |service|
90
90
  return service['Location'] if service['Binding'] == 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect'
91
91
  end
92
+ nil
92
93
  end
93
94
 
94
95
  def parse_sso_http_post_url
@@ -101,6 +102,7 @@ module SamlIdpMetadata
101
102
  single_signon_services.each do |service|
102
103
  return service['Location'] if service['Binding'] == 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST'
103
104
  end
105
+ nil
104
106
  end
105
107
 
106
108
  def parse_slo_url
@@ -113,6 +115,7 @@ module SamlIdpMetadata
113
115
  single_logout_services.each do |service|
114
116
  return service['Location'] if service['Binding'] == 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect'
115
117
  end
118
+ nil
116
119
  end
117
120
 
118
121
  def parse_nameid_format
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SamlIdpMetadata
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.4'
5
5
  end
@@ -6,7 +6,7 @@ require 'saml_idp_metadata/version'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'saml_idp_metadata'
9
- spec.required_ruby_version = '>= 2.7', '< 4'
9
+ spec.required_ruby_version = '>= 3.0.0', '< 4'
10
10
  spec.version = SamlIdpMetadata::VERSION
11
11
  spec.authors = ['tknzk']
12
12
  spec.email = ['tkm.knzk@gmail.com']
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ['lib']
27
27
 
28
- spec.add_dependency 'activesupport', '< 7'
28
+ spec.add_dependency 'activesupport', '< 8'
29
29
 
30
30
  spec.add_development_dependency 'bundler', '~> 2'
31
31
  spec.add_development_dependency 'pry'
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.3.1
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - tknzk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-11 00:00:00.000000000 Z
11
+ date: 2023-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "<"
18
18
  - !ruby/object:Gem::Version
19
- version: '7'
19
+ version: '8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "<"
25
25
  - !ruby/object:Gem::Version
26
- version: '7'
26
+ version: '8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -179,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
179
  requirements:
180
180
  - - ">="
181
181
  - !ruby/object:Gem::Version
182
- version: '2.7'
182
+ version: 3.0.0
183
183
  - - "<"
184
184
  - !ruby/object:Gem::Version
185
185
  version: '4'
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  requirements: []
192
- rubygems_version: 3.3.7
192
+ rubygems_version: 3.4.6
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: SAML IdP metadata.xml parser