uncruft 0.8.0 → 1.0.0
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/lib/uncruft/deprecation_handler.rb +6 -0
- data/lib/uncruft/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c608624f22e89cb234de45de1a3247c70f0282b22725a6d214bc4c9dd8582dd
|
4
|
+
data.tar.gz: 9597fc8b80850971a68b64791e331cd10ae1c74362de9a6c7e4fa646886c4fb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e954a2ef6610cbefaa31d9eca450bc77797b67b4ea7e976165e75911f1a496a60ac0d1207b6ca78979ec3dbc5d210d4b8f7f6165413ff32be5364f4e63418184
|
7
|
+
data.tar.gz: 703afa875346fd2b792886808920b00300ad38258738bcacf451a046edf22e441017d9d88c6ab055e1905b8ad6c2d006b6320852bd5520a0ce687774eb7a231b
|
@@ -42,6 +42,7 @@ module Uncruft
|
|
42
42
|
def normalize_callstack_path(message)
|
43
43
|
if (gem_path = gem_path(message)).present?
|
44
44
|
message.gsub!(gem_path, '$GEM_PATH')
|
45
|
+
remove_gem_version_number(message)
|
45
46
|
end
|
46
47
|
|
47
48
|
if message.include?(bin_dir)
|
@@ -50,9 +51,14 @@ module Uncruft
|
|
50
51
|
|
51
52
|
if (absolute_path = absolute_path(message)).present?
|
52
53
|
message.gsub!(absolute_path, relative_path(absolute_path))
|
54
|
+
remove_gem_version_number(message)
|
53
55
|
end
|
54
56
|
end
|
55
57
|
|
58
|
+
def remove_gem_version_number(message)
|
59
|
+
message.sub(%r{(\$GEM_PATH/[^/]+)-[^/]+(/.*)}, '\1-$VERSION\2')
|
60
|
+
end
|
61
|
+
|
56
62
|
def normalize_caller(message)
|
57
63
|
normalize_require_callers(remove_view_callers(message))
|
58
64
|
end
|
data/lib/uncruft/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uncruft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Griffith
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
requirements: []
|
63
|
-
rubygems_version: 3.
|
63
|
+
rubygems_version: 3.7.2
|
64
64
|
specification_version: 4
|
65
65
|
summary: A library to assist with Rails upgrades
|
66
66
|
test_files: []
|