safe_monkey_patching 0.0.5 → 0.0.6
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 +4 -4
- data/README.md +6 -2
- data/lib/safe_monkey_patching.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00c21a6a5b63547a982f0b7b3a1cf8d3577d57cb5b1b6fa7f362538a20205685
|
|
4
|
+
data.tar.gz: 737ea1354ef21c729cfb63e378ec1e62d6513435b687d8fee28efd0bd318b7f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41e55bda84bae816d39b95d72b25790d4629bd224b703e805cab00a8faf1dd9920726a12f64d2394f3728c72cea970ea3c851eb1b2088a71fd4db663f45e46af
|
|
7
|
+
data.tar.gz: 6794e113e2e0047188571aeedf6bfb6be59dbde50971abad686cb3930207dac9ca46e15c7eef8b9ad69bf0f1b13c6a293e149b2b27b251e0d2a6b1acd15bc77d
|
data/README.md
CHANGED
|
@@ -27,7 +27,7 @@ a więc, gdy podbijemy railsy i zmieni się kod źródłowy, to `gif diff` nam o
|
|
|
27
27
|
|
|
28
28
|
```diff
|
|
29
29
|
|
|
30
|
-
diff --git a/
|
|
30
|
+
diff --git a/monkey_patches-old.yml b/monkey_patches-old.yml
|
|
31
31
|
|
|
32
32
|
ActiveJob::Core::ClassMethods:
|
|
33
33
|
deserialize:
|
|
@@ -35,5 +35,9 @@ diff --git a/monkey_patchs.yml b/monkey_patchs.yml
|
|
|
35
35
|
+ sha1: 131d3acf24768b30a3ccb1052591b1cdb603f0cd
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
Również pojawi się plik `WRONG_MONKEY_PATCHES.txt`, który pokazuje niekompatybilności z gemów.
|
|
39
|
+
|
|
40
|
+
Dzięki temu będziemy wiedzieli do jakich metod trzeba będzie zajrzeć 🥳
|
|
41
|
+
|
|
42
|
+
Aby zaktualizować monkey_patche, to trzeba po prostu zcomitować ten plik `monkey_patches-old.yml` i będzie git.
|
|
39
43
|
|
data/lib/safe_monkey_patching.rb
CHANGED
|
@@ -58,7 +58,6 @@ class Object
|
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
at_exit do
|
|
61
|
-
break unless Rails.env.test?
|
|
62
61
|
SafeMonkeyPatching::Behavior.gems_with_patches.each do |gem_path|
|
|
63
62
|
old_patches = SafeMonkeyPatching::Behavior.load_store(File.join(gem_path, "monkey_patches-old.yml")).sort.to_h.to_yaml
|
|
64
63
|
new_patches = SafeMonkeyPatching::Behavior.load_store(File.join(gem_path, "monkey_patches-new.yml")).sort.to_h.to_yaml
|