omnifocus-bugzilla 1.1.0 → 1.1.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.
Files changed (4) hide show
  1. data/History.txt +3 -0
  2. data/Rakefile +0 -1
  3. data/lib/omnifocus/bugzilla.rb +4 -4
  4. metadata +53 -15
@@ -1,3 +1,6 @@
1
+ === 1.1.1 / 2010-12-14
2
+ * Fixed a hardcoded url
3
+
1
4
  === 1.1.0 / 2009-09-29
2
5
 
3
6
  * Added support for multiple bugzilla queries on the same bugzilla server.
data/Rakefile CHANGED
@@ -8,7 +8,6 @@ Hoe.plugin :seattlerb
8
8
  Hoe.spec 'omnifocus-bugzilla' do
9
9
  developer('aja', 'kushali@rubyforge.org')
10
10
 
11
- self.rubyforge_name = 'seattlerb'
12
11
  extra_deps << 'omnifocus'
13
12
  end
14
13
 
@@ -1,5 +1,5 @@
1
1
  module OmniFocus::Bugzilla
2
- VERSION = '1.1.0'
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/cgi-bin/buglist.cgi"
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 = "http://bugs/show_bug.cgi?id=#{bug_number}"
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
- version: 1.1.0
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: 2009-09-29 00:00:00 -07:00
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
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
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
- version:
33
+ type: :runtime
34
+ version_requirements: *id001
25
35
  - !ruby/object:Gem::Dependency
26
- name: hoe
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
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
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
- version: 2.3.2
34
- version:
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: seattlerb
92
- rubygems_version: 1.3.5
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