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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d7e485cff4e94c166f3b449b6cbe61800251ba4
4
- data.tar.gz: cfd5d6fbbc155715e2f1c8e71f14ce5cf183f406
3
+ metadata.gz: 51e060c47bf53196700604cbbdbc677cb8d31662
4
+ data.tar.gz: d3e596965560c49cf30fa93130dd7c62926ae279
5
5
  SHA512:
6
- metadata.gz: 354a4548e2a5719532c295d3bf0328525da9cf74487977df4990d670eb7ef5a5f5be429ce3d6e5ac0b5201439b9a06f17a8106deefe20548701e087aed050a88
7
- data.tar.gz: ea4f879ee459d07c67dd91dda77474267bbfd4563a1a7dccb2afc8ac20db1d078ed325ecc13a51bcbaa4e51d15096976830d5afc820ed3f72297150a75376873
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
@@ -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-13'
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'
@@ -6,7 +6,7 @@ module DoorkeeperSequel
6
6
  module VERSION
7
7
  MAJOR = 1
8
8
  MINOR = 3
9
- TINY = 0
9
+ TINY = 1
10
10
 
11
11
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
12
12
  end
@@ -8,7 +8,7 @@ module DoorkeeperSequel
8
8
  desc 'Installs Doorkeeper Sequel migration file.'
9
9
 
10
10
  def install
11
- create_migration 'migration.rb'
11
+ create_migration 'create_doorkeeper_tables.rb'
12
12
  end
13
13
  end
14
14
  end
@@ -2,10 +2,20 @@ module Doorkeeper
2
2
  module Orm
3
3
  module Sequel
4
4
  def self.initialize_models!
5
- require 'doorkeeper/orm/sequel/models/concerns/sequel_compat'
6
- require 'doorkeeper/orm/sequel/access_grant'
7
- require 'doorkeeper/orm/sequel/access_token'
8
- require 'doorkeeper/orm/sequel/application'
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.0
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-13 00:00:00.000000000 Z
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/migration.rb
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