Skip to content

Commit

Permalink
Install from GitHub (#170)
Browse files Browse the repository at this point in the history
* Update installation instructions in README
* Update version to 1.6.0

1.5.0 is already released and typically @apokalipto bumps the version right before releasing.
However, since we're updating installation instructions to use Github directly, we should bump the version so it's obviously newer than what's on rubygems.

* Pin byebug for older versions of Ruby
  • Loading branch information
adamstegman authored Jul 6, 2020
1 parent fc398ff commit a200261
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 12 deletions.
5 changes: 0 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,4 @@ group :test do
gem 'sqlite3', '~> 1.4.0'
gem 'capybara'
gem 'poltergeist'

# Lock down versions of gems for older versions of Ruby
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
gem 'responders', '~> 2.4'
end
end
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@ It uses [ruby-saml][] to handle all SAML-related stuff.

## Installation

Add this line to your application's Gemfile:
Add this gem to your application's Gemfile:

gem 'devise_saml_authenticatable'
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
gem "devise_saml_authenticatable", github: "apokalipto/devise_saml_authenticatable"

And then execute:

$ bundle

Or install it yourself as:

$ gem install devise_saml_authenticatable

## Usage

Follow the [normal devise installation process](https://github.com/plataformatec/devise/tree/master#getting-started). The controller filters and helpers are unchanged from normal devise usage.
Expand Down
2 changes: 1 addition & 1 deletion lib/devise_saml_authenticatable/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module DeviseSamlAuthenticatable
VERSION = "1.5.0"
VERSION = "1.6.0"
end
8 changes: 8 additions & 0 deletions spec/support/Gemfile.rails4
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,12 @@ group :test do
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
gem 'responders', '~> 2.0'
end

if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.2")
gem 'byebug', '~> 9.0'
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.3")
gem 'byebug', '~> 10.0'
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
gem 'byebug', '~> 11.0.0'
end
end
6 changes: 6 additions & 0 deletions spec/support/Gemfile.rails5
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ group :test do
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
gem 'responders', '~> 2.4'
end

if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.3")
gem 'byebug', '~> 10.0'
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
gem 'byebug', '~> 11.0.0'
end
end
6 changes: 6 additions & 0 deletions spec/support/Gemfile.rails5.1
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ group :test do
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
gem 'responders', '~> 2.4'
end

if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.3")
gem 'byebug', '~> 10.0'
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
gem 'byebug', '~> 11.0.0'
end
end
6 changes: 6 additions & 0 deletions spec/support/Gemfile.rails5.2
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ group :test do
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
gem 'responders', '~> 2.4'
end

if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.3")
gem 'byebug', '~> 10.0'
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
gem 'byebug', '~> 11.0.0'
end
end

0 comments on commit a200261

Please sign in to comment.