omnifocus 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +7 -0
- data/README.txt +2 -2
- data/Rakefile +3 -2
- data/lib/omnifocus.rb +17 -4
- metadata +17 -18
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
= omnifocus
|
2
2
|
|
3
|
-
|
3
|
+
home :: https://github.com/seattlerb/omnifocus
|
4
|
+
rdoc :: http://seattlerb.rubyforge.org/omnifocus
|
4
5
|
|
5
6
|
== DESCRIPTION:
|
6
7
|
|
@@ -9,7 +10,6 @@ Synchronizes bug tracking systems to omnifocus.
|
|
9
10
|
== FEATURES/PROBLEMS:
|
10
11
|
|
11
12
|
* Pluggable to work with multiple bug tracking systems (BTS).
|
12
|
-
* Rubyforge plugin included.
|
13
13
|
* Creates projects in omnifocus if needed.
|
14
14
|
* Creates tasks for multiple projects in omnifocus.
|
15
15
|
* Marks tasks complete if they've been closed in the BTS.
|
data/Rakefile
CHANGED
@@ -6,10 +6,11 @@ require 'hoe'
|
|
6
6
|
Hoe.plugin :seattlerb
|
7
7
|
|
8
8
|
Hoe.spec "omnifocus" do
|
9
|
+
developer "aja", "kushali@rubyforge.org"
|
9
10
|
developer "Ryan Davis", "ryand-ruby@zenspider.com"
|
10
11
|
|
11
|
-
|
12
|
-
|
12
|
+
dependency "rb-appscript", "~> 0.5.3"
|
13
|
+
dependency "mechanize", "~> 1.0.0"
|
13
14
|
|
14
15
|
self.rubyforge_name = "seattlerb"
|
15
16
|
|
data/lib/omnifocus.rb
CHANGED
@@ -12,7 +12,7 @@ require 'appscript'
|
|
12
12
|
# bts_id: a string uniquely identifying a task: SYSTEM(-projectname)?#id
|
13
13
|
|
14
14
|
class OmniFocus
|
15
|
-
VERSION = '1.
|
15
|
+
VERSION = '1.4.0'
|
16
16
|
|
17
17
|
##
|
18
18
|
# bug_db = {
|
@@ -36,10 +36,12 @@ class OmniFocus
|
|
36
36
|
# Load any file matching "omnifocus/*.rb"
|
37
37
|
|
38
38
|
def self.load_plugins
|
39
|
+
filter = ARGV.shift
|
39
40
|
loaded = {}
|
40
41
|
Gem.find_files("omnifocus/*.rb").each do |path|
|
41
42
|
name = File.basename path
|
42
43
|
next if loaded[name]
|
44
|
+
next unless path.index filter if filter
|
43
45
|
require path
|
44
46
|
loaded[name] = true
|
45
47
|
end
|
@@ -127,9 +129,20 @@ class OmniFocus
|
|
127
129
|
# bug_db hash if they match a bts_id.
|
128
130
|
|
129
131
|
def prepopulate_existing_tasks
|
130
|
-
|
131
|
-
|
132
|
-
|
132
|
+
prefixen = self.class.plugins.map { |klass| klass::PREFIX rescue nil }
|
133
|
+
|
134
|
+
of_tasks =
|
135
|
+
if prefixen.all? then
|
136
|
+
all_tasks.find_all { |task|
|
137
|
+
task.name.get =~ /^(#{Regexp.union prefixen}(?:-[\w-]+)?\#\d+)/
|
138
|
+
}
|
139
|
+
else
|
140
|
+
warn "WA"+"RN: Older plugins installed. Falling back to The Old Ways"
|
141
|
+
|
142
|
+
all_tasks.find_all { |task|
|
143
|
+
task.name.get =~ /^([A-Z]+(?:-[\w-]+)?\#\d+)/
|
144
|
+
}
|
145
|
+
end
|
133
146
|
|
134
147
|
of_tasks.each do |of_task|
|
135
148
|
ticket_id = of_task.name.get[/^([A-Z]+(?:-[\w-]+)?\#\d+)/, 1]
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
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
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 1.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
+
- aja
|
13
14
|
- Ryan Davis
|
14
15
|
autorequire:
|
15
16
|
bindir: bin
|
@@ -36,8 +37,7 @@ cert_chain:
|
|
36
37
|
FBHgymkyj/AOSqKRIpXPhjC6
|
37
38
|
-----END CERTIFICATE-----
|
38
39
|
|
39
|
-
date: 2011-
|
40
|
-
default_executable:
|
40
|
+
date: 2011-07-20 00:00:00 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rb-appscript
|
@@ -79,12 +79,12 @@ dependencies:
|
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
hash:
|
82
|
+
hash: 1
|
83
83
|
segments:
|
84
84
|
- 2
|
85
|
-
-
|
86
|
-
-
|
87
|
-
version: 2.
|
85
|
+
- 3
|
86
|
+
- 1
|
87
|
+
version: 2.3.1
|
88
88
|
type: :development
|
89
89
|
version_requirements: *id003
|
90
90
|
- !ruby/object:Gem::Dependency
|
@@ -93,18 +93,18 @@ dependencies:
|
|
93
93
|
requirement: &id004 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
|
-
- -
|
96
|
+
- - ~>
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
hash:
|
98
|
+
hash: 23
|
99
99
|
segments:
|
100
100
|
- 2
|
101
|
-
-
|
102
|
-
|
103
|
-
version: 2.9.1
|
101
|
+
- 10
|
102
|
+
version: "2.10"
|
104
103
|
type: :development
|
105
104
|
version_requirements: *id004
|
106
105
|
description: Synchronizes bug tracking systems to omnifocus.
|
107
106
|
email:
|
107
|
+
- kushali@rubyforge.org
|
108
108
|
- ryand-ruby@zenspider.com
|
109
109
|
executables:
|
110
110
|
- omnifocus
|
@@ -124,8 +124,7 @@ files:
|
|
124
124
|
- bin/omnifocus
|
125
125
|
- bin/omnifocus_new
|
126
126
|
- lib/omnifocus.rb
|
127
|
-
|
128
|
-
homepage: http://rubyforge.org/projects/seattlerb
|
127
|
+
homepage: https://github.com/seattlerb/omnifocus
|
129
128
|
licenses: []
|
130
129
|
|
131
130
|
post_install_message:
|
@@ -157,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
156
|
requirements: []
|
158
157
|
|
159
158
|
rubyforge_project: seattlerb
|
160
|
-
rubygems_version: 1.
|
159
|
+
rubygems_version: 1.8.2
|
161
160
|
signing_key:
|
162
161
|
specification_version: 3
|
163
162
|
summary: Synchronizes bug tracking systems to omnifocus.
|
metadata.gz.sig
CHANGED
Binary file
|