dssc_simple 0.0.1.a → 0.0.1.b

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,6 +2,12 @@
2
2
  DsscSimple
3
3
  ===========
4
4
 
5
+ Install
6
+ -------
7
+
8
+ gem install dssc_simple --pre
9
+
5
10
  EXAMPLES
6
- ========
11
+ --------
7
12
 
13
+ $ dssc_simple_report [path]
@@ -1,6 +1,6 @@
1
1
 
2
2
  module DsscSimple
3
- VERSION = '0.0.1.a'
3
+ VERSION = '0.0.1.b'
4
4
  end
5
5
 
6
6
  begin
@@ -85,6 +85,14 @@ module DsscSimple
85
85
  line[$1.to_s] = ''
86
86
  items << Item.new( :status_unmanaged, line.strip)
87
87
 
88
+ when /^(\s*Folder\s*-\s*Unmanaged\s*)/
89
+ line[$1.to_s] = ''
90
+ items << Item.new( :status_unmanaged, line.strip)
91
+
92
+ when /^(\s*Link to Folder\s*-\s*Unmanaged\s*)/
93
+ line[$1.to_s] = ''
94
+ items << Item.new( :status_unmanaged, line.strip)
95
+
88
96
  when /^(\s*Cached File\s*Up-to-date\s*Cache\s*#{REGEXP_VERSION}\s*)/
89
97
  line[$1.to_s] = ''
90
98
  items << Item.new( :status_cached, line.strip)
@@ -105,6 +113,9 @@ module DsscSimple
105
113
  line[$1.to_s] = ''
106
114
  items << Item.new( :status_local_missing, line.strip)
107
115
 
116
+ when /^(\s*Folder\s*-\s*)/
117
+ ## Ignore
118
+
108
119
  when /^Directory of: file:\/\//
109
120
  ## Ignore
110
121
  when /^\s*Object Type\s*Server Status\s*WS Status\s*Type\s*Locked By\s*Version\s*Name/
@@ -123,7 +134,7 @@ module DsscSimple
123
134
  end
124
135
 
125
136
  def cached_results
126
- @results ||= run_dssc_ls_mock.split("\n")
137
+ @results ||= run_dssc_ls_mock
127
138
  end
128
139
 
129
140
  def run_dssc_ls_mock
@@ -15,7 +15,7 @@ describe DsscSimple::Report do
15
15
  result = ''
16
16
  ::File.open( absolute_filename, "rb"){ |f| result = f.read }
17
17
 
18
- result
18
+ result.split("\n")
19
19
  end
20
20
 
21
21
  display = report.list_cached
@@ -11,4 +11,8 @@ File Up-to-date Locally Modified Lock user* 1.2
11
11
  Cached File Up-to-date Cache 1.3 path/rep_normal.txt
12
12
  Cached File Needs Update Cache 1.2 path/rep_update.txt
13
13
  Cached File Up-to-date Cache otheruser 1.24 path/rep_locked.txt
14
- Referenced File Up-to-date Reference Refers to: 1.1 path/local_removed.txt
14
+ Referenced File Up-to-date Reference Refers to: 1.1 path/local_removed.txt
15
+ Folder - path
16
+ Folder - Unmanaged path_extra
17
+ Link to Folder - Unmanaged Waveforms
18
+
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 1
9
- - a
10
- version: 0.0.1.a
9
+ - b
10
+ version: 0.0.1.b
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Castle
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-15 00:00:00 +00:00
18
+ date: 2011-11-16 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency