devise_oauth2_rails4 2.1.6 → 2.1.7

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: 9bb0b17a3338a2bba2c9cf233c60f1316bcb8bee
4
- data.tar.gz: c8671394b4e659766ca582369a44f0e43fad5af5
3
+ metadata.gz: bf7a6ad934e8bded9b5c59d8590c9be947db642e
4
+ data.tar.gz: d96841f38408a6a05587d8218ab5275da0f8ec2b
5
5
  SHA512:
6
- metadata.gz: df8e7e2fb5b6c525663707947400b64bce69121cb67c57b1d0a6a9818dfb1dd66fd278d22b28a30fc7f99fb52a9f6edbe9944f7845d8b9dea2e338421047973a
7
- data.tar.gz: 86088ab2399f071eeaaec8ab235b61f4dae8695baabac7dfd177f45d97326918c682bed05d24445e6ad5393f96704ed99599cc998f9c0e8540ed6a5273c344e8
6
+ metadata.gz: f96f887dce1553ff7c018a6a37a329e1867a4af3eac0c48e0652b6b90436b76ccb238164cfdef624ce6f782e25fb5c23d162a49052c14802a659a964f85b0aa6
7
+ data.tar.gz: 24f87049d05895bc00ccca1bb1620b9bd261292f511da60aaf97a0f55ef3f022017bfde366a6f71a5afae6ab913f6df37c0dc7ee5205108c864dee6e79354202
@@ -7,6 +7,8 @@ module Devise
7
7
  return @secure_client ||= Client.find_by(secret: client_secret) if opts[:secure]
8
8
  return @secure_client ||= Client.find_by(id: current_access_token.client_id) if valid_access_token?
9
9
  @client ||= Client.find_by('identifier = :client_id OR secret = :secret', client_id: client_id, secret: client_secret) if client_credentials?
10
+ Client.find_by(:identifier => client_id, :secret => secret)
11
+ Client.find_by('identifier = ? OR secret = ?', client_id, secret)
10
12
  end
11
13
 
12
14
  def current_access_token
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Oauth2
3
- VERSION = "2.1.6"
3
+ VERSION = "2.1.7"
4
4
  end
5
5
  end
@@ -3,7 +3,7 @@ module Devise
3
3
 
4
4
  class MigrationsGenerator < Rails::Generators::Base
5
5
 
6
- Devise::Oauth2::MigrationsGenerator.source_root(File.expand_path './')
6
+ source_root(File.expand_path './', __FILE__)
7
7
 
8
8
  def create_migrations
9
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_oauth2_rails4
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.6
4
+ version: 2.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Wheeler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-18 00:00:00.000000000 Z
11
+ date: 2014-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails