omnifocus-rt 1.0.0 → 1.0.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 (5) hide show
  1. data/History.txt +5 -0
  2. data/README.txt +9 -8
  3. data/Rakefile +3 -2
  4. data/lib/omnifocus/rt.rb +24 -23
  5. metadata +75 -31
@@ -1,3 +1,8 @@
1
+ === 1.0.1 / 2011-07-11
2
+ * 1 bug fix:
3
+
4
+ * Added PREFIX const for new filtering system
5
+
1
6
  === 1.0.0 / 2009-12-22
2
7
 
3
8
  * 1 major enhancement
data/README.txt CHANGED
@@ -1,6 +1,7 @@
1
- = omnifocus_rt
1
+ = omnifocus-rt
2
2
 
3
- * http://rubyforge.org/projects/seattlerb
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) 2009 Aja Hammerly
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
- self.rubyforge_name = 'seattlerb'
10
- extra_deps << 'omnifocus'
11
+ extra_deps << ["omnifocus", "~> 1.3.1"]
11
12
  end
12
13
 
13
14
  # vim: syntax=ruby
@@ -1,29 +1,30 @@
1
1
  require 'open-uri'
2
2
 
3
3
  module OmniFocus::Rt
4
- VERSION = '1.0.0'
5
-
6
- def load_or_create_rt_config
7
- path = File.expand_path "~/.omnifocus-rt.yml"
8
- config = YAML.load(File.read(path)) rescue nil
9
-
10
- unless config then
11
- config = {
12
- :username => "USERNAME",
13
- :password => "PASSWORD",
14
- :rt_url => "tickets.mysite.com",
15
- :queue => "MyQueue"
16
- }
17
-
18
- File.open(path, "w") { |f|
19
- YAML.dump(config, f)
20
- }
21
-
22
- abort "Created default config in #{path}. Go fill it out."
23
- end
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
- config
26
- end
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 = "RT##{bug_number}"
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
- version: 1.0.0
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: 2009-12-22 00:00:00 -08:00
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
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
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
- version: "0"
24
- version:
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
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
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
- version: 2.4.0
34
- version:
35
- description: "Plugin for omnifocus gem to provide rt BTS synchronization.\n\n\
36
- The first time this runs it creates a yaml file in your home directory\n\
37
- for the rt url, username, password, default queue and query.\n\n\
38
- The query is optional. If you don't supply it omnifocus-rt will pull all\n\
39
- tickets from the default queue assigned to the specified user.\n\n\
40
- The use a custom query you must supply it in the config file. omnifocus-rt\n\
41
- uses the REST interface to RT. More information about query formatting is\n\
42
- available here: http://wiki.bestpractical.com/view/REST\n\n\
43
- Example:\n\
44
- :rt_url: rt\n\
45
- :queue: QA\n\
46
- :username: user\n\
47
- :password: pass\n\
48
- :query: \"Queue='QA'ANDOwner='Nobody'ANDStatus!='rejected'\""
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: http://rubyforge.org/projects/seattlerb
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: seattlerb
91
- rubygems_version: 1.3.5
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