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

Code climate #32

Merged
merged 12 commits into from
Apr 18, 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
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
.yardoc
doc
token_master-*.gem
Gemfile.lock
coverage
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
language: ruby

addons:
code_climate:
repo_token: 455155dab5ce38bdda48bd7f4a94dd1e460889794046165191e5cf0a680e1999

after_success:
- bundle exec codeclimate-test-reporter
1 change: 0 additions & 1 deletion .yardopts

This file was deleted.

5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
source 'https://rubygems.org'

group :test do
gem 'simplecov'
gem 'codeclimate-test-reporter', '~> 1.0.0'
end

gemspec
23 changes: 0 additions & 23 deletions Gemfile.lock

This file was deleted.

9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
[![GitHub](http://img.shields.io/badge/github-launchpadlab/token_master-blue.svg)](http://github.com/launchpadlab/token_master)
[![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/token_master)

[![Gem Version](https://badge.fury.io/rb/token_master.svg)](https://badge.fury.io/rb/token_master)
[![Build Status](https://travis-ci.org/LaunchPadLab/token-master.svg?branch=master)](https://travis-ci.org/LaunchPadLab/token-master)
[![Test Coverage](https://codeclimate.com/github/LaunchPadLab/token-master/badges/coverage.svg)](https://codeclimate.com/github/LaunchPadLab/token-master/coverage)
[![License](http://img.shields.io/badge/license-MIT-yellowgreen.svg)](#license)

# token-master
User management logic using tokens
Expand Down Expand Up @@ -68,3 +74,6 @@ config.add_tokenable_options :confirm, TokenMaster::Config::DEFAULT_VALUES
config.add_tokenable_options :reset, token_lifetime: 1, required_params: [:password, :password_confirmation], token_length: 15
```

## Api Documentation
[Rdoc](http://www.rubydoc.info/gems/token_master)
5 changes: 0 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
require 'rake/testtask'
require 'yard'

Rake::TestTask.new do |t|
t.libs << 'test'
end

YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb']
end

desc 'Run tests'
task default: :test
2 changes: 2 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require 'simplecov'
SimpleCov.start
5 changes: 2 additions & 3 deletions token_master.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Gem::Specification.new do |s|
.split("\x0")
.reject { |f| f.match(%r{^(test|spec|features)/}) }

s.add_development_dependency 'rake', '~> 10.4.2'
s.add_development_dependency 'minitest', '~> 5.10.1'
s.add_development_dependency 'yard'
s.add_development_dependency 'rake', '~> 10.4', '>= 10.4.2'
s.add_development_dependency 'minitest', '~> 5.10', '>= 5.10.1'
end