saml_idp 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,9 +4,14 @@ module SamlIdp
4
4
  class Request
5
5
  def self.from_deflated_request(raw)
6
6
  zstream = Zlib::Inflate.new(-Zlib::MAX_WBITS)
7
- inflated = zstream.inflate(Base64.decode64(raw)).tap do
8
- zstream.finish
9
- zstream.close
7
+ decoded = Base64.decode64(raw)
8
+ begin
9
+ inflated = zstream.inflate(decoded).tap do
10
+ zstream.finish
11
+ zstream.close
12
+ end
13
+ rescue Zlib::DataError # not compressed
14
+ inflated = decoded
10
15
  end
11
16
  new(inflated)
12
17
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module SamlIdp
3
- VERSION = '0.0.6'
3
+ VERSION = '0.0.7'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml_idp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-26 00:00:00.000000000 Z
12
+ date: 2013-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -344,7 +344,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
344
344
  version: '0'
345
345
  segments:
346
346
  - 0
347
- hash: -3552964034721380666
347
+ hash: -856421575393033123
348
348
  required_rubygems_version: !ruby/object:Gem::Requirement
349
349
  none: false
350
350
  requirements:
@@ -353,7 +353,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
353
353
  version: '0'
354
354
  segments:
355
355
  - 0
356
- hash: -3552964034721380666
356
+ hash: -856421575393033123
357
357
  requirements: []
358
358
  rubyforge_project:
359
359
  rubygems_version: 1.8.25