capybara-differ 0.2.0 → 0.2.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: 3363d33f6de4c4f04aee3dc0ea0a689fe7647941
4
- data.tar.gz: bcbf1a505d64b4fd991678c2f3c54a0948f5af55
3
+ metadata.gz: 5032f08cccd0af7ac9983fa879006022b3dd437b
4
+ data.tar.gz: 4247af1cab8cd52f6d246f0a8bd12e0c76037d82
5
5
  SHA512:
6
- metadata.gz: 289633f65814632a6eb84ceba7598f7ea0b4965df65271d0f6be141a4b239f2a788a7be39bc00b72c2e88e3ee22f442073bda1f49bbf32d265a4c13dc6254819
7
- data.tar.gz: e603cf24ae43d0e85dc45b6e23439c48d81c17fc000a372008d3ceb63f24cb15c2b0dbff492ced8342cc311bbf242e18ea5fc3ff03a32fd0beb00a6e43282647
6
+ metadata.gz: 5848350418a76332671b1490a2c3b78899f32d787cb23e2aeaae93211775edab9208fe9703332237034ef8b6f06db35370cba651bcc0ea0f57eaab69502e5446
7
+ data.tar.gz: 1281fc95c562a0a733257954b91139a24db4733c0453e95d1dd8ac49052c05227b42b8796ebf761bdce58e62e4e4b796b56b5f62583db44e8efd548d1774cd43
@@ -28,7 +28,7 @@ module Capybara
28
28
  diff.to_s(diffy_options.fetch(:format, :color))
29
29
  else
30
30
  cmd = "git diff --no-index --color-words --word-diff-regex='\w+|[^[:space:]=\"<>]+' #{old_beautified_html_path} #{new_beautified_html_path}"
31
- diff = Open3.popen3(cmd) { |i, o, e| o.read }
31
+ Open3.popen3(cmd) { |i, o, e| o.read }
32
32
  end
33
33
  end
34
34
 
@@ -77,7 +77,7 @@ module Capybara
77
77
  save_page(filename)
78
78
 
79
79
  base_dir = File.join([Capybara.save_path, path_from_name].compact)
80
- file_list = Dir[File.join(base_dir, '*.html')]
80
+ file_list = Dir[File.join(base_dir, '*.html')].sort
81
81
  old_html_path = options[:compare_with] == :previous ? file_list[-2] : file_list.first
82
82
  new_html_path = file_list.last
83
83
 
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Differ
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-differ
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuho Yamaguchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-25 00:00:00.000000000 Z
11
+ date: 2018-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara