saml-kit 1.1.0 → 1.2.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: 39ae4610f337b0423a14f71aa9d03ea254ee6f453d3680970039b19cc6c3d0c1
4
- data.tar.gz: 175432ff893cb775e91128bbef17f1cf111a062152d7ae1b59015ded4af2933e
3
+ metadata.gz: d77013b5cfdff5bcf857a48182eacafc9a8683cb0171c4cd383a8d53f522f5ea
4
+ data.tar.gz: 4a56b20855f4e83f47545b7fce9c31f47216b0bdc51bacdab6a29ba1e410f3d9
5
5
  SHA512:
6
- metadata.gz: 1fed3dfc0ca5ac7e5ed4991799df62ad44096419568fe87d3239049b2e64b56529285aca87e53f026c4a7dca2265fecffe8491189e8676d3861ff69577709633
7
- data.tar.gz: a107ff7beab021f235dd6940a99cbd5897a07094d836104075c142f7d256e3d605e0a4bc85613c4aa0f88df768679466bfc2f861e99063045d655317bd0c8796
6
+ metadata.gz: f7eed807fd7d0a00de9fa669e6b52ae65f5487bcc1b408065d3c510d6323a7879d4412c67abe2a79a5fe7a08a38fa17296112586b4cd960dd4c13e1ca30ba7fa
7
+ data.tar.gz: 2832e9ba9fc7453ea1db370b69153db556b72cb2d0e0990e3216412669fb6212c73145654ae4edd0f2c4d04b5b464979a342a11343bc3c2bff4963b877379590
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- Version 1.1.0
1
+ Version 1.2.0
2
2
 
3
3
  # Changelog
4
4
  All notable changes to this project will be documented in this file.
@@ -7,7 +7,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
7
7
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
 
9
9
  ## [Unreleased]
