diff --git a/bin/console b/bin/console new file mode 100755 index 0000000..20d238d --- /dev/null +++ b/bin/console @@ -0,0 +1,14 @@ +#!/usr/bin/env ruby + +require "bundler/setup" +require "omniauth/omniauth-keycloak" + +# You can add fixtures and/or initialization code here to make experimenting +# with your gem easier. You can also use a different console, if you like. + +# (If you use this, don't forget to add pry to your Gemfile!) +# require "pry" +# Pry.start + +require "irb" +IRB.start(__FILE__) diff --git a/bin/setup b/bin/setup new file mode 100755 index 0000000..dce67d8 --- /dev/null +++ b/bin/setup @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -euo pipefail +IFS=$'\n\t' +set -vx + +bundle install + +# Do any other automated setup that you need to do here diff --git a/omniauth-keycloak.gemspec b/omniauth-keycloak.gemspec index 5ac926e..0c32f89 100755 --- a/omniauth-keycloak.gemspec +++ b/omniauth-keycloak.gemspec @@ -9,17 +9,13 @@ Gem::Specification.new do |spec| spec.summary = spec.description spec.homepage = "https://github.com/ccrockett/omniauth-keycloak" spec.license = "MIT" + spec.required_rubygems_version = '>= 1.3.5' + spec.required_ruby_version = '>= 2.2' - # Specify which files should be added to the gem when it is released. - # The `git ls-files -z` loads the files in the RubyGem that have been added into git. - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do - `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^lib/}) } - end - - spec.bindir = "exe" - spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - + gem.executables = `git ls-files -- bin/*`.split("\n").collect { |f| File.basename(f) } + gem.files = `git ls-files`.split("\n") + gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") spec.add_dependency "omniauth", "~> 1.8.1" spec.add_dependency "omniauth-oauth2", "~> 1.5.0"