devise_custom_token 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  require 'devise'
2
2
  require 'devise/strategies/token_authenticatable'
3
+
3
4
  module Devise
4
5
  mattr_accessor :non_token_auth_value
5
6
  @@non_token_auth_value='token'
@@ -1,3 +1,3 @@
1
1
  module DeviseCustomToken
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,73 +1,110 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: devise_custom_token
3
- version: !ruby/object:Gem::Version
4
- hash: 29
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
11
6
  platform: ruby
12
- authors:
13
- - sleverbor
7
+ authors:
8
+ - Rob Revels
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-05-10 00:00:00 Z
19
- dependencies: []
20
-
21
- description: Customize token string in basic authentication header.
22
- email:
12
+ date: 2012-05-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &2152144580 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.3
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *2152144580
25
+ - !ruby/object:Gem::Dependency
26
+ name: jquery-rails
27
+ requirement: &2152143680 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *2152143680
36
+ - !ruby/object:Gem::Dependency
37
+ name: sqlite3
38
+ requirement: &2152142000 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *2152142000
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec-rails
49
+ requirement: &2152140260 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *2152140260
58
+ - !ruby/object:Gem::Dependency
59
+ name: devise
60
+ requirement: &2152138220 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *2152138220
69
+ description: Customize basic auth header when using token_authenticatable with devise.
70
+ email:
23
71
  - rob.revels@g5searchmarketing.com
24
72
  executables: []
25
-
26
73
  extensions: []
27
-
28
74
  extra_rdoc_files: []
29
-
30
- files:
31
- - .gitignore
32
- - Gemfile
33
- - README.md
34
- - Rakefile
35
- - devise_custom_token.gemspec
75
+ files:
36
76
  - lib/devise/devise_custom_token.rb
37
- - lib/devise_custom_token.rb
38
77
  - lib/devise_custom_token/version.rb
39
- homepage: ""
78
+ - lib/devise_custom_token.rb
79
+ - Rakefile
80
+ homepage: https://github.com/sleverbor/devise_custom_token
40
81
  licenses: []
41
-
42
82
  post_install_message:
43
83
  rdoc_options: []
44
-
45
- require_paths:
84
+ require_paths:
46
85
  - lib
47
- required_ruby_version: !ruby/object:Gem::Requirement
86
+ required_ruby_version: !ruby/object:Gem::Requirement
48
87
  none: false
49
- requirements:
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- hash: 3
53
- segments:
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ segments:
54
93
  - 0
55
- version: "0"
56
- required_rubygems_version: !ruby/object:Gem::Requirement
94
+ hash: 2907896806458891278
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
96
  none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
97
+ requirements:
98
+ - - ! '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ segments:
63
102
  - 0
64
- version: "0"
103
+ hash: 2907896806458891278
65
104
  requirements: []
66
-
67
- rubyforge_project: devise_custom_token
105
+ rubyforge_project:
68
106
  rubygems_version: 1.8.6
69
107
  signing_key:
70
108
  specification_version: 3
71
- summary: Customize token string in basic authentication header.
109
+ summary: Customize basic auth header when using token_authenticatable with devise.
72
110
  test_files: []
73
-
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in devise_custom_token.gemspec
4
- gemspec
data/README.md DELETED
@@ -1,8 +0,0 @@
1
- devise_custom_token
2
- ===================
3
-
4
- Devise strategy for customizing the authentication token used in basic authentication header. With this strategy you can set the non-password portion of the header to an arbitrary string ("token" by default). This can be placed in any order, e.g. curl -utoken:mypassword http://someplace or curl -umypassword:token http://someplace
5
-
6
- To use: Add to your gemfile and in your devise initializer require 'devise/devise_custom_token'
7
-
8
- To configure the non-password string set Devise::non_token_auth_value in your devise initializer.
@@ -1,24 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "devise_custom_token/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "devise_custom_token"
7
- s.version = DeviseCustomToken::VERSION
8
- s.authors = ["sleverbor"]
9
- s.email = ["rob.revels@g5searchmarketing.com"]
10
- s.homepage = ""
11
- s.summary = %q{Customize token string in basic authentication header.}
12
- s.description = %q{Customize token string in basic authentication header.}
13
-
14
- s.rubyforge_project = "devise_custom_token"
15
-
16
- s.files = `git ls-files`.split("\n")
17
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
- s.require_paths = ["lib"]
20
-
21
- # specify any dependencies here; for example:
22
- # s.add_development_dependency "rspec"
23
- # s.add_runtime_dependency "rest-client"
24
- end