ticketmaster-trac 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.rbenv-gemsets +1 -0
- data/.travis.yml +4 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +75 -0
- data/Rakefile +12 -12
- data/VERSION +1 -1
- data/lib/provider/comment.rb +2 -2
- data/lib/provider/ticket.rb +1 -1
- data/spec/comments_spec.rb +0 -1
- data/spec/spec_helper.rb +3 -4
- data/ticketmaster-trac.gemspec +38 -16
- metadata +138 -18
data/.rbenv-gemsets
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ticketmaster-trac
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
source :rubygems
|
2
|
+
|
3
|
+
gem "ticketmaster", "0.6.10"
|
4
|
+
gem "trac4r", "~> 1.2"
|
5
|
+
gem "nokogiri", "~> 1.5"
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem "rspec", "~> 2.8"
|
9
|
+
gem "bundler", "~> 1.1"
|
10
|
+
gem "jeweler", "~> 1.6"
|
11
|
+
gem "simplecov", "~> 0.5", :platform => :ruby_19
|
12
|
+
gem "rcov", "~> 1.0", :platform => :ruby_18
|
13
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activemodel (3.2.2)
|
5
|
+
activesupport (= 3.2.2)
|
6
|
+
builder (~> 3.0.0)
|
7
|
+
activeresource (3.2.2)
|
8
|
+
activemodel (= 3.2.2)
|
9
|
+
activesupport (= 3.2.2)
|
10
|
+
activesupport (3.2.2)
|
11
|
+
i18n (~> 0.6)
|
12
|
+
multi_json (~> 1.0)
|
13
|
+
builder (3.0.0)
|
14
|
+
diff-lcs (1.1.3)
|
15
|
+
gash (0.1.3)
|
16
|
+
open4 (>= 0, = 0.9.6)
|
17
|
+
git (1.2.5)
|
18
|
+
gli (1.4.0)
|
19
|
+
grancher (0.1.5)
|
20
|
+
gash
|
21
|
+
hashie (1.2.0)
|
22
|
+
i18n (0.6.0)
|
23
|
+
jeweler (1.6.4)
|
24
|
+
bundler (~> 1.0)
|
25
|
+
git (>= 1.2.5)
|
26
|
+
rake
|
27
|
+
json (1.6.5)
|
28
|
+
multi_json (1.0.4)
|
29
|
+
nokogiri (1.5.0)
|
30
|
+
open4 (0.9.6)
|
31
|
+
rainbow (1.1.3)
|
32
|
+
rake (0.9.2.2)
|
33
|
+
rcov (1.0.0)
|
34
|
+
rdoc (3.12)
|
35
|
+
json (~> 1.4)
|
36
|
+
rspec (2.8.0)
|
37
|
+
rspec-core (~> 2.8.0)
|
38
|
+
rspec-expectations (~> 2.8.0)
|
39
|
+
rspec-mocks (~> 2.8.0)
|
40
|
+
rspec-core (2.8.0)
|
41
|
+
rspec-expectations (2.8.0)
|
42
|
+
diff-lcs (~> 1.1.2)
|
43
|
+
rspec-mocks (2.8.0)
|
44
|
+
sdoc (0.3.16)
|
45
|
+
json (>= 1.1.3)
|
46
|
+
rdoc (~> 3.10)
|
47
|
+
simplecov (0.5.4)
|
48
|
+
multi_json (~> 1.0.3)
|
49
|
+
simplecov-html (~> 0.5.3)
|
50
|
+
simplecov-html (0.5.3)
|
51
|
+
ticketmaster (0.6.10)
|
52
|
+
activeresource (~> 3.0)
|
53
|
+
activesupport (~> 3.0)
|
54
|
+
hashie (~> 1.2)
|
55
|
+
trac4r (1.2.4)
|
56
|
+
gli
|
57
|
+
gli (>= 1.1.0)
|
58
|
+
grancher
|
59
|
+
jeweler
|
60
|
+
rainbow
|
61
|
+
rainbow (>= 1.0.4)
|
62
|
+
sdoc
|
63
|
+
|
64
|
+
PLATFORMS
|
65
|
+
ruby
|
66
|
+
|
67
|
+
DEPENDENCIES
|
68
|
+
bundler (~> 1.1)
|
69
|
+
jeweler (~> 1.6)
|
70
|
+
nokogiri (~> 1.5)
|
71
|
+
rcov (~> 1.0)
|
72
|
+
rspec (~> 2.8)
|
73
|
+
simplecov (~> 0.5)
|
74
|
+
ticketmaster (= 0.6.10)
|
75
|
+
trac4r (~> 1.2)
|
data/Rakefile
CHANGED
@@ -10,8 +10,6 @@ begin
|
|
10
10
|
gem.email = "rafael@hybridgroup.com"
|
11
11
|
gem.homepage = "http://github.com/hybridgroup/ticketmaster-trac"
|
12
12
|
gem.authors = ["Rafael George"]
|
13
|
-
gem.add_development_dependency "rspec", ">= 1.2.9"
|
14
|
-
gem.add_dependency "ticketmaster", ">= 0.6.0"
|
15
13
|
gem.add_dependency "trac4r"
|
16
14
|
gem.add_dependency "nokogiri"
|
17
15
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
@@ -21,22 +19,24 @@ rescue LoadError
|
|
21
19
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
22
20
|
end
|
23
21
|
|
24
|
-
require '
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
require 'rspec/core'
|
23
|
+
require 'rspec/core/rake_task'
|
24
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
25
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
28
26
|
end
|
29
27
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
spec.rcov = true
|
28
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
29
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
30
|
+
spec.rcov = true
|
34
31
|
end
|
35
32
|
|
36
|
-
task :spec => :check_dependencies
|
37
|
-
|
38
33
|
task :default => :spec
|
39
34
|
|
35
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
36
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
37
|
+
spec.rcov = true
|
38
|
+
end
|
39
|
+
|
40
40
|
require 'rake/rdoctask'
|
41
41
|
Rake::RDocTask.new do |rdoc|
|
42
42
|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.6
|
data/lib/provider/comment.rb
CHANGED
@@ -54,7 +54,7 @@ module TicketMaster::Provider
|
|
54
54
|
def self.find(project_id, ticket_id, *options)
|
55
55
|
if options[0].first.is_a? Array
|
56
56
|
self.find_all(ticket_id).select do |comment|
|
57
|
-
comment if options[0].
|
57
|
+
comment if options[0].any? { |id| id == comment.id }
|
58
58
|
end
|
59
59
|
elsif options[0].first.is_a? Hash
|
60
60
|
self.find_by_attributes(project_id, ticket_id, options[0].first)
|
@@ -69,7 +69,7 @@ module TicketMaster::Provider
|
|
69
69
|
|
70
70
|
def self.find_all(ticket_id)
|
71
71
|
comments = CommentUtil.new(ticket_id,TicketMaster::Provider::Trac.api).comments
|
72
|
-
comments.
|
72
|
+
comments.compact.collect do |comment|
|
73
73
|
TicketMaster::Provider::Trac::Comment.new comment
|
74
74
|
end
|
75
75
|
end
|
data/lib/provider/ticket.rb
CHANGED
data/spec/comments_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -3,10 +3,9 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'ticketmaster'
|
5
5
|
require 'ticketmaster-trac'
|
6
|
-
require '
|
7
|
-
require 'spec/autorun'
|
8
|
-
|
9
|
-
Spec::Runner.configure do |config|
|
6
|
+
require 'rspec'
|
10
7
|
|
8
|
+
RSpec.configure do |config|
|
9
|
+
config.color_enabled = true
|
11
10
|
end
|
12
11
|
|
data/ticketmaster-trac.gemspec
CHANGED
@@ -4,20 +4,24 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.5.
|
7
|
+
s.name = "ticketmaster-trac"
|
8
|
+
s.version = "0.5.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
11
|
+
s.authors = ["Rafael George"]
|
12
|
+
s.date = "2012-03-23"
|
13
|
+
s.description = "Allows ticketmaster to interact with Your System."
|
14
|
+
s.email = "rafael@hybridgroup.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
17
|
"README.md"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
+
".rbenv-gemsets",
|
20
21
|
".rvmrc",
|
22
|
+
".travis.yml",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
21
25
|
"LICENSE",
|
22
26
|
"README.md",
|
23
27
|
"Rakefile",
|
@@ -39,28 +43,46 @@ Gem::Specification.new do |s|
|
|
39
43
|
"spec/tickets_spec.rb",
|
40
44
|
"ticketmaster-trac.gemspec"
|
41
45
|
]
|
42
|
-
s.homepage =
|
43
|
-
s.require_paths = [
|
44
|
-
s.rubygems_version =
|
45
|
-
s.summary =
|
46
|
+
s.homepage = "http://github.com/hybridgroup/ticketmaster-trac"
|
47
|
+
s.require_paths = ["lib"]
|
48
|
+
s.rubygems_version = "1.8.15"
|
49
|
+
s.summary = "Ticketmaster Provider for Trac"
|
46
50
|
|
47
51
|
if s.respond_to? :specification_version then
|
48
52
|
s.specification_version = 3
|
49
53
|
|
50
54
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
|
-
s.
|
52
|
-
s.add_runtime_dependency(%q<
|
55
|
+
s.add_runtime_dependency(%q<ticketmaster>, ["= 0.6.10"])
|
56
|
+
s.add_runtime_dependency(%q<trac4r>, ["~> 1.2"])
|
57
|
+
s.add_runtime_dependency(%q<nokogiri>, ["~> 1.5"])
|
58
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8"])
|
59
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.1"])
|
60
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6"])
|
61
|
+
s.add_development_dependency(%q<simplecov>, ["~> 0.5"])
|
62
|
+
s.add_development_dependency(%q<rcov>, ["~> 1.0"])
|
53
63
|
s.add_runtime_dependency(%q<trac4r>, [">= 0"])
|
54
64
|
s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
|
55
65
|
else
|
56
|
-
s.add_dependency(%q<
|
57
|
-
s.add_dependency(%q<
|
66
|
+
s.add_dependency(%q<ticketmaster>, ["= 0.6.10"])
|
67
|
+
s.add_dependency(%q<trac4r>, ["~> 1.2"])
|
68
|
+
s.add_dependency(%q<nokogiri>, ["~> 1.5"])
|
69
|
+
s.add_dependency(%q<rspec>, ["~> 2.8"])
|
70
|
+
s.add_dependency(%q<bundler>, ["~> 1.1"])
|
71
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6"])
|
72
|
+
s.add_dependency(%q<simplecov>, ["~> 0.5"])
|
73
|
+
s.add_dependency(%q<rcov>, ["~> 1.0"])
|
58
74
|
s.add_dependency(%q<trac4r>, [">= 0"])
|
59
75
|
s.add_dependency(%q<nokogiri>, [">= 0"])
|
60
76
|
end
|
61
77
|
else
|
62
|
-
s.add_dependency(%q<
|
63
|
-
s.add_dependency(%q<
|
78
|
+
s.add_dependency(%q<ticketmaster>, ["= 0.6.10"])
|
79
|
+
s.add_dependency(%q<trac4r>, ["~> 1.2"])
|
80
|
+
s.add_dependency(%q<nokogiri>, ["~> 1.5"])
|
81
|
+
s.add_dependency(%q<rspec>, ["~> 2.8"])
|
82
|
+
s.add_dependency(%q<bundler>, ["~> 1.1"])
|
83
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6"])
|
84
|
+
s.add_dependency(%q<simplecov>, ["~> 0.5"])
|
85
|
+
s.add_dependency(%q<rcov>, ["~> 1.0"])
|
64
86
|
s.add_dependency(%q<trac4r>, [">= 0"])
|
65
87
|
s.add_dependency(%q<nokogiri>, [">= 0"])
|
66
88
|
end
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticketmaster-trac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 7
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 5
|
9
|
+
- 6
|
10
|
+
version: 0.5.6
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Rafael George
|
@@ -10,52 +15,157 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date:
|
18
|
+
date: 2012-03-23 00:00:00 Z
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
|
-
name: rspec
|
17
|
-
prerelease: false
|
18
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|
19
22
|
none: false
|
20
23
|
requirements:
|
21
|
-
- - "
|
24
|
+
- - "="
|
22
25
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
26
|
+
hash: 19
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 6
|
30
|
+
- 10
|
31
|
+
version: 0.6.10
|
25
32
|
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
33
|
name: ticketmaster
|
28
34
|
prerelease: false
|
35
|
+
type: :runtime
|
36
|
+
- !ruby/object:Gem::Dependency
|
29
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
30
38
|
none: false
|
31
39
|
requirements:
|
32
|
-
- -
|
40
|
+
- - ~>
|
33
41
|
- !ruby/object:Gem::Version
|
34
|
-
|
35
|
-
|
42
|
+
hash: 11
|
43
|
+
segments:
|
44
|
+
- 1
|
45
|
+
- 2
|
46
|
+
version: "1.2"
|
36
47
|
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
48
|
name: trac4r
|
39
49
|
prerelease: false
|
50
|
+
type: :runtime
|
51
|
+
- !ruby/object:Gem::Dependency
|
40
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
41
53
|
none: false
|
42
54
|
requirements:
|
43
|
-
- -
|
55
|
+
- - ~>
|
44
56
|
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
57
|
+
hash: 5
|
58
|
+
segments:
|
59
|
+
- 1
|
60
|
+
- 5
|
61
|
+
version: "1.5"
|
47
62
|
version_requirements: *id003
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
63
|
name: nokogiri
|
50
64
|
prerelease: false
|
65
|
+
type: :runtime
|
66
|
+
- !ruby/object:Gem::Dependency
|
51
67
|
requirement: &id004 !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ~>
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 19
|
73
|
+
segments:
|
74
|
+
- 2
|
75
|
+
- 8
|
76
|
+
version: "2.8"
|
77
|
+
version_requirements: *id004
|
78
|
+
name: rspec
|
79
|
+
prerelease: false
|
80
|
+
type: :development
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
hash: 13
|
88
|
+
segments:
|
89
|
+
- 1
|
90
|
+
- 1
|
91
|
+
version: "1.1"
|
92
|
+
version_requirements: *id005
|
93
|
+
name: bundler
|
94
|
+
prerelease: false
|
95
|
+
type: :development
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ~>
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
hash: 3
|
103
|
+
segments:
|
104
|
+
- 1
|
105
|
+
- 6
|
106
|
+
version: "1.6"
|
107
|
+
version_requirements: *id006
|
108
|
+
name: jeweler
|
109
|
+
prerelease: false
|
110
|
+
type: :development
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
hash: 1
|
118
|
+
segments:
|
119
|
+
- 0
|
120
|
+
- 5
|
121
|
+
version: "0.5"
|
122
|
+
version_requirements: *id007
|
123
|
+
name: simplecov
|
124
|
+
prerelease: false
|
125
|
+
type: :development
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ~>
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
hash: 15
|
133
|
+
segments:
|
134
|
+
- 1
|
135
|
+
- 0
|
136
|
+
version: "1.0"
|
137
|
+
version_requirements: *id008
|
138
|
+
name: rcov
|
139
|
+
prerelease: false
|
140
|
+
type: :development
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
52
143
|
none: false
|
53
144
|
requirements:
|
54
145
|
- - ">="
|
55
146
|
- !ruby/object:Gem::Version
|
147
|
+
hash: 3
|
148
|
+
segments:
|
149
|
+
- 0
|
56
150
|
version: "0"
|
151
|
+
version_requirements: *id009
|
152
|
+
name: trac4r
|
153
|
+
prerelease: false
|
154
|
+
type: :runtime
|
155
|
+
- !ruby/object:Gem::Dependency
|
156
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
157
|
+
none: false
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
hash: 3
|
162
|
+
segments:
|
163
|
+
- 0
|
164
|
+
version: "0"
|
165
|
+
version_requirements: *id010
|
166
|
+
name: nokogiri
|
167
|
+
prerelease: false
|
57
168
|
type: :runtime
|
58
|
-
version_requirements: *id004
|
59
169
|
description: Allows ticketmaster to interact with Your System.
|
60
170
|
email: rafael@hybridgroup.com
|
61
171
|
executables: []
|
@@ -66,7 +176,11 @@ extra_rdoc_files:
|
|
66
176
|
- LICENSE
|
67
177
|
- README.md
|
68
178
|
files:
|
179
|
+
- .rbenv-gemsets
|
69
180
|
- .rvmrc
|
181
|
+
- .travis.yml
|
182
|
+
- Gemfile
|
183
|
+
- Gemfile.lock
|
70
184
|
- LICENSE
|
71
185
|
- README.md
|
72
186
|
- Rakefile
|
@@ -100,17 +214,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
214
|
requirements:
|
101
215
|
- - ">="
|
102
216
|
- !ruby/object:Gem::Version
|
217
|
+
hash: 3
|
218
|
+
segments:
|
219
|
+
- 0
|
103
220
|
version: "0"
|
104
221
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
222
|
none: false
|
106
223
|
requirements:
|
107
224
|
- - ">="
|
108
225
|
- !ruby/object:Gem::Version
|
226
|
+
hash: 3
|
227
|
+
segments:
|
228
|
+
- 0
|
109
229
|
version: "0"
|
110
230
|
requirements: []
|
111
231
|
|
112
232
|
rubyforge_project:
|
113
|
-
rubygems_version: 1.8.
|
233
|
+
rubygems_version: 1.8.15
|
114
234
|
signing_key:
|
115
235
|
specification_version: 3
|
116
236
|
summary: Ticketmaster Provider for Trac
|