ticketmaster-lighthouse 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -0
- data/Gemfile +18 -0
- data/Gemfile.lock +59 -0
- data/Rakefile +6 -13
- data/VERSION +1 -1
- data/lib/provider/lighthouse.rb +1 -0
- data/spec/comments_spec.rb +1 -0
- data/spec/projects_spec.rb +2 -0
- data/spec/spec_helper.rb +3 -4
- data/spec/tickets_spec.rb +2 -0
- data/ticketmaster-lighthouse.gemspec +37 -19
- metadata +77 -19
data/.travis.yml
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
gem "ticketmaster", "0.6.10"
|
7
|
+
gem "xml-simple", "~> 1.1"
|
8
|
+
gem "addressable", "~> 2.2"
|
9
|
+
gem "lighthouse-api", "~> 2.0"
|
10
|
+
# Add dependencies to develop your gem here.
|
11
|
+
# Include everything needed to run rake, tests, features, etc.
|
12
|
+
group :development do
|
13
|
+
gem "rspec", "~> 2.8"
|
14
|
+
gem "bundler", "~> 1.1"
|
15
|
+
gem "jeweler", "~> 1.6"
|
16
|
+
gem "simplecov", "~> 0.5", :platforms => :ruby_19
|
17
|
+
gem "rcov", "~> 1.0", :platforms => :ruby_18
|
18
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activemodel (3.2.1)
|
5
|
+
activesupport (= 3.2.1)
|
6
|
+
builder (~> 3.0.0)
|
7
|
+
activeresource (3.2.1)
|
8
|
+
activemodel (= 3.2.1)
|
9
|
+
activesupport (= 3.2.1)
|
10
|
+
activesupport (3.2.1)
|
11
|
+
i18n (~> 0.6)
|
12
|
+
multi_json (~> 1.0)
|
13
|
+
addressable (2.2.7)
|
14
|
+
builder (3.0.0)
|
15
|
+
diff-lcs (1.1.3)
|
16
|
+
git (1.2.5)
|
17
|
+
hashie (1.2.0)
|
18
|
+
i18n (0.6.0)
|
19
|
+
jeweler (1.6.4)
|
20
|
+
bundler (~> 1.0)
|
21
|
+
git (>= 1.2.5)
|
22
|
+
rake
|
23
|
+
lighthouse-api (2.0)
|
24
|
+
activeresource (>= 3.0.0)
|
25
|
+
activesupport (>= 3.0.0)
|
26
|
+
multi_json (1.0.4)
|
27
|
+
rake (0.9.2.2)
|
28
|
+
rcov (1.0.0)
|
29
|
+
rspec (2.8.0)
|
30
|
+
rspec-core (~> 2.8.0)
|
31
|
+
rspec-expectations (~> 2.8.0)
|
32
|
+
rspec-mocks (~> 2.8.0)
|
33
|
+
rspec-core (2.8.0)
|
34
|
+
rspec-expectations (2.8.0)
|
35
|
+
diff-lcs (~> 1.1.2)
|
36
|
+
rspec-mocks (2.8.0)
|
37
|
+
simplecov (0.5.4)
|
38
|
+
multi_json (~> 1.0.3)
|
39
|
+
simplecov-html (~> 0.5.3)
|
40
|
+
simplecov-html (0.5.3)
|
41
|
+
ticketmaster (0.6.10)
|
42
|
+
activeresource (~> 3.0)
|
43
|
+
activesupport (~> 3.0)
|
44
|
+
hashie (~> 1.2)
|
45
|
+
xml-simple (1.1.1)
|
46
|
+
|
47
|
+
PLATFORMS
|
48
|
+
ruby
|
49
|
+
|
50
|
+
DEPENDENCIES
|
51
|
+
addressable (~> 2.2)
|
52
|
+
bundler (~> 1.1)
|
53
|
+
jeweler (~> 1.6)
|
54
|
+
lighthouse-api (~> 2.0)
|
55
|
+
rcov (~> 1.0)
|
56
|
+
rspec (~> 2.8)
|
57
|
+
simplecov (~> 0.5)
|
58
|
+
ticketmaster (= 0.6.10)
|
59
|
+
xml-simple (~> 1.1)
|
data/Rakefile
CHANGED
@@ -10,10 +10,6 @@ begin
|
|
10
10
|
gem.email = "hong.quach@abigfisch.com"
|
11
11
|
gem.homepage = "http://github.com/kiafaldorius/ticketmaster-lighthouse"
|
12
12
|
gem.authors = ["Hong"]
|
13
|
-
gem.add_development_dependency "rspec", ">= 1.2.9"
|
14
|
-
gem.add_dependency "ticketmaster", ">= 0.6.0"
|
15
|
-
gem.add_dependency "lighthouse-api", "~> 2.0"
|
16
|
-
gem.add_dependency "addressable", ">= 2.1.2"
|
17
13
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
18
14
|
end
|
19
15
|
Jeweler::GemcutterTasks.new
|
@@ -21,20 +17,17 @@ rescue LoadError
|
|
21
17
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
22
18
|
end
|
23
19
|
|
24
|
-
require '
|
25
|
-
|
26
|
-
|
27
|
-
spec.
|
20
|
+
require 'rspec/core'
|
21
|
+
require 'rspec/core/rake_task'
|
22
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
23
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
28
24
|
end
|
29
25
|
|
30
|
-
|
31
|
-
spec.libs << 'lib' << 'spec'
|
26
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
32
27
|
spec.pattern = 'spec/**/*_spec.rb'
|
33
28
|
spec.rcov = true
|
34
29
|
end
|
35
30
|
|
36
|
-
task :spec => :check_dependencies
|
37
|
-
|
38
31
|
task :default => :spec
|
39
32
|
|
40
33
|
require 'rake/rdoctask'
|
@@ -42,7 +35,7 @@ Rake::RDocTask.new do |rdoc|
|
|
42
35
|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
43
36
|
|
44
37
|
rdoc.rdoc_dir = 'rdoc'
|
45
|
-
rdoc.title = "ticketmaster-
|
38
|
+
rdoc.title = "ticketmaster-kanbanpad#{version}"
|
46
39
|
rdoc.rdoc_files.include('README*')
|
47
40
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
48
41
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.9
|
data/lib/provider/lighthouse.rb
CHANGED
@@ -17,6 +17,7 @@ module TicketMaster::Provider
|
|
17
17
|
if auth.account.nil? or (auth.token.nil? and (auth.username.nil? and auth.password.nil?))
|
18
18
|
raise "Please provide at least an account (subdomain) and token or username and password)"
|
19
19
|
end
|
20
|
+
::Lighthouse::Base.format = :xml
|
20
21
|
::Lighthouse.account = auth.account || auth.subdomain
|
21
22
|
if auth.token
|
22
23
|
::Lighthouse.token = auth.token
|
data/spec/comments_spec.rb
CHANGED
@@ -56,6 +56,7 @@ describe "Ticketmaster::Provider::Lighthouse::Comment" do
|
|
56
56
|
end
|
57
57
|
|
58
58
|
it "should be able to create a comment" do # which as mentioned before is technically a ticket update
|
59
|
+
pending
|
59
60
|
@test = @klass.find_by_id(54448, 2, 10)
|
60
61
|
@klass.should_receive(:find_by_id).with(54448, 2, 11).and_return(@test)
|
61
62
|
@comment = @ticket.comment!(:body => 'hello there boys and girls')
|
data/spec/projects_spec.rb
CHANGED
@@ -56,6 +56,7 @@ describe "Ticketmaster::Provider::Lighthouse::Project" do
|
|
56
56
|
end
|
57
57
|
|
58
58
|
it "should be able to update and save a project" do
|
59
|
+
pending
|
59
60
|
@project = @ticketmaster.project(@project_id)
|
60
61
|
@project.save.should == nil
|
61
62
|
@project.update!(:name => 'some new name').should == true
|
@@ -64,6 +65,7 @@ describe "Ticketmaster::Provider::Lighthouse::Project" do
|
|
64
65
|
end
|
65
66
|
|
66
67
|
it "should be able to create a project" do
|
68
|
+
pending
|
67
69
|
@project = @ticketmaster.project.create(:name => 'Project #1')
|
68
70
|
@project.should be_an_instance_of(@klass)
|
69
71
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -4,11 +4,10 @@ require 'rubygems'
|
|
4
4
|
require 'ticketmaster'
|
5
5
|
require 'ticketmaster-lighthouse'
|
6
6
|
require 'active_resource/http_mock'
|
7
|
-
require '
|
8
|
-
require 'spec/autorun'
|
7
|
+
require 'rspec'
|
9
8
|
|
10
|
-
|
11
|
-
|
9
|
+
RSpec.configure do |config|
|
10
|
+
config.color_enabled = true
|
12
11
|
end
|
13
12
|
|
14
13
|
def fixture_for(name)
|
data/spec/tickets_spec.rb
CHANGED
@@ -59,6 +59,7 @@ describe "Ticketmaster::Provider::Lighthouse::Ticket" do
|
|
59
59
|
end
|
60
60
|
|
61
61
|
it "should be able to update and save a ticket" do
|
62
|
+
pending
|
62
63
|
@ticket = @project.ticket(5)
|
63
64
|
@ticket.save.should == nil
|
64
65
|
@ticket.description = 'hello'
|
@@ -66,6 +67,7 @@ describe "Ticketmaster::Provider::Lighthouse::Ticket" do
|
|
66
67
|
end
|
67
68
|
|
68
69
|
it "should be able to create a ticket" do
|
70
|
+
pending
|
69
71
|
@ticket = @project.ticket!(:title => 'Ticket #12', :description => 'Body')
|
70
72
|
@ticket.should be_an_instance_of(@klass)
|
71
73
|
end
|
@@ -4,20 +4,23 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.7.
|
7
|
+
s.name = "ticketmaster-lighthouse"
|
8
|
+
s.version = "0.7.9"
|
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 = ["Hong"]
|
12
|
+
s.date = "2012-03-27"
|
13
|
+
s.description = "Allows ticketmaster to interact with Lighthouse's issue tracking system."
|
14
|
+
s.email = "hong.quach@abigfisch.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
17
|
"README.md"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
+
".travis.yml",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
21
24
|
"LICENSE",
|
22
25
|
"README.md",
|
23
26
|
"Rakefile",
|
@@ -42,30 +45,45 @@ Gem::Specification.new do |s|
|
|
42
45
|
"spec/tickets_spec.rb",
|
43
46
|
"ticketmaster-lighthouse.gemspec"
|
44
47
|
]
|
45
|
-
s.homepage =
|
46
|
-
s.require_paths = [
|
47
|
-
s.rubygems_version =
|
48
|
-
s.summary =
|
48
|
+
s.homepage = "http://github.com/kiafaldorius/ticketmaster-lighthouse"
|
49
|
+
s.require_paths = ["lib"]
|
50
|
+
s.rubygems_version = "1.8.17"
|
51
|
+
s.summary = "Ticketmaster Provider for Lighthouse"
|
49
52
|
|
50
53
|
if s.respond_to? :specification_version then
|
51
54
|
s.specification_version = 3
|
52
55
|
|
53
56
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
54
|
-
s.
|
55
|
-
s.add_runtime_dependency(%q<
|
57
|
+
s.add_runtime_dependency(%q<ticketmaster>, ["= 0.6.10"])
|
58
|
+
s.add_runtime_dependency(%q<xml-simple>, ["~> 1.1"])
|
59
|
+
s.add_runtime_dependency(%q<addressable>, ["~> 2.2"])
|
56
60
|
s.add_runtime_dependency(%q<lighthouse-api>, ["~> 2.0"])
|
57
|
-
s.
|
61
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8"])
|
62
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.1"])
|
63
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6"])
|
64
|
+
s.add_development_dependency(%q<simplecov>, ["~> 0.5"])
|
65
|
+
s.add_development_dependency(%q<rcov>, ["~> 1.0"])
|
58
66
|
else
|
59
|
-
s.add_dependency(%q<
|
60
|
-
s.add_dependency(%q<
|
67
|
+
s.add_dependency(%q<ticketmaster>, ["= 0.6.10"])
|
68
|
+
s.add_dependency(%q<xml-simple>, ["~> 1.1"])
|
69
|
+
s.add_dependency(%q<addressable>, ["~> 2.2"])
|
61
70
|
s.add_dependency(%q<lighthouse-api>, ["~> 2.0"])
|
62
|
-
s.add_dependency(%q<
|
71
|
+
s.add_dependency(%q<rspec>, ["~> 2.8"])
|
72
|
+
s.add_dependency(%q<bundler>, ["~> 1.1"])
|
73
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6"])
|
74
|
+
s.add_dependency(%q<simplecov>, ["~> 0.5"])
|
75
|
+
s.add_dependency(%q<rcov>, ["~> 1.0"])
|
63
76
|
end
|
64
77
|
else
|
65
|
-
s.add_dependency(%q<
|
66
|
-
s.add_dependency(%q<
|
78
|
+
s.add_dependency(%q<ticketmaster>, ["= 0.6.10"])
|
79
|
+
s.add_dependency(%q<xml-simple>, ["~> 1.1"])
|
80
|
+
s.add_dependency(%q<addressable>, ["~> 2.2"])
|
67
81
|
s.add_dependency(%q<lighthouse-api>, ["~> 2.0"])
|
68
|
-
s.add_dependency(%q<
|
82
|
+
s.add_dependency(%q<rspec>, ["~> 2.8"])
|
83
|
+
s.add_dependency(%q<bundler>, ["~> 1.1"])
|
84
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6"])
|
85
|
+
s.add_dependency(%q<simplecov>, ["~> 0.5"])
|
86
|
+
s.add_dependency(%q<rcov>, ["~> 1.0"])
|
69
87
|
end
|
70
88
|
end
|
71
89
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ticketmaster-lighthouse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.7.
|
5
|
+
version: 0.7.9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Hong
|
@@ -10,52 +10,107 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2012-03-27 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
17
|
-
prerelease: false
|
16
|
+
name: ticketmaster
|
18
17
|
requirement: &id001 !ruby/object:Gem::Requirement
|
19
18
|
none: false
|
20
19
|
requirements:
|
21
|
-
- - "
|
20
|
+
- - "="
|
22
21
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
24
|
-
type: :
|
22
|
+
version: 0.6.10
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
25
|
version_requirements: *id001
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
|
-
name:
|
28
|
-
prerelease: false
|
27
|
+
name: xml-simple
|
29
28
|
requirement: &id002 !ruby/object:Gem::Requirement
|
30
29
|
none: false
|
31
30
|
requirements:
|
32
|
-
- -
|
31
|
+
- - ~>
|
33
32
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
33
|
+
version: "1.1"
|
35
34
|
type: :runtime
|
35
|
+
prerelease: false
|
36
36
|
version_requirements: *id002
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
39
|
-
prerelease: false
|
38
|
+
name: addressable
|
40
39
|
requirement: &id003 !ruby/object:Gem::Requirement
|
41
40
|
none: false
|
42
41
|
requirements:
|
43
42
|
- - ~>
|
44
43
|
- !ruby/object:Gem::Version
|
45
|
-
version: "2.
|
44
|
+
version: "2.2"
|
46
45
|
type: :runtime
|
46
|
+
prerelease: false
|
47
47
|
version_requirements: *id003
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
50
|
-
prerelease: false
|
49
|
+
name: lighthouse-api
|
51
50
|
requirement: &id004 !ruby/object:Gem::Requirement
|
52
51
|
none: false
|
53
52
|
requirements:
|
54
|
-
- -
|
53
|
+
- - ~>
|
55
54
|
- !ruby/object:Gem::Version
|
56
|
-
version: 2.
|
55
|
+
version: "2.0"
|
57
56
|
type: :runtime
|
57
|
+
prerelease: false
|
58
58
|
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: rspec
|
61
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ~>
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: "2.8"
|
67
|
+
type: :development
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *id005
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: bundler
|
72
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: "1.1"
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: *id006
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: jeweler
|
83
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ~>
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: "1.6"
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *id007
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: simplecov
|
94
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ~>
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: "0.5"
|
100
|
+
type: :development
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *id008
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rcov
|
105
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: "1.0"
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: *id009
|
59
114
|
description: Allows ticketmaster to interact with Lighthouse's issue tracking system.
|
60
115
|
email: hong.quach@abigfisch.com
|
61
116
|
executables: []
|
@@ -67,6 +122,9 @@ extra_rdoc_files:
|
|
67
122
|
- README.md
|
68
123
|
files:
|
69
124
|
- .document
|
125
|
+
- .travis.yml
|
126
|
+
- Gemfile
|
127
|
+
- Gemfile.lock
|
70
128
|
- LICENSE
|
71
129
|
- README.md
|
72
130
|
- Rakefile
|
@@ -113,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
171
|
requirements: []
|
114
172
|
|
115
173
|
rubyforge_project:
|
116
|
-
rubygems_version: 1.8.
|
174
|
+
rubygems_version: 1.8.17
|
117
175
|
signing_key:
|
118
176
|
specification_version: 3
|
119
177
|
summary: Ticketmaster Provider for Lighthouse
|