saml_camel 1.0.7 → 1.0.8

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: a85dd9e46209cb477da0b7519ef800d88796e6084a7c5679af77507f7209faba
4
- data.tar.gz: 539f735329de875c9679f39862f20a6a608e4362ad0b06fcae941d7f17fbbd9e
3
+ metadata.gz: dce9ff2ac050eb2f88b674775755aff3e640006345d22bb3437ee03c9a16c6ea
4
+ data.tar.gz: f9f154c2c133bdbeb62516fe920c884123bc0e7daab4ad4e15a5571948ec620d
5
5
  SHA512:
6
- metadata.gz: 52102243981e4784384594b1799c6f9de96b9f7840ab8315fea0d7b004cdfd2c87629673af860f3240b53aa4b55cf4cb9b9d96d620a8c92939cfba90a826e71b
7
- data.tar.gz: 208ad0581678d2a9f600786cd9acb25d3b0218fde684b03b1d7f5d98398caa419b6ad94f25c7d596ff0ca463c0a8c8cd5987ae3ccd10364c24da9813ebd333a7
6
+ metadata.gz: 8b2312e381ff245be8962a0fb5c6bf82474f080fc2420b89ce16d36ad1db3501f2bab43fde7067ffde332465c0e1f6c46081e81478c2c8e7f5a84b0c8218a9c2
7
+ data.tar.gz: e34258dc50d054442550720248c88a4c1cc1915c53706e343b8ee02ee80bd51c997247ef1f9e3952b1f85825f26a6fc3c3ac7043f36b2285de83731c725a464c
@@ -41,12 +41,14 @@ module SamlCamel
41
41
  # however when I pulled the ruby-saml gem and searched the repo it looks like there is no clock drift by default
42
42
  def self.set_clock_drift
43
43
  clock_drift = SP_SETTINGS.dig('settings','clock_drift')
44
- # clock drift must either be an integer of falsey
45
- unless (clock_drift.class == Integer || clock_drift.class == Fixnum) || !clock_drift
44
+ # clock drift must either be an integer of falsey, classes have come through
45
+ # differently (fixnum, bignum, integer), using a regex instead to see if that
46
+ # addresses some issues https://stackoverflow.com/questions/16774064/regular-expression-for-whole-numbers-and-integers
47
+ unless clock_drift.match(/(?<![-.])\b[0-9]+\b(?!\.[0-9])/) || !clock_drift
46
48
  SamlCamel::Logging.clock_drift(clock_drift)
47
49
  raise "Clock Drift Incorrectly Configured."
48
50
  end
49
- clock_drift
51
+ clock_drift.to_i
50
52
  end
51
53
 
52
54
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SamlCamel
4
- VERSION = '1.0.7'
4
+ VERSION = '1.0.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml_camel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Danai Adkisson '
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-12 00:00:00.000000000 Z
11
+ date: 2019-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -139,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubyforge_project:
143
- rubygems_version: 2.7.7
142
+ rubygems_version: 3.0.3
144
143
  signing_key:
145
144
  specification_version: 4
146
145
  summary: SAML tool wrapping onelogin/rubysaml