exceler 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/exceler/version.rb +1 -1
- data/lib/exceler.rb +6 -14
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 026b6202db7e8b6bd50e49a8fdd9e9edc114d0cb
|
4
|
+
data.tar.gz: 9ed4539a5588d1cf221d91c0d69d0c15debf2831
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 266735bf7f96409a157c1cf4736fe047f16a0fbc88b3ca8fc7fd76c33ec6df73dc60764d8432bc82c0ddda55755990509077718aad54616576830f52570e838f
|
7
|
+
data.tar.gz: a808f6e5c9ec65622c2ee6fc87822f5370706eba80fdc0c98d2f50f84e7fda6fd84d5218c7615e946b8e3bdd9fc68b587d80b3e002c8aa50f5066560f43355b6
|
data/lib/exceler/version.rb
CHANGED
data/lib/exceler.rb
CHANGED
@@ -86,7 +86,6 @@ end
|
|
86
86
|
for ext in EXT_PATTERNS
|
87
87
|
filepattern = dir+File::SEPARATOR+"*."+ext;
|
88
88
|
Dir[filepattern].each do |file|
|
89
|
-
# puts "founds " + file
|
90
89
|
ret.push( file )
|
91
90
|
end
|
92
91
|
end
|
@@ -114,7 +113,6 @@ end
|
|
114
113
|
s += "state: incomplete"
|
115
114
|
end
|
116
115
|
end
|
117
|
-
puts s
|
118
116
|
end
|
119
117
|
|
120
118
|
#
|
@@ -132,7 +130,6 @@ end
|
|
132
130
|
return nil
|
133
131
|
end
|
134
132
|
for file in files
|
135
|
-
puts file
|
136
133
|
re = Regexp.new( XLS+"$" )
|
137
134
|
if( file =~ re ) # XLS file
|
138
135
|
# puts "XLS file scan " + file
|
@@ -180,7 +177,6 @@ end
|
|
180
177
|
i.limit = s.cell( opt.limit_row , num )
|
181
178
|
end
|
182
179
|
if( opt.state_row != nil )
|
183
|
-
puts opt.state_row
|
184
180
|
if( opt.state_condition == nil )
|
185
181
|
if( s.cell( opt.state_row , num ) != nil )
|
186
182
|
i.state = Item::COMPLETE
|
@@ -212,7 +208,7 @@ end
|
|
212
208
|
# ==== Args
|
213
209
|
# items :: アイテムの配列
|
214
210
|
# ==== Return
|
215
|
-
#
|
211
|
+
# array of the assigned persons 担当になっている人の配列
|
216
212
|
#
|
217
213
|
def self.list_assigned_person( items )
|
218
214
|
pl = {}
|
@@ -232,7 +228,7 @@ end
|
|
232
228
|
# items :: アイテムの配列
|
233
229
|
# assign :: 担当
|
234
230
|
# ==== Return
|
235
|
-
# 担当に割あたっているアイテムの配列
|
231
|
+
# array of the items which is asseigned to the sepecified person 担当に割あたっているアイテムの配列
|
236
232
|
#
|
237
233
|
def self.pickup_assigned( items , assign )
|
238
234
|
ret = []
|
@@ -251,7 +247,8 @@ end
|
|
251
247
|
# ==== Args
|
252
248
|
# items :: アイテムの配列
|
253
249
|
# ==== Return
|
254
|
-
# 未完了アイテムの配列
|
250
|
+
# array of the incomplete items 未完了アイテムの配列
|
251
|
+
#
|
255
252
|
def self.pickup_incomplete( items )
|
256
253
|
ret = []
|
257
254
|
for item in items
|
@@ -269,7 +266,7 @@ end
|
|
269
266
|
# ==== Args
|
270
267
|
# items :: アイテムの配列
|
271
268
|
# ==== Return
|
272
|
-
# 期限切れになっているアイテムの配列
|
269
|
+
# array of the expired items 期限切れになっているアイテムの配列
|
273
270
|
def self.pickup_expired( items )
|
274
271
|
ret = []
|
275
272
|
current = Date.today
|
@@ -293,7 +290,6 @@ end
|
|
293
290
|
# items :: アイテムの配列
|
294
291
|
# ==== Return
|
295
292
|
# HTML Content
|
296
|
-
#
|
297
293
|
def self.export_item_html( items , title , subtitle )
|
298
294
|
s=""
|
299
295
|
if( title != nil )
|
@@ -319,8 +315,6 @@ end
|
|
319
315
|
end
|
320
316
|
s+= "</table>"
|
321
317
|
s+= "</p>"
|
322
|
-
# puts "------"
|
323
|
-
# puts s
|
324
318
|
return s
|
325
319
|
end
|
326
320
|
|
@@ -349,7 +343,6 @@ end
|
|
349
343
|
# content :: Content of the file
|
350
344
|
# ==== Return
|
351
345
|
# HTML Content
|
352
|
-
#
|
353
346
|
def self.write_html_file( file , content , css )
|
354
347
|
f = open( file , "w" )
|
355
348
|
if( css == nil )
|
@@ -365,10 +358,9 @@ end
|
|
365
358
|
# マップオブジェクトをCSVをにして保存します。
|
366
359
|
# ==== Args
|
367
360
|
# file :: output file
|
368
|
-
#
|
361
|
+
# map :: map object
|
369
362
|
# ==== Return
|
370
363
|
# HTML Content
|
371
|
-
#
|
372
364
|
def self.write_csv_file( file , map )
|
373
365
|
keys = map.keys
|
374
366
|
ks = ""
|