README.md in cas-client-0.1.3 vs README.md in cas-client-0.2.0
- old
+ new
@@ -7,29 +7,37 @@
## Installation
Add this line to your application's Gemfile:
```ruby
-gem 'cas_client'
+gem 'cas-client'
```
And then execute:
$ bundle
Or install it yourself as:
- $ gem install cas_client
+ $ gem install cas-client
## Usage
Configure middleware from the specific environment file
```ruby
-config.middleware.insert_after ActionDispatch::Session::CookieStore, Cas::Client::Middleware, {
- server_url: "https://idpqa.americanfinancing.net",
- extra_attributes: [:first_name, :last_name, :email, :external_id]
-}
+config.middleware.insert_after ActionDispatch::Session::CookieStore, Cas::Client::Middleware do |config|
+ config.server_url = "https://staging.cas-server"
+ config.extra_attributes = [:first_name, :last_name, :email]
+end
+```
+
+Configure global/non-environment specific options
+
+```ruby
+Cas::Client.configure do |config|
+ config.extra_attributes = [:first_name, :last_name, :email]
+end
```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.