From 7dfc9bbce77b22bed5a3fe39350236835bc2c98a Mon Sep 17 00:00:00 2001 From: Sam Dengler Date: Wed, 11 Jun 2014 12:19:34 -0400 Subject: [PATCH] initial commit --- .gitignore | 18 +++++++++++++++ .ruby-version | 1 + Gemfile | 12 ++++++++++ LICENSE.txt | 22 ++++++++++++++++++ README.md | 29 ++++++++++++++++++++++++ Rakefile | 1 + doorkeeper-openid_connect.gemspec | 28 +++++++++++++++++++++++ lib/doorkeeper/openid_connect.rb | 7 ++++++ lib/doorkeeper/openid_connect/version.rb | 5 ++++ 9 files changed, 123 insertions(+) create mode 100644 .gitignore create mode 100644 .ruby-version create mode 100644 Gemfile create mode 100644 LICENSE.txt create mode 100644 README.md create mode 100644 Rakefile create mode 100644 doorkeeper-openid_connect.gemspec create mode 100644 lib/doorkeeper/openid_connect.rb create mode 100644 lib/doorkeeper/openid_connect/version.rb diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8423ebd --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +*.gem +*.rbc +.bundle +.config +.yardoc +Gemfile.lock +InstalledFiles +_yardoc +coverage +doc/ +lib/bundler/man +pkg +rdoc +spec/reports +test/tmp +test/version_tmp +tmp +.idea/ diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..7ec1d6d --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.1.0 diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..b268c8d --- /dev/null +++ b/Gemfile @@ -0,0 +1,12 @@ +source 'https://rubygems.org' + +# Define Rails version +gem 'rails', ENV['rails'] + +gem 'doorkeeper' + +gem 'pry' +gem 'sqlite3' +gem 'factory_girl' + +gemspec diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..118b6c4 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,22 @@ +Copyright (c) 2014 Sam Dengler + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..9d86009 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Doorkeeper::OpenIdConnect + +TODO: Write a gem description + +## Installation + +Add this line to your application's Gemfile: + + gem 'doorkeeper-openid_connect' + +And then execute: + + $ bundle + +Or install it yourself as: + + $ gem install doorkeeper-openid_connect + +## Usage + +TODO: Write usage instructions here + +## Contributing + +1. Fork it ( http://github.com//doorkeeper-openid_connect/fork ) +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Commit your changes (`git commit -am 'Add some feature'`) +4. Push to the branch (`git push origin my-new-feature`) +5. Create new Pull Request diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..2995527 --- /dev/null +++ b/Rakefile @@ -0,0 +1 @@ +require "bundler/gem_tasks" diff --git a/doorkeeper-openid_connect.gemspec b/doorkeeper-openid_connect.gemspec new file mode 100644 index 0000000..53554a3 --- /dev/null +++ b/doorkeeper-openid_connect.gemspec @@ -0,0 +1,28 @@ +# coding: utf-8 +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'doorkeeper/openid_connect/version' + +Gem::Specification.new do |spec| + spec.name = "doorkeeper-openid_connect" + spec.version = Doorkeeper::OpenIdConnect::VERSION + spec.authors = ["Sam Dengler"] + spec.email = ["sam.dengler@playonsports.com"] + spec.summary = "OpenID Connect Extension to Doorkeeper" + spec.description = "OpenID Connect Extension to Doorkeeper" + spec.homepage = "https://github.com/doorkeeper-gem/doorkeeper/doorkeeper-openid_connect" + spec.license = "MIT" + + spec.files = `git ls-files -z`.split("\x0") + spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } + spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) + spec.require_paths = ["lib"] + + spec.add_dependency "railties", ">= 3.1" + spec.add_dependency "doorkeeper", ">= 1.3" + spec.add_development_dependency "rspec-rails", ">= 2.11.4" + spec.add_development_dependency "capybara", "~> 1.1.2" + spec.add_development_dependency "factory_girl", "~> 2.6.4" + spec.add_development_dependency "generator_spec", "~> 0.9.0" + spec.add_development_dependency "database_cleaner", "~> 1.2.0" +end diff --git a/lib/doorkeeper/openid_connect.rb b/lib/doorkeeper/openid_connect.rb new file mode 100644 index 0000000..bd9ac2e --- /dev/null +++ b/lib/doorkeeper/openid_connect.rb @@ -0,0 +1,7 @@ +require "doorkeeper/openid_connect/version" + +module Doorkeeper + module OpenIdConnect + # Your code goes here... + end +end diff --git a/lib/doorkeeper/openid_connect/version.rb b/lib/doorkeeper/openid_connect/version.rb new file mode 100644 index 0000000..87e50f4 --- /dev/null +++ b/lib/doorkeeper/openid_connect/version.rb @@ -0,0 +1,5 @@ +module Doorkeeper + module OpenIdConnect + VERSION = "0.0.1" + end +end