libsaml 3.0.2 → 3.0.3

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
  SHA1:
3
- metadata.gz: 5e0de04dbfb8a24da9d92034283dff26921b5f6d
4
- data.tar.gz: 6f41616ee053e605977c9d6df6f85e8d41ff8a12
3
+ metadata.gz: aea6ae9ee997d9685b2413fd82c25c48a4b4f132
4
+ data.tar.gz: ba2c2031729733af18064cb5a1ae1973fec47812
5
5
  SHA512:
6
- metadata.gz: 3e0fd455ae3e6229b984260f7cc793113efcb22ba33bf320559d7a786a55facb425afa75886f0bb4e9a450d9c8c2e15e29d9e1198c01074dcb7fcb4cc20d36f2
7
- data.tar.gz: f19b1efdef1d68a3bf74165f1b14751086e33c42f1ad9a1fb279548165dfd83f9ff032055357f5fd165566457366e6ebe12df9ccd3b2a974144de0c82c025e4b
6
+ metadata.gz: 955475bf345648006acece19b62eb68dd0f850835a121a86ef99b80d865afc37eb0db100477cd7932778fd1dd6293083ed582f0afff737a9eccd7af2a2502406
7
+ data.tar.gz: 20be70406a2eb77d699f9ee9366cac438e2eae6f68254797173d3decc367981c4daa9b4f7decc5271e5f552f5b92a8a9b9764f78bd04fc30a2755806afbe462f
@@ -28,7 +28,7 @@ module Saml
28
28
  validates :_id, :version, :issue_instant, :issuer, :presence => true
29
29
 
30
30
  validates :version, inclusion: %w(2.0)
31
- validate :check_issue_instant, :if => 'issue_instant.present?'
31
+ validate :check_issue_instant, :if => lambda { |val| val.issue_instant.present? }
32
32
 
33
33
  def initialize(*args)
34
34
  options = args.extract_options!
@@ -16,7 +16,9 @@ module Saml
16
16
  has_one :requested_authn_context, Saml::Elements::RequestedAuthnContext
17
17
 
18
18
  validates :force_authn, :inclusion => [true, false, nil]
19
- validates :assertion_consumer_service_index, :numericality => true, :if => "assertion_consumer_service_index.present?"
19
+ validates :assertion_consumer_service_index, :numericality => true, :if => lambda { |val|
20
+ val.assertion_consumer_service_index.present?
21
+ }
20
22
 
21
23
  validate :check_assertion_consumer_service
22
24
 
@@ -28,8 +28,10 @@ module Saml
28
28
  validates :_id, :version, :issue_instant, presence: true
29
29
 
30
30
  validates :version, inclusion: %w(2.0)
31
- validate :check_destination, if: 'destination.present? && actual_destination.present?'
32
- validate :check_issue_instant, if: 'issue_instant.present?'
31
+ validate :check_destination, if: lambda { |val|
32
+ val.destination.present? && val.actual_destination.present?
33
+ }
34
+ validate :check_issue_instant, if: lambda { |val| val.issue_instant.present? }
33
35
  end
34
36
 
35
37
  def initialize(*args)
data/lib/saml/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Saml
2
- VERSION = '3.0.2'
2
+ VERSION = '3.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libsaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoist Claassen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-30 00:00:00.000000000 Z
11
+ date: 2017-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport