Skip to content

Commit 5da4c45

Browse files
committed
fixed issues with gem release
1 parent e0307be commit 5da4c45

File tree

3 files changed

+27
-9
lines changed

3 files changed

+27
-9
lines changed

bin/console

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env ruby
2+
3+
require "bundler/setup"
4+
require "omniauth/omniauth-keycloak"
5+
6+
# You can add fixtures and/or initialization code here to make experimenting
7+
# with your gem easier. You can also use a different console, if you like.
8+
9+
# (If you use this, don't forget to add pry to your Gemfile!)
10+
# require "pry"
11+
# Pry.start
12+
13+
require "irb"
14+
IRB.start(__FILE__)

bin/setup

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
4+
set -vx
5+
6+
bundle install
7+
8+
# Do any other automated setup that you need to do here

omniauth-keycloak.gemspec

+5-9
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,13 @@ Gem::Specification.new do |spec|
99
spec.summary = spec.description
1010
spec.homepage = "https://github.com/ccrockett/omniauth-keycloak"
1111
spec.license = "MIT"
12+
spec.required_rubygems_version = '>= 1.3.5'
13+
spec.required_ruby_version = '>= 2.2'
1214

13-
# Specify which files should be added to the gem when it is released.
14-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
15-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
16-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^lib/}) }
17-
end
18-
19-
spec.bindir = "exe"
20-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2115
spec.require_paths = ["lib"]
22-
16+
gem.executables = `git ls-files -- bin/*`.split("\n").collect { |f| File.basename(f) }
17+
gem.files = `git ls-files`.split("\n")
18+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
2319

2420
spec.add_dependency "omniauth", "~> 1.8.1"
2521
spec.add_dependency "omniauth-oauth2", "~> 1.5.0"

0 commit comments

Comments
 (0)