warden 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -0
  3. data/History.rdoc +3 -0
  4. data/Rakefile +1 -0
  5. data/lib/warden.rb +1 -0
  6. data/lib/warden/config.rb +1 -0
  7. data/lib/warden/errors.rb +1 -0
  8. data/lib/warden/hooks.rb +1 -0
  9. data/lib/warden/manager.rb +1 -0
  10. data/lib/warden/mixins/common.rb +1 -0
  11. data/lib/warden/proxy.rb +1 -0
  12. data/lib/warden/session_serializer.rb +1 -0
  13. data/lib/warden/strategies.rb +1 -0
  14. data/lib/warden/strategies/base.rb +2 -1
  15. data/lib/warden/test/helpers.rb +1 -0
  16. data/lib/warden/test/mock.rb +1 -0
  17. data/lib/warden/test/warden_helpers.rb +1 -0
  18. data/lib/warden/version.rb +2 -1
  19. data/spec/helpers/request_helper.rb +1 -0
  20. data/spec/helpers/strategies/fail_with_user.rb +1 -0
  21. data/spec/helpers/strategies/failz.rb +1 -0
  22. data/spec/helpers/strategies/invalid.rb +1 -0
  23. data/spec/helpers/strategies/pass.rb +1 -0
  24. data/spec/helpers/strategies/pass_with_message.rb +1 -0
  25. data/spec/helpers/strategies/password.rb +1 -0
  26. data/spec/helpers/strategies/single.rb +1 -0
  27. data/spec/spec_helper.rb +1 -0
  28. data/spec/warden/authenticated_data_store_spec.rb +1 -0
  29. data/spec/warden/config_spec.rb +1 -0
  30. data/spec/warden/errors_spec.rb +1 -0
  31. data/spec/warden/hooks_spec.rb +1 -0
  32. data/spec/warden/manager_spec.rb +1 -0
  33. data/spec/warden/proxy_spec.rb +1 -0
  34. data/spec/warden/scoped_session_serializer.rb +1 -0
  35. data/spec/warden/session_serializer_spec.rb +1 -0
  36. data/spec/warden/strategies/base_spec.rb +1 -0
  37. data/spec/warden/strategies_spec.rb +1 -0
  38. data/spec/warden/test/helpers_spec.rb +1 -0
  39. data/spec/warden/test/mock_spec.rb +1 -0
  40. data/spec/warden/test/test_mode_spec.rb +1 -0
  41. data/warden.gemspec +1 -0
  42. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d3845a89eca007240194b1aef074f91c8d729c8
4
- data.tar.gz: 380d5b071552bc8e36628dd790f08da17ea77ff5
3
+ metadata.gz: 62095c3b46348d469f28bc0b73c4e4d1dea3c772
4
+ data.tar.gz: c95c0c03bd6f5cc31ebc20674d8f679331cfa6b4
5
5
  SHA512:
6
- metadata.gz: f293bc8c35385e59c260c3b32d3c15cff84849a76632ed81947a80a82c3ec25d459136c672df735dd2289b6dc38e73ea2f19346bff4aa564128ff9f1f9a8af96
7
- data.tar.gz: f6a8f255f1e8e1d70ea810bd1c8410a16e330904dde200c8f5f507403e5300e4824c0e340102767a1032c673c991bd56e5459934dc32755ab1c19991d18ba76d
6
+ metadata.gz: 2c6897e0cc915b2d3fe2dabf98f5c694a3cbc531974c61c578a579d388c21cca9755a39a6b322a25c41eb1526988c63a531afbe954f4a6075aa3d410cd9e5ef9
7
+ data.tar.gz: f0a701673890402bf2717fb4ff356046a24ad85dbcf570e52b109fa9a741e18534a49690b0ff4e0ace9fba7c65ac24e17dd5324849af925ac0e27cf497b64246
data/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  source 'https://rubygems.org'
2
3
 
3
4
  gemspec
@@ -1,3 +1,6 @@
1
+ == Version 1.2.7 / 2016-10-12
2
+ * Added 'frozen_string_literal' comment, bump ruby to 2.3
3
+
1
4
  == Version 1.2.6 / 2016-01-31
2
5
  * Separate test helpers to encapsulate Warden object mocking inside it's own class
3
6
 
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ # frozen_string_literal: true
2
3
  require 'rubygems'
3
4
  require 'rake'
4
5
  $:.unshift File.join(File.dirname(__FILE__), "lib")
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # encoding: utf-8
2
3
  require 'forwardable'
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # encoding: utf-8
2
3
 