10
- - nil
10
+
11
+ ## [1.2.0] - 2021-02-04
12
+ ### Changed
13
+ - Use [ActiveModel::Errors#add](https://www.rubydoc.info/docs/rails/ActiveModel%2FErrors:add)
14
+ - Update minimum activemodel version to `5.1`.
11
15
 
12
16
  ## [1.1.0] - 2019-04-30
13
17
  ### Added
@@ -83,62 +87,63 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
83
87
  ### Removed
84
88
  - Removed optional SessionNotOnOrAfter attribute from AuthnStatement.
85
89
 
86
- [Unreleased]: https://github.com/saml-kit/saml-kit/compare/v1.1.0...HEAD
87
- [1.1.0]: https://github.com/saml-kit/saml-kit/compare/v1.0.31...v1.1.0
88
- [1.0.31]: https://github.com/saml-kit/saml-kit/compare/v1.0.30...v1.0.31
89
- [1.0.30]: https://github.com/saml-kit/saml-kit/compare/v1.0.29...v1.0.30
90
- [1.0.29]: https://github.com/saml-kit/saml-kit/compare/v1.0.28...v1.0.29
91
- [1.0.28]: https://github.com/saml-kit/saml-kit/compare/v1.0.27...v1.0.28
92
- [1.0.27]: https://github.com/saml-kit/saml-kit/compare/v1.0.26...v1.0.27
93
- [1.0.26]: https://github.com/saml-kit/saml-kit/compare/v1.0.25...v1.0.26
94
- [1.0.25]: https://github.com/saml-kit/saml-kit/compare/v1.0.24...v1.0.25
95
- [1.0.24]: https://github.com/saml-kit/saml-kit/compare/v1.0.23...v1.0.24
96
- [1.0.23]: https://github.com/saml-kit/saml-kit/compare/v1.0.22...v1.0.23
97
- [1.0.22]: https://github.com/saml-kit/saml-kit/compare/v1.0.21...v1.0.22
98
- [1.0.21]: https://github.com/saml-kit/saml-kit/compare/v1.0.20...v1.0.21
99
- [1.0.20]: https://github.com/saml-kit/saml-kit/compare/v1.0.19...v1.0.20
100
- [1.0.19]: https://github.com/saml-kit/saml-kit/compare/v1.0.18...v1.0.19
101
- [1.0.18]: https://github.com/saml-kit/saml-kit/compare/v1.0.17...v1.0.18
102
- [1.0.17]: https://github.com/saml-kit/saml-kit/compare/v1.0.16...v1.0.17
103
- [1.0.16]: https://github.com/saml-kit/saml-kit/compare/v1.0.15...v1.0.16
104
- [1.0.15]: https://github.com/saml-kit/saml-kit/compare/v1.0.14...v1.0.15
105
- [1.0.14]: https://github.com/saml-kit/saml-kit/compare/v1.0.13...v1.0.14
106
- [1.0.13]: https://github.com/saml-kit/saml-kit/compare/v1.0.12...v1.0.13
107
- [1.0.12]: https://github.com/saml-kit/saml-kit/compare/v1.0.11...v1.0.12
108
- [1.0.11]: https://github.com/saml-kit/saml-kit/compare/v1.0.10...v1.0.11
109
- [1.0.10]: https://github.com/saml-kit/saml-kit/compare/v1.0.9...v1.0.10
110
- [1.0.9]: https://github.com/saml-kit/saml-kit/compare/v1.0.8...v1.0.9
111
- [1.0.8]: https://github.com/saml-kit/saml-kit/compare/v1.0.7...v1.0.8
112
- [1.0.7]: https://github.com/saml-kit/saml-kit/compare/v1.0.6...v1.0.7
113
- [1.0.6]: https://github.com/saml-kit/saml-kit/compare/v1.0.5...v1.0.6
114
- [1.0.5]: https://github.com/saml-kit/saml-kit/compare/v1.0.4...v1.0.5
115
- [1.0.4]: https://github.com/saml-kit/saml-kit/compare/v1.0.3...v1.0.4
116
- [1.0.3]: https://github.com/saml-kit/saml-kit/compare/v1.0.2...v1.0.3
117
- [1.0.2]: https://github.com/saml-kit/saml-kit/compare/v1.0.1...v1.0.2
118
- [1.0.1]: https://github.com/saml-kit/saml-kit/compare/v1.0.0...v1.0.1
119
- [1.0.0]: https://github.com/saml-kit/saml-kit/compare/v0.3.6...v1.0.0
120
- [0.3.6]: https://github.com/saml-kit/saml-kit/compare/v0.3.5...v0.3.6
121
- [0.3.5]: https://github.com/saml-kit/saml-kit/compare/v0.3.4...v0.3.5
122
- [0.3.4]: https://github.com/saml-kit/saml-kit/compare/v0.3.3...v0.3.4
123
- [0.3.3]: https://github.com/saml-kit/saml-kit/compare/v0.3.2...v0.3.3
124
- [0.3.2]: https://github.com/saml-kit/saml-kit/compare/v0.3.1...v0.3.2
125
- [0.3.1]: https://github.com/saml-kit/saml-kit/compare/v0.3.0...v0.3.1
126
- [0.3.0]: https://github.com/saml-kit/saml-kit/compare/v0.2.18...v0.3.0
127
- [0.2.18]: https://github.com/saml-kit/saml-kit/compare/v0.2.17...v0.2.18
128
- [0.2.17]: https://github.com/saml-kit/saml-kit/compare/v0.2.16...v0.2.17
129
- [0.2.16]: https://github.com/saml-kit/saml-kit/compare/v0.2.15...v0.2.16
130
- [0.2.15]: https://github.com/saml-kit/saml-kit/compare/v0.2.14...v0.2.15
131
- [0.2.14]: https://github.com/saml-kit/saml-kit/compare/v0.2.13...v0.2.14
132
- [0.2.13]: https://github.com/saml-kit/saml-kit/compare/v0.2.12...v0.2.13
133
- [0.2.12]: https://github.com/saml-kit/saml-kit/compare/v0.2.11...v0.2.12
134
- [0.2.11]: https://github.com/saml-kit/saml-kit/compare/v0.2.10...v0.2.11
135
- [0.2.10]: https://github.com/saml-kit/saml-kit/compare/v0.2.9...v0.2.10
136
- [0.2.9]: https://github.com/saml-kit/saml-kit/compare/v0.2.8...v0.2.9
137
- [0.2.8]: https://github.com/saml-kit/saml-kit/compare/v0.2.7...v0.2.8
138
- [0.2.7]: https://github.com/saml-kit/saml-kit/compare/v0.2.6...v0.2.7
139
- [0.2.6]: https://github.com/saml-kit/saml-kit/compare/v0.2.5...v0.2.6
140
- [0.2.5]: https://github.com/saml-kit/saml-kit/compare/v0.2.4...v0.2.5
141
- [0.2.4]: https://github.com/saml-kit/saml-kit/compare/v0.2.3...v0.2.4
142
- [0.2.3]: https://github.com/saml-kit/saml-kit/compare/v0.2.2...v0.2.3
143
- [0.2.2]: https://github.com/saml-kit/saml-kit/compare/v0.2.1...v0.2.2
144
- [0.2.1]: https://github.com/saml-kit/saml-kit/compare/v0.1.0...v0.2.1
90
+ [Unreleased]: https://github.com/xlgmokha/saml-kit/compare/v1.2.0...HEAD
91
+ [1.2.0]: https://github.com/xlgmokha/saml-kit/compare/v1.1.0...v1.2.0
92
+ [1.1.0]: https://github.com/xlgmokha/saml-kit/compare/v1.0.31...v1.1.0
93
+ [1.0.31]: https://github.com/xlgmokha/saml-kit/compare/v1.0.30...v1.0.31
94
+ [1.0.30]: https://github.com/xlgmokha/saml-kit/compare/v1.0.29...v1.0.30
95
+ [1.0.29]: https://github.com/xlgmokha/saml-kit/compare/v1.0.28...v1.0.29
96
+ [1.0.28]: https://github.com/xlgmokha/saml-kit/compare/v1.0.27...v1.0.28
97
+ [1.0.27]: https://github.com/xlgmokha/saml-kit/compare/v1.0.26...v1.0.27
98
+ [1.0.26]: https://github.com/xlgmokha/saml-kit/compare/v1.0.25...v1.0.26
99
+ [1.0.25]: https://github.com/xlgmokha/saml-kit/compare/v1.0.24...v1.0.25
100
+ [1.0.24]: https://github.com/xlgmokha/saml-kit/compare/v1.0.23...v1.0.24
101
+ [1.0.23]: https://github.com/xlgmokha/saml-kit/compare/v1.0.22...v1.0.23
102
+ [1.0.22]: https://github.com/xlgmokha/saml-kit/compare/v1.0.21...v1.0.22
103
+ [1.0.21]: https://github.com/xlgmokha/saml-kit/compare/v1.0.20...v1.0.21
104
+ [1.0.20]: https://github.com/xlgmokha/saml-kit/compare/v1.0.19...v1.0.20
105
+ [1.0.19]: https://github.com/xlgmokha/saml-kit/compare/v1.0.18...v1.0.19
106
+ [1.0.18]: https://github.com/xlgmokha/saml-kit/compare/v1.0.17...v1.0.18
107
+ [1.0.17]: https://github.com/xlgmokha/saml-kit/compare/v1.0.16...v1.0.17
108
+ [1.0.16]: https://github.com/xlgmokha/saml-kit/compare/v1.0.15...v1.0.16
109
+ [1.0.15]: https://github.com/xlgmokha/saml-kit/compare/v1.0.14...v1.0.15
110
+ [1.0.14]: https://github.com/xlgmokha/saml-kit/compare/v1.0.13...v1.0.14
111
+ [1.0.13]: https://github.com/xlgmokha/saml-kit/compare/v1.0.12...v1.0.13
112
+ [1.0.12]: https://github.com/xlgmokha/saml-kit/compare/v1.0.11...v1.0.12
113
+ [1.0.11]: https://github.com/xlgmokha/saml-kit/compare/v1.0.10...v1.0.11
114
+ [1.0.10]: https://github.com/xlgmokha/saml-kit/compare/v1.0.9...v1.0.10
115
+ [1.0.9]: https://github.com/xlgmokha/saml-kit/compare/v1.0.8...v1.0.9
116
+ [1.0.8]: https://github.com/xlgmokha/saml-kit/compare/v1.0.7...v1.0.8
117
+ [1.0.7]: https://github.com/xlgmokha/saml-kit/compare/v1.0.6...v1.0.7
118
+ [1.0.6]: https://github.com/xlgmokha/saml-kit/compare/v1.0.5...v1.0.6
119
+ [1.0.5]: https://github.com/xlgmokha/saml-kit/compare/v1.0.4...v1.0.5
120
+ [1.0.4]: https://github.com/xlgmokha/saml-kit/compare/v1.0.3...v1.0.4
121
+ [1.0.3]: https://github.com/xlgmokha/saml-kit/compare/v1.0.2...v1.0.3
122
+ [1.0.2]: https://github.com/xlgmokha/saml-kit/compare/v1.0.1...v1.0.2
123
+ [1.0.1]: https://github.com/xlgmokha/saml-kit/compare/v1.0.0...v1.0.1
124
+ [1.0.0]: https://github.com/xlgmokha/saml-kit/compare/v0.3.6...v1.0.0
125
+ [0.3.6]: https://github.com/xlgmokha/saml-kit/compare/v0.3.5...v0.3.6
126
+ [0.3.5]: https://github.com/xlgmokha/saml-kit/compare/v0.3.4...v0.3.5
127
+ [0.3.4]: https://github.com/xlgmokha/saml-kit/compare/v0.3.3...v0.3.4
128
+ [0.3.3]: https://github.com/xlgmokha/saml-kit/compare/v0.3.2...v0.3.3
129
+ [0.3.2]: https://github.com/xlgmokha/saml-kit/compare/v0.3.1...v0.3.2
130
+ [0.3.1]: https://github.com/xlgmokha/saml-kit/compare/v0.3.0...v0.3.1
131
+ [0.3.0]: https://github.com/xlgmokha/saml-kit/compare/v0.2.18...v0.3.0
132
+ [0.2.18]: https://github.com/xlgmokha/saml-kit/compare/v0.2.17...v0.2.18
133
+ [0.2.17]: https://github.com/xlgmokha/saml-kit/compare/v0.2.16...v0.2.17
134
+ [0.2.16]: https://github.com/xlgmokha/saml-kit/compare/v0.2.15...v0.2.16
135
+ [0.2.15]: https://github.com/xlgmokha/saml-kit/compare/v0.2.14...v0.2.15
136
+ [0.2.14]: https://github.com/xlgmokha/saml-kit/compare/v0.2.13...v0.2.14
137
+ [0.2.13]: https://github.com/xlgmokha/saml-kit/compare/v0.2.12...v0.2.13
138
+ [0.2.12]: https://github.com/xlgmokha/saml-kit/compare/v0.2.11...v0.2.12
139
+ [0.2.11]: https://github.com/xlgmokha/saml-kit/compare/v0.2.10...v0.2.11
140
+ [0.2.10]: https://github.com/xlgmokha/saml-kit/compare/v0.2.9...v0.2.10
141
+ [0.2.9]: https://github.com/xlgmokha/saml-kit/compare/v0.2.8...v0.2.9
142
+ [0.2.8]: https://github.com/xlgmokha/saml-kit/compare/v0.2.7...v0.2.8
143
+ [0.2.7]: https://github.com/xlgmokha/saml-kit/compare/v0.2.6...v0.2.7
144
+ [0.2.6]: https://github.com/xlgmokha/saml-kit/compare/v0.2.5...v0.2.6
145
+ [0.2.5]: https://github.com/xlgmokha/saml-kit/compare/v0.2.4...v0.2.5
146
+ [0.2.4]: https://github.com/xlgmokha/saml-kit/compare/v0.2.3...v0.2.4
147
+ [0.2.3]: https://github.com/xlgmokha/saml-kit/compare/v0.2.2...v0.2.3
148
+ [0.2.2]: https://github.com/xlgmokha/saml-kit/compare/v0.2.1...v0.2.2
149
+ [0.2.1]: https://github.com/xlgmokha/saml-kit/compare/v0.1.0...v0.2.1
data/Gemfile.lock CHANGED
@@ -1,104 +1,107 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- saml-kit (1.1.0)
5
- activemodel (>= 4.2.0)
4
+ saml-kit (1.2.0)
5
+ activemodel (~> 5.1)
6
6
  net-hippie (~> 0.1)
7
- xml-kit (>= 0.3.0, < 1.0.0)
7
+ xml-kit (~> 0.4)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activemodel (5.2.3)
13
- activesupport (= 5.2.3)
14
- activesupport (5.2.3)
12
+ activemodel (5.2.4.4)
13
+ activesupport (= 5.2.4.4)
14
+ activesupport (5.2.4.4)
15
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
16
  i18n (>= 0.7, < 2)
17
17
  minitest (~> 5.1)
18
18
  tzinfo (~> 1.1)
19
- addressable (2.6.0)
20
- public_suffix (>= 2.0.2, < 4.0)
21
- ast (2.4.0)
22
- benchmark-malloc (0.1.0)
23
- benchmark-perf (0.5.0)
24
- benchmark-trend (0.3.0)
25
- builder (3.2.3)
26
- bundler-audit (0.6.1)
19
+ addressable (2.7.0)
20
+ public_suffix (>= 2.0.2, < 5.0)
21
+ ast (2.4.2)
22
+ benchmark-malloc (0.2.0)
23
+ benchmark-perf (0.6.0)
24
+ benchmark-trend (0.4.0)
25
+ builder (3.2.4)
26
+ bundler-audit (0.7.0.1)
27
27
  bundler (>= 1.2.0, < 3)
28
- thor (~> 0.18)
29
- concurrent-ruby (1.1.5)
30
- crack (0.4.3)
31
- safe_yaml (~> 1.0.0)
32
- diff-lcs (1.3)
33
- docile (1.3.1)
34
- ffaker (2.11.0)
35
- hashdiff (0.3.9)
36
- i18n (1.6.0)
28
+ thor (>= 0.18, < 2)
29
+ concurrent-ruby (1.1.8)
30
+ crack (0.4.5)
31
+ rexml
32
+ diff-lcs (1.4.4)
33
+ docile (1.3.5)
34
+ ffaker (2.17.0)
35
+ hashdiff (1.0.1)
36
+ i18n (1.8.8)
37
37
  concurrent-ruby (~> 1.0)
38
- jaro_winkler (1.5.2)
39
- json (2.2.0)
40
- mini_portile2 (2.4.0)
41
- minitest (5.11.3)
42
- net-hippie (0.2.5)
43
- nokogiri (1.10.3)
44
- mini_portile2 (~> 2.4.0)
45
- parallel (1.17.0)
46
- parser (2.6.2.1)
47
- ast (~> 2.4.0)
48
- psych (3.1.0)
49
- public_suffix (3.0.3)
38
+ minitest (5.14.3)
39
+ net-hippie (0.3.2)
40
+ nokogiri (1.11.1-x86_64-linux)
41
+ racc (~> 1.4)
42
+ parallel (1.20.1)
43
+ parser (3.0.0.0)
44
+ ast (~> 2.4.1)
45
+ public_suffix (4.0.6)
46
+ racc (1.5.2)
50
47
  rainbow (3.0.0)
51
- rake (10.5.0)
52
- rspec (3.8.0)
53
- rspec-core (~> 3.8.0)
54
- rspec-expectations (~> 3.8.0)
55
- rspec-mocks (~> 3.8.0)
56
- rspec-benchmark (0.5.0)
57
- benchmark-malloc (~> 0.1.0)
58
- benchmark-perf (~> 0.5.0)
59
- benchmark-trend (~> 0.3.0)
60
- rspec (>= 3.0.0, < 4.0.0)
61
- rspec-core (3.8.0)
62
- rspec-support (~> 3.8.0)
63
- rspec-expectations (3.8.3)
48
+ rake (13.0.3)
49
+ regexp_parser (2.0.3)
50
+ rexml (3.2.4)
51
+ rspec (3.10.0)
52
+ rspec-core (~> 3.10.0)
53
+ rspec-expectations (~> 3.10.0)
54
+ rspec-mocks (~> 3.10.0)
55
+ rspec-benchmark (0.6.0)
56
+ benchmark-malloc (~> 0.2)
57
+ benchmark-perf (~> 0.6)
58
+ benchmark-trend (~> 0.4)
59
+ rspec (>= 3.0)
60
+ rspec-core (3.10.1)
61
+ rspec-support (~> 3.10.0)
62
+ rspec-expectations (3.10.1)
64
63
  diff-lcs (>= 1.2.0, < 2.0)
65
- rspec-support (~> 3.8.0)
66
- rspec-mocks (3.8.0)
64
+ rspec-support (~> 3.10.0)
65
+ rspec-mocks (3.10.2)
67
66
  diff-lcs (>= 1.2.0, < 2.0)
68
- rspec-support (~> 3.8.0)
69
- rspec-support (3.8.0)
70
- rubocop (0.67.2)
71
- jaro_winkler (~> 1.5.1)
67
+ rspec-support (~> 3.10.0)
68
+ rspec-support (3.10.2)
69
+ rubocop (0.93.1)
72
70
  parallel (~> 1.10)
73
- parser (>= 2.5, != 2.5.1.1)
74
- psych (>= 3.1.0)
71
+ parser (>= 2.7.1.5)
75
72
  rainbow (>= 2.2.2, < 4.0)
73
+ regexp_parser (>= 1.8)
74
+ rexml
75
+ rubocop-ast (>= 0.6.0)
76
76
  ruby-progressbar (~> 1.7)
77
- unicode-display_width (>= 1.4.0, < 1.6)
78
- rubocop-rspec (1.32.0)
79
- rubocop (>= 0.60.0)
80
- ruby-prof (0.17.0)
81
- ruby-progressbar (1.10.0)
82
- safe_yaml (1.0.5)
83
- simplecov (0.16.1)
77
+ unicode-display_width (>= 1.4.0, < 2.0)
78
+ rubocop-ast (1.4.1)
79
+ parser (>= 2.7.1.5)
80
+ rubocop-rspec (1.44.1)
81
+ rubocop (~> 0.87)
82
+ rubocop-ast (>= 0.7.1)
83
+ ruby-prof (1.4.2)
84
+ ruby-progressbar (1.11.0)
85
+ simplecov (0.21.2)
84
86
  docile (~> 1.1)
85
- json (>= 1.8, < 3)
86
- simplecov-html (~> 0.10.0)
87
- simplecov-html (0.10.2)
88
- thor (0.20.3)
87
+ simplecov-html (~> 0.11)
88
+ simplecov_json_formatter (~> 0.1)
89
+ simplecov-html (0.12.3)
90
+ simplecov_json_formatter (0.1.2)
91
+ thor (1.1.0)
89
92
  thread_safe (0.3.6)
90
- tilt (2.0.9)
91
- tzinfo (1.2.5)
93
+ tilt (2.0.10)
94
+ tzinfo (1.2.9)
92
95
  thread_safe (~> 0.1)
93
- unicode-display_width (1.5.0)
94
- webmock (3.5.1)
96
+ unicode-display_width (1.7.0)
97
+ webmock (3.11.2)
95
98
  addressable (>= 2.3.6)
96
99
  crack (>= 0.3.2)
97
- hashdiff
98
- xml-kit (0.3.1)
100
+ hashdiff (>= 0.4.0, < 2.0.0)
101
+ xml-kit (0.5.0)
99
102
  activemodel (>= 4.2.0)
100
103
  builder (~> 3.2)
101
- nokogiri (>= 1.8.5)
104
+ nokogiri (~> 1.10)
102
105
  tilt (>= 1.4.1)
103
106
  xmldsig (~> 0.6)
104
107
  xmldsig (0.6.6)
@@ -111,7 +114,7 @@ DEPENDENCIES
111
114
  bundler (~> 2.0)
112
115
  bundler-audit (~> 0.6)
113
116
  ffaker (~> 2.7)
114
- rake (~> 10.0)
117
+ rake (~> 13.0)
115
118
  rspec (~> 3.0)
116
119
  rspec-benchmark (~> 0.3)
117
120
  rubocop (~> 0.52)
@@ -122,4 +125,4 @@ DEPENDENCIES
122
125
  webmock (~> 3.1)
123
126
 
124
127
  BUNDLED WITH
125
- 2.0.1
128
+ 2.1.4
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 mo
3
+ Copyright (c) 2017 mo khan
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,17 +1,13 @@
1
- ![SAML-Kit](https://github.com/saml-kit/saml-kit/raw/master/spec/examples/saml-kit.gif)
1
+ ![SAML-Kit](https://github.com/xlgmokha/saml-kit/raw/main/spec/examples/saml-kit.gif)
2
2
 
3
3
  *Logo courtesy of [@speasley](https://github.com/speasley)*
4
4
 
5
- [![Build Status](https://travis-ci.org/saml-kit/saml-kit.svg?branch=master)](https://travis-ci.org/saml-kit/saml-kit)
6
- [![Code Climate](https://codeclimate.com/github/saml-kit/saml-kit.svg)](https://codeclimate.com/github/saml-kit/saml-kit)
7
5
  [![Gem Version](https://badge.fury.io/rb/saml-kit.svg)](https://rubygems.org/gems/saml-kit)
8
- [![Security](https://hakiri.io/github/saml-kit/saml-kit/master.svg)](https://hakiri.io/github/saml-kit/saml-kit/master)
9
- [![Test Coverage](https://api.codeclimate.com/v1/badges/32583dc119cf05ff4080/test_coverage)](https://codeclimate.com/github/saml-kit/saml-kit/test_coverage)
10
6
 
11
7
  Saml::Kit is a library with the purpose of creating and consuming SAML
12
8
  documents. It supports the HTTP Post and HTTP Redirect bindings. It can
13
9
  create Service Provider Metadata, Identity Provider Metadata,
14
- AuthnRequest, Response, LogoutRequest, LogoutResponse documents.
10
+ AuthnRequest, Response, LogoutRequest, LogoutResponse documents.
15
11
  It also supports generating signed and encrypted assertions.
16
12
 
17
13
  ## Installation
@@ -249,13 +245,13 @@ puts [url, saml_params].inspect
249
245
 
250
246
  ## Development
251
247
 
252
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
248
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
253
249
 
254
250
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
255
251
 
256
252
  ## Contributing
257
253
 
258
- Bug reports and pull requests are welcome on Github at https://github.com/saml-kit/saml-kit.
254
+ Bug reports and pull requests are welcome on Github at https://github.com/xlgmokha/saml-kit.
259
255
 
260
256
  ## License
261
257
 
data/Rakefile CHANGED
@@ -9,5 +9,4 @@ RSpec::Core::RakeTask.new(:spec)
9
9
  RuboCop::RakeTask.new(:rubocop)
10
10
  Bundler::Audit::Task.new
11
11
 
12
- task lint: [:rubocop, 'bundle:audit']
13
12
  task default: :spec
@@ -114,13 +114,13 @@ module Saml
114
114
  def must_match_issuer
115
115
  return if audiences.empty? || audiences.include?(configuration.entity_id)
116
116
 
117
- errors[:audience] << error_message(:must_match_issuer)
117
+ errors.add(:audience, error_message(:must_match_issuer))
118
118
  end
119
119
 
120
120
  def must_be_active_session
121
121
  return if active?
122
122
 
123
- errors[:base] << error_message(:expired)
123
+ errors.add(:base, error_message(:expired))
124
124
  end
125
125
 
126
126
  def must_have_valid_signature
@@ -45,7 +45,7 @@ module Saml
45
45
  return if request_id.nil?
46
46
  return if in_response_to == request_id
47
47
 
48
- errors[:in_response_to] << error_message(:invalid_response_to)
48
+ errors.add(:in_response_to, error_message(:invalid_response_to))
49
49
  end
50
50
  end
51
51
  end
@@ -54,7 +54,7 @@ module Saml
54
54
 
55
55
  signature.valid?
56
56
  signature.errors.each do |attribute, error|
57
- errors[attribute] << error
57
+ errors.add(attribute, error)
58
58
  end
59
59
  end
60
60
 
@@ -62,14 +62,14 @@ module Saml
62
62
  return unless expected_type?
63
63
  return if provider.present?
64
64
 
65
- errors[:provider] << error_message(:unregistered)
65
+ errors.add(:provider, error_message(:unregistered))
66
66
  end
67
67
 
68
68
  def must_be_trusted
69
69
  return if trusted?
70
70
  return if provider.present? && !signed?
71
71
 
72
- errors[:fingerprint] << error_message(:invalid_fingerprint)
72
+ errors.add(:fingerprint, error_message(:invalid_fingerprint))
73
73
  end
74
74
  end
75
75
  end
@@ -20,7 +20,7 @@ module Saml
20
20
  Dir.chdir(File.dirname(xsd)) do
21
21
  xsd = Nokogiri::XML::Schema(IO.read(xsd))
22
22
  xsd.validate(to_nokogiri.document).each do |error|
23
- errors[:base] << error.message
23
+ errors.add(:base, error.message)
24
24
  end
25
25
  end
26
26
  end
@@ -101,7 +101,7 @@ module Saml
101
101
  end
102
102
 
103
103
  def must_be_expected_type
104
- errors[:base] << error_message(:invalid) unless expected_type?
104
+ errors.add(:base, error_message(:invalid)) unless expected_type?
105
105
  end
106
106
 
107
107
  def expected_type?
@@ -112,7 +112,7 @@ module Saml
112
112
  return unless expected_type?
113
113
  return if version == '2.0'
114
114
 
115
- errors[:version] << error_message(:invalid_version)
115
+ errors.add(:version, error_message(:invalid_version))
116
116
  end
117
117
  end
118
118
  end
@@ -7,7 +7,7 @@ module Saml
7
7
  # {include:file:spec/saml/kit/invalid_document_spec.rb}
8
8
  class InvalidDocument < Document
9
9
  validate do |model|
10
- model.errors[:base] << model.error_message(:invalid)
10
+ model.errors.add(:base, model.error_message(:invalid))
11
11
  end
12
12
 
13
13
  def initialize(xml, *)
@@ -182,7 +182,7 @@ module Saml
182
182
  end
183
183
 
184
184
  def must_contain_descriptor
185
- errors[:base] << error_message(:invalid) unless metadata
185
+ errors.add(:base, error_message(:invalid)) unless metadata
186
186
  end
187
187
 
188
188
  def must_match_xsd
@@ -193,7 +193,7 @@ module Saml
193
193
  return if !signature.present? || signature.valid?
194
194
 
195
195
  signature.errors.each do |attribute, error|
196
- errors[attribute] << error
196
+ errors.add(attribute, error)
197
197
  end
198
198
  end
199
199
  end
@@ -53,7 +53,7 @@ module Saml
53
53
  end
54
54
 
55
55
  def invalid
56
- errors[:assertion].push(error_message(:invalid))
56
+ errors.add(:assertion, error_message(:invalid))
57
57
  end
58
58
 
59
59
  def name
@@ -45,14 +45,14 @@ module Saml
45
45
  assertion.valid?
46
46
  assertion.errors.each do |attribute, error|
47
47
  attribute = :assertion if attribute == :base
48
- errors[attribute] << error
48
+ errors.add(attribute, error)
49
49
  end
50
50
  end
51
51
 
52
52
  def must_contain_single_assertion
53
53
  return if assertion_nodes.count <= 1
54
54
 
55
- errors[:base] << error_message(:must_contain_single_assertion)
55
+ errors.add(:base, error_message(:must_contain_single_assertion))
56
56
  end
57
57
 
58
58
  def assertion_nodes
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Saml
4
4
  module Kit
5
- VERSION = '1.1.0'
5
+ VERSION = '1.2.0'
6
6
  end
7
7
  end
data/saml-kit.gemspec CHANGED
@@ -12,9 +12,9 @@ Gem::Specification.new do |spec|
12
12
 
13
13
  spec.summary = 'A simple toolkit for working with SAML.'
14
14
  spec.description = 'A simple toolkit for working with SAML.'
15
- spec.homepage = 'https://github.com/saml-kit/saml-kit'
15
+ spec.homepage = 'https://github.com/xlgmokha/saml-kit'
16
16
  spec.license = 'MIT'
17
- spec.required_ruby_version = '~> 2.4'
17
+ spec.required_ruby_version = '~> 2.5'
18
18
 
19
19
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
20
  (
@@ -28,13 +28,13 @@ Gem::Specification.new do |spec|
28
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ['lib']
30
30
 
31
- spec.add_dependency 'activemodel', '>= 4.2.0'
31
+ spec.add_dependency 'activemodel', '~> 5.1'
32
32
  spec.add_dependency 'net-hippie', '~> 0.1'
33
- spec.add_dependency 'xml-kit', '>= 0.3.0', '< 1.0.0'
33
+ spec.add_dependency 'xml-kit', '~> 0.4'
34
34
  spec.add_development_dependency 'bundler', '~> 2.0'
35
35
  spec.add_development_dependency 'bundler-audit', '~> 0.6'
36
36
  spec.add_development_dependency 'ffaker', '~> 2.7'
37
- spec.add_development_dependency 'rake', '~> 10.0'
37
+ spec.add_development_dependency 'rake', '~> 13.0'
38
38
  spec.add_development_dependency 'rspec', '~> 3.0'
39
39
  spec.add_development_dependency 'rspec-benchmark', '~> 0.3'
40
40
  spec.add_development_dependency 'rubocop', '~> 0.52'
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mo khan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-30 00:00:00.000000000 Z
11
+ date: 2021-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0
19
+ version: '5.1'
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: 4.2.0
26
+ version: '5.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: net-hippie
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,22 +42,16 @@ dependencies:
42
42
  name: xml-kit
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 0.3.0
48
- - - "<"
45
+ - - "~>"
49
46
  - !ruby/object:Gem::Version
50
- version: 1.0.0
47
+ version: '0.4'
51
48
  type: :runtime
52
49
  prerelease: false
53
50
  version_requirements: !ruby/object:Gem::Requirement
54
51
  requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: 0.3.0
58
- - - "<"
52
+ - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: 1.0.0
54
+ version: '0.4'
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: bundler
63
57
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +100,14 @@ dependencies:
106
100
  requirements:
107
101
  - - "~>"
108
102
  - !ruby/object:Gem::Version
109
- version: '10.0'
103
+ version: '13.0'
110
104
  type: :development
111
105
  prerelease: false
112
106
  version_requirements: !ruby/object:Gem::Requirement
113
107
  requirements:
114
108
  - - "~>"
115
109
  - !ruby/object:Gem::Version
116
- version: '10.0'
110
+ version: '13.0'
117
111
  - !ruby/object:Gem::Dependency
118
112
  name: rspec
119
113
  requirement: !ruby/object:Gem::Requirement
@@ -323,7 +317,7 @@ files:
323
317
  - spec/examples/response_spec.rb
324
318
  - spec/examples/saml-kit.gif
325
319
  - spec/examples/service_provider_metadata_spec.rb
326
- homepage: https://github.com/saml-kit/saml-kit
320
+ homepage: https://github.com/xlgmokha/saml-kit
327
321
  licenses:
328
322
  - MIT
329
323
  metadata:
@@ -336,14 +330,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
336
330
  requirements:
337
331
  - - "~>"
338
332
  - !ruby/object:Gem::Version
339
- version: '2.4'
333
+ version: '2.5'
340
334
  required_rubygems_version: !ruby/object:Gem::Requirement
341
335
  requirements:
342
336
  - - ">="
343
337
  - !ruby/object:Gem::Version
344
338
  version: '0'
345
339
  requirements: []
346
- rubygems_version: 3.0.3
340
+ rubygems_version: 3.1.4
347
341
  signing_key:
348
342
  specification_version: 4
349
343
  summary: A simple toolkit for working with SAML.