coaster 1.4.26 → 1.4.27
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/coaster/core_ext/require_more.rb +1 -1
- data/lib/coaster/core_ext/require_more_reload.rb +24 -0
- data/lib/coaster/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 699b48f34e6fe0f6e074df56c65e5cd18d5ca595cfe596ba7ff492831bb190ae
|
4
|
+
data.tar.gz: 861070c41dbce9001c50643d524865c2649096b5c055a92622deb5bef0e9829e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c347b8f321edd084f688773876ffdd4c0eca9f2b5cd9e9ab9d8d8121bafb7a81a5ce794d4c8fb4b157306072064d388c7bac6e1d811537164488e182ed5030a
|
7
|
+
data.tar.gz: c5a7550f1c3f34dd257e83e4a546006896eac6d9890cb92250b25dc6b07451b86b54bca4e279493391406323a587db093e6c37f96a23af9e910ccd1e0cb1243d
|
@@ -0,0 +1,24 @@
|
|
1
|
+
def require_more
|
2
|
+
required_file_path = caller[0].split(':', 2).first
|
3
|
+
load_name = nil
|
4
|
+
load_path_index = $LOAD_PATH.each_with_index do |load_path, ix|
|
5
|
+
scanned = required_file_path.scan(/(#{load_path})#{File::SEPARATOR}(.*)/).first
|
6
|
+
next false unless scanned
|
7
|
+
load_name = scanned[1]
|
8
|
+
break ix
|
9
|
+
end
|
10
|
+
|
11
|
+
return false unless load_path_index
|
12
|
+
|
13
|
+
more_load_paths = $LOAD_PATH.drop(load_path_index + 1)
|
14
|
+
more_load_paths.each do |load_path|
|
15
|
+
path = File.join(load_path, load_name)
|
16
|
+
if File.exist?(path)
|
17
|
+
loaded = require(path)
|
18
|
+
loaded = load(path) unless loaded
|
19
|
+
return loaded
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
raise LoadError, "cannot require more -- #{load_name}"
|
24
|
+
end
|
data/lib/coaster/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coaster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- buzz jung
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|
@@ -197,6 +197,7 @@ files:
|
|
197
197
|
- lib/coaster/core_ext/month.rb
|
198
198
|
- lib/coaster/core_ext/object_translation.rb
|
199
199
|
- lib/coaster/core_ext/require_more.rb
|
200
|
+
- lib/coaster/core_ext/require_more_reload.rb
|
200
201
|
- lib/coaster/core_ext/standard_error.rb
|
201
202
|
- lib/coaster/core_ext/standard_error/raven.rb
|
202
203
|
- lib/coaster/core_ext/standard_error/sentry.rb
|