doorkeeper-sequel 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/doorkeeper-sequel.gemspec +1 -1
- data/lib/doorkeeper-sequel/gem_version.rb +1 -1
- data/lib/doorkeeper-sequel/generators/migration_generator.rb +1 -1
- data/lib/doorkeeper-sequel/generators/templates/{migration.rb → create_doorkeeper_tables.rb} +0 -0
- data/lib/doorkeeper/orm/sequel.rb +14 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51e060c47bf53196700604cbbdbc677cb8d31662
|
4
|
+
data.tar.gz: d3e596965560c49cf30fa93130dd7c62926ae279
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e3d82b9d339885abd1d941417ae5fd5c4b8e95b046d16e22df2a8b1bd4e2b503e6d509d310721869a4ba1d8907637307bc4ec31eab981d8bba33299835575ae
|
7
|
+
data.tar.gz: 548105f66983fe03d38ede60708744350c59a60213c317af511c29e8bd0664e8d6c50cd3e7af69c74d2dea0962fe30ca1d994f4cdb7d0dfe2b24af328cce6eea
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,13 @@ https://github.com/nbulaj/doorkeeper-sequel/compare/1.3.0...master
|
|
8
8
|
|
9
9
|
...
|
10
10
|
|
11
|
+
## `1.3.1` (2017-12-14)
|
12
|
+
|
13
|
+
https://github.com/nbulaj/doorkeeper-sequel/compare/1.3.0...1.3.1
|
14
|
+
|
15
|
+
* Fix Sequel model initialization (database error for rake tasks)
|
16
|
+
* Fix main migration name for generator
|
17
|
+
|
11
18
|
## `1.3.0` (2017-12-13)
|
12
19
|
|
13
20
|
https://github.com/nbulaj/doorkeeper-sequel/compare/1.2.3...1.3.0
|
data/doorkeeper-sequel.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.name = 'doorkeeper-sequel'
|
7
7
|
gem.version = DoorkeeperSequel.gem_version
|
8
8
|
gem.authors = ['Nikita Bulai']
|
9
|
-
gem.date = '2017-12-
|
9
|
+
gem.date = '2017-12-14'
|
10
10
|
gem.email = ['bulajnikita@gmail.com']
|
11
11
|
gem.homepage = 'http://github.com/nbulaj/doorkeeper-sequel'
|
12
12
|
gem.summary = 'Doorkeeper Sequel ORM'
|
data/lib/doorkeeper-sequel/generators/templates/{migration.rb → create_doorkeeper_tables.rb}
RENAMED
File without changes
|
@@ -2,10 +2,20 @@ module Doorkeeper
|
|
2
2
|
module Orm
|
3
3
|
module Sequel
|
4
4
|
def self.initialize_models!
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
# Hack to bypass Sequel restrictions to model datasets definition.
|
6
|
+
# As it requires valid existing table at the moment of Model class definition,
|
7
|
+
# all the rake tasks (db:create, db:migrate, etc) would be aborted due to error.
|
8
|
+
old_value = ::Sequel::Model.require_valid_table
|
9
|
+
::Sequel::Model.require_valid_table = false
|
10
|
+
|
11
|
+
begin
|
12
|
+
require 'doorkeeper/orm/sequel/models/concerns/sequel_compat'
|
13
|
+
require 'doorkeeper/orm/sequel/access_grant'
|
14
|
+
require 'doorkeeper/orm/sequel/access_token'
|
15
|
+
require 'doorkeeper/orm/sequel/application'
|
16
|
+
ensure
|
17
|
+
::Sequel::Model.require_valid_table = old_value
|
18
|
+
end
|
9
19
|
end
|
10
20
|
|
11
21
|
def self.initialize_application_owner!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doorkeeper-sequel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikita Bulai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: doorkeeper
|
@@ -228,7 +228,7 @@ files:
|
|
228
228
|
- lib/doorkeeper-sequel/generators/previous_refresh_token_generator.rb
|
229
229
|
- lib/doorkeeper-sequel/generators/templates/add_owner_to_application.rb
|
230
230
|
- lib/doorkeeper-sequel/generators/templates/add_previous_refresh_token_to_access_tokens.rb
|
231
|
-
- lib/doorkeeper-sequel/generators/templates/
|
231
|
+
- lib/doorkeeper-sequel/generators/templates/create_doorkeeper_tables.rb
|
232
232
|
- lib/doorkeeper-sequel/railtie.rb
|
233
233
|
- lib/doorkeeper-sequel/tasks/doorkeeper-sequel.rake
|
234
234
|
- lib/doorkeeper-sequel/version.rb
|