omnifocus 2.1.5 → 2.1.6

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: 495ee01a28dd983d42e3ed1998d3ed6023b76176
4
- data.tar.gz: d99d1cadb4c3be8e191ca41a4fbefd3a8c54a398
3
+ metadata.gz: 12dfe0db9f9f72e86eb4130dd489bac8c67ed0b5
4
+ data.tar.gz: 8709438638fa0dc7d13e2b02114f6da997e426bd
5
5
  SHA512:
6
- metadata.gz: 6af2f009d7aa51b9f54ab0ccaac48500fd23b25e2e9f0dd127519e719381a0eaa1e46143814f789939f5c9d14c315ff22fcfe34859b75ff837635f5089be87f0
7
- data.tar.gz: 2ef66453dbf507077759e3a765be9e85f945dc6720e2049af4b348a6681d6e3a54f9547e9af107e0d2f4bff08814593217d28a6bcfd2a467af568c977ea21148
6
+ metadata.gz: 77c307c4607b3208d61cd2481fa09cb3db27d5e439b8e022cbf473d07996948bce10a9f1560a8eced162d219fa35a7f851de5d1fd6d1fdc3f3c770be69939255
7
+ data.tar.gz: 6f86d43004d9ecefb86174728d573d6a13a778afc549e0f857c10cb80c4d4ea9bdf52c0c6ad1812e62b73e7b6c607b371f5cb16492e17dbb365035d09728ec3f
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 2.1.6 / 2015-01-09
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Review command filters out dropped projects.
6
+
1
7
  === 2.1.5 / 2014-08-08
2
8
 
3
9
  * 1 bug fix:
data/README.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  = omnifocus
2
2
 
3
3
  home :: https://github.com/seattlerb/omnifocus
4
- rdoc :: http://seattlerb.rubyforge.org/omnifocus
4
+ rdoc :: http://docs.seattlerb.org/omnifocus
5
5
 
6
6
  == DESCRIPTION:
7
7
 
data/Rakefile CHANGED
@@ -14,13 +14,12 @@ Hoe.spec "omnifocus" do
14
14
 
15
15
  dependency "rb-appscript", "~> 0.6.1"
16
16
  dependency "mechanize", "~> 2.0"
17
+ dependency "octokit", "~> 2.0", :development if ENV["TEST"]
17
18
 
18
19
  pluggable!
19
20
  end
20
21
 
21
22
  def omnifocus cmd, options = nil
22
- ENV["GEM_PATH"] = File.expand_path "~/.gem/sandboxes/omnifocus"
23
-
24
23
  inc = "-Ilib:../../omnifocus-github/dev/lib:../../omnifocus-redmine/dev/lib"
25
24
 
26
25
  ruby "#{options} #{inc} bin/of #{cmd}"
@@ -36,7 +35,9 @@ task :fix => :isolate do
36
35
  end
37
36
 
38
37
  task :debug => :isolate do
39
- omnifocus "sync github", "-d"
38
+ cmd = ENV["CMD"] || "sync github"
39
+ d = ENV["D"] ? "-d" : nil
40
+ omnifocus cmd, d
40
41
  end
41
42
 
42
43
  # 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.5"
29
+ VERSION = "2.1.6"
30
30
 
31
31
  ##
32
32
  # bug_db = {
@@ -393,13 +393,7 @@ class OmniFocus
393
393
  def cmd_fix_review_dates args # TODO: merge into reschedule
394
394
  skip = ARGV.first == "-n"
395
395
 
396
- projs = Hash.new { |h,k| h[k] = [] }
397
-
398
- all_projects.each do |proj|
399
- ri = proj.review_interval
400
-
401
- projs[ri[:steps]] << proj
402
- end
396
+ projs = all_projects.group_by { |proj| proj.review_interval[:steps] }
403
397
 
404
398
  projs.each do |k, a|
405
399
  # helps stabilize and prevent random shuffling
@@ -612,7 +606,7 @@ class OmniFocus
612
606
  end
613
607
 
614
608
  def cmd_review args
615
- print_aggregate_report all_projects
609
+ print_aggregate_report live_projects
616
610
  end
617
611
 
618
612
  class Thingy
@@ -805,12 +799,22 @@ class OmniFocus
805
799
  its.status.eq(:active)
806
800
  end
807
801
 
802
+ def non_dropped_project
803
+ its.status.eq(:dropped).not
804
+ end
805
+
808
806
  def all_projects
809
807
  self.omnifocus.flattened_projects.get.map { |p|
810
808
  Project.new omnifocus, p
811
809
  }
812
810
  end
813
811
 
812
+ def live_projects
813
+ self.omnifocus.flattened_projects[non_dropped_project].get.map { |p|
814
+ Project.new omnifocus, p
815
+ }
816
+ end
817
+
814
818
  def all_contexts
815
819
  self.omnifocus.flattened_contexts.get.map { |c|
816
820
  Context.new omnifocus, c
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.5
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - aja
@@ -11,9 +11,9 @@ bindir: bin
11
11
  cert_chain:
12
12
  - |
13
13
  -----BEGIN CERTIFICATE-----
14
- MIIDPjCCAiagAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
14
+ MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
15
15
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
16
- GRYDY29tMB4XDTEzMDkxNjIzMDQxMloXDTE0MDkxNjIzMDQxMlowRTETMBEGA1UE
16
+ GRYDY29tMB4XDTE0MDkxNzIzMDcwN1oXDTE1MDkxNzIzMDcwN1owRTETMBEGA1UE
17
17
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
18
18
  JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
19
19
  b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -23,14 +23,14 @@ cert_chain:
23
23
  qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
24
24
  gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
25
25
  HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
26
- AQCFZ7JTzoy1gcG4d8A6dmOJy7ygtO5MFpRIz8HuKCF5566nOvpy7aHhDDzFmQuu
27
- FX3zDU6ghx5cQIueDhf2SGOncyBmmJRRYawm3wI0o1MeN6LZJ/3cRaOTjSFy6+S6
28
- zqDmHBp8fVA2TGJtO0BLNkbGVrBJjh0UPmSoGzWlRhEVnYC33TpDAbNA+u39UrQI
29
- ynwhNN7YbnmSR7+JU2cUjBFv2iPBO+TGuWC+9L2zn3NHjuc6tnmSYipA9y8Hv+As
30
- Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
31
- xx3n58i0lQkBE1EpKE0lFu/y
26
+ AQAFoDJRokCQdxFfOrmsKX41KOFlU/zjrbDVM9hgB/Ur999M6OXGSi8FitXNtMwY
27
+ FVjsiAPeU7HaWVVcZkj6IhINelTkXsxgGz/qCzjHy3iUMuZWw36cS0fiWJ5rvH+e
28
+ hD7uXxJSFuyf1riDGI1aeWbQ74WMwvNstOxLUMiV5a1fzBhlxPqb537ubDjq/M/h
29
+ zPUFPVYeL5KjDHLCqI2FwIk2sEMOQgjpXHzl+3NlD2LUgUhHDMevmgVua0e2GT1B
30
+ xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
31
+ VpzF30vNaJK6ZT7xlIsIlwmH
32
32
  -----END CERTIFICATE-----
33
- date: 2014-08-08 00:00:00.000000000 Z
33
+ date: 2015-01-10 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.4'
69
+ version: '5.5'
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.4'
76
+ version: '5.5'
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: rdoc
79
79
  requirement: !ruby/object:Gem::Requirement
@@ -94,14 +94,14 @@ dependencies:
94
94
  requirements:
95
95
  - - ~>
96
96
  - !ruby/object:Gem::Version
97
- version: '3.12'
97
+ version: '3.13'
98
98
  type: :development
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - ~>
103
103
  - !ruby/object:Gem::Version
104
- version: '3.12'
104
+ version: '3.13'
105
105
  description: Synchronizes bug tracking systems to omnifocus.
106
106
  email:
107
107
  - kushali@rubyforge.org
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: 1.3.1
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 2.2.1
150
+ rubygems_version: 2.4.1
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Synchronizes bug tracking systems to omnifocus.
metadata.gz.sig CHANGED
Binary file