omnifocus 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +1 -1
- data/History.txt +6 -0
- data/README.txt +9 -0
- data/lib/omnifocus.rb +10 -6
- metadata +4 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
y
|
1
|
+
4u�r�"��Gp���� ��ϒ�[��=?º�����q�����Z�B����@��:y�⍶.~Hm'��m�����w�X`.�NS��
|
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -22,6 +22,15 @@ Synchronizes bug tracking systems to omnifocus.
|
|
22
22
|
creating parsetree # 3802
|
23
23
|
...
|
24
24
|
|
25
|
+
== Known Plugins:
|
26
|
+
|
27
|
+
+ omnifocus-bugzilla by kushali
|
28
|
+
+ omnifocus-github by zenspider
|
29
|
+
+ omnifocus-pivotaltracker by vanska
|
30
|
+
+ omnifocus-redmine by kushali
|
31
|
+
+ omnifocus-rt by kushali
|
32
|
+
+ omnifocus-rubyforge by zenspider
|
33
|
+
|
25
34
|
== REQUIREMENTS:
|
26
35
|
|
27
36
|
* mechanize
|
data/lib/omnifocus.rb
CHANGED
@@ -26,7 +26,7 @@ include Appscript
|
|
26
26
|
# bts_id: a string uniquely identifying a task: SYSTEM(-projectname)?#id
|
27
27
|
|
28
28
|
class OmniFocus
|
29
|
-
VERSION = '2.1.
|
29
|
+
VERSION = '2.1.1'
|
30
30
|
|
31
31
|
##
|
32
32
|
# bug_db = {
|
@@ -78,10 +78,14 @@ class OmniFocus
|
|
78
78
|
@omnifocus ||= Appscript.app('OmniFocus').default_document
|
79
79
|
end
|
80
80
|
|
81
|
+
def all_subtasks task
|
82
|
+
[task] + task.tasks.get.flatten.map{|t| all_subtasks(t) }
|
83
|
+
end
|
84
|
+
|
81
85
|
def all_tasks
|
82
86
|
# how to filter on active projects. note, this causes sync problems
|
83
87
|
# omnifocus.flattened_projects[its.status.eq(:active)].tasks.get.flatten
|
84
|
-
omnifocus.flattened_projects.tasks.get.flatten
|
88
|
+
omnifocus.flattened_projects.tasks.get.flatten.map{|t| all_subtasks(t) }.flatten
|
85
89
|
end
|
86
90
|
|
87
91
|
##
|
@@ -257,11 +261,11 @@ class OmniFocus
|
|
257
261
|
|
258
262
|
unless project_name && ! title.empty? then
|
259
263
|
cmd = File.basename $0
|
260
|
-
projects = omnifocus.flattened_projects.name.get.
|
264
|
+
projects = omnifocus.flattened_projects.name.get.sort_by(&:downcase)
|
261
265
|
|
262
|
-
warn "usage: #{cmd} project_name title - create a project task"
|
263
|
-
warn " #{cmd} nil title - create an inbox task"
|
264
|
-
warn " #{cmd} project project_name - create a new project"
|
266
|
+
warn "usage: #{cmd} new project_name title - create a project task"
|
267
|
+
warn " #{cmd} new nil title - create an inbox task"
|
268
|
+
warn " #{cmd} new project project_name - create a new project"
|
265
269
|
warn ""
|
266
270
|
warn "project_names = #{projects.join ", "}"
|
267
271
|
exit 1
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omnifocus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 2.1.
|
9
|
+
- 1
|
10
|
+
version: 2.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- aja
|
@@ -37,7 +37,7 @@ cert_chain:
|
|
37
37
|
FBHgymkyj/AOSqKRIpXPhjC6
|
38
38
|
-----END CERTIFICATE-----
|
39
39
|
|
40
|
-
date: 2012-
|
40
|
+
date: 2012-06-14 00:00:00 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rb-appscript
|
metadata.gz.sig
CHANGED
Binary file
|