intent 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/intent.gemspec +1 -0
- data/lib/intent/todo/manager.rb +7 -0
- data/lib/intent/todo.rb +2 -0
- data/lib/intent/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60a129e0c117e25a03739ba13296e085c82be76f
|
4
|
+
data.tar.gz: 6176998b99d409c36349fe56f0bbcb7ca7b6e47f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a601b7f7b9f76eed6eb4856ed902914899287cb46f2ee6e04121e80faaf2598feab56758db4d736611d3c3853f01df5ea4caa4601b1fbbb72a31b1915a2224d
|
7
|
+
data.tar.gz: 0d075b4ddd81dd57f57ac2a35646bfda2cd4c1a6707a2325903711d6d340df5fcdaa735edef98dda634985d56b309da657ce6ad29f327b57647a1ff5a8b9db67
|
data/intent.gemspec
CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "todo-txt", "~> 0.11"
|
22
22
|
spec.add_runtime_dependency "pastel", "~> 0.6"
|
23
|
+
spec.add_runtime_dependency "git", "~> 1.3.0"
|
23
24
|
|
24
25
|
spec.add_development_dependency "bundler", "~> 1.10"
|
25
26
|
spec.add_development_dependency "rake", "~> 10.0"
|
data/lib/intent/todo/manager.rb
CHANGED
@@ -13,6 +13,13 @@ module Intent
|
|
13
13
|
else
|
14
14
|
list = List.new(ENV['TODO_TXT'])
|
15
15
|
case args.first.to_sym
|
16
|
+
when :sync
|
17
|
+
todo_path = File.dirname(ENV['TODO_TXT'])
|
18
|
+
todo_file = File.basename(ENV['TODO_TXT'])
|
19
|
+
git = Git.open(todo_path, :log => Logger.new(STDOUT))
|
20
|
+
git.add(todo_file)
|
21
|
+
git.commit("Update todo list [#{Time.new}]")
|
22
|
+
git.push
|
16
23
|
when :add
|
17
24
|
output.print "add task: $ "
|
18
25
|
input = STDIN.readline.chop
|
data/lib/intent/todo.rb
CHANGED
data/lib/intent/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: intent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Rickerby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: todo-txt
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: git
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.3.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.3.0
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|