doorkeeper 4.0.0.rc4 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of doorkeeper might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8dc5d57a6b22f136349e84f529ef9a925553dd9f
4
- data.tar.gz: a37456b60aa1dfa8f530fdb267d163838dcb9da5
3
+ metadata.gz: 68df4a2a59a456f294e58416fb229932a8ea08c3
4
+ data.tar.gz: 30ff755d1ec25a53119b419ad1d0be3a69bedd7d
5
5
  SHA512:
6
- metadata.gz: d97281f371ce8772fbdd540066a19d0dcae962ae7cac57fd05d1b877c7cb5923e42d080f8def9da8ceed8348251f1eae7b2459abca0c7c0cef44be91ceacefa8
7
- data.tar.gz: 6dde7539983303cbefd28391b9a8617ee24ed1e2234c1e7cd80dae1896d2c100617be9cfc1b84715c82502a841caf11a7ed849c728cb123177572449cc657ab9
6
+ metadata.gz: df0bc1f0075ede4a575d2c007806ae887ef11d746204df8bda6345b73abf504911fd8bde1c22e6cbf55066553a3c7f9f10653d127a79ead3c2b5fa204dc9b0d1
7
+ data.tar.gz: becadfd542de1ee8c6863f4dcb4a53db12ea737687942f0699519eb5299a7c22ecac9beb8026a9833dd3dd166810cf6bf0213602fa5696def66fefe6cc5dbb38
data/.travis.yml CHANGED
@@ -12,9 +12,9 @@ before_install:
12
12
 
13
13
  env:
14
14
  - rails=4.2.0
15
- - rails=5.0.0.rc1
15
+ - rails=5.0.0
16
16
 
17
17
  matrix:
18
18
  exclude:
19
- - env: rails=5.0.0.rc1
19
+ - env: rails=5.0.0
20
20
  rvm: 2.1
data/NEWS.md CHANGED
@@ -4,6 +4,12 @@ User-visible changes worth mentioning.
4
4
 
5
5
  ## master
6
6
 
7
+ ## 4.0.0
8
+
9
+ - [#834] Fix AssetNotPrecompiled error with Sprockets 4
10
+ - [#843] Revert "Fix validation error messages"
11
+ - [#847] Specify Null option to timestamps
12
+
7
13
  ## 4.0.0.rc4
8
14
 
9
15
  - [#777] Add support for public client in password grant flow
@@ -19,7 +19,7 @@
19
19
  <%= link_to t('doorkeeper.layouts.admin.nav.applications'), oauth_applications_path %>
20
20
  <% end %>
21
21
  <%= content_tag :li do %>
22
- <%= link_to 'Home', root_path %>
22
+ <%= link_to t('doorkeeper.layouts.admin.nav.home'), root_path %>
23
23
  <% end %>
24
24
  </ul>
25
25
  </div>
@@ -119,5 +119,6 @@ en:
119
119
  nav:
120
120
  oauth2_provider: 'OAuth2 Provider'
121
121
  applications: 'Applications'
122
+ home: 'Home'
122
123
  application:
123
124
  title: 'OAuth authorization required'
@@ -14,5 +14,14 @@ module Doorkeeper
14
14
  include Doorkeeper::Rails::Helpers
15
15
  end
16
16
  end
17
+
18
+ if defined?(Sprockets) && Sprockets::VERSION.chr.to_i >= 4
19
+ initializer 'doorkeeper.assets.precompile' do |app|
20
+ app.config.assets.precompile += %w(
21
+ doorkeeper/application.css
22
+ doorkeeper/admin/application.css
23
+ )
24
+ end
25
+ end
17
26
  end
18
27
  end
@@ -7,7 +7,7 @@ module Doorkeeper
7
7
  validate :attributes, error: :invalid_request
8
8
  validate :client, error: :invalid_client
9
9
  validate :grant, error: :invalid_grant
10
- validate :redirect_uri, error: :invalid_redirect_uri
10
+ validate :redirect_uri, error: :invalid_grant
11
11
 
12
12
  attr_accessor :server, :grant, :client, :redirect_uri, :access_token
13
13
 
@@ -6,7 +6,7 @@ module Doorkeeper
6
6
  include OAuth::Helpers
7
7
 
8
8
  validate :client, error: :invalid_client
9
- validate :resource_owner, error: :invalid_resource_owner
9
+ validate :resource_owner, error: :invalid_grant
10
10
  validate :scopes, error: :invalid_scope
11
11
 
12
12
  attr_accessor :server, :client, :resource_owner, :parameters,
@@ -1,3 +1,3 @@
1
1
  module Doorkeeper
2
- VERSION = "4.0.0.rc4".freeze
2
+ VERSION = "4.0.0".freeze
3
3
  end
@@ -6,7 +6,7 @@ class CreateDoorkeeperTables < ActiveRecord::Migration
6
6
  t.string :secret, null: false
7
7
  t.text :redirect_uri, null: false
8
8
  t.string :scopes, null: false, default: ''
9
- t.timestamps
9
+ t.timestamps null: false
10
10
  end
11
11
 
12
12
  add_index :oauth_applications, :uid, unique: true
@@ -31,7 +31,7 @@ class CreateDoorkeeperTables < ActiveRecord::Migration
31
31
 
32
32
  create_table :oauth_access_tokens do |t|
33
33
  t.integer :resource_owner_id
34
- t.references :application, null: false
34
+ t.references :application
35
35
 
36
36
  # If you use a custom token generator you may need to change this column
37
37
  # from string to text, so that it accepts tokens larger than 255
@@ -6,7 +6,7 @@ class CreateDoorkeeperTables < ActiveRecord::Migration
6
6
  t.string :secret, null: false
7
7
  t.text :redirect_uri, null: false
8
8
  t.string :scopes, null: false, default: ''
9
- t.timestamps
9
+ t.timestamps null: false
10
10
  end
11
11
 
12
12
  add_index :oauth_applications, :uid, unique: true
@@ -59,7 +59,7 @@ module Doorkeeper::OAuth
59
59
  it "matches the redirect_uri with grant's one" do
60
60
  subject.redirect_uri = 'http://other.com'
61
61
  subject.validate
62
- expect(subject.error).to eq(:invalid_redirect_uri)
62
+ expect(subject.error).to eq(:invalid_grant)
63
63
  end
64
64
 
65
65
  it "matches the client with grant's one" do
@@ -44,7 +44,7 @@ module Doorkeeper::OAuth
44
44
  it 'requires the owner' do
45
45
  subject.resource_owner = nil
46
46
  subject.validate
47
- expect(subject.error).to eq(:invalid_resource_owner)
47
+ expect(subject.error).to eq(:invalid_grant)
48
48
  end
49
49
 
50
50
  it 'optionally accepts the client' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.rc4
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felipe Elias Philipp
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-17 00:00:00.000000000 Z
12
+ date: 2016-07-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -373,9 +373,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
373
373
  version: '0'
374
374
  required_rubygems_version: !ruby/object:Gem::Requirement
375
375
  requirements:
376
- - - ">"
376
+ - - ">="
377
377
  - !ruby/object:Gem::Version
378
- version: 1.3.1
378
+ version: '0'
379
379
  requirements: []
380
380
  rubyforge_project:
381
381
  rubygems_version: 2.6.2