file_spec 0.1.2 → 0.1.3

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: ef49123a80e21b7b0f217058af1996c8d5c0ce24
4
- data.tar.gz: cf886acb7de49edfd2176aef4906e4b05a4b630d
3
+ metadata.gz: 2e100971b1094c325dddcd09979734611ec5076e
4
+ data.tar.gz: 3a89d6e4e909214e7ce741f95848ef27c4359837
5
5
  SHA512:
6
- metadata.gz: '0639b146a0026ec90919c925a15d6672432d81441b4df093511e28f703fd0a27cd609d1f1bbd35f66d7f1be664aea1c6010fc4c0820c8083b13c9ca6814a7fc8'
7
- data.tar.gz: 2297098c23a8f954f5ca81a307315bc623ddfc1bec11dbade9651154a84c8e6d4ef13779a0014eccaf025bbb4a4c7b072a16d78896919c7b92db167e929ae82f
6
+ metadata.gz: 9d2beb540bfe63e2f5ff5ef759e4108e9f00cd6f38228e57cc9f90806b66d14a8c169773ef355845c472fe6a54b8043b4b1b7a0c75283d50312d5d665cc7e010
7
+ data.tar.gz: f1d44fe56826526caf40c3929734d237488fd953492785398e4c10e305cacbebb7ccf0e207cac14ce7fe3f5a45ef162647350e6c851c6325361fa4e5f2b55d92
@@ -84,8 +84,8 @@ module FileSpec
84
84
  # @param opts [Hash] additional options passed to {#diff}
85
85
  def record_changes(path, **opts)
86
86
  tmp_path = Dir.mktmpdir("file_spec")
87
- before_path = File.join(tmp_path, "before")
88
- after_path = File.join(tmp_path, "after")
87
+ before_path = File.join(tmp_path, "a")
88
+ after_path = File.join(tmp_path, "b")
89
89
 
90
90
  if File.file?(path)
91
91
  mkdir before_path
@@ -96,7 +96,7 @@ module FileSpec
96
96
  yield
97
97
  FileUtils.cp_r(path, after_path)
98
98
 
99
- diff("before", "after", chdir: tmp_path, **opts)
99
+ diff("a", "b", chdir: tmp_path, **opts)
100
100
  ensure
101
101
  FileUtils.rm_rf(tmp_path)
102
102
  end
@@ -1,3 +1,3 @@
1
1
  module FileSpec
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file_spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ray Zane