omnifocus-rubyforge 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/History.txt +6 -0
  2. data/lib/omnifocus/rubyforge.rb +5 -4
  3. metadata +2 -2
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.1.0 / 2009-07-28
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Updated for new bts_id format
6
+
1
7
  === 1.0.0 / 2009-07-26
2
8
 
3
9
  * 1 major enhancement
@@ -1,7 +1,7 @@
1
1
  require 'rubyforge'
2
2
 
3
3
  module OmniFocus::Rubyforge
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  RF_URL = "http://rubyforge.org"
6
6
 
7
7
  def rubyforge
@@ -37,13 +37,14 @@ module OmniFocus::Rubyforge
37
37
  rubyforge_tickets = home.links_with(:href => /^.tracker/)
38
38
  rubyforge_tickets.each do |link|
39
39
  if link.href =~ /func=detail&aid=(\d+)&group_id=(\d+)&atid=(\d+)/ then
40
- ticket_id, group_id = $1.to_i, $2.to_i
40
+ ticket_id, group_id = "RF##{$1}", $2.to_i
41
41
  group = group_ids[group_id]
42
42
 
43
43
  next unless group
44
44
 
45
45
  if existing[ticket_id] then
46
- bug_db[existing[ticket_id]][ticket_id] = true
46
+ project = existing[ticket_id]
47
+ bug_db[project][ticket_id] = true
47
48
  next
48
49
  end
49
50
 
@@ -53,7 +54,7 @@ module OmniFocus::Rubyforge
53
54
  project = select.selected_options.first
54
55
  project = project ? project.text.downcase : group
55
56
  project = group if project =~ /\s/
56
- title = "RF##{ticket_id}: #{link.text}"
57
+ title = "#{ticket_id}: #{link.text}"
57
58
  url = "#{RF_URL}/#{link.href}"
58
59
 
59
60
  bug_db[project][ticket_id] = [title, url]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnifocus-rubyforge
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-26 00:00:00 -07:00
12
+ date: 2009-07-28 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency