brief 1.16.0 → 1.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/brief/util.rb +4 -5
- data/lib/brief/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76c61dacce82a9ea1329bb888dc2723a3e7f85bd
|
4
|
+
data.tar.gz: bb1341e68317e98be5cc81c39a704795d2c2e81a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c79fb12cff4ab1a73739db0656249db3dc1f488db650aad492d6a068c82dfbd0d25fa170a0ac034d078616dc47276d39ecb84124b7473853ddf62687d328a27b
|
7
|
+
data.tar.gz: 55546bb2df599a18f52164a4e74eab24c58cb8bb028b884b80ed73280cfe98a3dbceba30a62638140607c7334e6da914ce8ff36f0c5143ffe5c070dd00cb9d8b
|
data/Gemfile.lock
CHANGED
data/lib/brief/util.rb
CHANGED
@@ -31,18 +31,17 @@ module Brief::Util
|
|
31
31
|
c.description = "run the #{identifier} command"
|
32
32
|
|
33
33
|
c.action do |args, _opts|
|
34
|
-
briefcase = Brief.case
|
34
|
+
briefcase = $briefcase || Brief.case
|
35
35
|
|
36
36
|
path_args = args.select { |arg| arg.is_a?(String) && arg.match(/\.md$/) }
|
37
37
|
|
38
38
|
path_args.select! do |arg|
|
39
|
-
|
40
|
-
path.exist?
|
39
|
+
briefcase.root.join(arg).exist?
|
41
40
|
end
|
42
41
|
|
43
|
-
path_args.map! { |p| briefcase.
|
42
|
+
path_args.map! { |p| briefcase.root.join(p) }
|
44
43
|
|
45
|
-
models =
|
44
|
+
models = briefcase.documents_at(*path_args).map(&:to_model)
|
46
45
|
|
47
46
|
if models.empty?
|
48
47
|
model_finder = c.name.to_s.split(' ').last
|
data/lib/brief/version.rb
CHANGED