omnifocus 1.5.1 → 1.5.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.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/bin/omnifocus_new +10 -6
- data/lib/omnifocus.rb +4 -2
- metadata +11 -11
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/bin/omnifocus_new
CHANGED
@@ -9,17 +9,21 @@ title = ($stdin.tty? ? ARGV.join(" ") : $stdin.read).strip
|
|
9
9
|
|
10
10
|
include Appscript
|
11
11
|
|
12
|
-
omnifocus = app('OmniFocus').
|
12
|
+
omnifocus = app('OmniFocus').default_document
|
13
13
|
|
14
14
|
unless project_name && ! title.empty? then
|
15
15
|
cmd = File.basename $0
|
16
16
|
projects = omnifocus.sections.projects.name.get.flatten.sort
|
17
17
|
|
18
|
-
abort "usage: #{cmd} project title\n\nprojects = #{projects.join ", "}"
|
18
|
+
abort "usage: #{cmd} project title\n\nprojects = nil, #{projects.join ", "}"
|
19
19
|
end
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
if project_name == "nil" then
|
22
|
+
omnifocus.make :new => :inbox_task, :with_properties => {:name => title}
|
23
|
+
else
|
24
|
+
projects = omnifocus.sections.projects[its.name.eq(project_name)]
|
25
|
+
project = projects.get.flatten.grep(Appscript::Reference).first
|
26
|
+
project.make :new => :task, :with_properties => {:name => title}
|
24
27
|
|
25
|
-
puts "created task in #{project_name}: #{title}"
|
28
|
+
puts "created task in #{project_name}: #{title}"
|
29
|
+
end
|
data/lib/omnifocus.rb
CHANGED
@@ -24,7 +24,7 @@ end if RUBY_VERSION >= "1.9"
|
|
24
24
|
# bts_id: a string uniquely identifying a task: SYSTEM(-projectname)?#id
|
25
25
|
|
26
26
|
class OmniFocus
|
27
|
-
VERSION = '1.5.
|
27
|
+
VERSION = '1.5.2'
|
28
28
|
|
29
29
|
##
|
30
30
|
# bug_db = {
|
@@ -84,7 +84,9 @@ class OmniFocus
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def all_tasks
|
87
|
-
|
87
|
+
# how to filter on active projects. note, this causes sync problems
|
88
|
+
# omnifocus.flattened_projects[its.status.eq(:active)].tasks.get.flatten
|
89
|
+
omnifocus.flattened_projects.tasks.get.flatten
|
88
90
|
end
|
89
91
|
|
90
92
|
##
|
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: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 2
|
10
|
+
version: 1.5.2
|
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: 2011-08-
|
40
|
+
date: 2011-08-25 00:00:00 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rb-appscript
|
@@ -78,11 +78,11 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - ~>
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
hash:
|
81
|
+
hash: 9
|
82
82
|
segments:
|
83
83
|
- 2
|
84
|
-
-
|
85
|
-
version: "2.
|
84
|
+
- 5
|
85
|
+
version: "2.5"
|
86
86
|
type: :development
|
87
87
|
version_requirements: *id003
|
88
88
|
- !ruby/object:Gem::Dependency
|
@@ -93,11 +93,11 @@ dependencies:
|
|
93
93
|
requirements:
|
94
94
|
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
hash:
|
96
|
+
hash: 27
|
97
97
|
segments:
|
98
98
|
- 2
|
99
|
-
-
|
100
|
-
version: "2.
|
99
|
+
- 12
|
100
|
+
version: "2.12"
|
101
101
|
type: :development
|
102
102
|
version_requirements: *id004
|
103
103
|
description: Synchronizes bug tracking systems to omnifocus.
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
requirements: []
|
155
155
|
|
156
156
|
rubyforge_project: seattlerb
|
157
|
-
rubygems_version: 1.8.
|
157
|
+
rubygems_version: 1.8.9
|
158
158
|
signing_key:
|
159
159
|
specification_version: 3
|
160
160
|
summary: Synchronizes bug tracking systems to omnifocus.
|
metadata.gz.sig
CHANGED
Binary file
|