threetee-roart 0.1.4
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 +17 -0
- data/README.rdoc +85 -0
- data/Rakefile +35 -0
- data/lib/roart.rb +49 -0
- data/lib/roart/callbacks.rb +25 -0
- data/lib/roart/connection.rb +62 -0
- data/lib/roart/core/array.rb +11 -0
- data/lib/roart/core/hash.rb +15 -0
- data/lib/roart/core/string.rb +21 -0
- data/lib/roart/errors.rb +11 -0
- data/lib/roart/history.rb +115 -0
- data/lib/roart/roart.rb +27 -0
- data/lib/roart/ticket.rb +381 -0
- data/lib/roart/ticket_page.rb +65 -0
- data/spec/roart/callbacks_spec.rb +49 -0
- data/spec/roart/connection_spec.rb +7 -0
- data/spec/roart/core/array_spec.rb +13 -0
- data/spec/roart/core/hash_spec.rb +16 -0
- data/spec/roart/core/string_spec.rb +13 -0
- data/spec/roart/history_spec.rb +60 -0
- data/spec/roart/roart_spec.rb +11 -0
- data/spec/roart/ticket_page_spec.rb +59 -0
- data/spec/roart/ticket_spec.rb +440 -0
- data/spec/roart_spec.rb +8 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/test_data/full_history.txt +126 -0
- data/spec/test_data/single_history.txt +26 -0
- data/threetee-roart.gemspec +37 -0
- metadata +105 -0
data/spec/roart_spec.rb
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
dir = File.dirname(__FILE__)
|
3
|
+
|
4
|
+
$:.unshift(File.join(dir, '/../lib/'))
|
5
|
+
require dir + '/../lib/roart'
|
6
|
+
|
7
|
+
def dbtime(time)
|
8
|
+
time.strftime("%Y-%m-%d %H:%M:%S")
|
9
|
+
end
|
10
|
+
|
11
|
+
def to_content_format(data)
|
12
|
+
fields = data.map { |key,value| "#{key.to_s.camelize}: #{value}" unless value.nil? }
|
13
|
+
fields.compact.join("\n")
|
14
|
+
end
|
15
|
+
|
16
|
+
Spec::Runner.configure do |config|
|
17
|
+
# == Mock Framework
|
18
|
+
#
|
19
|
+
# RSpec uses it's own mocking framework by default. If you prefer to
|
20
|
+
# use mocha, flexmock or RR, uncomment the appropriate line:
|
21
|
+
#
|
22
|
+
# config.mock_with :mocha
|
23
|
+
# config.mock_with :flexmock
|
24
|
+
# config.mock_with :rr
|
25
|
+
end
|
26
|
+
|
27
|
+
# EOF
|
@@ -0,0 +1,126 @@
|
|
1
|
+
RT/3.6.6 200 Ok
|
2
|
+
|
3
|
+
# 5/5 (id/34725/total)
|
4
|
+
|
5
|
+
id: 34725
|
6
|
+
Ticket: 12345
|
7
|
+
TimeTaken: 0
|
8
|
+
Type: Create
|
9
|
+
Field:
|
10
|
+
OldValue:
|
11
|
+
NewValue:
|
12
|
+
Data:
|
13
|
+
Description: Ticket created by Dallas-stezuohc@LEESSUMMITHONDA.COM
|
14
|
+
|
15
|
+
Content: Now you can get big real fast at an affordable price
|
16
|
+
http://www.lameppe.com/
|
17
|
+
|
18
|
+
|
19
|
+
Creator: Dallas-stezuohc@LEESSUMMITHONDA.COM
|
20
|
+
Created: 2008-06-03 09:24:32
|
21
|
+
|
22
|
+
Attachments:
|
23
|
+
16377: untitled (77b)
|
24
|
+
16379: untitled (248b)
|
25
|
+
|
26
|
+
|
27
|
+
--
|
28
|
+
|
29
|
+
# 5/5 (id/34727/total)
|
30
|
+
|
31
|
+
id: 34727
|
32
|
+
Ticket: 12345
|
33
|
+
TimeTaken: 0
|
34
|
+
Type: EmailRecord
|
35
|
+
Field:
|
36
|
+
OldValue:
|
37
|
+
NewValue:
|
38
|
+
Data: <rt-3.6.6-50432-1212485073-937.12345-456-0@somewhere.com>
|
39
|
+
Description: Outgoing email recorded by RT_System
|
40
|
+
|
41
|
+
Content:
|
42
|
+
Greetings,
|
43
|
+
|
44
|
+
This message has been automatically generated in response to the creation of a trouble ticket at Somewhere Technical Support regarding:
|
45
|
+
"SUPPORT EMAIL: Somewhere- 2 pills a day and you will be good"
|
46
|
+
|
47
|
+
There is no need to reply to this message right now. Your ticket has been
|
48
|
+
assigned an ID of [RequestTracker #12345].
|
49
|
+
|
50
|
+
Please include the ID in the subject line, or "reply" to this message, for all future correspondence about this issue.
|
51
|
+
|
52
|
+
You can also call us 24 hours a day, 7 days a week.
|
53
|
+
|
54
|
+
We appreciate your business!
|
55
|
+
|
56
|
+
Sincerely,
|
57
|
+
|
58
|
+
Somewhere Technical Support Team
|
59
|
+
|
60
|
+
Thank you,
|
61
|
+
support@somewhere.com
|
62
|
+
1-800-468-3474
|
63
|
+
|
64
|
+
-------------------------------------------------------------------------
|
65
|
+
Now you can get big real fast at an affordable price
|
66
|
+
http://www.lameppe.com/
|
67
|
+
|
68
|
+
|
69
|
+
Creator: RT_System
|
70
|
+
Created: 2008-06-03 09:24:33
|
71
|
+
Attachments:
|
72
|
+
|
73
|
+
--
|
74
|
+
|
75
|
+
# 5/5 (id/34871/total)
|
76
|
+
|
77
|
+
id: 34871
|
78
|
+
Ticket: 12345
|
79
|
+
TimeTaken: 0
|
80
|
+
Type: Take
|
81
|
+
Field: Owner
|
82
|
+
OldValue: 10
|
83
|
+
NewValue: 527
|
84
|
+
Data:
|
85
|
+
Description: Taken by someone
|
86
|
+
Content: This transaction appears to have no content
|
87
|
+
Creator: someone
|
88
|
+
Created: 2008-06-03 10:39:16
|
89
|
+
Attachments:
|
90
|
+
|
91
|
+
--
|
92
|
+
|
93
|
+
# 5/5 (id/34883/total)
|
94
|
+
|
95
|
+
id: 34883
|
96
|
+
Ticket: 12345
|
97
|
+
TimeTaken: 0
|
98
|
+
Type: Comment
|
99
|
+
Field:
|
100
|
+
OldValue:
|
101
|
+
NewValue:
|
102
|
+
Data: No Subject
|
103
|
+
Description: Comments added by someone
|
104
|
+
Content: SPAM
|
105
|
+
Creator: someone
|
106
|
+
Created: 2008-06-03 10:39:49
|
107
|
+
Attachments:
|
108
|
+
|
109
|
+
--
|
110
|
+
|
111
|
+
# 5/5 (id/34885/total)
|
112
|
+
|
113
|
+
id: 34885
|
114
|
+
Ticket: 12345
|
115
|
+
TimeTaken: 0
|
116
|
+
Type: Status
|
117
|
+
Field: Status
|
118
|
+
OldValue: new
|
119
|
+
NewValue: deleted
|
120
|
+
Data:
|
121
|
+
Description: Ticket deleted by someone
|
122
|
+
Content: This transaction appears to have no content
|
123
|
+
Creator: someone
|
124
|
+
Created: 2008-06-03 10:39:50
|
125
|
+
Attachments:
|
126
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
RT/3.6.6 200 Ok
|
2
|
+
|
3
|
+
# 5/5 (id/34725/total)
|
4
|
+
|
5
|
+
id: 34725
|
6
|
+
Ticket: 12345
|
7
|
+
TimeTaken: 0
|
8
|
+
Type: Create
|
9
|
+
Field:
|
10
|
+
OldValue:
|
11
|
+
NewValue:
|
12
|
+
Data:
|
13
|
+
Description: Ticket created by Dallas-stezuohc@LEESSUMMITHONDA.COM
|
14
|
+
|
15
|
+
Content: Now you can get big real fast at an affordable price
|
16
|
+
http://www.lameppe.com/
|
17
|
+
|
18
|
+
|
19
|
+
Creator: Dallas-stezuohc@LEESSUMMITHONDA.COM
|
20
|
+
Created: 2008-06-03 09:24:32
|
21
|
+
|
22
|
+
Attachments:
|
23
|
+
16377: untitled (77b)
|
24
|
+
16379: untitled (248b)
|
25
|
+
|
26
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{threetee-roart}
|
5
|
+
s.version = "0.1.4"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["PJ Davis"]
|
9
|
+
s.date = %q{2009-11-23}
|
10
|
+
s.description = %q{Interface for working with Request Tracker (RT) tickets inspired by ActiveRecord.}
|
11
|
+
s.email = %q{pj.davis@gmail.com}
|
12
|
+
s.extra_rdoc_files = ["History.txt", "README.rdoc", "spec/test_data/full_history.txt", "spec/test_data/single_history.txt"]
|
13
|
+
s.files = ["History.txt", "README.rdoc", "Rakefile", "lib/roart.rb", "lib/roart/callbacks.rb", "lib/roart/connection.rb", "lib/roart/core/array.rb", "lib/roart/core/hash.rb", "lib/roart/core/string.rb", "lib/roart/errors.rb", "lib/roart/history.rb", "lib/roart/roart.rb", "lib/roart/ticket.rb", "lib/roart/ticket_page.rb", "threetee-roart.gemspec", "spec/roart/callbacks_spec.rb", "spec/roart/connection_spec.rb", "spec/roart/core/array_spec.rb", "spec/roart/core/hash_spec.rb", "spec/roart/core/string_spec.rb", "spec/roart/history_spec.rb", "spec/roart/roart_spec.rb", "spec/roart/ticket_page_spec.rb", "spec/roart/ticket_spec.rb", "spec/roart_spec.rb", "spec/spec_helper.rb", "spec/test_data/full_history.txt", "spec/test_data/single_history.txt"]
|
14
|
+
s.has_rdoc = true
|
15
|
+
s.homepage = %q{http://github.com/threetee/roart}
|
16
|
+
s.rdoc_options = ["--main", "README.rdoc"]
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.rubyforge_project = %q{threetee-roart}
|
19
|
+
s.rubygems_version = %q{1.3.2}
|
20
|
+
s.summary = %q{Interface for working with Request Tracker (RT) tickets inspired by ActiveRecord}
|
21
|
+
|
22
|
+
if s.respond_to? :specification_version then
|
23
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
24
|
+
s.specification_version = 3
|
25
|
+
|
26
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
27
|
+
s.add_runtime_dependency(%q<mechanize>, [">= 0.9.0"])
|
28
|
+
s.add_development_dependency(%q<bones>, [">= 2.5.1"])
|
29
|
+
else
|
30
|
+
s.add_dependency(%q<mechanize>, [">= 0.9.0"])
|
31
|
+
s.add_dependency(%q<bones>, [">= 2.5.1"])
|
32
|
+
end
|
33
|
+
else
|
34
|
+
s.add_dependency(%q<mechanize>, [">= 0.9.0"])
|
35
|
+
s.add_dependency(%q<bones>, [">= 2.5.1"])
|
36
|
+
end
|
37
|
+
end
|
metadata
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: threetee-roart
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- PJ Davis
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-11-23 00:00:00 -08:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: mechanize
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.9.0
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: bones
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.5.1
|
34
|
+
version:
|
35
|
+
description: Interface for working with Request Tracker (RT) tickets inspired by ActiveRecord.
|
36
|
+
email: pj.davis@gmail.com
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- History.txt
|
43
|
+
- README.rdoc
|
44
|
+
- spec/test_data/full_history.txt
|
45
|
+
- spec/test_data/single_history.txt
|
46
|
+
files:
|
47
|
+
- History.txt
|
48
|
+
- README.rdoc
|
49
|
+
- Rakefile
|
50
|
+
- lib/roart.rb
|
51
|
+
- lib/roart/callbacks.rb
|
52
|
+
- lib/roart/connection.rb
|
53
|
+
- lib/roart/core/array.rb
|
54
|
+
- lib/roart/core/hash.rb
|
55
|
+
- lib/roart/core/string.rb
|
56
|
+
- lib/roart/errors.rb
|
57
|
+
- lib/roart/history.rb
|
58
|
+
- lib/roart/roart.rb
|
59
|
+
- lib/roart/ticket.rb
|
60
|
+
- lib/roart/ticket_page.rb
|
61
|
+
- threetee-roart.gemspec
|
62
|
+
- spec/roart/callbacks_spec.rb
|
63
|
+
- spec/roart/connection_spec.rb
|
64
|
+
- spec/roart/core/array_spec.rb
|
65
|
+
- spec/roart/core/hash_spec.rb
|
66
|
+
- spec/roart/core/string_spec.rb
|
67
|
+
- spec/roart/history_spec.rb
|
68
|
+
- spec/roart/roart_spec.rb
|
69
|
+
- spec/roart/ticket_page_spec.rb
|
70
|
+
- spec/roart/ticket_spec.rb
|
71
|
+
- spec/roart_spec.rb
|
72
|
+
- spec/spec_helper.rb
|
73
|
+
- spec/test_data/full_history.txt
|
74
|
+
- spec/test_data/single_history.txt
|
75
|
+
has_rdoc: true
|
76
|
+
homepage: http://github.com/threetee/roart
|
77
|
+
licenses: []
|
78
|
+
|
79
|
+
post_install_message:
|
80
|
+
rdoc_options:
|
81
|
+
- --main
|
82
|
+
- README.rdoc
|
83
|
+
require_paths:
|
84
|
+
- lib
|
85
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: "0"
|
90
|
+
version:
|
91
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: "0"
|
96
|
+
version:
|
97
|
+
requirements: []
|
98
|
+
|
99
|
+
rubyforge_project: threetee-roart
|
100
|
+
rubygems_version: 1.3.5
|
101
|
+
signing_key:
|
102
|
+
specification_version: 3
|
103
|
+
summary: Interface for working with Request Tracker (RT) tickets inspired by ActiveRecord
|
104
|
+
test_files: []
|
105
|
+
|