omnifocus-rt 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 +5 -0
- data/README.txt +9 -8
- data/Rakefile +3 -2
- data/lib/omnifocus/rt.rb +24 -23
- metadata +75 -31
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
=
|
1
|
+
= omnifocus-rt
|
2
2
|
|
3
|
-
|
3
|
+
home :: https://github.com/seattlerb/omnifocus-rt
|
4
|
+
rdoc :: http://seattlerb.rubyforge.org/omnifocus-rt
|
4
5
|
|
5
6
|
== DESCRIPTION:
|
6
7
|
|
@@ -17,11 +18,11 @@ uses the REST interface to RT. More information about query formatting is
|
|
17
18
|
available here: http://wiki.bestpractical.com/view/REST
|
18
19
|
|
19
20
|
Example:
|
20
|
-
:rt_url: rt
|
21
|
-
:queue: QA
|
22
|
-
:username: user
|
23
|
-
:password: pass
|
24
|
-
:query: "Queue='QA'ANDOwner='Nobody'ANDStatus!='rejected'"
|
21
|
+
:rt_url: rt
|
22
|
+
:queue: QA
|
23
|
+
:username: user
|
24
|
+
:password: pass
|
25
|
+
:query: "Queue='QA'ANDOwner='Nobody'ANDStatus!='rejected'"
|
25
26
|
|
26
27
|
|
27
28
|
== FEATURES/PROBLEMS:
|
@@ -40,7 +41,7 @@ Example:
|
|
40
41
|
|
41
42
|
(The MIT License)
|
42
43
|
|
43
|
-
Copyright (c)
|
44
|
+
Copyright (c) Aja Hammerly, seattle.rb
|
44
45
|
|
45
46
|
Permission is hereby granted, free of charge, to any person obtaining
|
46
47
|
a copy of this software and associated documentation files (the
|
data/Rakefile
CHANGED
@@ -3,11 +3,12 @@
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'hoe'
|
5
5
|
|
6
|
+
Hoe.plugin :seattlerb
|
7
|
+
|
6
8
|
Hoe.spec 'omnifocus-rt' do
|
7
9
|
developer('aja', 'kushali@rubyforge.org')
|
8
10
|
|
9
|
-
|
10
|
-
extra_deps << 'omnifocus'
|
11
|
+
extra_deps << ["omnifocus", "~> 1.3.1"]
|
11
12
|
end
|
12
13
|
|
13
14
|
# vim: syntax=ruby
|
data/lib/omnifocus/rt.rb
CHANGED
@@ -1,29 +1,30 @@
|
|
1
1
|
require 'open-uri'
|
2
2
|
|
3
3
|
module OmniFocus::Rt
|
4
|
-
VERSION = '1.0.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
4
|
+
VERSION = '1.0.1'
|
5
|
+
PREFIX = "RM"
|
6
|
+
|
7
|
+
def load_or_create_rt_config
|
8
|
+
path = File.expand_path "~/.omnifocus-rt.yml"
|
9
|
+
config = YAML.load(File.read(path)) rescue nil
|
10
|
+
|
11
|
+
unless config then
|
12
|
+
config = {
|
13
|
+
:username => "USERNAME",
|
14
|
+
:password => "PASSWORD",
|
15
|
+
:rt_url => "tickets.mysite.com",
|
16
|
+
:queue => "MyQueue"
|
17
|
+
}
|
18
|
+
|
19
|
+
File.open(path, "w") { |f|
|
20
|
+
YAML.dump(config, f)
|
21
|
+
}
|
22
|
+
|
23
|
+
abort "Created default config in #{path}. Go fill it out."
|
24
|
+
end
|
24
25
|
|
25
|
-
|
26
|
-
|
26
|
+
config
|
27
|
+
end
|
27
28
|
|
28
29
|
def populate_rt_tasks
|
29
30
|
config = load_or_create_rt_config
|
@@ -43,7 +44,7 @@ module OmniFocus::Rt
|
|
43
44
|
lines.each do |line|
|
44
45
|
bug_number = line[/(\d+):(.*)/, 1]
|
45
46
|
next unless bug_number
|
46
|
-
ticket_id = "
|
47
|
+
ticket_id = "#{PREFIX}##{bug_number}"
|
47
48
|
|
48
49
|
if existing[ticket_id] then
|
49
50
|
project = existing[ticket_id]
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omnifocus-rt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 21
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- aja
|
@@ -9,43 +15,75 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2011-08-03 00:00:00 -07:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: omnifocus
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 25
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 3
|
33
|
+
- 1
|
34
|
+
version: 1.3.1
|
17
35
|
type: :runtime
|
18
|
-
|
19
|
-
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: minitest
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
20
42
|
requirements:
|
21
43
|
- - ">="
|
22
44
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
45
|
+
hash: 11
|
46
|
+
segments:
|
47
|
+
- 2
|
48
|
+
- 0
|
49
|
+
- 2
|
50
|
+
version: 2.0.2
|
51
|
+
type: :development
|
52
|
+
version_requirements: *id002
|
25
53
|
- !ruby/object:Gem::Dependency
|
26
54
|
name: hoe
|
27
|
-
|
28
|
-
|
29
|
-
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
30
58
|
requirements:
|
31
|
-
- -
|
59
|
+
- - ~>
|
32
60
|
- !ruby/object:Gem::Version
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
61
|
+
hash: 23
|
62
|
+
segments:
|
63
|
+
- 2
|
64
|
+
- 10
|
65
|
+
version: "2.10"
|
66
|
+
type: :development
|
67
|
+
version_requirements: *id003
|
68
|
+
description: |-
|
69
|
+
Plugin for omnifocus gem to provide rt BTS synchronization.
|
70
|
+
|
71
|
+
The first time this runs it creates a yaml file in your home directory
|
72
|
+
for the rt url, username, password, default queue and query.
|
73
|
+
|
74
|
+
The query is optional. If you don't supply it omnifocus-rt will pull all
|
75
|
+
tickets from the default queue assigned to the specified user.
|
76
|
+
|
77
|
+
The use a custom query you must supply it in the config file. omnifocus-rt
|
78
|
+
uses the REST interface to RT. More information about query formatting is
|
79
|
+
available here: http://wiki.bestpractical.com/view/REST
|
80
|
+
|
81
|
+
Example:
|
82
|
+
:rt_url: rt
|
83
|
+
:queue: QA
|
84
|
+
:username: user
|
85
|
+
:password: pass
|
86
|
+
:query: "Queue='QA'ANDOwner='Nobody'ANDStatus!='rejected'"
|
49
87
|
email:
|
50
88
|
- kushali@rubyforge.org
|
51
89
|
executables: []
|
@@ -64,7 +102,7 @@ files:
|
|
64
102
|
- Rakefile
|
65
103
|
- lib/omnifocus/rt.rb
|
66
104
|
has_rdoc: true
|
67
|
-
homepage:
|
105
|
+
homepage: https://github.com/seattlerb/omnifocus-rt
|
68
106
|
licenses: []
|
69
107
|
|
70
108
|
post_install_message:
|
@@ -74,21 +112,27 @@ rdoc_options:
|
|
74
112
|
require_paths:
|
75
113
|
- lib
|
76
114
|
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
77
116
|
requirements:
|
78
117
|
- - ">="
|
79
118
|
- !ruby/object:Gem::Version
|
119
|
+
hash: 3
|
120
|
+
segments:
|
121
|
+
- 0
|
80
122
|
version: "0"
|
81
|
-
version:
|
82
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
|
+
none: false
|
83
125
|
requirements:
|
84
126
|
- - ">="
|
85
127
|
- !ruby/object:Gem::Version
|
128
|
+
hash: 3
|
129
|
+
segments:
|
130
|
+
- 0
|
86
131
|
version: "0"
|
87
|
-
version:
|
88
132
|
requirements: []
|
89
133
|
|
90
|
-
rubyforge_project:
|
91
|
-
rubygems_version: 1.
|
134
|
+
rubyforge_project: omnifocus-rt
|
135
|
+
rubygems_version: 1.4.2
|
92
136
|
signing_key:
|
93
137
|
specification_version: 3
|
94
138
|
summary: Plugin for omnifocus gem to provide rt BTS synchronization
|