approvals 0.0.21 → 0.0.22

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: 83fdc1b67aa0b4262df63630332d038a42c04de8
4
- data.tar.gz: ade116ca8534915b28e6d052a3f8d215c915cdb3
3
+ metadata.gz: 6f444a0aa1c3b1b8adeade0729913ffd0bc77af0
4
+ data.tar.gz: fcb304998044a0f34fdcf339d3bac514e6175529
5
5
  SHA512:
6
- metadata.gz: c76a9cf43067226a8a74178c4b5b762d9c6132ac781b4680324023e9a35c39c2383c6fc7a8b9341fd144704b718ef1282c00ff2addf673699a3f1d31d299a5d9
7
- data.tar.gz: 23b5b8ce78c15b97a4665eb6daaaca00eccba0ae5e9841743d5bf9483ce5bad5d017e8e76a95bf376414929a4dad60832990fe22baa6975c171df5d065ba718a
6
+ metadata.gz: 0425fc7fab8349a9d762e8f134feebeba3d49c632f2bc3e4dc09df1b35041526acf86a6eda2f98b44b6443c968c2e32778741d984e73632124195f98c666f1ee
7
+ data.tar.gz: 503eef74aa5ed03cf9591ca43dc771bfc5fde4c5fb2d57bd1823ea7dfab4cbcbd95bebeba4cd1cb448b8fea32bf8bc4909b206fa1934b7eab2c8906170729dfd
@@ -2,9 +2,17 @@
2
2
 
3
3
  ### Next Release
4
4
 
5
- * [#64](https://github.com/kytrinyx/approvals/pull/64) Silence deprecation warnings - [@tmock12](https://github.com/tmock12)
6
5
  * Your contribution here
7
6
 
7
+ ### v0.0.22 (2015-10-22)
8
+
9
+ * Fix bug in non-binary comparisons.
10
+
11
+ ### v0.0.21 (2015-10-12)
12
+
13
+ * [#64](https://github.com/kytrinyx/approvals/pull/64) Silence deprecation warnings - [@tmock12](https://github.com/tmock12)
14
+ * Fixed typos and replaced a deprecated standard library method call.
15
+
8
16
  ### v0.0.20 (2015-04-21)
9
17
 
10
18
  * [#63](https://github.com/kytrinyx/approvals/issues/62) Make CLI --ask compatible with new or old .approval file. - [@kytrinyx](https://github.com/kytrinyx)
@@ -66,7 +66,7 @@ module Approvals
66
66
  if BINARY_FORMATS.include?(@format) # Read without ERB
67
67
  IO.read(received_path).chomp == IO.read(approved_path).chomp
68
68
  else
69
- IO.read(received_path).chomp == ERB.new(IO.read(approved_path).chomp).result
69
+ ERB.new(IO.read(received_path).chomp).result == ERB.new(IO.read(approved_path).chomp).result
70
70
  end
71
71
  end
72
72
 
@@ -1,3 +1,3 @@
1
1
  module Approvals
2
- VERSION = '0.0.21'
2
+ VERSION = '0.0.22'
3
3
  end
@@ -108,6 +108,13 @@ describe Approvals do
108
108
  Approvals.verify string, :namer => namer
109
109
  end
110
110
 
111
+ # Bugfix: If only the approved file gets passed through ERB,
112
+ # then <% (received) is not equal to <% (approved).
113
+ it "passes the received files through ERB" do
114
+ string = "<%"
115
+ Approvals.verify string, :namer => namer
116
+ end
117
+
111
118
  describe "supports excluded keys option" do
112
119
  let(:hash) { {:object => {:id => rand(100), :created_at => Time.now, :name => 'test', deleted_at: nil}} }
113
120
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: approvals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Owen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-13 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -128,6 +128,7 @@ files:
128
128
  - spec/extensions/rspec_approvals_spec.rb
129
129
  - spec/filter_spec.rb
130
130
  - spec/fixtures/approvals/approvals_passes_approved_files_through_erb.approved.txt
131
+ - spec/fixtures/approvals/approvals_passes_the_received_files_through_erb.approved.txt
131
132
  - spec/fixtures/approvals/approvals_supports_excluded_keys_option_also_supports_an_array_of_hashes.approved.json
132
133
  - spec/fixtures/approvals/approvals_supports_excluded_keys_option_supports_the_array_writer.approved.txt
133
134
  - spec/fixtures/approvals/approvals_supports_excluded_keys_option_supports_the_hash_writer.approved.txt