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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2cab324dae5f8b3fc23c4f99785900af558ab66cee8a908222b3e7793482a35
4
- data.tar.gz: 65ce169801afae62f4bd2b005b0ec901416c7f1372c2c5ca48a8ca3a9e9b79b0
3
+ metadata.gz: cf5f6e86dc7180c3eea5f96c91634cbd726cdf6e8d8dc85013d3eb5e617f8241
4
+ data.tar.gz: df6b30e2d0af98b0eaa91dd99f74f9641ab195c36a5adc56f337405880499146
5
5
  SHA512:
6
- metadata.gz: 4d8f03d9ae4074f0097facfa7f20895ef17ec72082ba4f2a2fa49ddc8dfef688a7574f2fab60d134a42e60fa0ef841ce9201a9226da3e0dc9bd239737d260a88
7
- data.tar.gz: 6f5857f50049b5016bb96d3e106de7c5a54818625c7922de2cb2b1971b857118af64bdf19a414694862b77d22b5a015c7f908ecc683899c8df5a4dc743ce14de
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}
@@ -1,3 +1,3 @@
1
1
  module Uncruft
2
- VERSION = '0.3.1'.freeze
2
+ VERSION = '0.3.2'.freeze
3
3
  end
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.1
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-26 00:00:00.000000000 Z
12
+ date: 2023-04-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties