saml_idp_metadata 0.2.4 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38766406d033b7df3b066460ca11038f5066f96a1f525c37c3301fb453e9ceba
4
- data.tar.gz: 03fc04671d3273e5ad87741a4549cd5932a342f780f5d190157ae8f6a7d5d291
3
+ metadata.gz: f4d1a37794ac0a4b20355e1e9c7dc8fcbf420d843783966fb63d307aa406fd4c
4
+ data.tar.gz: 47ca2969c8ad6bfdf9b072aa6b69202a108824da50e3764fade163df7257562f
5
5
  SHA512:
6
- metadata.gz: cfa59f812a5c49908803fca07251e8d710accb504422e076753beaa72316b1bbf604a7a0ad329c08aaa679c1894d3c8bb882728160bb24b06b0fedae9e3702e3
7
- data.tar.gz: 45d9735bcaca66c274b5e930c1d517083a560cb3c0da5ef85fcebfbf63991e712f71225d332fd615bb2d2051d25de71f6d2bcdbccf4a98ef96247fdfb36003a0
6
+ metadata.gz: 6ae38facf710286c15ad17710d1f7ca8102a1a0927f1cb07fcb4b93b2dafefaa76c67af0865c6cabf189a547aa6cabd45c067b7b82f46924f0a7f3b8a5e3f611
7
+ data.tar.gz: 966331183225d00f7122a7c79bf7d320f74379fcee38249031b9f373b7d8da0c3e07e4c7e6814e6b70551deb768d9d1e3e8ac4b48dbe85a613f36988acdb4648
data/.circleci/config.yml CHANGED
@@ -2,18 +2,15 @@ version: 2.1
2
2
 
3
3
  executors:
4
4
  working_directory: /root/saml_idp_metadata
5
+ ruby_3_1:
6
+ docker:
7
+ - image: rubylang/ruby:3.1-focal
5
8
  ruby_3_0:
6
9
  docker:
7
- - image: rubylang/ruby:3.0.2-focal
10
+ - image: rubylang/ruby:3.0-focal
8
11
  ruby_2_7:
9
12
  docker:
10
- - image: rubylang/ruby:2.7.4-bionic
11
- ruby_2_6:
12
- docker:
13
- - image: rubylang/ruby:2.6.8-bionic
14
- ruby_2_5:
15
- docker:
16
- - image: rubylang/ruby:2.5.9-bionic
13
+ - image: rubylang/ruby:2.7-bionic
17
14
 
18
15
  commands:
19
16
  install_system_dependencies:
@@ -30,7 +27,7 @@ commands:
30
27
  - run:
31
28
  name: Bundle gems
32
29
  command: |
33
- gem install bundler -v 2.1.4 --no-document --force
30
+ gem install bundler -v 2.3.11 --no-document --force
34
31
  bundle install
35
32
 
36
33
  run_tests:
@@ -45,32 +42,24 @@ commands:
45
42
  path: coverage
46
43
 
47
44
  jobs:
48
- run_tests_on_ruby_3_0:
49
- executor: ruby_3_0
45
+ run_tests_on_ruby_3_1:
46
+ executor: ruby_3_1
50
47
  steps:
51
48
  - install_system_dependencies
52
49
  - checkout
53
50
  - bundle_gems
54
51
  - run_tests
55
52
 
56
- run_tests_on_ruby_2_7:
57
- executor: ruby_2_7
58
- steps:
59
- - install_system_dependencies
60
- - checkout
61
- - bundle_gems
62
- - run_tests
63
-
64
- run_tests_on_ruby_2_6:
65
- executor: ruby_2_6
53
+ run_tests_on_ruby_3_0:
54
+ executor: ruby_3_0
66
55
  steps:
67
56
  - install_system_dependencies
68
57
  - checkout
69
58
  - bundle_gems
70
59
  - run_tests
71
60
 
72
- run_tests_on_ruby_2_5:
73
- executor: ruby_2_5
61
+ run_tests_on_ruby_2_7:
62
+ executor: ruby_2_7
74
63
  steps:
75
64
  - install_system_dependencies
76
65
  - checkout
@@ -81,7 +70,6 @@ workflows:
81
70
  version: 2
82
71
  test:
83
72
  jobs:
73
+ - run_tests_on_ruby_3_1
84
74
  - run_tests_on_ruby_3_0
85
75
  - run_tests_on_ruby_2_7
86
- - run_tests_on_ruby_2_6
87
- - run_tests_on_ruby_2_5
@@ -0,0 +1,70 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ master ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ master ]
20
+ schedule:
21
+ - cron: '23 16 * * 1'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'ruby' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
+ # Learn more about CodeQL language support at https://git.io/codeql-language-support
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@v2
42
+
43
+ # Initializes the CodeQL tools for scanning.
44
+ - name: Initialize CodeQL
45
+ uses: github/codeql-action/init@v1
46
+ with:
47
+ languages: ${{ matrix.language }}
48
+ # If you wish to specify custom queries, you can do so here or in a config file.
49
+ # By default, queries listed here will override any specified in a config file.
50
+ # Prefix the list here with "+" to use these queries and those in the config file.
51
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
52
+
53
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54
+ # If this step fails, then you should remove it and run the build manually (see below)
55
+ - name: Autobuild
56
+ uses: github/codeql-action/autobuild@v1
57
+
58
+ # ℹ️ Command-line programs to run using the OS shell.
59
+ # 📚 https://git.io/JvXDl
60
+
61
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62
+ # and modify them (or add more) to build your code if your project
63
+ # uses a compiled language
64
+
65
+ #- run: |
66
+ # make bootstrap
67
+ # make release
68
+
69
+ - name: Perform CodeQL Analysis
70
+ uses: github/codeql-action/analyze@v1
@@ -9,10 +9,9 @@ jobs:
9
9
  matrix:
10
10
  ruby:
11
11
  # https://hub.docker.com/r/rubylang/ruby
12
- - '2.5-bionic'
13
- - '2.6-bionic'
14
12
  - '2.7-bionic'
15
- - '3.0.0-focal'
13
+ - '3.0-focal'
14
+ - '3.1-focal'
16
15
  - 'latest'
17
16
  container:
18
17
  image: rubylang/ruby:${{ matrix.ruby }}
@@ -21,7 +20,7 @@ jobs:
21
20
  - uses: actions/checkout@master
22
21
  - name: Build and test
23
22
  run: |
24
- gem install bundler -v 2.2.0 --force
23
+ gem install bundler -v 2.3.11 --force
25
24
  bundle install
26
25
  bundle exec rubocop
27
26
  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 2021-01-21 06:10:48 UTC using RuboCop version 1.8.1.
3
+ # on 2022-05-11 04:37:11 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
@@ -18,15 +18,24 @@ Gemspec/RequiredRubyVersion:
18
18
  Metrics/AbcSize:
19
19
  Max: 21
20
20
 
21
- # Offense count: 4
21
+ # Offense count: 8
22
22
  # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
23
23
  # IgnoredMethods: refine
24
24
  Metrics/BlockLength:
25
- Max: 267
25
+ Max: 333
26
26
 
27
- # Offense count: 17
28
- # Cop supports --auto-correct.
29
- # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
27
+ # Offense count: 15
28
+ # This cop supports safe auto-correction (--auto-correct).
29
+ # Configuration parameters: EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
30
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
31
+ # SupportedShorthandSyntax: always, never, either
32
+ Style/HashSyntax:
33
+ EnforcedStyle: ruby19_no_mixed_keys
34
+ EnforcedShorthandSyntax: either
35
+
36
+ # Offense count: 26
37
+ # This cop supports safe auto-correction (--auto-correct).
38
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
30
39
  # URISchemes: http, https
31
40
  Layout/LineLength:
32
41
  Max: 126
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.1.2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.2.4](https://github.com/tknzk/saml_idp_metadata/tree/v0.2.4) (2021-10-01)
4
+
5
+ [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.2.3...v0.2.4)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - bumpup [\#192](https://github.com/tknzk/saml_idp_metadata/pull/192) ([tknzk](https://github.com/tknzk))
10
+ - bundle update [\#191](https://github.com/tknzk/saml_idp_metadata/pull/191) ([tknzk](https://github.com/tknzk))
11
+ - Modified rubocop [\#190](https://github.com/tknzk/saml_idp_metadata/pull/190) ([tknzk](https://github.com/tknzk))
12
+
3
13
  ## [v0.2.3](https://github.com/tknzk/saml_idp_metadata/tree/v0.2.3) (2021-08-03)
4
14
 
5
15
  [Full Changelog](https://github.com/tknzk/saml_idp_metadata/compare/v0.2.2...v0.2.3)
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- saml_idp_metadata (0.2.4)
5
- activesupport
4
+ saml_idp_metadata (0.3.0)
5
+ activesupport (~> 6.1, < 7)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (6.1.4.1)
10
+ activesupport (6.1.6)
11
11
  concurrent-ruby (~> 1.0, >= 1.0.2)
12
12
  i18n (>= 1.6, < 2)
13
13
  minitest (>= 5.1)
@@ -15,50 +15,50 @@ GEM
15
15
  zeitwerk (~> 2.3)
16
16
  ast (2.4.2)
17
17
  coderay (1.1.3)
18
- concurrent-ruby (1.1.9)
19
- diff-lcs (1.4.4)
18
+ concurrent-ruby (1.1.10)
19
+ diff-lcs (1.5.0)
20
20
  docile (1.4.0)
21
- i18n (1.8.10)
21
+ i18n (1.10.0)
22
22
  concurrent-ruby (~> 1.0)
23
23
  method_source (1.0.0)
24
- minitest (5.14.4)
25
- parallel (1.21.0)
26
- parser (3.0.2.0)
24
+ minitest (5.15.0)
25
+ parallel (1.22.1)
26
+ parser (3.1.2.0)
27
27
  ast (~> 2.4.1)
28
28
  pry (0.14.1)
29
29
  coderay (~> 1.1)
30
30
  method_source (~> 1.0)
31
- rainbow (3.0.0)
31
+ rainbow (3.1.1)
32
32
  rake (13.0.6)
33
- regexp_parser (2.1.1)
33
+ regexp_parser (2.4.0)
34
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)
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)
42
42
  diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.10.0)
44
- rspec-mocks (3.10.2)
43
+ rspec-support (~> 3.11.0)
44
+ rspec-mocks (3.11.1)
45
45
  diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.10.0)
47
- rspec-support (3.10.2)
48
- rubocop (1.22.0)
46
+ rspec-support (~> 3.11.0)
47
+ rspec-support (3.11.0)
48
+ rubocop (1.29.0)
49
49
  parallel (~> 1.10)
50
- parser (>= 3.0.0.0)
50
+ parser (>= 3.1.0.0)
51
51
  rainbow (>= 2.2.2, < 4.0)
52
52
  regexp_parser (>= 1.8, < 3.0)
53
- rexml
54
- rubocop-ast (>= 1.12.0, < 2.0)
53
+ rexml (>= 3.2.5, < 4.0)
54
+ rubocop-ast (>= 1.17.0, < 2.0)
55
55
  ruby-progressbar (~> 1.7)
56
56
  unicode-display_width (>= 1.4.0, < 3.0)
57
- rubocop-ast (1.12.0)
58
- parser (>= 3.0.1.1)
57
+ rubocop-ast (1.17.0)
58
+ parser (>= 3.1.1.0)
59
59
  rubocop-rake (0.6.0)
60
60
  rubocop (~> 1.0)
61
- rubocop-rspec (2.5.0)
61
+ rubocop-rspec (2.10.0)
62
62
  rubocop (~> 1.19)
63
63
  ruby-progressbar (1.11.0)
64
64
  simplecov (0.21.2)
@@ -66,11 +66,11 @@ GEM
66
66
  simplecov-html (~> 0.11)
67
67
  simplecov_json_formatter (~> 0.1)
68
68
  simplecov-html (0.12.3)
69
- simplecov_json_formatter (0.1.3)
69
+ simplecov_json_formatter (0.1.4)
70
70
  tzinfo (2.0.4)
71
71
  concurrent-ruby (~> 1.0)
72
72
  unicode-display_width (2.1.0)
73
- zeitwerk (2.4.2)
73
+ zeitwerk (2.5.4)
74
74
 
75
75
  PLATFORMS
76
76
  ruby
@@ -88,4 +88,4 @@ DEPENDENCIES
88
88
  simplecov
89
89
 
90
90
  BUNDLED WITH
91
- 2.2.24
91
+ 2.3.11
@@ -64,7 +64,11 @@ module SamlIdpMetadata
64
64
  private
65
65
 
66
66
  def entity_descriptor
67
- @hash['EntityDescriptor']
67
+ if @hash['EntitiesDescriptor'].present?
68
+ @hash['EntitiesDescriptor']['EntityDescriptor']
69
+ else
70
+ @hash['EntityDescriptor']
71
+ end
68
72
  end
69
73
 
70
74
  def parse_entity_id
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SamlIdpMetadata
4
- VERSION = '0.2.4'
4
+ VERSION = '0.3.0'
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.5', '< 4'
9
+ spec.required_ruby_version = '>= 2.7', '< 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'
28
+ spec.add_dependency 'activesupport', '~> 6.1', '< 7'
29
29
 
30
30
  spec.add_development_dependency 'bundler', '~> 2'
31
31
  spec.add_development_dependency 'pry'
@@ -35,4 +35,5 @@ Gem::Specification.new do |spec|
35
35
  spec.add_development_dependency 'rubocop-rake'
36
36
  spec.add_development_dependency 'rubocop-rspec'
37
37
  spec.add_development_dependency 'simplecov'
38
+ spec.metadata['rubygems_mfa_required'] = 'true'
38
39
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml_idp_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tknzk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-01 00:00:00.000000000 Z
11
+ date: 2022-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '6.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ">="
27
+ - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '0'
29
+ version: '6.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: bundler
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -146,6 +152,7 @@ files:
146
152
  - ".circleci/config.yml"
147
153
  - ".github/CODEOWNERS"
148
154
  - ".github/dependabot.yml"
155
+ - ".github/workflows/codeql-analysis.yml"
149
156
  - ".github/workflows/ruby.yml"
150
157
  - ".gitignore"
151
158
  - ".rspec"
@@ -168,7 +175,8 @@ files:
168
175
  homepage: https://github.com/tknzk/saml_idp_metadata
169
176
  licenses:
170
177
  - MIT
171
- metadata: {}
178
+ metadata:
179
+ rubygems_mfa_required: 'true'
172
180
  post_install_message:
173
181
  rdoc_options: []
174
182
  require_paths:
@@ -177,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
185
  requirements:
178
186
  - - ">="
179
187
  - !ruby/object:Gem::Version
180
- version: '2.5'
188
+ version: '2.7'
181
189
  - - "<"
182
190
  - !ruby/object:Gem::Version
183
191
  version: '4'
@@ -187,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
195
  - !ruby/object:Gem::Version
188
196
  version: '0'
189
197
  requirements: []
190
- rubygems_version: 3.2.22
198
+ rubygems_version: 3.3.7
191
199
  signing_key:
192
200
  specification_version: 4
193
201
  summary: SAML IdP metadata.xml parser