sculd 0.2.0 → 0.2.1
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 +4 -4
- data/CHANGES +4 -0
- data/VERSION +1 -1
- data/bin/sculd +9 -0
- data/sculd.gemspec +2 -2
- 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: 78e6facb296388409ee93f813dd13df16328080a
|
4
|
+
data.tar.gz: 6b953a9921e80720effbc1c3add6d3fcd89eb6d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbbc6a7fa737ecac16031ab2ef2daf5cd32788d39288fad3590ca79eed9e94374c4cf31ec1c0acd6e33f0d9634a01def63f664bc802c932c7072028b777b5cca
|
7
|
+
data.tar.gz: 3546f1f42f43158c5af677ab61d1c3184a7a67877e010fa944e0d74c553b903411a937e29183f51685e7894f25c37025e504f054cfe62533f0202373fbd89ba5
|
data/CHANGES
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/bin/sculd
CHANGED
@@ -21,6 +21,8 @@ op.on("-b day", "--before days", "Event before n days."){|v|
|
|
21
21
|
OPTIONS[:before] = v.to_i}
|
22
22
|
op.on("-c day", "--center days", "Event days between n days."){|v|
|
23
23
|
OPTIONS[:center] = v.to_i}
|
24
|
+
op.on("-t date", "--till days", "Event till date."){|v|
|
25
|
+
OPTIONS[:till] = v}
|
24
26
|
op.on("-w weekdays", "--weekdays=wdays", "Event days only on weekdays. E.g., --weekday='Sun,Mon'"){|v|
|
25
27
|
OPTIONS[:weekdays] = v.split ','}
|
26
28
|
op.on("-t num", "--task num" , "Show tasks on today." ){|v|
|
@@ -53,6 +55,13 @@ else
|
|
53
55
|
end
|
54
56
|
end
|
55
57
|
|
58
|
+
if OPTIONS[:till]
|
59
|
+
Date.today.upto(Date.parse(OPTIONS[:till])) do |d|
|
60
|
+
dates << d
|
61
|
+
end
|
62
|
+
end
|
63
|
+
#pp dates; exit
|
64
|
+
|
56
65
|
if OPTIONS[:center]
|
57
66
|
OPTIONS[:after] ||= OPTIONS[:center]
|
58
67
|
OPTIONS[:before] ||= OPTIONS[:center]
|
data/sculd.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: sculd 0.2.
|
5
|
+
# stub: sculd 0.2.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "sculd"
|
9
|
-
s.version = "0.2.
|
9
|
+
s.version = "0.2.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|