omnifocus-redmine 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Rakefile +1 -0
- data/lib/omnifocus/redmine.rb +4 -4
- metadata +4 -4
data/History.txt
CHANGED
data/Rakefile
CHANGED
data/lib/omnifocus/redmine.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module OmniFocus::Redmine
|
2
|
-
VERSION = '1.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
|
-
|
27
|
+
user_id = config[:user_id]
|
28
28
|
|
29
|
-
query = "#{redmine_url}/issues.xml?
|
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 = "
|
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:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.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-
|
18
|
+
date: 2010-12-14 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|