omnifocus 2.1.4 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/Rakefile +13 -6
- data/lib/omnifocus.rb +15 -11
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 495ee01a28dd983d42e3ed1998d3ed6023b76176
|
4
|
+
data.tar.gz: d99d1cadb4c3be8e191ca41a4fbefd3a8c54a398
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6af2f009d7aa51b9f54ab0ccaac48500fd23b25e2e9f0dd127519e719381a0eaa1e46143814f789939f5c9d14c315ff22fcfe34859b75ff837635f5089be87f0
|
7
|
+
data.tar.gz: 2ef66453dbf507077759e3a765be9e85f945dc6720e2049af4b348a6681d6e3a54f9547e9af107e0d2f4bff08814593217d28a6bcfd2a467af568c977ea21148
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -18,18 +18,25 @@ Hoe.spec "omnifocus" do
|
|
18
18
|
pluggable!
|
19
19
|
end
|
20
20
|
|
21
|
-
|
21
|
+
def omnifocus cmd, options = nil
|
22
|
+
ENV["GEM_PATH"] = File.expand_path "~/.gem/sandboxes/omnifocus"
|
23
|
+
|
24
|
+
inc = "-Ilib:../../omnifocus-github/dev/lib:../../omnifocus-redmine/dev/lib"
|
25
|
+
|
26
|
+
ruby "#{options} #{inc} bin/of #{cmd}"
|
27
|
+
end
|
22
28
|
|
23
29
|
task :sync => :isolate do
|
24
|
-
|
30
|
+
omnifocus "sync"
|
31
|
+
end
|
25
32
|
|
26
|
-
|
33
|
+
task :fix => :isolate do
|
34
|
+
omnifocus "fix"
|
35
|
+
omnifocus "resch"
|
27
36
|
end
|
28
37
|
|
29
38
|
task :debug => :isolate do
|
30
|
-
|
31
|
-
|
32
|
-
ruby "-d #{inc} bin/of sync github"
|
39
|
+
omnifocus "sync github", "-d"
|
33
40
|
end
|
34
41
|
|
35
42
|
# vim: syntax=ruby
|
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.5"
|
30
30
|
|
31
31
|
##
|
32
32
|
# bug_db = {
|
@@ -497,20 +497,24 @@ class OmniFocus
|
|
497
497
|
|
498
498
|
def fix_project_review_intervals rels, skip
|
499
499
|
rels.tasks.each do |task|
|
500
|
-
|
500
|
+
begin
|
501
|
+
proj = task.project
|
501
502
|
|
502
|
-
|
503
|
-
|
503
|
+
t_ri = task.repetition[:steps]
|
504
|
+
p_ri = proj.review_interval[:steps]
|
504
505
|
|
505
|
-
|
506
|
-
|
506
|
+
if t_ri != p_ri then
|
507
|
+
warn "Fixing #{task.name} to #{p_ri} weeks"
|
507
508
|
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
509
|
+
rep = {
|
510
|
+
:recurrence => "FREQ=WEEKLY;INTERVAL=#{p_ri}",
|
511
|
+
:repetition_method => :fixed_repetition,
|
512
|
+
}
|
512
513
|
|
513
|
-
|
514
|
+
task.thing.repetition_rule.set :to => rep unless skip
|
515
|
+
end
|
516
|
+
rescue => e
|
517
|
+
warn "ERROR: skipping '#{task.name}' in '#{proj.name}': #{e.message}"
|
514
518
|
end
|
515
519
|
end
|
516
520
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omnifocus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aja
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
|
31
31
|
xx3n58i0lQkBE1EpKE0lFu/y
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2014-
|
33
|
+
date: 2014-08-08 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rb-appscript
|
@@ -66,14 +66,14 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '5.
|
69
|
+
version: '5.4'
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '5.
|
76
|
+
version: '5.4'
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: rdoc
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|