safe_monkey_patching 0.0.3 → 0.0.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/safe_monkey_patching.rb +3 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4a3336fc1da84f401d73ae885fc745c522bececa36fd6a0a7f0dfb689b33440
4
- data.tar.gz: d7c81740653d36ca6d5beb3020fe09413b4a666dc11641c10788a4455b39613b
3
+ metadata.gz: a7a27b544541b1a019556b6e4835a4fa499957fde547835dec37587fe6123c0e
4
+ data.tar.gz: 7088de066fbdeccc9140c5b6321f7675fe96865ccd2c1f4b78be36f92edf5caa
5
5
  SHA512:
6
- metadata.gz: d11cf7ef416f9da99151eb68ec3a74a2fbdca2d22f52673edfc9c33676732ceb813c0c81d96d13cb599d080b3e68477b9acf7ab81bc159e83b46ec7c677217ec
7
- data.tar.gz: a6c5f033ea691de80411152de82273b2d48bd7429ed617fd3702d0b235c1ccd3585d0a67cca5d9946d84eba48b47c521067f04ee45517b93f55d1a9ab5f2e3e3
6
+ metadata.gz: 1d033085a48e5314ed0e307bea9b183f4b7eabfc523cc0d4161a0e2072e2df3322ab06785df40c77b385d24af42fa91015c80ccb3ea6303c3582b91a27de107d
7
+ data.tar.gz: e1265bcabb0b17762463320bb989c7ee91f66a353ce96f2a1f2fc176be3187512a9b3d7d9eb10b5f7f04da7134f5077b6481750269547a9601b429f7a33640af
@@ -63,6 +63,9 @@ at_exit do
63
63
  old_patches = SafeMonkeyPatching::Behavior.load_store(File.join(gem_path, "monkey_patches-old.yml").sort.to_h).to_yaml
64
64
  new_patches = SafeMonkeyPatching::Behavior.load_store(File.join(gem_path, "monkey_patches-new.yml").sort.to_h).to_yaml
65
65
 
66
+ File.write(File.join(gem_path, "monkey_patches-old.yml"), old_patches)
67
+ File.write(File.join(gem_path, "monkey_patches-new.yml"), new_patches)
68
+
66
69
  FileUtils.mv(File.join(gem_path, "monkey_patches-new.yml"),
67
70
  File.join(gem_path, "monkey_patches-old.yml"))
68
71
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safe_monkey_patching
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrzej Bisewski
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- description: Safe monaky patching
27
+ description: Safe monkey patching
28
28
  email: andrzej@bisewski.dev
29
29
  executables: []
30
30
  extensions: []