prick 0.48.0 → 0.49.0

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
  SHA256:
3
- metadata.gz: 174ae3f514ca2eda0f8eea870922d85e6676f0c979dc783d3763063f238923af
4
- data.tar.gz: 41acf5e250fb735f9d1297a67f2a758d6642358b7a15c39fde0f963f0b897395
3
+ metadata.gz: 78522ab44a921e407fe85e69b54adb1ee7eedf7b100eb1a55dc216838a89900f
4
+ data.tar.gz: 753d69e339b607c2e97695aa6364d19b019af7725bf2f4c190b067003c933fd4
5
5
  SHA512:
6
- metadata.gz: 9b638fcb0b5b4b3558361f5a05450ce9b378b34466dd9a3833ec382e4c61f7a618398457d6996fd88b32780de4268db9c311cfe28f20e871e74c17a536713df1
7
- data.tar.gz: 41eed12f679709b00b5505f6f99e0a1fb5288470111f8b2fdf621d6c731b759a5aea32077a7cce62858db2c018bc945f4092e6a370a81c1bb33d47e931765386
6
+ metadata.gz: 88ed1e7b0e9d0b4a7ea7f609ce706101467ea0879e057906e9ac07edceb6e863061ced5e0cfbd7c58f07c207317b01c237ae7c6fd6795b433ee16af853764295
7
+ data.tar.gz: 2b95d9d37502e2b423e090a2af6d7070aab77e1689b751af736aa628c6570fe91ef19b75544c449cae777c8c4504c3d7fbab863f9d3c6907a75d4f540dd172a9
data/exe/prick CHANGED
@@ -22,12 +22,6 @@ TIME = Time.now
22
22
  SPEC = %(
23
23
  @ Prick project command
24
24
 
25
- +v,verbose
26
- Be verbose. Repeated -v options increase the verbosity level
27
-
28
- -q,quiet
29
- Be quiet
30
-
31
25
  -C,directory=EDIR
32
26
  Change to directory DIR before doing anything else
33
27
 
@@ -46,6 +40,12 @@ SPEC = %(
46
40
  -f,fox-state-file=FOX-STATE-FILE
47
41
  Override fox state file. Default is '.fox-state.yml
48
42
 
43
+ +v,verbose
44
+ Be verbose. Repeated -v options increase the verbosity level
45
+
46
+ -q,quiet
47
+ Be quiet
48
+
49
49
  init! -n,name=NAME -t,title=TITLE DIRECTORY #@ Initialize new Prick project directory
50
50
  Initializes a prick project and checks it into git. If a directory is
51
51
  given the directory will be created and the project initialized in it.
@@ -298,7 +298,7 @@ include Prick
298
298
 
299
299
  begin
300
300
  # Parse command line
301
- opts, args = ShellOpts.process(SPEC, ARGV, exception: true)
301
+ opts, args = ShellOpts.process(SPEC, ARGV, exception: true, version: true)
302
302
 
303
303
  # Expect a sub-command. TODO: Make this a built-in in ShellOpts#subcommand!
304
304
  cmd = opts.subcommand! or Prick.error "Subcomand expected"
@@ -333,7 +333,7 @@ begin
333
333
  exit
334
334
  end
335
335
 
336
- # Find project directory and initialize constants
336
+ # Find project directory and initialize constants. This also initializes PRICK_DIR
337
337
  require_relative '../lib/prick/constants.rb'
338
338
 
339
339
  # Switch to project directory
@@ -33,7 +33,7 @@ module Prick
33
33
  if !defined?(PRICK_DIR)
34
34
  PRICK_DIR = begin
35
35
  dir = Dir.getwd
36
- while dir != "/" && !File.exist?("#{dir}/prick.yml")
36
+ while dir != "/" && !File.exist?("#{dir}/#{PRICK_PROJECT_FILE}")
37
37
  dir = File.dirname(dir)
38
38
  end
39
39
  if dir == "/"
@@ -141,7 +141,7 @@ module Prick
141
141
  end
142
142
 
143
143
  def self.current()
144
- Command.command("git branch --show-current").first
144
+ Command.command("git branch --show-current").first || 'DETACHED'
145
145
  end
146
146
 
147
147
  def self.checkout(branch)
data/lib/prick/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prick
4
- VERSION = "0.48.0"
4
+ VERSION = "0.49.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen