ctodo 0.0.1 → 0.0.2
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.
- data/.todo +11 -0
- data/README.md +15 -0
- data/lib/ctodo.rb +2 -2
- metadata +6 -5
data/.todo
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# config for todo
|
|
2
|
+
#
|
|
3
|
+
# If you don't want to use some of these services just
|
|
4
|
+
# remove the corresponding lines below:
|
|
5
|
+
---
|
|
6
|
+
:gh_user: <github-user>
|
|
7
|
+
:gh_pass: <github-password>
|
|
8
|
+
:red_uri: <redmine-base-uri>
|
|
9
|
+
:red_key: <redmine-api-key>
|
|
10
|
+
:red2_uri: <another-redmine-base-uri>
|
|
11
|
+
:red2_key: <another-redmine-api-key>
|
data/README.md
CHANGED
|
@@ -16,6 +16,21 @@ Setup
|
|
|
16
16
|
|
|
17
17
|
gem install ctodo
|
|
18
18
|
|
|
19
|
+
Template for ~/.todo
|
|
20
|
+
--------------------
|
|
21
|
+
|
|
22
|
+
# config for todo
|
|
23
|
+
#
|
|
24
|
+
# If you don't want to use some of these services just
|
|
25
|
+
# remove the corresponding lines below:
|
|
26
|
+
---
|
|
27
|
+
:gh_user: <github-user>
|
|
28
|
+
:gh_pass: <github-password>
|
|
29
|
+
:red_uri: <redmine-base-uri>
|
|
30
|
+
:red_key: <redmine-api-key>
|
|
31
|
+
:red2_uri: <another-redmine-base-uri>
|
|
32
|
+
:red2_key: <another-redmine-api-key>
|
|
33
|
+
|
|
19
34
|
Links
|
|
20
35
|
-----
|
|
21
36
|
|
data/lib/ctodo.rb
CHANGED
|
@@ -148,10 +148,10 @@ module CTodo
|
|
|
148
148
|
end
|
|
149
149
|
|
|
150
150
|
def find_git_repo(path)
|
|
151
|
-
|
|
151
|
+
rel_git_dir = Pathname.new(!ENV['GIT_DIR'].nil? ? ENV['GIT_DIR'] : '.git')
|
|
152
152
|
p = Pathname.new(path)
|
|
153
153
|
until p.root?
|
|
154
|
-
git_dir = p +
|
|
154
|
+
git_dir = p + rel_git_dir
|
|
155
155
|
return p.to_s if git_dir.exist? and git_dir.directory?
|
|
156
156
|
p = p.parent
|
|
157
157
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ctodo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 27
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.0.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Christian Nicolai
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-10-
|
|
18
|
+
date: 2011-10-14 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: httparty
|
|
@@ -59,7 +59,7 @@ dependencies:
|
|
|
59
59
|
version: "0"
|
|
60
60
|
type: :runtime
|
|
61
61
|
version_requirements: *id003
|
|
62
|
-
description:
|
|
62
|
+
description:
|
|
63
63
|
email: chrnicolai@gmail.com
|
|
64
64
|
executables:
|
|
65
65
|
- todo
|
|
@@ -75,6 +75,7 @@ files:
|
|
|
75
75
|
- lib/ctodo/redmine.rb
|
|
76
76
|
- lib/ctodo.rb
|
|
77
77
|
- README.md
|
|
78
|
+
- .todo
|
|
78
79
|
homepage: https://github.com/cmur2/todo
|
|
79
80
|
licenses: []
|
|
80
81
|
|