safe_monkey_patching 0.0.4 → 0.0.5

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 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7a27b544541b1a019556b6e4835a4fa499957fde547835dec37587fe6123c0e
4
- data.tar.gz: 7088de066fbdeccc9140c5b6321f7675fe96865ccd2c1f4b78be36f92edf5caa
3
+ metadata.gz: cb049b9fe1a86ac335d025d222022636d7ecb8e4ef6cc7c25a86c58968090d2a
4
+ data.tar.gz: e9f903c2226c3a2750666d2f5dc63afd55d8ea8081a82082b439c3bd51cfbae3
5
5
  SHA512:
6
- metadata.gz: 1d033085a48e5314ed0e307bea9b183f4b7eabfc523cc0d4161a0e2072e2df3322ab06785df40c77b385d24af42fa91015c80ccb3ea6303c3582b91a27de107d
7
- data.tar.gz: e1265bcabb0b17762463320bb989c7ee91f66a353ce96f2a1f2fc176be3187512a9b3d7d9eb10b5f7f04da7134f5077b6481750269547a9601b429f7a33640af
6
+ metadata.gz: bb8e560c538bd800ede19b5ae9f8bc2919ccd48868facd6f562cd326a80b7a409e82d957f53bc8e6ccbb4ed62d253eea041f10f103afe1d084028531e0e4c138
7
+ data.tar.gz: 753c0171e3fed5a0246ca5286d62ad59efb76a08844c31c489affbe27b86869f3b563537097e623f80e25177d29cec1a69c94ab8d69d39e2eb736895d30ac32a
@@ -60,8 +60,8 @@ end
60
60
  at_exit do
61
61
  break unless Rails.env.test?
62
62
  SafeMonkeyPatching::Behavior.gems_with_patches.each do |gem_path|
63
- old_patches = SafeMonkeyPatching::Behavior.load_store(File.join(gem_path, "monkey_patches-old.yml").sort.to_h).to_yaml
64
- new_patches = SafeMonkeyPatching::Behavior.load_store(File.join(gem_path, "monkey_patches-new.yml").sort.to_h).to_yaml
63
+ old_patches = SafeMonkeyPatching::Behavior.load_store(File.join(gem_path, "monkey_patches-old.yml")).sort.to_h.to_yaml
64
+ new_patches = SafeMonkeyPatching::Behavior.load_store(File.join(gem_path, "monkey_patches-new.yml")).sort.to_h.to_yaml
65
65
 
66
66
  File.write(File.join(gem_path, "monkey_patches-old.yml"), old_patches)
67
67
  File.write(File.join(gem_path, "monkey_patches-new.yml"), new_patches)
@@ -72,7 +72,7 @@ at_exit do
72
72
  diff = Diffy::Diff.new(old_patches, new_patches)
73
73
 
74
74
  if diff.to_s.size.positive?
75
- $stderr.puts 'Wrong monkeypatches!'.red.bold
75
+ $stderr.puts "Wrong monkeypatches! \n But if they are correct, then just commit 'monkey_patches-old.yml'".red.bold
76
76
  $stderr.puts gem_path
77
77
  $stderr.puts diff.to_s(:color)
78
78
 
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrzej Bisewski