omnifocus-redmine 1.0.0 → 1.0.1

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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.0.1 / 2010-12-07
2
+ * Fixed links in omnifocus
3
+ * Fixed url for pulling bugs from assigned_to to assigned_to_id
4
+
1
5
  === 1.0.0 / 2010-11-30
2
6
 
3
7
  * 1 major enhancement
data/Rakefile CHANGED
@@ -4,6 +4,7 @@ require 'rubygems'
4
4
  require 'hoe'
5
5
 
6
6
  Hoe.plugin :seattlerb
7
+ Hoe.plugins.delete :rubyforge
7
8
 
8
9
  Hoe.spec 'omnifocus-redmine' do
9
10
  developer('aja', 'kushali@rubyforge.org')
@@ -1,5 +1,5 @@
1
1
  module OmniFocus::Redmine
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
 
4
4
  def load_or_create_redmine_config
5
5
  path = File.expand_path "~/.omnifocus-redmine.yml"
@@ -24,9 +24,9 @@ module OmniFocus::Redmine
24
24
  def populate_redmine_tasks
25
25
  config = load_or_create_redmine_config
26
26
  redmine_url = config[:redmine_url]
27
- user = config[:user]
27
+ user_id = config[:user_id]
28
28
 
29
- query = "#{redmine_url}/issues.xml?assigned_to='#{user}'"
29
+ query = "#{redmine_url}/issues.xml?assigned_to_id=#{user_id}"
30
30
 
31
31
  mechanize.get(query)
32
32
  details = Nokogiri.parse(mechanize.current_page.body)
@@ -45,7 +45,7 @@ module OmniFocus::Redmine
45
45
  title = i.xpath('./subject').text
46
46
  component = i.xpath('./category/@name').text
47
47
  project = "#{product}-#{component}"
48
- url = "http://#{redmine_url}/issues/#{bug_number}"
48
+ url = "#{redmine_url}/issues/#{bug_number}"
49
49
 
50
50
  bug_db[project][ticket_id] = ["#{ticket_id}: #{title}", url]
51
51
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnifocus-redmine
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - aja
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-07 00:00:00 -08:00
18
+ date: 2010-12-14 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency