From 9b06b93e04ab264673a9f661f8c39b37183ed743 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Mon, 25 Jan 2016 21:09:14 -0800 Subject: [PATCH] Add README badges --- .travis.yml | 3 +++ Gemfile | 1 + README.md | 8 +++++++- spec/spec_helper.rb | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a41c848..c3e2aff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,9 @@ language: ruby sudo: false +before_install: + - gem install bundler + rvm: - 2.0.0 - 2.1.8 diff --git a/Gemfile b/Gemfile index 482dcf4..3b38a5e 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,7 @@ end group :test do gem "rspec" gem "rubocop", "0.36.0" + gem "coveralls", require: false gem "certificate_authority", require: false end diff --git a/README.md b/README.md index 1416179..ef275df 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ -# Rails::Auth +Rails::Auth +=========== +[![Gem Version](https://badge.fury.io/rb/rails-auth.svg)](http://rubygems.org/gems/rails-auth) +[![Build Status](https://travis-ci.org/square/rails-auth.svg?branch=master)](https://travis-ci.org/square/rails-auth) +[![Code Climate](https://codeclimate.com/github/square/rails-auth/badges/gpa.svg)](https://codeclimate.com/github/square/rails-auth) +[![Coverage Status](https://coveralls.io/repos/github/square/rails-auth/badge.svg?branch=master)](https://coveralls.io/github/square/rails-auth?branch=master) +[![Apache 2 licensed](https://img.shields.io/badge/license-Apache2-blue.svg)](https://github.com/square/rails-auth/blob/master/LICENSE) Modular resource-based authentication and authorization for Rails/Rack diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 95043e5..9d1afa6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,6 @@ +require "coveralls" +Coveralls.wear! + $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) require "rails/auth" require "rails/auth/rspec"