coalescing_panda 5.0.0.beta.2 → 5.0.0

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
  SHA256:
3
- metadata.gz: b23ff734783865921d2c6b6b1513a444f409a9b3b8e223cdb22181bd6a10b436
4
- data.tar.gz: cb79054a936298ec5af8ce5fa2c75c852cfca4806349241bec1acb3e1a5d102e
3
+ metadata.gz: d645cd8c2b844e464a37181c7810119004db0d11f74fb1293e97d7230412e8b3
4
+ data.tar.gz: e2741818208ab1301551d47c9063d20ee9bbb0a58e6db63b164cc068b0c2c76a
5
5
  SHA512:
6
- metadata.gz: d2f03495f78ec52dc05044806a0753f47eece4ae109c60d69d9d41fa8a90c287413657615765b50209a28a22ab0d64489aec3977a47411d4f5255a2e7101f85a
7
- data.tar.gz: 255676120a18eb0ce8b7302246e66972b1cb4718e6d0359050649f507e400ca77f88f576ad85edbd16133b2790f1a611c9ac84c2989df73626e80a81d01f2ab6
6
+ metadata.gz: 6430b3b457aa5776cd8590228794fcb77537824dbec08356ae9a512bf268e357e9a0f7e0db900ffa33d1f261964b393443719aa4a407b61970b26b19e7f65ce7
7
+ data.tar.gz: 3a4853c0b20ffc72041e5157f5a0813a8c5e30c27648b23193fc9d94652adaeda01ded2ef829e6e70617d6a02a7e89841cd5615474d0c866242fc435ba0d3eca
@@ -218,26 +218,26 @@ module CoalescingPanda
218
218
  # nicely with webpack-dev-server live reloading (otherwise
219
219
  # you get an access error every time it tries to live reload).
220
220
 
221
- def redirect_with_session_to(path, id_or_resource = nil, params = {})
222
- if Rails.env.development?
223
- redirect_development_mode(path, id_or_resource, params)
221
+ def redirect_with_session_to(path, id_or_resource = nil, redirect_params = {})
222
+ if Rails.env.development? || Rails.env.test?
223
+ redirect_development_mode(path, id_or_resource, redirect_params)
224
224
  else
225
- redirect_production_mode(path, id_or_resource, params)
225
+ redirect_production_mode(path, id_or_resource, redirect_params)
226
226
  end
227
227
  end
228
228
 
229
- def redirect_development_mode(path, id_or_resource = nil, params)
229
+ def redirect_development_mode(path, id_or_resource = nil, redirect_params)
230
230
  redirect_to send(path, id_or_resource, {
231
231
  session_key: current_session.session_key,
232
232
  organization_id: current_lti_account.id
233
- }.merge(params))
233
+ }.merge(redirect_params))
234
234
  end
235
235
 
236
- def redirect_production_mode(path, id_or_resource = nil, params)
236
+ def redirect_production_mode(path, id_or_resource = nil, redirect_params)
237
237
  redirect_to send(path, id_or_resource, {
238
238
  encrypted_session_key: encrypted_session_key,
239
239
  organization_id: current_lti_account.id
240
- }.merge(params))
240
+ }.merge(redirect_params))
241
241
  end
242
242
 
243
243
  end
@@ -1,3 +1,3 @@
1
1
  module CoalescingPanda
2
- VERSION = '5.0.0.beta.2'
2
+ VERSION = '5.0.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coalescing_panda
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.beta.2
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Mills
@@ -563,9 +563,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
563
563
  version: '0'
564
564
  required_rubygems_version: !ruby/object:Gem::Requirement
565
565
  requirements:
566
- - - ">"
566
+ - - ">="
567
567
  - !ruby/object:Gem::Version
568
- version: 1.3.1
568
+ version: '0'
569
569
  requirements: []
570
570
  rubygems_version: 3.1.2
571
571
  signing_key: