omnifocus 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data.tar.gz.sig +0 -0
  2. data/History.txt +7 -0
  3. data/Rakefile +1 -1
  4. data/lib/omnifocus.rb +5 -3
  5. metadata +12 -13
  6. metadata.gz.sig +0 -0
data.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 1.5.1 / 2011-08-12
2
+
3
+ * 2 bug fixes:
4
+
5
+ * Roll back mechanize from 2.x to 1.x... buggy mechanize is buggy
6
+ * refactored and fixed existing task scanning
7
+
1
8
  === 1.5.0 / 2011-08-11
2
9
 
3
10
  * 2 minor enhancements:
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ Hoe.spec "omnifocus" do
11
11
  developer "Ryan Davis", "ryand-ruby@zenspider.com"
12
12
 
13
13
  dependency "rb-appscript", "~> 0.6.1"
14
- dependency "mechanize", "~> 2.0.0"
14
+ dependency "mechanize", "~> 1.0"
15
15
 
16
16
  self.rubyforge_name = "seattlerb"
17
17
 
data/lib/omnifocus.rb CHANGED
@@ -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.0'
27
+ VERSION = '1.5.1'
28
28
 
29
29
  ##
30
30
  # bug_db = {
@@ -119,9 +119,11 @@ class OmniFocus
119
119
  prefixen = self.class.plugins.map { |klass| klass::PREFIX rescue nil }
120
120
  of_tasks = nil
121
121
 
122
+ prefix_re = /^(#{Regexp.union prefixen}(?:-[\w.-]+)?\#\d+)/
123
+
122
124
  if prefixen.all? then
123
125
  of_tasks = all_tasks.find_all { |task|
124
- task.name.get =~ /^(#{Regexp.union prefixen}(?:-[\w.-]+)?\#\d+)/
126
+ task.name.get =~ prefix_re
125
127
  }
126
128
  else
127
129
  warn "WA"+"RN: Older plugins installed. Falling back to The Old Ways"
@@ -132,7 +134,7 @@ class OmniFocus
132
134
  end
133
135
 
134
136
  of_tasks.each do |of_task|
135
- ticket_id = of_task.name.get[/^([A-Z]+(?:-[\w-]+)?\#\d+)/, 1]
137
+ ticket_id = of_task.name.get[prefix_re, 1]
136
138
  project = of_task.containing_project.name.get
137
139
  existing[ticket_id] = project
138
140
  bug_db[project][ticket_id] = false
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: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 0
10
- version: 1.5.0
9
+ - 1
10
+ version: 1.5.1
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-12 00:00:00 Z
40
+ date: 2011-08-13 00:00:00 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rb-appscript
@@ -65,10 +65,9 @@ dependencies:
65
65
  - !ruby/object:Gem::Version
66
66
  hash: 15
67
67
  segments:
68
- - 2
69
- - 0
68
+ - 1
70
69
  - 0
71
- version: 2.0.0
70
+ version: "1.0"
72
71
  type: :runtime
73
72
  version_requirements: *id002
74
73
  - !ruby/object:Gem::Dependency
@@ -79,11 +78,11 @@ dependencies:
79
78
  requirements:
80
79
  - - ~>
81
80
  - !ruby/object:Gem::Version
82
- hash: 5
81
+ hash: 11
83
82
  segments:
84
83
  - 2
85
- - 3
86
- version: "2.3"
84
+ - 4
85
+ version: "2.4"
87
86
  type: :development
88
87
  version_requirements: *id003
89
88
  - !ruby/object:Gem::Dependency
@@ -94,11 +93,11 @@ dependencies:
94
93
  requirements:
95
94
  - - ~>
96
95
  - !ruby/object:Gem::Version
97
- hash: 23
96
+ hash: 21
98
97
  segments:
99
98
  - 2
100
- - 10
101
- version: "2.10"
99
+ - 11
100
+ version: "2.11"
102
101
  type: :development
103
102
  version_requirements: *id004
104
103
  description: Synchronizes bug tracking systems to omnifocus.
metadata.gz.sig CHANGED
Binary file