brief 1.16.0 → 1.16.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7fcfea1eb4c9d9e8a2c5abf7a93d364383689aff
4
- data.tar.gz: 9d40306b3b31377506b14e9d0683ccfb4327bcbe
3
+ metadata.gz: 76c61dacce82a9ea1329bb888dc2723a3e7f85bd
4
+ data.tar.gz: bb1341e68317e98be5cc81c39a704795d2c2e81a
5
5
  SHA512:
6
- metadata.gz: 29463da5235c8f6cda7d54b2c63b2142e485fa27dc54c8a4ff0bbf6a09cfd267841529e56c18448f013bce30d22fd4e0bcff888fe4a3d068ce9255c59524a642
7
- data.tar.gz: 64d75d14b043ce46eefc382dca9e5ce85b67659781b9eb0b36273e7d69e88a473b79b744b5437336b8ee753a222a8f7f9b5817852953988fb5ae43da1c5ce5be
6
+ metadata.gz: c79fb12cff4ab1a73739db0656249db3dc1f488db650aad492d6a068c82dfbd0d25fa170a0ac034d078616dc47276d39ecb84124b7473853ddf62687d328a27b
7
+ data.tar.gz: 55546bb2df599a18f52164a4e74eab24c58cb8bb028b884b80ed73280cfe98a3dbceba30a62638140607c7334e6da914ce8ff36f0c5143ffe5c070dd00cb9d8b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brief (1.16.0)
4
+ brief (1.16.1)
5
5
  activesupport (> 3.2)
6
6
  commander (~> 4.3)
7
7
  em-websocket (~> 0.5)
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
- path = briefcase.repository.root.join(arg)
40
- path.exist?
39
+ briefcase.root.join(arg).exist?
41
40
  end
42
41
 
43
- path_args.map! { |p| briefcase.repository.root.join(p) }
42
+ path_args.map! { |p| briefcase.root.join(p) }
44
43
 
45
- models = path_args.map { |path| Brief::Document.new(path) }.map(&:to_model)
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
@@ -1,3 +1,3 @@
1
1
  module Brief
2
- VERSION = '1.16.0'
2
+ VERSION = '1.16.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brief
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Soeder