omnifocus-redmine 1.0.1 → 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.
- data/History.txt +3 -0
- data/README.txt +14 -0
- data/lib/omnifocus/redmine.rb +14 -2
- metadata +26 -18
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -9,6 +9,20 @@ Plugin for the omnifocus gem to provide synchronization with Redmine Issues.
|
|
9
9
|
The first time this runs it creates a yaml file in your home directory for
|
10
10
|
the redmine url and username.
|
11
11
|
|
12
|
+
The queries config is optional. If it is not included omnifocus-redmine will
|
13
|
+
pull all open bugs assigned to the specified user.
|
14
|
+
|
15
|
+
To use a custom query or multiple queries you must include a queries parameter
|
16
|
+
in your config.
|
17
|
+
|
18
|
+
The queries config is an array of strings. These strings will be appended onto a
|
19
|
+
query of the form: http://your-redmine-url/issues.xml?assigned_to_id=user-id?.
|
20
|
+
|
21
|
+
Example:
|
22
|
+
:user_id: 20
|
23
|
+
:redmine_url: http://redmine/
|
24
|
+
:queries: ["status_id=1", "status_id=2"]
|
25
|
+
|
12
26
|
== FEATURES/PROBLEMS:
|
13
27
|
|
14
28
|
* Provides redmine synchronization
|
data/lib/omnifocus/redmine.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module OmniFocus::Redmine
|
2
|
-
VERSION = '1.0
|
2
|
+
VERSION = '1.1.0'
|
3
3
|
|
4
4
|
def load_or_create_redmine_config
|
5
5
|
path = File.expand_path "~/.omnifocus-redmine.yml"
|
@@ -25,9 +25,20 @@ module OmniFocus::Redmine
|
|
25
25
|
config = load_or_create_redmine_config
|
26
26
|
redmine_url = config[:redmine_url]
|
27
27
|
user_id = config[:user_id]
|
28
|
+
default_query = "#{redmine_url}/issues.xml?assigned_to_id=#{user_id}"
|
28
29
|
|
29
|
-
|
30
|
+
unless config[:queries]
|
31
|
+
process_query_results default_query
|
32
|
+
else
|
33
|
+
queries = config[:queries]
|
34
|
+
queries.each do |q|
|
35
|
+
process_query_results "#{default_query}&#{q}"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
30
39
|
|
40
|
+
def process_query_results(query)
|
41
|
+
puts query
|
31
42
|
mechanize.get(query)
|
32
43
|
details = Nokogiri.parse(mechanize.current_page.body)
|
33
44
|
|
@@ -50,5 +61,6 @@ module OmniFocus::Redmine
|
|
50
61
|
bug_db[project][ticket_id] = ["#{ticket_id}: #{title}", url]
|
51
62
|
end
|
52
63
|
end
|
64
|
+
|
53
65
|
end
|
54
66
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
- 0
|
9
8
|
- 1
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 1.1.0
|
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:
|
18
|
+
date: 2011-02-08 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -40,12 +40,12 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
hash:
|
43
|
+
hash: 11
|
44
44
|
segments:
|
45
|
-
- 1
|
46
|
-
- 7
|
47
45
|
- 2
|
48
|
-
|
46
|
+
- 0
|
47
|
+
- 2
|
48
|
+
version: 2.0.2
|
49
49
|
type: :development
|
50
50
|
version_requirements: *id002
|
51
51
|
- !ruby/object:Gem::Dependency
|
@@ -56,19 +56,27 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
hash:
|
59
|
+
hash: 47
|
60
60
|
segments:
|
61
61
|
- 2
|
62
|
-
-
|
62
|
+
- 8
|
63
63
|
- 0
|
64
|
-
version: 2.
|
64
|
+
version: 2.8.0
|
65
65
|
type: :development
|
66
66
|
version_requirements: *id003
|
67
|
-
description:
|
68
|
-
|
69
|
-
|
70
|
-
The
|
71
|
-
|
67
|
+
description: "Plugin for the omnifocus gem to provide synchronization with Redmine Issues.\n\n\
|
68
|
+
The first time this runs it creates a yaml file in your home directory for \n\
|
69
|
+
the redmine url and username.\n\n\
|
70
|
+
The queries config is optional. If it is not included omnifocus-redmine will\n\
|
71
|
+
pull all open bugs assigned to the specified user.\n\n\
|
72
|
+
To use a custom query or multiple queries you must include a queries parameter\n\
|
73
|
+
in your config.\n\n\
|
74
|
+
The queries config is an array of strings. These strings will be appended onto a\n\
|
75
|
+
query of the form: http://your-redmine-url/issues.xml?assigned_to_id=user-id?.\n\n\
|
76
|
+
Example:\n\
|
77
|
+
:user_id: 20\n\
|
78
|
+
:redmine_url: http://redmine/\n\
|
79
|
+
:queries: [\"status_id=1\", \"status_id=2\"]"
|
72
80
|
email:
|
73
81
|
- kushali@rubyforge.org
|
74
82
|
executables: []
|
@@ -116,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
124
|
requirements: []
|
117
125
|
|
118
126
|
rubyforge_project: seattlerb
|
119
|
-
rubygems_version: 1.
|
127
|
+
rubygems_version: 1.4.2
|
120
128
|
signing_key:
|
121
129
|
specification_version: 3
|
122
130
|
summary: Plugin for the omnifocus gem to provide synchronization with Redmine Issues
|