Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Doorkeeper Sequel ORM

License

NotificationsYou must be signed in to change notification settings

nbulaj/doorkeeper-sequel

Repository files navigation

Gem VersionBuild StatusCode ClimateLicense

doorkeeper-sequel providesDoorkeeper support toSequel database toolkit.

Requirements

  • Doorkeeper >= 4.0
  • Rails >= 4.2 (Doorkeeper 4 dropped support of lower versions)
  • Sequel >= 4

Installation

To start using the Doorkeeper Sequel ORM, add to your Gemfile:

# For Doorkeeper 4.xgem'doorkeeper','~> 4.3'gem'doorkeeper-sequel','~> 1.5'# For Doorkeeper 5.1gem'doorkeeper','~> 5.0'# or 5.1gem'doorkeeper-sequel','~> 2.0'# For Doorkeeper >= 5.2gem'doorkeeper','~> 5.2'gem'doorkeeper-sequel','~> 2.1'# For Doorkeeper >= 5.3gem'doorkeeper','~> 5.3'gem'doorkeeper-sequel','~> 2.2'

Or you can use gitmaster branch for the latest gem version:

gem'doorkeeper-sequel',git:'https://github.com/nbulaj/doorkeeper-sequel.git'

Set the Doorkeeper ORM configuration:

Doorkeeper.configuredoorm:sequelend

Generate migrations:

rake doorkeeper_sequel:generate:migrationrake doorkeeper_sequel:generate:application_ownerrake doorkeeper_sequel:generate:previous_refresh_tokenrake doorkeeper_sequel:generate:confidential_applications # for Doorkeeper >= 4.4rake doorkeeper_sequel:generate:pkce # for Doorkeeper >= 5.xrake doorkeeper_sequel:generate:polymorphic_resource_owner # for Doorkeeper >= 5.3

Tests

To run tests, clone this repository and runrake. It will copy and runDoorkeeper’s original test suite after configuring the ORM and other stuffs.

$ bundle exec rake

Contributing

You are very welcome to help improvedoorkeeper-sequel if you have suggestions for features that other people can use or some code improvements.

To contribute:

  1. Fork the project.
  2. Create your feature branch (git checkout -b my-new-feature).
  3. Implement your feature or bug fix.
  4. Add documentation for your feature or bug fix.
  5. Add tests for your feature or bug fix.
  6. Runrake to make sure all tests pass.
  7. Commit your changes (git commit -am 'Add new feature').
  8. Push to the branch (git push origin my-new-feature).
  9. Create new pull request.

Thanks.

License

Doorkeeper-sequel gem is released under theMIT License.

Copyright (c) 2016-2020 Nikita Bulai (bulajnikita@gmail.com).


Please refer tohttps://github.com/doorkeeper-gem/doorkeeper for instructions ondoorkeeper’s project.


[8]ページ先頭

©2009-2025 Movatter.jp