Skip to content

Commit a200261

Browse files
authored
Install from GitHub (#170)
* 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
1 parent fc398ff commit a200261

File tree

7 files changed

+30
-12
lines changed

7 files changed

+30
-12
lines changed

Gemfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,4 @@ group :test do
1111
gem 'sqlite3', '~> 1.4.0'
1212
gem 'capybara'
1313
gem 'poltergeist'
14-
15-
# Lock down versions of gems for older versions of Ruby
16-
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
17-
gem 'responders', '~> 2.4'
18-
end
1914
end

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,15 @@ It uses [ruby-saml][] to handle all SAML-related stuff.
66

77
## Installation
88

9-
Add this line to your application's Gemfile:
9+
Add this gem to your application's Gemfile:
1010

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

1314
And then execute:
1415

1516
$ bundle
1617

17-
Or install it yourself as:
18-
19-
$ gem install devise_saml_authenticatable
20-
2118
## Usage
2219

2320
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.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module DeviseSamlAuthenticatable
2-
VERSION = "1.5.0"
2+
VERSION = "1.6.0"
33
end

spec/support/Gemfile.rails4

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,12 @@ group :test do
3030
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
3131
gem 'responders', '~> 2.0'
3232
end
33+
34+
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.2")
35+
gem 'byebug', '~> 9.0'
36+
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.3")
37+
gem 'byebug', '~> 10.0'
38+
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
39+
gem 'byebug', '~> 11.0.0'
40+
end
3341
end

spec/support/Gemfile.rails5

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ group :test do
1616
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
1717
gem 'responders', '~> 2.4'
1818
end
19+
20+
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.3")
21+
gem 'byebug', '~> 10.0'
22+
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
23+
gem 'byebug', '~> 11.0.0'
24+
end
1925
end

spec/support/Gemfile.rails5.1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ group :test do
1616
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
1717
gem 'responders', '~> 2.4'
1818
end
19+
20+
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.3")
21+
gem 'byebug', '~> 10.0'
22+
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
23+
gem 'byebug', '~> 11.0.0'
24+
end
1925
end

spec/support/Gemfile.rails5.2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ group :test do
1616
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
1717
gem 'responders', '~> 2.4'
1818
end
19+
20+
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.3")
21+
gem 'byebug', '~> 10.0'
22+
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
23+
gem 'byebug', '~> 11.0.0'
24+
end
1925
end

0 commit comments

Comments
 (0)