macmillan-utils 1.0.36 → 1.0.37

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: ada5b04c123cce12dd5738f9e8c7339f79e7f1c7
4
- data.tar.gz: 667f44687ebeabbf21cd0c804224cc5c2638d3eb
3
+ metadata.gz: 182d2d0bb630acae2ae30f20790d50cae2faca04
4
+ data.tar.gz: 160bd16626cf37def232a5854825fb83e226ab97
5
5
  SHA512:
6
- metadata.gz: 53d2a756311cf92365cb8aa7fd82095e75a0776acb53b4446ffbdf43a7fbf94ea775e4e37a6787ede43edd8d711d9f2103c5e41c85a3667832ad7ba4887dd71d
7
- data.tar.gz: d94fd2774200ed45426e3b3d3ca5c9638fa257a97c17abbbb55b3a70938676421eedf9f10b55aa5e23f88194bf7859a7d27172dee254dd1022b0e2e5cc385c72
6
+ metadata.gz: e8d300ec617b865faa81b673dd5919b06c2519ef17736a0b9d2dedaeca8071e35037525bf608e87ec49a30f042cb8a4f6dd4ba2d24599d04490a93920683ccbf
7
+ data.tar.gz: decfab1462fad72ac385f0e35083030f5414d471244a2908702cf132b8fc47cf03128f399609cf4d5486432d4f13ac84a426db4f0b67f1b4871bd6ef8bcd7134
@@ -32,23 +32,23 @@ module Macmillan
32
32
  debug_log("request.params['cookies'] IS #{request.params['cookies']}")
33
33
 
34
34
  unless request.post?
35
- debug_log("request.post? means pass-thru")
35
+ debug_log("request.post? (#{request.post?.inspect}) means pass-thru")
36
36
  return false
37
37
  end
38
38
  unless request.cookies[COOKIE] != 'accepted'
39
- debug_log("request.cookies[#{COOKIE}] means passthru")
39
+ debug_log("request.cookies[#{COOKIE}] (#{request.cookies[COOKIE]}) means passthru")
40
40
  return false
41
41
  end
42
42
  unless request.params['cookies'] == 'accepted'
43
- debug_log("request.params['cookies'] means passthru")
43
+ debug_log("request.params['cookies'] (#{request.params['cookies']}) means passthru")
44
44
  return false
45
45
  end
46
- debug_log("About to set the acceptance cookie and redirect")
46
+ debug_log('About to set the acceptance cookie and redirect')
47
47
  true
48
48
  end
49
49
 
50
50
  def debug_log(msg)
51
- logger.debug("[Macmillan::Utils::Middleware::CookieMessage] #{msg}")
51
+ logger.info("[Macmillan::Utils::Middleware::CookieMessage] #{msg}")
52
52
  end
53
53
 
54
54
  def logger
@@ -59,6 +59,8 @@ module Macmillan
59
59
  response = Rack::Response.new
60
60
  location = build_location(request)
61
61
 
62
+ debug_log("Redirecting to #{location}")
63
+
62
64
  response.redirect(location)
63
65
  response.set_cookie(COOKIE, cookie_options(request))
64
66
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macmillan-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.36
4
+ version: 1.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Springer Nature