cas-client 0.1.2.pre.p12 → 0.1.2.pre.p13

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: e9b897b4e7c9fcd8c3429cfbc47964741ce4cc3cd98909be99e85a114bd9e094
4
- data.tar.gz: 5b8c3a7bc28fc95a4936f377d02dbb7bc2299bf93f30cb78729e6d92bfe2bf91
3
+ metadata.gz: 6378ddccd54a3c63e1a55c8f69b250f9c893eb9143d21c084a14e3bf7b8df5c8
4
+ data.tar.gz: 8a4a76c1d67754c1fafdf388ef685a8ac06939ba0e5f7ecae8265a3cd40abc6a
5
5
  SHA512:
6
- metadata.gz: e4d6d0f5b606d8bf5786856896bb33478b70891f589937c36238c2de6072982e91be7de554d0e740f992128796204e8f8d45590184e571871b76f99c41738b8c
7
- data.tar.gz: 3057a46a5afbb44e2c5da0bdbbb2d17bcd8e686e5393b7e955b496029af4836e1beb6f2933522bbdf81763d2afed2a9b66aa18a2e95bb8f65ce7642785a2b9a7
6
+ metadata.gz: 0ac600bace46ffd34f8da3056b9034302dec602335522a796f4c55b528599568aa5bd3bd708c15cf60836024cb720e1217d12101b1caabd12f4481132b19a8ad
7
+ data.tar.gz: e2d77f8f3dd7ed5b7d2a9165aa4eb19d0b1fd2ae92aa08afee0eb885d1d29737b24a351da403dc91bd6c3e9e26975a8cffde30c9c6d516ab3daf4fd2b2336c87
@@ -10,11 +10,14 @@ module Cas
10
10
  status, headers, rack_body = @app.call(env)
11
11
  puts "Middleware called. Status: #{status}, Headers: #{headers}"
12
12
 
13
- response = rack_body.body
14
- response += "CAS Client Called!!!"
15
- headers["Content-Length"] = response.length.to_s
16
-
17
- [status, headers, [response]]
13
+ if rack_body.class == RackBody && rack_body.body.class == String
14
+ response = rack_body.body
15
+ response += "CAS Client Called!!!"
16
+ headers["Content-Length"] = response.length.to_s
17
+ return [status, headers, [response]]
18
+ else
19
+ return [status, headers, rack_body]
20
+ end
18
21
  end
19
22
  end
20
23
  end
@@ -1,5 +1,5 @@
1
1
  module Cas
2
2
  module Client
3
- VERSION = "0.1.2-p12"
3
+ VERSION = "0.1.2-p13"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cas-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.pre.p12
4
+ version: 0.1.2.pre.p13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donavan White