pact 1.9.4 → 1.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/pact/doc/markdown/interaction_renderer.rb +5 -1
- data/lib/pact/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83d70d4c8f2810f13d77c442f678a7bd0ecc719a
|
4
|
+
data.tar.gz: b554482ca95cd462a470b1ae1334b440f577a2e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 161439e4191be1fdcfde867f69da0b88ddcb268551e326010c3570368bc0dc3c4bbbd6bea7c0f630756b7e73de89248042b8aaf5156b7d15288743e5d4b2dfb3
|
7
|
+
data.tar.gz: 18031dee24ab37059bd0be06a9ab5ab5fbbc3e33682161b80f4d641bf93031f5f1f69f276c51fafe841089a8a8c1f1fd0381c496722e225977bbf2cbdfc1c0a9
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,9 @@ Do this to generate your change history
|
|
2
2
|
|
3
3
|
git log --pretty=format:' * %h - %s (%an, %ad)' vX.Y.Z..HEAD
|
4
4
|
|
5
|
+
## 1.9.5 (9 Nov 2016)
|
6
|
+
* b794881 - Read template file with script encoding (Taiki Ono, Wed Nov 2 20:18:50 2016 +0900)
|
7
|
+
|
5
8
|
### 1.9.4 (19 Aug 2016)
|
6
9
|
* 93a1c42 - Ensure consumer level teardown gets called when set up is not defined. https://github.com/realestate-com-au/pact/issues/111 (Beth Skurrie, Fri Aug 19 08:56:20 2016 +1000)
|
7
10
|
|
@@ -25,8 +25,12 @@ module Pact
|
|
25
25
|
ERB.new(template_string(template_file)).result(binding)
|
26
26
|
end
|
27
27
|
|
28
|
+
# The template file is written with only ASCII range characters, so we
|
29
|
+
# can read as UTF-8. But rendered strings must have same encoding as
|
30
|
+
# script encoding because it will joined to strings which are produced by
|
31
|
+
# string literal.
|
28
32
|
def template_string(template_file)
|
29
|
-
File.read(
|
33
|
+
File.read(template_contents(template_file), external_encoding: Encoding::UTF_8).force_encoding(__ENCODING__)
|
30
34
|
end
|
31
35
|
|
32
36
|
def template_contents(template_file)
|
data/lib/pact/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Fraser
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2016-08
|
15
|
+
date: 2016-11-08 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: randexp
|