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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9db3e7537ab88ebd0cd4ac0590c2dc3e316351a3
4
- data.tar.gz: 73d36aa830ab01ec363226cfccba765018bd39bd
3
+ metadata.gz: 60a129e0c117e25a03739ba13296e085c82be76f
4
+ data.tar.gz: 6176998b99d409c36349fe56f0bbcb7ca7b6e47f
5
5
  SHA512:
6
- metadata.gz: 0cbee74f33e0812e5cfecf92d202448985fc80a6b52d7764c347ab96db4610756d88dc78c54f01996928f2aa0578823d3d5f7fc8b210966b7590310d3464379c
7
- data.tar.gz: 44dd0bbf0a8940ed75ef2ef9a79c42adcdf27fa4fc76109dba7712e9cf4a9a99ad385e6424485bf35d067e227df652d9854339af23237ba38d245a837975c020
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"
@@ -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
@@ -1,6 +1,8 @@
1
1
  require 'todo-txt'
2
2
  require 'pastel'
3
3
  require 'fileutils'
4
+ require 'logger'
5
+ require 'git'
4
6
  require 'intent/todo/manager'
5
7
 
6
8
  Todo.customize do |options|
@@ -1,3 +1,3 @@
1
1
  module Intent
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
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
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-09-07 00:00:00.000000000 Z
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