dry-system 0.18.0 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/dry/system/booter.rb +16 -15
- data/lib/dry/system/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: 7634be14c7b544e14f693cd158cd4cdf072e89ea5c947fafec45a0b31e58eb18
|
4
|
+
data.tar.gz: 34a55fe75bbae237be83dbcf534c0c13947a66788b146ee2ec12a387d3976e38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1802eb1c676eb114126b37fd1ac9607a446317e209de17c62018f6a61bd9dd6770093e673671685c6a8d665ec53c7d7897141c3a7896c4d64ee3f5161c47bc30
|
7
|
+
data.tar.gz: '08fd659802b48151cf10598eb45fcb6555b8f9fa8b55340e6e9f393469608b965ecdefae143e79a880c394bcbede49b719f71f9bf6b96726af73921020121a35'
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## 0.18.1 2020-08-26
|
2
|
+
|
3
|
+
|
4
|
+
### Fixed
|
5
|
+
|
6
|
+
- Made `Booter#boot_files` a public method again, since it was required by dry-rails (@timriley)
|
7
|
+
|
8
|
+
|
9
|
+
[Compare v0.18.0...v0.18.1](https://github.com/dry-rb/dry-system/compare/v0.18.0...v0.18.1)
|
10
|
+
|
1
11
|
## 0.18.0 2020-08-24
|
2
12
|
|
3
13
|
|
data/lib/dry/system/booter.rb
CHANGED
@@ -120,6 +120,22 @@ module Dry
|
|
120
120
|
start(boot_file.basename(".*").to_s.to_sym) if boot_file
|
121
121
|
end
|
122
122
|
|
123
|
+
# @api private
|
124
|
+
def boot_files
|
125
|
+
@boot_files ||= paths.each_with_object([[], []]) { |path, (boot_files, loaded)|
|
126
|
+
files = Dir["#{path}/#{RB_GLOB}"].sort
|
127
|
+
|
128
|
+
files.each do |file|
|
129
|
+
basename = File.basename(file)
|
130
|
+
|
131
|
+
unless loaded.include?(basename)
|
132
|
+
boot_files << Pathname(file)
|
133
|
+
loaded << basename
|
134
|
+
end
|
135
|
+
end
|
136
|
+
}.first
|
137
|
+
end
|
138
|
+
|
123
139
|
private
|
124
140
|
|
125
141
|
def with_component(id_or_component)
|
@@ -160,21 +176,6 @@ module Dry
|
|
160
176
|
def find_boot_file(name)
|
161
177
|
boot_files.detect { |file| File.basename(file, RB_EXT) == name.to_s }
|
162
178
|
end
|
163
|
-
|
164
|
-
def boot_files
|
165
|
-
@boot_files ||= paths.each_with_object([[], []]) { |path, (boot_files, loaded)|
|
166
|
-
files = Dir["#{path}/#{RB_GLOB}"].sort
|
167
|
-
|
168
|
-
files.each do |file|
|
169
|
-
basename = File.basename(file)
|
170
|
-
|
171
|
-
unless loaded.include?(basename)
|
172
|
-
boot_files << Pathname(file)
|
173
|
-
loaded << basename
|
174
|
-
end
|
175
|
-
end
|
176
|
-
}.first
|
177
|
-
end
|
178
179
|
end
|
179
180
|
end
|
180
181
|
end
|
data/lib/dry/system/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-system
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|