coach 0.0.0 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b238b46a6cc3ceb9bd972eb675ab185e9782314
4
- data.tar.gz: 65d9e3c36df29228fa740e1b745a4888b6e7942c
3
+ metadata.gz: 7f42e3b216dab972dae609ca9a707cfb28e27d57
4
+ data.tar.gz: d100939826d16e29f76160f0d8b2d6cefc8d922d
5
5
  SHA512:
6
- metadata.gz: 68a7271f6e510864ed92949c9b4e9d6edb1ed0212138792717d0ed357c0afd2ff95b35ab42a3915e69cc3b37d9653cba9d9c1bdd3d8c9202473dab482abb35be
7
- data.tar.gz: e4ec8fac9cbcbccd75cef7162604f7b521be4a9b902fe41c5625fb47717aff18a55bbc3c9fe28d37eedd94dcf74bd023edf92f52fd1badcab9182fc8bf846c23
6
+ metadata.gz: e82f573ddc32bbc0e6ef31618374393c96fbbe6558a6a5917813d9bcefe6df371980da54e3735f392a93bc20fa41f4d1ae31f4f27b7badedd46d123303a21c3d
7
+ data.tar.gz: 0c42e5e5daab6f1e274c1474d97823d64d671a96dfc8c8e628b6192523dc0f2cf07c47059a8a0c6f34e3f43bef462368f41db1a18fcfe5430f570eacdc48b6a5
@@ -0,0 +1 @@
1
+ *.gem
@@ -0,0 +1,14 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.2
5
+ - 2.1
6
+ - 2.0.0
7
+
8
+ sudo: false
9
+
10
+ services: mongodb
11
+
12
+ script:
13
+ - bundle exec rubocop
14
+ - bundle exec rspec
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Coach
2
- For when Rails has you jumping on the tracks...
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/coach.svg)](http://badge.fury.io/rb/coach)
4
+ [![Build Status](https://travis-ci.org/gocardless/coach.png?branch=master)](https://travis-ci.org/gocardless/coach)
5
+ [![Code Climate](https://codeclimate.com/github/gocardless/coach.png)](https://codeclimate.com/github/gocardless/coach)
3
6
 
4
7
  Coach improves your controller code by encouraging...
5
8
 
@@ -13,4 +13,7 @@ require_relative 'coach/router'
13
13
  require_relative 'coach/version'
14
14
 
15
15
  module Coach
16
+ def self.require_matchers!
17
+ require_relative 'spec/matchers'
18
+ end
16
19
  end
@@ -1,3 +1,3 @@
1
1
  module Coach
2
- VERSION = '0.0.0'
2
+ VERSION = '0.0.1'
3
3
  end
@@ -1,5 +1,5 @@
1
- require "spec_helper"
2
- require "coach/middleware"
1
+ require 'rspec'
2
+ require 'coach/middleware'
3
3
 
4
4
  # Middleware stubbing ######################################
5
5
 
@@ -1,7 +1,8 @@
1
1
  require 'rspec/its'
2
2
  require 'pry'
3
3
  require_relative '../lib/coach'
4
- require_relative '../lib/spec/coach_helper'
4
+
5
+ Coach.require_matchers!
5
6
 
6
7
  RSpec.configure do |config|
7
8
  config.expect_with :rspec do |expectations|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coach
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
@@ -101,8 +101,10 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".gitignore"
104
105
  - ".rspec"
105
106
  - ".rubocop.yml"
107
+ - ".travis.yml"
106
108
  - Gemfile
107
109
  - Gemfile.lock
108
110
  - README.md
@@ -118,7 +120,7 @@ files:
118
120
  - lib/coach/request_serializer.rb
119
121
  - lib/coach/router.rb
120
122
  - lib/coach/version.rb
121
- - lib/spec/coach_helper.rb
123
+ - lib/spec/matchers.rb
122
124
  - spec/lib/coach/handler_spec.rb
123
125
  - spec/lib/coach/middleware_spec.rb
124
126
  - spec/lib/coach/middleware_validator_spec.rb