brief 1.15.2 → 1.15.3

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
  SHA1:
3
- metadata.gz: 6bb3f0c2d203c067c1236e4c1a8206c808def989
4
- data.tar.gz: c0a4648cb668700f583e1de7106b27674ead53a2
3
+ metadata.gz: 763a040d0e1f964bbaeed9e2a83918e75b1271c4
4
+ data.tar.gz: 206e256f2ce59990d9eb0f6f75682587809de231
5
5
  SHA512:
6
- metadata.gz: 492c3c67e459ffb73e1c93a94cfe2a487ca5b9c765959c2a3db2be8a7ded8ac3e7845b3f3690ea97670afe22c6b214e4d43ba3886ed2c649c60f9988338750be
7
- data.tar.gz: d313d3ce9dd563720c87e73a33711e4b88e2e5c8e7b0ad2b19ef8406aee07322dd41365ae7b083c9a1b763b5fa9d40e8a8f469d7ef3be2f186cfb49ea7c79f6d
6
+ metadata.gz: e5bb21d6eb9822fdf2b8a0c4ae3034dd9923d8e5d26db4ee323025aaa20504bdbe27c7be0a63de9d90168877c2907ac95cd7d3f724021a8ccdff2628cddfcdff
7
+ data.tar.gz: 8eebc3f39f0b70a0f0dee6ef2386a47716c76a2ab7b0b0c91280ca764cd3857ebd3ff458812cce7e9eaf2d66486f4de688406b9387e34c6d77873008a48ab4bc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brief (1.15.2)
4
+ brief (1.15.3)
5
5
  activesupport (> 3.2)
6
6
  commander (~> 4.3)
7
7
  em-websocket (~> 0.5)
@@ -38,7 +38,7 @@ GEM
38
38
  columnize (0.9.0)
39
39
  commander (4.3.4)
40
40
  highline (~> 1.7.2)
41
- daemons (1.2.2)
41
+ daemons (1.2.3)
42
42
  descendants_tracker (0.0.4)
43
43
  thread_safe (~> 0.3, >= 0.3.1)
44
44
  diff-lcs (1.2.5)
data/lib/brief/cli/run.rb CHANGED
@@ -2,10 +2,14 @@ command "run command" do |c|
2
2
  c.syntax = 'brief run FILE'
3
3
  c.description = 'run a script in the context of the briefcase'
4
4
 
5
+ c.option '--root PATH', String, 'The briefcase root'
6
+
5
7
  c.action do |args, options|
8
+ options.default(root: Pathname(args.first || Brief.pwd))
9
+
6
10
  command = args.first.to_s.to_sym
7
11
 
8
- bc = Brief.case
12
+ bc = Brief.case = Brief::Briefcase.new(root: Pathname(args.first || options.root))
9
13
  bc = bc.call if bc.respond_to?(:call)
10
14
 
11
15
  if !Brief.commands[command.to_sym]
data/lib/brief/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Brief
2
- VERSION = '1.15.2'
2
+ VERSION = '1.15.3'
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.15.2
4
+ version: 1.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Soeder