work_guide 1.3.0 → 1.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67c88f7640b63487a85b8204722c633f3efb7074
4
- data.tar.gz: 81c40b86796dd1b01da1d554a53171a643adf427
3
+ metadata.gz: ae906274948077287d4c1674e27e8849e895ae2f
4
+ data.tar.gz: 53acd219734916e135421da3b9c35dd9e1442689
5
5
  SHA512:
6
- metadata.gz: b397fed96ac1776230a170fd2e9182f2fc2d8cedd59c6471d2e85ec1e74df01e9866ba53809edc8c51b3af7c24420bbc61db57b8c8a8658f68f477713e47dc5e
7
- data.tar.gz: f21ecee0754f824dbd6772c9f854d399edd7a7205897c5cb0bae9e3cde8f7a41500c280708d81c0a66dd36789d5f4706bb51a03c9cc33c74238cb7b074a7cd93
6
+ metadata.gz: 87d37c970162b20f639e26a795bf9603650b8080cfbd923eb6a43c3d36f40ca9b375afffb3148c43408d3d8135a77c066dc9140cbab31766c3d43162f4e67ba6
7
+ data.tar.gz: 0b8fb3a5b2bd287c587f06fc7708b0ff7979e179398b6f198de8e41bfa0551efff671be92ccec5e49f835acd718ae382fb3c884de32c25997352446f310a75f7
@@ -18,11 +18,15 @@ module WorkGuide
18
18
  end
19
19
 
20
20
  desc "update [index]", "Edit a guide"
21
- option :priority, default: 'medium', banner: '[high|medium|low]'
21
+ option :priority, default: nil, banner: '[high|medium|low]'
22
+ option :cycle, default: nil, banner: '[hourly|daily|weekly|monthly]', aliases: :c
23
+ option :week_start, default: nil, banner: '[sunday|monday|...]'
22
24
  def update(index = nil)
23
25
  index = boot_peco(all: true) unless index.present?
24
26
  guide = Guide.all[index.to_i]
25
27
  guide.priority = options[:priority] if options[:priority]
28
+ guide.cycle = options[:cycle] if options[:cycle]
29
+ guide.week_start = options[:week_start] if options[:week_start]
26
30
  Guide.save
27
31
  puts "Update [#{index}]#{guide}"
28
32
  end
@@ -1,3 +1,3 @@
1
1
  module WorkGuide
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: work_guide
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - adorechic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-15 00:00:00.000000000 Z
11
+ date: 2015-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  requirements: []
196
196
  rubyforge_project:
197
- rubygems_version: 2.4.8
197
+ rubygems_version: 2.5.0
198
198
  signing_key:
199
199
  specification_version: 4
200
200
  summary: CLI tool to listup routine tasks