Skip to content

Commit 90a289d

Browse files
authored
Merge pull request #14 from healthify/update-gemspec-email-and-contribs
Update gemspec email, README, and bump to v0.4.0
2 parents 227d497 + d37d748 commit 90a289d

File tree

5 files changed

+23
-13
lines changed

5 files changed

+23
-13
lines changed

Diff for: Gemfile.lock

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ GIT
88
PATH
99
remote: .
1010
specs:
11-
fake_idp (0.3.0)
12-
builder
11+
fake_idp (0.4.0)
1312
ruby-saml-idp
1413
sinatra (~> 2.0.0)
1514

1615
GEM
1716
remote: https://rubygems.org/
1817
specs:
19-
builder (3.2.3)
2018
diff-lcs (1.2.5)
2119
dotenv (1.0.2)
2220
macaddr (1.7.1)
@@ -61,4 +59,4 @@ DEPENDENCIES
6159
ruby-saml-idp!
6260

6361
BUNDLED WITH
64-
1.16.6
62+
1.17.3

Diff for: README.md

+18-5
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,17 @@ Then navigate to `http://localhost:9292/saml/auth` to begin making your SAML req
4040

4141
## Running in Test
4242

43-
If you are using this gem to provide a Fake IDP server in a test suite, add the gem
44-
to the Gemfile:
43+
### Gemfile
44+
45+
If you are using this gem to provide a Fake IDP server in a test suite, add the gem to the Gemfile:
4546

4647
```ruby
4748
gem 'fake_idp', github: 'healthify/fake_idp'
4849
```
4950

50-
You can set the relevant variables in a configuration block if they aren't provided
51-
as environment variables. For example:
51+
### Configuration
52+
53+
You can set the relevant variables in a configuration block if they aren't provided as environment variables. For example:
5254

5355
```ruby
5456
FakeIdp.configure do |config|
@@ -59,10 +61,21 @@ FakeIdp.configure do |config|
5961
config.idp_certificate = "YOUR CERT HERE"
6062
config.idp_secret_key = "YOUR KEY HERE"
6163
config.algorithm = :sha512
64+
config.additional_attributes = { custom_saml_attr: "DELIVERED_IN_ASSERTION" }
6265
end
6366
```
6467

65-
And then use Capybara Discoball to spin it up in a test:
68+
#### Resetting Configuration
69+
70+
If you ever want to reset your FakeIdp configuration (e.g. between test specs), you can use the following:
71+
72+
```ruby
73+
FakeIdp.reset!
74+
```
75+
76+
### Use
77+
78+
You can use Capybara Discoball to spin `FakeIdp::Application` up in a test:
6679

6780
```ruby
6881
require 'fake_idp'

Diff for: fake_idp.gemspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ Gem::Specification.new do |spec|
1010
"Shelby Switzer",
1111
"Tyler Willingham",
1212
"Robyn-Dale Samuda",
13+
"Chet Bortz",
1314
]
14-
spec.email = ["shelby@healthify.us"]
15+
spec.email = ["engineering@healthify.us"]
1516

1617
spec.summary = 'Fake IDP to test SAML authentication'
1718
spec.license = "MIT"
@@ -35,5 +36,4 @@ Gem::Specification.new do |spec|
3536
spec.add_development_dependency "dotenv", "~> 1.0"
3637
spec.add_runtime_dependency "sinatra", "~> 2.0.0"
3738
spec.add_runtime_dependency "ruby-saml-idp"
38-
spec.add_runtime_dependency "builder"
3939
end

Diff for: lib/fake_idp.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
require 'sinatra/base'
22
require 'ruby-saml-idp'
3-
require 'builder'
43
require 'zlib'
54
require 'tilt/erb'
65
require 'fake_idp/configuration'

Diff for: lib/fake_idp/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module FakeIdp
2-
VERSION = "0.3.0"
2+
VERSION = "0.4.0"
33
end

0 commit comments

Comments
 (0)