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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES +4 -0
  3. data/VERSION +1 -1
  4. data/bin/sculd +9 -0
  5. data/sculd.gemspec +2 -2
  6. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e5f8afdf363dced7623854381b2ebf40ae7c20d
4
- data.tar.gz: a94f0df0b433e2120eb1e72667d0e1ddc6988e96
3
+ metadata.gz: 78e6facb296388409ee93f813dd13df16328080a
4
+ data.tar.gz: 6b953a9921e80720effbc1c3add6d3fcd89eb6d0
5
5
  SHA512:
6
- metadata.gz: eb494f786bf70a17014f78d637618b893743f5dfc0161c1c6832f1a615300316e9de0c2fae1e48c040ca44502d33245614dcd63bf93802faeb62cdfaa4466b30
7
- data.tar.gz: d84fd258f5e34948d215a775aedf9ad7a8aecb5b964d22ac57ff138925c88c08644bb3ea78a0360a94d36d6f1b1600b83143a8745fe8a4d6606aed7da327bcd3
6
+ metadata.gz: cbbc6a7fa737ecac16031ab2ef2daf5cd32788d39288fad3590ca79eed9e94374c4cf31ec1c0acd6e33f0d9634a01def63f664bc802c932c7072028b777b5cca
7
+ data.tar.gz: 3546f1f42f43158c5af677ab61d1c3184a7a67877e010fa944e0d74c553b903411a937e29183f51685e7894f25c37025e504f054cfe62533f0202373fbd89ba5
data/CHANGES CHANGED
@@ -1,5 +1,9 @@
1
1
  = sdrt changelog
2
2
 
3
+ == Version 0.2.1 [2017-04-24] released
4
+
5
+ * Add --till option
6
+
3
7
  == Version 0.2.0 [2017-04-24] released
4
8
 
5
9
  * Change command line specification. Get arguments as list of dates.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
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]
@@ -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.0 ruby lib
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.0"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sculd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ippei94da