uncruft 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uncruft/deprecation_handler.rb +8 -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: cf5f6e86dc7180c3eea5f96c91634cbd726cdf6e8d8dc85013d3eb5e617f8241
|
4
|
+
data.tar.gz: df6b30e2d0af98b0eaa91dd99f74f9641ab195c36a5adc56f337405880499146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05ac28603da3020435a7188759ed87ec9816438c1f8a6c2f836d350d00b48685d5696e7183932e6f868b097d2113874accb45c74baf6a2f68318929b5d9e4116
|
7
|
+
data.tar.gz: c498d045711fe6c974204362113db71e1459e41fc9b437577a27a4e092a8bae1d5ddcb6300ebd1f810e1b473abf8baea0fa805f82442979f671821e6d06a7fe4
|
@@ -44,6 +44,10 @@ module Uncruft
|
|
44
44
|
message.gsub!(gem_home, '$GEM_PATH')
|
45
45
|
end
|
46
46
|
|
47
|
+
if message.include?(bin_dir)
|
48
|
+
message.gsub!(bin_dir, '$BIN_PATH')
|
49
|
+
end
|
50
|
+
|
47
51
|
if (absolute_path = absolute_path(message)).present?
|
48
52
|
message.gsub!(absolute_path, relative_path(absolute_path))
|
49
53
|
end
|
@@ -81,6 +85,10 @@ module Uncruft
|
|
81
85
|
absolute_path
|
82
86
|
end
|
83
87
|
|
88
|
+
def bin_dir
|
89
|
+
RbConfig::CONFIG['bindir']
|
90
|
+
end
|
91
|
+
|
84
92
|
def error_message(message, line_number)
|
85
93
|
<<~ERROR.strip
|
86
94
|
#{message}:#{line_number}
|
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.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Griffith
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-04-
|
12
|
+
date: 2023-04-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|