Skip to content

Commit 476caa4

Browse files
committed
Add Coveralls
Signed-off-by: David Celis <[email protected]>
1 parent c57fc39 commit 476caa4

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ rvm:
33
- 1.9.3
44
- 2.0.0
55
- 2.1.0
6-
script: bundle exec rspec
6+
script: bundle exec rake
77
env:
88
- PAGINATOR=kaminari
99
- PAGINATOR=will_paginate

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ source 'https://rubygems.org'
22

33
# Specify your gem's dependencies in api_pagination.gemspec
44
gemspec
5+
6+
gem 'rake', require: false
7+
gem 'coveralls', require: false

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# api-pagination
22

3-
Paginate in your headers, not in your response body.
4-
53
[![Build Status][travis-badge]][travis] [![Coverage][coveralls-badge]][coveralls] [![Climate][code-climate-badge]][code-climate] [![Dependencies][gemnasium-badge]][gemnasium] [![gittip][gittip-badge]][gittip]
64

5+
Paginate in your headers, not in your response body.
6+
77
## Installation
88

99
In your `Gemfile`:

Rakefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require 'rspec/core/rake_task'
2+
require 'coveralls/rake/task'
3+
4+
RSpec::Core::RakeTask.new(:spec)
5+
Coveralls::RakeTask.new
6+
7+
task default: [:spec, 'coveralls:push']

spec/spec_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
require 'coveralls'
2+
Coveralls.wear_merged!
3+
14
require 'support/numbers_controller'
25
require 'support/numbers_api'
36
require 'api-pagination'

0 commit comments

Comments
 (0)