omnifocus 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 1.5.2 / 2011-08-25
2
+
3
+ * 1 bug fix:
4
+
5
+ * Removed filtering on active project to avoid sync creating duplicates everywhere
6
+
1
7
  === 1.5.1 / 2011-08-12
2
8
 
3
9
  * 2 bug fixes:
@@ -9,17 +9,21 @@ title = ($stdin.tty? ? ARGV.join(" ") : $stdin.read).strip
9
9
 
10
10
  include Appscript
11
11
 
12
- omnifocus = app('OmniFocus').documents[1]
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
- projects = omnifocus.sections.projects[its.name.eq(project_name)]
22
- project = projects.get.flatten.grep(Appscript::Reference).first
23
- project.make :new => :task, :with_properties => {:name => title}
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
@@ -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.1'
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
- omnifocus.flattened_projects[its.status.eq(:active)].tasks.get.flatten
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: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 1
10
- version: 1.5.1
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-13 00:00:00 Z
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: 11
81
+ hash: 9
82
82
  segments:
83
83
  - 2
84
- - 4
85
- version: "2.4"
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: 21
96
+ hash: 27
97
97
  segments:
98
98
  - 2
99
- - 11
100
- version: "2.11"
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.5
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