Skip to content

Commit e176cfe

Browse files
committed
Add test coverage badge
1 parent 521bf13 commit e176cfe

12 files changed

Lines changed: 374 additions & 16 deletions

File tree

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repo_token: bYVvifY6POXhFwOja3SZIX1nUxtWrUxKj

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Naming/FileName:
55
Metrics/MethodLength:
66
Max: 25
77
Metrics/BlockLength:
8-
Max: 30
8+
Max: 35
99
Metrics/ParameterLists:
1010
Max: 8
1111
Lint/DuplicateMethods:

Gemfile.lock

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,20 @@ GEM
99
addressable (2.7.0)
1010
public_suffix (>= 2.0.2, < 5.0)
1111
coderay (1.1.2)
12+
coveralls (0.8.23)
13+
json (>= 1.8, < 3)
14+
simplecov (~> 0.16.1)
15+
term-ansicolor (~> 1.3)
16+
thor (>= 0.19.4, < 2.0)
17+
tins (~> 1.6)
1218
crack (0.4.3)
1319
safe_yaml (~> 1.0.0)
1420
diff-lcs (1.3)
21+
docile (1.3.2)
1522
faraday (1.0.0)
1623
multipart-post (>= 1.2, < 3)
1724
hashdiff (1.0.0)
25+
json (2.3.0)
1826
method_source (0.9.2)
1927
multipart-post (2.1.1)
2028
pry (0.12.2)
@@ -36,6 +44,17 @@ GEM
3644
rspec-support (~> 3.9.0)
3745
rspec-support (3.9.2)
3846
safe_yaml (1.0.5)
47+
simplecov (0.16.1)
48+
docile (~> 1.1)
49+
json (>= 1.8, < 3)
50+
simplecov-html (~> 0.10.0)
51+
simplecov-html (0.10.2)
52+
sync (0.5.0)
53+
term-ansicolor (1.7.1)
54+
tins (~> 1.0)
55+
thor (1.0.1)
56+
tins (1.24.1)
57+
sync
3958
vcr (5.1.0)
4059
webmock (2.3.2)
4160
addressable (>= 2.3.6)
@@ -47,6 +66,7 @@ PLATFORMS
4766

4867
DEPENDENCIES
4968
bundler (~> 2.0)
69+
coveralls (~> 0.8.15)
5070
faraday
5171
momoapi-ruby!
5272
pry (~> 0.12)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# MTN MoMo API Ruby Gem
22

33
[![Build Status](https://travis-ci.com/sparkplug/momoapi-ruby.svg?branch=master)](https://travis-ci.com/sparkplug/momoapi-ruby)
4-
4+
[![Coverage Status](https://coveralls.io/repos/github/sparkplug/momoapi-ruby/badge.svg?branch=master)](https://coveralls.io/github/sparkplug/momoapi-ruby?branch=master)
5+
[![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/momo-api-developers/)
56

67
## Usage
78

momoapi-ruby.gemspec

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,9 @@ Gem::Specification.new do |spec|
99
spec.version = Momoapi::VERSION
1010
spec.authors = ['Lydia Sanyu Naggayi']
1111
spec.email = ['lydiansanyu@gmail.com']
12-
13-
spec.summary = 'MTN MoMo API gem'
14-
# spec.description = %q{TODO: Write a longer description}
15-
# spec.homepage = "TODO: Put your gem's website or public repo URL here."
16-
# spec.license = "MIT"
17-
18-
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
19-
20-
# spec.metadata["homepage_uri"] = spec.homepage
21-
# spec.metadata["source_code_uri"] = ""
22-
# spec.metadata["changelog_uri"] = ""
12+
spec.summary = 'MTN MoMo gem'
13+
spec.description = 'MTN MoMo API Client for Ruby'
14+
spec.license = 'MIT'
2315

2416
# Specify which files should be added to the gem when it is released.
2517
# The `git ls-files -z` loads the files in the
@@ -33,6 +25,7 @@ Gem::Specification.new do |spec|
3325
spec.require_paths = ['lib']
3426

3527
spec.add_development_dependency 'bundler', '~> 2.0'
28+
spec.add_development_dependency 'coveralls', '~> 0.8.15'
3629
spec.add_development_dependency 'faraday'
3730
spec.add_development_dependency 'pry', '~> 0.12'
3831
spec.add_development_dependency 'rake', '~> 10.0'

spec/cassettes/Momoapi_Collection/collections/checks_is_user_is_active.yml

Lines changed: 83 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/cassettes/Momoapi_Remittance/remittances/gets_balance.yml

Lines changed: 83 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/cassettes/Momoapi_Remittance/remittances/gets_transaction_status.yml

Lines changed: 81 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)