ruboty-todo 0.3.0 → 0.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: bc90f5e5958c246beaab630eb1c9e0de372b93d1
4
- data.tar.gz: 23ebf15bf1daf4367d47e7f2b4c7847f2ddf2612
3
+ metadata.gz: a307a16b4f69d9035b989cb52157edbc6c027540
4
+ data.tar.gz: ac8073753b2cb22df7ecc5deb237c0d02dc57f1f
5
5
  SHA512:
6
- metadata.gz: 9bfabfc2166cf181ab60452f22c3fadb856264b72ffe06716851dddf3532d74e95202ec4bc0a0d0c9ba8f1cccb24a851b7b2c567f0ea3ca4009554421f24394f
7
- data.tar.gz: 54eae573eceaa3fc9e8afe3cbb3ca6fb57a6eab2596b1766c53ebe924a208e2ae69fc9971962fa9c139233a727edf2009b6f05ee90308f976a8b5877cea23c69
6
+ metadata.gz: 3504c9d98d12bead29fad9ff0eef4ba5e28cfdd8b101b0b99976a00e6f69093a6f9ef778a33d2dcc4a23d21e90a0c2c6a33ff9c2ae956c19b604ee588119bf7e
7
+ data.tar.gz: 234b9a368ebc3f5be69170a41bcd14448a261c83338c1cd91b279693975ffd0560cfe32d59c7a8e8660049749d9b2d27ce49a96f1aac00d4d80e6ec42da2df73
@@ -2,9 +2,9 @@ module Ruboty
2
2
  module Handlers
3
3
  class Todo < Base
4
4
  on(
5
- /(?<command>list|cleanup|renum) todos\z/,
5
+ /(?<command>list|cleanup|gc|renum) todos\z/,
6
6
  name: 'list',
7
- description: '(list|cleanup|renum) all todo items'
7
+ description: '(list|cleanup|gc|renum) all todo items'
8
8
  )
9
9
 
10
10
  on(
@@ -12,7 +12,13 @@ module Ruboty
12
12
  end
13
13
 
14
14
  def cleanup
15
- todo_list.cleanup
15
+ todo_list.gc
16
+ todo_list.renum
17
+ list
18
+ end
19
+
20
+ def gc
21
+ todo_list.gc
16
22
  list
17
23
  end
18
24
 
@@ -20,7 +20,7 @@ module Ruboty
20
20
  item
21
21
  end
22
22
 
23
- def cleanup
23
+ def gc
24
24
  list[:items] = list[:items].reject { |item| item.deleted? || item.done? }
25
25
  reset_id if list[:items].empty?
26
26
  items
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Todo
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
@@ -1,4 +1,3 @@
1
- # coding: utf-8
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'ruboty/todo/version'
@@ -14,7 +13,6 @@ Gem::Specification.new do |spec|
14
13
  spec.homepage = 'https://github.com/kwappa/ruboty-todo'
15
14
  spec.license = 'MIT'
16
15
 
17
-
18
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
17
  spec.bindir = 'exe'
20
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-todo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SHIOYA, Hiromu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-18 00:00:00.000000000 Z
11
+ date: 2016-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruboty
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.4.5.1
127
+ rubygems_version: 2.5.1
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: ruboty handler to manger your todo list