Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coveralls and travis badges #29

Merged
merged 1 commit into from
Nov 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
source "https://rubygems.org"

gem 'coveralls', require: false

gemspec

# BEGIN ENGINE_CART BLOCK
Expand Down
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# hydra-role-management

[![Build Status](https://travis-ci.org/samvera/hydra-role-management.svg?branch=master)](https://travis-ci.org/samvera/hydra-role-management) [![Gem Version](https://badge.fury.io/rb/hydra-role-management.svg)](https://badge.fury.io/rb/hydra-role-management) [![Coverage Status](https://coveralls.io/repos/github/samvera/hydra-role-management/badge.svg?branch=master)](https://coveralls.io/github/samvera/hydra-role-management?branch=master)


An engine gem to provide a RDBMS backed list of roles and their associated user. This replaces the hydra default role mapper.

This gem supports both Rails 3 and 4.
This gem supports Rails 3, 4, and 5.

##Installing:
## Installing:

* Add: ```gem 'hydra-role-management'``` to your Gemfile and then ```bundle install```
* ```rails generate roles```
Expand All @@ -16,13 +21,13 @@ This gem supports both Rails 3 and 4.
end
```

##Testing:
Given the need to support both Rails 3 and 4, the test suite has been parameterized to test against any version of Rails.
## Testing:
Given the need to support Rails 3, 4 and 5, the test suite has been parameterized to test against any version of Rails.

* Install a system javascript runtime or uncomment therubyracer in spec/support/Gemfile
* Ensure that the testing app does not exist: ```bundle exec rake clean```
* Set Rails version you want to test against. For example:
* ```RAILS_VERSION=3.2.13``` or ```RAILS_VERSION=4.0.0```
* ```RAILS_VERSION=3.2.13``` or ```RAILS_VERSION=4.0.0``` or ```RAILS_VERSION=5.0.2```
* Ensure that the correct version of Rails is installed: ```bundle update```
* Build test app: ```bundle exec engine_cart:generate```
* And run tests: ```bundle exec rake spec```
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'coveralls'
Coveralls.wear!

ENV["RAILS_ENV"] ||= 'test'
require "bundler/setup"

Expand Down