3
4
  module Warden
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # encoding: utf-8
2
3
  module Warden
3
4
  class Proxy
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # encoding: utf-8
2
3
  module Warden
3
4
  module Hooks
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # encoding: utf-8
2
3
  require 'warden/hooks'
3
4
  require 'warden/config'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # encoding: utf-8
2
3
  module Warden
3
4
  module Mixins
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # encoding: utf-8
2
3
 
3
4
  module Warden
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # encoding: utf-8
2
3
  module Warden
3
4
  class SessionSerializer
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  module Warden
3
4
  module Strategies
4
5
  class << self
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # encoding: utf-8
2
3
  module Warden
3
4
  module Strategies
@@ -157,7 +158,7 @@ module Warden
157
158
  def redirect!(url, params = {}, opts = {})
158
159
  halt!
159
160
  @status = opts[:permanent] ? 301 : 302
160
- headers["Location"] = url
161
+ headers["Location"] = url.dup
161
162
  headers["Location"] << "?" << Rack::Utils.build_query(params) unless params.empty?
162
163
  headers["Content-Type"] = opts[:content_type] || 'text/plain'
163
164
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # encoding: utf-8
2
3
 
3
4
  module Warden
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # encoding: utf-8
2
3
 
3
4
  require 'rack'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # encoding: utf-8
2
3
 
3
4
  module Warden
@@ -1,4 +1,5 @@
1
+ # frozen_string_literal: true
1
2
  # encoding: utf-8
2
3
  module Warden
3
- VERSION = "1.2.6".freeze
4
+ VERSION = "1.2.7"
4
5
  end
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  module Warden::Spec
3
4
  module Helpers
4
5
  FAILURE_APP = lambda{|e|[401, {"Content-Type" => "text/plain"}, ["You Fail!"]] }
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  Warden::Strategies.add(:fail_with_user) do
3
4
  def authenticate!
4
5
  request.env['warden.spec.strategies'] ||= []
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  Warden::Strategies.add(:failz) do
3
4
  def authenticate!
4
5
  request.env['warden.spec.strategies'] ||= []
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  Warden::Strategies.add(:invalid) do
3
4
  def valid?
4
5
  false
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  Warden::Strategies.add(:pass) do
3
4
  def authenticate!
4
5
  request.env['warden.spec.strategies'] ||= []
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  Warden::Strategies.add(:pass_with_message) do
3
4
  def authenticate!
4
5
  request.env['warden.spec.strategies'] ||= []
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  Warden::Strategies.add(:password) do
3
4
  def authenticate!
4
5
  request.env['warden.spec.strategies'] ||= []
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  Warden::Strategies.add(:single) do
3
4
  def authenticate!
4
5
  request.env['warden.spec.strategies'] ||= []
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  $TESTING=true
3
4
 
4
5
  $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  require 'spec_helper'
3
4
 
4
5
  describe "authenticated data store" do
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  require 'spec_helper'
3
4
 
4
5
  describe Warden::Config do
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  require 'spec_helper'
3
4
 
4
5
  describe Warden::Proxy::Errors do
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  require 'spec_helper'
3
4
 
4
5
  describe "standard authentication hooks" do
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  require 'spec_helper'
3
4
 
4
5
  describe Warden::Manager do
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  require 'spec_helper'
3
4
 
4
5
  describe Warden::Proxy do
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  require 'spec_helper'
3
4
 
4
5
  describe Warden::Manager do
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  require 'spec_helper'
3
4
 
4
5
  describe Warden::SessionSerializer do
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  require 'spec_helper'
3
4
 
4
5
  describe Warden::Strategies::Base do
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  require 'spec_helper'
3
4
 
4
5
  describe Warden::Strategies do
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  require 'spec_helper'
3
4
 
4
5
  describe Warden::Test::Helpers do
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  require 'spec_helper'
3
4
 
4
5
  describe Warden::Test::Mock do
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
  require 'spec_helper'
3
4
 
4
5
  describe Warden::Test::WardenHelpers do
@@ -1,4 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ # frozen_string_literal: true
2
3
 
3
4
  require './lib/warden/version'
4
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warden
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Neighman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-31 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -95,9 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project: warden
98
- rubygems_version: 2.4.5.1
98
+ rubygems_version: 2.6.8
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: Rack middleware that provides authentication for rack applications
102
102
  test_files: []
103
- has_rdoc: