saml_idp_metadata 0.1.0 → 0.1.1

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: 4eaf9eb4a8e3cc538814350cf3361459eafc949285d7e770ada043c7a9f731c2
4
- data.tar.gz: d6710bb713c25deea9a2f223fddb2d83795d5267768da8acbf8dc73f4a8d9f36
3
+ metadata.gz: 60f8c00864342e40fb75073f3baaa73284fd9622077b56eb85af74311300037c
4
+ data.tar.gz: 0a9ec1d3fd11a99a6ffd3c9697e60aea144859d5bbc977f0ce969799b88d0aff
5
5
  SHA512:
6
- metadata.gz: a4dd4c1c62ae12178f6a99a43880332c07cef4dd1b395789ea675211d85c606b5a45a78b36ed1bfcec77c77f12332d01b25925c3f8eda8f2fa2c1b6a692d5e68
7
- data.tar.gz: 4f061bdbde0fecde11439cf5d77b0ec0d9013feec83d5dc341a19fe7c4680c75eca078adee25c68c1aed87bcef14ba30ac67c4c19ef6805e1ac2d1e58c354dcb
6
+ metadata.gz: 8eed50ada5906a7de7772dd78a3e2ae06d93b30df7e5df27c4230eb956c1d7ca03ac77b3ccd5e73853823e37274da12e5852f2eb7d4e5efb00e9ab87c0540e23
7
+ data.tar.gz: 000d49ecb0ee76cfdaaa588df3cceff8f51c181c3499d07e5d275aac43b28a73f75d7ab7a90a98b1f90c4154306855cd75523facc68f490bc6c541a460b9fd89
@@ -17,4 +17,5 @@ jobs:
17
17
  run: |
18
18
  gem install bundler -v 2.0.2
19
19
  bundle install
20
+ bundle exec rubocop
20
21
  bundle exec rake
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- saml_idp_metadata (0.1.0)
4
+ saml_idp_metadata (0.1.1)
5
5
  activesupport
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # SamlIdpMetadata
1
+ # SAML IdP Metadata Parser
2
+ [ ![](https://img.shields.io/gem/v/saml_idp_metadata.svg)](https://rubygems.org/gems/saml_idp_metadata) [ ![](https://img.shields.io/gem/dt/saml_idp_metadata.svg)](https://rubygems.org/gems/saml_idp_metadata)
3
+ [![CircleCI](https://circleci.com/gh/tknzk/saml_idp_metadata.svg?style=svg)](https://circleci.com/gh/tknzk/saml_idp_metadata)
2
4
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/saml_idp_metadata`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
5
+ Parser for SAML IdP metadata
6
6
 
7
7
  ## Installation
8
8
 
@@ -22,7 +22,29 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ Basic one:
26
+
27
+ ```ruby
28
+ # validate_xmlsn
29
+
30
+ xml = File.read('./idp_metadata.xml')
31
+
32
+ SamlIdpMetadata::Parser.call(xml: xml).validate_xmlns
33
+ ```
34
+
35
+ ```ruby
36
+ # ensure_params?
37
+ xml = File.read('./idp_metadata.xml')
38
+
39
+ SamlIdpMetadata::Parser.call(xml: xml).ensure_params?
40
+ ```
41
+
42
+ ```ruby
43
+ # build_params
44
+ xml = File.read('./idp_metadata.xml')
45
+
46
+ SamlIdpMetadata::Parser.call(xml: xml).build_params
47
+ ```
26
48
 
27
49
  ## Development
28
50
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SamlIdpMetadata
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml_idp_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tknzk