omnifocus-bugzilla 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/Rakefile +0 -1
- data/lib/omnifocus/bugzilla.rb +4 -4
- metadata +53 -15
data/History.txt
CHANGED
data/Rakefile
CHANGED
data/lib/omnifocus/bugzilla.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module OmniFocus::Bugzilla
|
2
|
-
VERSION = '1.1.
|
2
|
+
VERSION = '1.1.1'
|
3
3
|
|
4
4
|
def load_or_create_config
|
5
5
|
path = File.expand_path "~/.omnifocus-bugzilla.yml"
|
@@ -8,7 +8,7 @@ module OmniFocus::Bugzilla
|
|
8
8
|
unless config then
|
9
9
|
config = {
|
10
10
|
:username => "USERNAME",
|
11
|
-
:bugzilla_url => "http://example.com/
|
11
|
+
:bugzilla_url => "http://example.com/"
|
12
12
|
}
|
13
13
|
|
14
14
|
File.open(path, "w") { |f|
|
@@ -25,7 +25,7 @@ module OmniFocus::Bugzilla
|
|
25
25
|
config = load_or_create_config
|
26
26
|
bugzilla_url = config[:bugzilla_url]
|
27
27
|
username = config[:username]
|
28
|
-
default_query = "bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailtype1=substring&email1=#{username}"
|
28
|
+
default_query = "cgi-bin/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailtype1=substring&email1=#{username}"
|
29
29
|
|
30
30
|
unless config[:queries]
|
31
31
|
process_query_results(bugzilla_url, default_query)
|
@@ -51,7 +51,7 @@ module OmniFocus::Bugzilla
|
|
51
51
|
project = existing[ticket_id]
|
52
52
|
bug_db[project][ticket_id] = true
|
53
53
|
else
|
54
|
-
url = "
|
54
|
+
url = "#{bugzilla_url}show_bug.cgi?id=#{bug_number}"
|
55
55
|
details = Nokogiri.parse(mechanize.get("#{url}&ctype=xml").body)
|
56
56
|
product = details.root.xpath('//product/text()').text.downcase
|
57
57
|
title = details.root.xpath('//short_desc/text()').text
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omnifocus-bugzilla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 17
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 1.1.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- aja
|
@@ -9,29 +15,55 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2010-12-14 00:00:00 -08:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: omnifocus
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ">="
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
23
32
|
version: "0"
|
24
|
-
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
25
35
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
36
|
+
name: minitest
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 15
|
44
|
+
segments:
|
45
|
+
- 1
|
46
|
+
- 7
|
47
|
+
- 2
|
48
|
+
version: 1.7.2
|
27
49
|
type: :development
|
28
|
-
|
29
|
-
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: hoe
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
30
56
|
requirements:
|
31
57
|
- - ">="
|
32
58
|
- !ruby/object:Gem::Version
|
33
|
-
|
34
|
-
|
59
|
+
hash: 47
|
60
|
+
segments:
|
61
|
+
- 2
|
62
|
+
- 8
|
63
|
+
- 0
|
64
|
+
version: 2.8.0
|
65
|
+
type: :development
|
66
|
+
version_requirements: *id003
|
35
67
|
description: "Plugin for omnifocus gem to provide bugzilla BTS synchronization.\n\n\
|
36
68
|
The first time this runs it creates a yaml file in your home directory\n\
|
37
69
|
for the bugzilla url, username, and queries.\n\n\
|
@@ -75,21 +107,27 @@ rdoc_options:
|
|
75
107
|
require_paths:
|
76
108
|
- lib
|
77
109
|
required_ruby_version: !ruby/object:Gem::Requirement
|
110
|
+
none: false
|
78
111
|
requirements:
|
79
112
|
- - ">="
|
80
113
|
- !ruby/object:Gem::Version
|
114
|
+
hash: 3
|
115
|
+
segments:
|
116
|
+
- 0
|
81
117
|
version: "0"
|
82
|
-
version:
|
83
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
84
120
|
requirements:
|
85
121
|
- - ">="
|
86
122
|
- !ruby/object:Gem::Version
|
123
|
+
hash: 3
|
124
|
+
segments:
|
125
|
+
- 0
|
87
126
|
version: "0"
|
88
|
-
version:
|
89
127
|
requirements: []
|
90
128
|
|
91
|
-
rubyforge_project:
|
92
|
-
rubygems_version: 1.3.
|
129
|
+
rubyforge_project: omnifocus-bugzilla
|
130
|
+
rubygems_version: 1.3.7
|
93
131
|
signing_key:
|
94
132
|
specification_version: 3
|
95
133
|
summary: Plugin for omnifocus gem to provide bugzilla BTS synchronization
|