pact_expectations 0.1.0 → 0.2.0

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: 8a1031066985d1224c3f5b3dc5a806cc8cdf833d
4
- data.tar.gz: afe2226aa8917a460ce2de8ad969221e04adb6fb
3
+ metadata.gz: a15010e773b0c66c77a53756ab1c760f6d781a03
4
+ data.tar.gz: 1978b33ff13bdb8f70ebde6774fe48a81e5bf6f2
5
5
  SHA512:
6
- metadata.gz: d0adb91f2d52689abd413122e252ce831667076130349970a5de0d20ab31f93f1cd5207267254a0c80f3a3357377837a97d8373ceaf28f702a5743477f56d83d
7
- data.tar.gz: fa3113fc50a3ed05dc1e2e5b5cd7a063842097381c8b15eb462bfbfc0b07cb67685518f078489e7d32aca390bc53b63997fd1d234ad923c0beeae2166c59829b
6
+ metadata.gz: ac79bbd43a05de5af795b5ec45717a6a3d5399cb8885a95750ac65c15a95244493639485a613633bf12c1dcb3466e29dc7def762139970419548e47e9fafeeda
7
+ data.tar.gz: 17b20e9edec24f63db5cd27cdddbca543a81580b8742ca722d6e719053bb784dcc7bdaad3e048232d656920265d52c5265bfe7a9125d74ce35ee3ae443d1e6f0
data/.travis.yml CHANGED
@@ -1,4 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.1.8
4
+ - 2.2.4
3
5
  - 2.3.0
4
6
  before_install: gem install bundler -v 1.11.2
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/yoshiori/pact_expectations.svg?branch=master)](https://travis-ci.org/yoshiori/pact_expectations)
2
+
1
3
  # PactExpectations
2
4
 
3
5
  Pact response convert to stub.
@@ -60,7 +62,7 @@ describe ItemsController do
60
62
  describe "show" do
61
63
  before do
62
64
  allow(APIClient).to(
63
- receive(:item).with(1).and_return(PactExpectations.reificated_body_for("a request for an item"))
65
+ receive(:item).with(1).and_return(PactExpectations.reified_body_for("a request for an item"))
64
66
  )
65
67
  end
66
68
  it do
@@ -83,7 +85,7 @@ end
83
85
 
84
86
  ## Development
85
87
 
86
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
88
+ After checking out the repo, run `bundle install` to install dependencies. Then, run `rake spec` to run the tests.
87
89
 
88
90
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
89
91
 
@@ -1,3 +1,3 @@
1
1
  class PactExpectations
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -15,7 +15,7 @@ class PactExpectations
15
15
  expectations[key]
16
16
  end
17
17
 
18
- def reificated_body_for(key)
18
+ def reified_body_for(key)
19
19
  raise NotFound unless expectations.include?(key)
20
20
  reificated_call << key
21
21
  Pact::Reification.from_term(expectations[key])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact_expectations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshiori SHOJI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-31 00:00:00.000000000 Z
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pact-support