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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d110b8619af70de8f0a2f567e6c34b310c7051d0
4
- data.tar.gz: 06080ddedc2b318a5c70466bac922ea11e5bef09
3
+ metadata.gz: 495ee01a28dd983d42e3ed1998d3ed6023b76176
4
+ data.tar.gz: d99d1cadb4c3be8e191ca41a4fbefd3a8c54a398
5
5
  SHA512:
6
- metadata.gz: 7a6a4ad3b5295931096f0eac1dba39e2bbc71272f436cdfc225b0c5428bd39535d5a0721bd31e4eca1dad6c37ce948269b9fd3e97876d124f58e5d479545f89d
7
- data.tar.gz: 348f11d8064e884cfbd14d9eebdb7655680509c6768262c5025a3486c1f33ea6aee5f4bea2560b8e421c9cfff9d53d019911c7b5e91fb0a256855825b9df1030
6
+ metadata.gz: 6af2f009d7aa51b9f54ab0ccaac48500fd23b25e2e9f0dd127519e719381a0eaa1e46143814f789939f5c9d14c315ff22fcfe34859b75ff837635f5089be87f0
7
+ data.tar.gz: 2ef66453dbf507077759e3a765be9e85f945dc6720e2049af4b348a6681d6e3a54f9547e9af107e0d2f4bff08814593217d28a6bcfd2a467af568c977ea21148
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 2.1.5 / 2014-08-08
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixed 'of reschedule' to gracefully deal with tasks w/o repeat.
6
+
1
7
  === 2.1.4 / 2014-05-15
2
8
 
3
9
  * 1 minor enhancement:
data/Rakefile CHANGED
@@ -18,18 +18,25 @@ Hoe.spec "omnifocus" do
18
18
  pluggable!
19
19
  end
20
20
 
21
- inc = "-Ilib:../../omnifocus-github/dev/lib:../../omnifocus-redmin/dev/lib"
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
- ENV["GEM_PATH"] = File.expand_path "~/.gem/sandboxes/omnifocus"
30
+ omnifocus "sync"
31
+ end
25
32
 
26
- ruby "#{inc} bin/of sync"
33
+ task :fix => :isolate do
34
+ omnifocus "fix"
35
+ omnifocus "resch"
27
36
  end
28
37
 
29
38
  task :debug => :isolate do
30
- ENV["GEM_PATH"] = File.expand_path "~/.gem/sandboxes/omnifocus"
31
-
32
- ruby "-d #{inc} bin/of sync github"
39
+ omnifocus "sync github", "-d"
33
40
  end
34
41
 
35
42
  # vim: syntax=ruby
@@ -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.4"
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
- proj = task.project
500
+ begin
501
+ proj = task.project
501
502
 
502
- t_ri = task.repetition[:steps]
503
- p_ri = proj.review_interval[:steps]
503
+ t_ri = task.repetition[:steps]
504
+ p_ri = proj.review_interval[:steps]
504
505
 
505
- if t_ri != p_ri then
506
- warn "Fixing #{task.name} to #{p_ri} weeks"
506
+ if t_ri != p_ri then
507
+ warn "Fixing #{task.name} to #{p_ri} weeks"
507
508
 
508
- rep = {
509
- :recurrence => "FREQ=WEEKLY;INTERVAL=#{p_ri}",
510
- :repetition_method => :fixed_repetition,
511
- }
509
+ rep = {
510
+ :recurrence => "FREQ=WEEKLY;INTERVAL=#{p_ri}",
511
+ :repetition_method => :fixed_repetition,
512
+ }
512
513
 
513
- task.thing.repetition_rule.set :to => rep unless skip
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
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-05-15 00:00:00.000000000 Z
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.3'
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.3'
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