dssx 0.0.2.b → 0.0.2.c

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Dssx
3
- VERSION = '0.0.2.b'
3
+ VERSION = '0.0.2.c'
4
4
  end
5
5
 
6
6
  begin
@@ -27,7 +27,7 @@ module Dssx
27
27
 
28
28
  option :verbose, :type => :boolean
29
29
  desc "status [PATH]", "Check status"
30
- def status(path=Dir.pwd)
30
+ def status(path=".")
31
31
  puts "dssx status #{path}"
32
32
  puts options[:verbose]
33
33
  ## Create status Report
@@ -35,7 +35,9 @@ module Dssx
35
35
 
36
36
  def display items
37
37
  Array( items ).each do |item|
38
- puts "#{STATUS_OUTPUT[item.status]} #{@path}/#{item.path}"
38
+ #Remove trailing '/'
39
+ pre_path = @path.gsub(/\/$/, '')
40
+ puts "#{STATUS_OUTPUT[item.status]} #{pre_path}/#{item.path}"
39
41
  end
40
42
  end
41
43
 
@@ -98,7 +100,9 @@ module Dssx
98
100
 
99
101
  when /^(\s*Cached File\s*Up-to-date\s*Cache\s*#{REGEXP_VERSION}\s*)/
100
102
  line[$1.to_s] = ''
101
- items << Item.new( :status_cached, line.strip)
103
+ #if (:report_all) begin
104
+ # items << Item.new( :status_cached, line.strip)
105
+ #end
102
106
 
103
107
  when /^(\s*File\s*Up-to-date\s*Copy\s*#{REGEXP_VERSION}\s*)/
104
108
  line[$1.to_s] = ''
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dssx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.b
4
+ version: 0.0.2.c
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: