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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e63a95750643a33d5527ac3e899ca7f27fcd35c3
4
- data.tar.gz: 5803d23937407d5d56fc76404b15ed480bc84f24
3
+ metadata.gz: 83d70d4c8f2810f13d77c442f678a7bd0ecc719a
4
+ data.tar.gz: b554482ca95cd462a470b1ae1334b440f577a2e6
5
5
  SHA512:
6
- metadata.gz: 8cab9699f290389f78317209bdd44da8a1311a10924f2c9d0c2e910c4db3c2c6be62c11da91cc2dcf2bc9683b95dd4b6d9d115a8df4835e4b1b8e95e8e8f5e33
7
- data.tar.gz: ed720e69d17f08440ae5f86bcc6b068e30b2d2d0584a25a164e981e96d6c03c0f41cebd477b061c8e41245f157b1ffb751b2a02b4b7c6758f499a0d02cc4cebc
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( template_contents(template_file) )
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
@@ -1,3 +1,3 @@
1
1
  module Pact
2
- VERSION = "1.9.4"
2
+ VERSION = "1.9.5"
3
3
  end
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
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-18 00:00:00.000000000 Z
15
+ date: 2016-11-08 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: randexp