ticketmaster 0.6.10 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -0
- data/Gemfile +4 -2
- data/Gemfile.lock +18 -3
- data/Rakefile +6 -12
- data/VERSION +1 -1
- data/spec/spec_helper.rb +3 -4
- data/spec/ticket_spec.rb +11 -13
- data/spec/ticketmaster-cli_spec.rb +10 -10
- data/spec/ticketmaster_spec.rb +9 -5
- data/ticketmaster.gemspec +15 -8
- metadata +42 -13
data/.travis.yml
ADDED
data/Gemfile
CHANGED
@@ -5,6 +5,8 @@ gem 'activesupport', '~> 3.0'
|
|
5
5
|
gem 'hashie', "~> 1.2"
|
6
6
|
|
7
7
|
group :test, :development do
|
8
|
-
gem 'rspec', '
|
9
|
-
gem 'jeweler', "~> 1.8
|
8
|
+
gem 'rspec', '~> 2.0'
|
9
|
+
gem 'jeweler', "~> 1.8"
|
10
|
+
gem "simplecov", "~> 0.5", :platform => :ruby_19
|
11
|
+
gem "rcov", "~> 1.0", :platform => :ruby_18
|
10
12
|
end
|
data/Gemfile.lock
CHANGED
@@ -11,6 +11,7 @@ GEM
|
|
11
11
|
i18n (~> 0.6)
|
12
12
|
multi_json (~> 1.0)
|
13
13
|
builder (3.0.0)
|
14
|
+
diff-lcs (1.1.3)
|
14
15
|
git (1.2.5)
|
15
16
|
hashie (1.2.0)
|
16
17
|
i18n (0.6.0)
|
@@ -22,9 +23,21 @@ GEM
|
|
22
23
|
json (1.6.5)
|
23
24
|
multi_json (1.1.0)
|
24
25
|
rake (0.9.2.2)
|
26
|
+
rcov (1.0.0)
|
25
27
|
rdoc (3.12)
|
26
28
|
json (~> 1.4)
|
27
|
-
rspec (
|
29
|
+
rspec (2.9.0)
|
30
|
+
rspec-core (~> 2.9.0)
|
31
|
+
rspec-expectations (~> 2.9.0)
|
32
|
+
rspec-mocks (~> 2.9.0)
|
33
|
+
rspec-core (2.9.0)
|
34
|
+
rspec-expectations (2.9.1)
|
35
|
+
diff-lcs (~> 1.1.3)
|
36
|
+
rspec-mocks (2.9.0)
|
37
|
+
simplecov (0.6.1)
|
38
|
+
multi_json (~> 1.0)
|
39
|
+
simplecov-html (~> 0.5.3)
|
40
|
+
simplecov-html (0.5.3)
|
28
41
|
|
29
42
|
PLATFORMS
|
30
43
|
ruby
|
@@ -33,5 +46,7 @@ DEPENDENCIES
|
|
33
46
|
activeresource (~> 3.0)
|
34
47
|
activesupport (~> 3.0)
|
35
48
|
hashie (~> 1.2)
|
36
|
-
jeweler (~> 1.8
|
37
|
-
|
49
|
+
jeweler (~> 1.8)
|
50
|
+
rcov (~> 1.0)
|
51
|
+
rspec (~> 2.0)
|
52
|
+
simplecov (~> 0.5)
|
data/Rakefile
CHANGED
@@ -16,23 +16,17 @@ rescue LoadError
|
|
16
16
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
17
17
|
end
|
18
18
|
|
19
|
-
require '
|
20
|
-
|
21
|
-
|
22
|
-
spec.
|
19
|
+
require 'rspec/core'
|
20
|
+
require 'rspec/core/rake_task'
|
21
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
22
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
23
23
|
end
|
24
24
|
|
25
|
-
|
26
|
-
spec.libs << 'lib' << 'spec'
|
25
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
27
26
|
spec.pattern = 'spec/**/*_spec.rb'
|
28
27
|
spec.rcov = true
|
29
|
-
spec.rcov_opts = lambda do
|
30
|
-
IO.readlines("spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
|
31
|
-
end
|
32
28
|
end
|
33
29
|
|
34
|
-
#task :spec => :check_dependencies
|
35
|
-
|
36
30
|
task :default => :spec
|
37
31
|
|
38
32
|
require 'rake/rdoctask'
|
@@ -40,7 +34,7 @@ Rake::RDocTask.new do |rdoc|
|
|
40
34
|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
41
35
|
|
42
36
|
rdoc.rdoc_dir = 'rdoc'
|
43
|
-
rdoc.title = "ticketmaster
|
37
|
+
rdoc.title = "ticketmaster-kanbanpad#{version}"
|
44
38
|
rdoc.rdoc_files.include('README*')
|
45
39
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
46
40
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.0
|
data/spec/spec_helper.rb
CHANGED
@@ -2,9 +2,8 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
2
2
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
3
|
require 'ticketmaster.rb'
|
4
4
|
require 'ticketmaster/dummy/dummy.rb'
|
5
|
-
require '
|
6
|
-
require 'spec/autorun'
|
5
|
+
require 'rspec'
|
7
6
|
|
8
|
-
|
9
|
-
|
7
|
+
RSpec.configure do |config|
|
8
|
+
config.color_enabled = true
|
10
9
|
end
|
data/spec/ticket_spec.rb
CHANGED
@@ -15,38 +15,38 @@ describe "Tickets" do
|
|
15
15
|
it "should return an array" do
|
16
16
|
@project.tickets.should be_an_instance_of Array
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
it "should return Ticket objects" do
|
20
20
|
@project.tickets.first.should be_an_instance_of @ticket_class
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
describe "when searching wanting back all tickets that match the query" do
|
24
24
|
before do
|
25
25
|
@tickets = @project.tickets([999])
|
26
26
|
end
|
27
|
-
|
27
|
+
|
28
28
|
it "should return an array" do
|
29
29
|
@tickets.should be_an_instance_of Array
|
30
30
|
end
|
31
|
-
|
31
|
+
|
32
32
|
it "should return Ticket objects" do
|
33
33
|
@tickets.first.should be_an_instance_of @ticket_class
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
36
|
it "should return Tickets that match ID" do
|
37
37
|
@tickets.first.id.should == 999
|
38
38
|
end
|
39
|
-
|
39
|
+
|
40
40
|
it "should return an array when passing query hash" do
|
41
41
|
@project.tickets(:id => 999).should be_an_instance_of Array
|
42
42
|
end
|
43
43
|
end
|
44
|
-
|
44
|
+
|
45
45
|
describe "when searching wanting back the first ticket that matches the query" do
|
46
46
|
it "should return the first Ticket as a default" do
|
47
47
|
@project.ticket.should == TicketMaster::Provider::Dummy::Ticket
|
48
48
|
end
|
49
|
-
|
49
|
+
|
50
50
|
describe "when querying using default ID query" do
|
51
51
|
it "should return a Ticket object" do
|
52
52
|
@project.ticket(888).should be_an_instance_of @ticket_class
|
@@ -56,7 +56,7 @@ describe "Tickets" do
|
|
56
56
|
@project.ticket(888).id.should == 888
|
57
57
|
end
|
58
58
|
end
|
59
|
-
|
59
|
+
|
60
60
|
describe "when querying using hash" do
|
61
61
|
it "should return a Ticket object" do
|
62
62
|
@project.ticket(:id => 888).should be_an_instance_of @ticket_class
|
@@ -64,11 +64,9 @@ describe "Tickets" do
|
|
64
64
|
|
65
65
|
it "should only return Tickets with the correct ID" do
|
66
66
|
@project.ticket(:id => 888).id.should == 888
|
67
|
-
end
|
67
|
+
end
|
68
68
|
end
|
69
|
-
end
|
69
|
+
end
|
70
70
|
end
|
71
|
-
|
72
|
-
it "should be able to do other ticket stuff"
|
73
71
|
|
74
72
|
end
|
@@ -8,30 +8,30 @@ require 'fileutils'
|
|
8
8
|
# I'm not quite sure what the most effective way to test this is...
|
9
9
|
describe "Ticketmaster CLI" do
|
10
10
|
before(:all) do
|
11
|
-
@ticket = File.dirname(__FILE__) + '/../bin/tm'
|
12
|
-
@cli_dir = File.dirname(__FILE__) + '/../lib/ticketmaster/cli'
|
11
|
+
@ticket = File.expand_path(File.dirname(__FILE__) + '/../bin/tm')
|
12
|
+
@cli_dir = File.expand_path(File.dirname(__FILE__) + '/../lib/ticketmaster/cli')
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
it "should output help if no command given" do
|
16
16
|
help = `#{@ticket}`
|
17
17
|
$?.should == 0
|
18
18
|
help.should include('Usage: tm [options] COMMAND [command_options]')
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
it "should be able to show help pages" do
|
22
22
|
`#{@ticket} help`.should include(File.read(@cli_dir + '/commands/help/help'))
|
23
23
|
`#{@ticket} help config`.should include(File.read(@cli_dir + '/commands/help/config'))
|
24
24
|
`#{@ticket} help console`.should include(File.read(@cli_dir + '/commands/help/console'))
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
it "should be able to add and edit config info" do
|
28
28
|
pending
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
it "should be able to open up a console" do
|
32
32
|
pending
|
33
33
|
end
|
34
|
-
|
34
|
+
|
35
35
|
describe :generate do
|
36
36
|
it "should generate provider skeleton w/o runtime errors" do
|
37
37
|
provider_name = "test-provider"
|
@@ -43,8 +43,8 @@ describe "Ticketmaster CLI" do
|
|
43
43
|
ensure
|
44
44
|
FileUtils.remove_dir(expected_name) if File.exists? expected_name
|
45
45
|
end
|
46
|
-
end
|
47
|
-
|
46
|
+
end
|
47
|
+
|
48
48
|
it "should not prefix 'ticketmaster' when not asked to" do
|
49
49
|
provider_name = "test-provider"
|
50
50
|
begin
|
@@ -56,5 +56,5 @@ describe "Ticketmaster CLI" do
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
59
|
-
|
59
|
+
|
60
60
|
end
|
data/spec/ticketmaster_spec.rb
CHANGED
@@ -10,15 +10,19 @@ describe "Ticketmaster" do
|
|
10
10
|
@ticket_class = TicketMaster::Provider::Dummy::Ticket
|
11
11
|
@comment_class = TicketMaster::Provider::Dummy::Comment
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
# Essentially just a sanity check on the include since .new always returns the object's instance
|
15
15
|
it "should be able to instantiate a new instance" do
|
16
16
|
@ticketmaster.should be_an_instance_of TicketMaster
|
17
17
|
@ticketmaster.should be_a_kind_of TicketMaster::Provider::Dummy
|
18
18
|
end
|
19
|
-
|
20
|
-
it "should be able to load comments"
|
21
|
-
|
22
|
-
|
19
|
+
|
20
|
+
it "should be able to load comments" do
|
21
|
+
pending
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should be able to do comment stuff" do
|
25
|
+
pending
|
26
|
+
end
|
23
27
|
|
24
28
|
end
|
data/ticketmaster.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "ticketmaster"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.7.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["kiafaldorius", "Sirupsen", "deadprogrammer"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-04-04"
|
13
13
|
s.description = "Ticketmaster provides a universal API to ticket tracking and project management systems."
|
14
14
|
s.email = "info@hybridgroup.com"
|
15
15
|
s.executables = ["tm"]
|
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
]
|
21
21
|
s.files = [
|
22
22
|
".document",
|
23
|
+
".travis.yml",
|
23
24
|
"Gemfile",
|
24
25
|
"Gemfile.lock",
|
25
26
|
"LICENSE",
|
@@ -91,21 +92,27 @@ Gem::Specification.new do |s|
|
|
91
92
|
s.add_runtime_dependency(%q<activeresource>, ["~> 3.0"])
|
92
93
|
s.add_runtime_dependency(%q<activesupport>, ["~> 3.0"])
|
93
94
|
s.add_runtime_dependency(%q<hashie>, ["~> 1.2"])
|
94
|
-
s.add_development_dependency(%q<rspec>, ["
|
95
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.8
|
95
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.0"])
|
96
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8"])
|
97
|
+
s.add_development_dependency(%q<simplecov>, ["~> 0.5"])
|
98
|
+
s.add_development_dependency(%q<rcov>, ["~> 1.0"])
|
96
99
|
else
|
97
100
|
s.add_dependency(%q<activeresource>, ["~> 3.0"])
|
98
101
|
s.add_dependency(%q<activesupport>, ["~> 3.0"])
|
99
102
|
s.add_dependency(%q<hashie>, ["~> 1.2"])
|
100
|
-
s.add_dependency(%q<rspec>, ["
|
101
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8
|
103
|
+
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
104
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8"])
|
105
|
+
s.add_dependency(%q<simplecov>, ["~> 0.5"])
|
106
|
+
s.add_dependency(%q<rcov>, ["~> 1.0"])
|
102
107
|
end
|
103
108
|
else
|
104
109
|
s.add_dependency(%q<activeresource>, ["~> 3.0"])
|
105
110
|
s.add_dependency(%q<activesupport>, ["~> 3.0"])
|
106
111
|
s.add_dependency(%q<hashie>, ["~> 1.2"])
|
107
|
-
s.add_dependency(%q<rspec>, ["
|
108
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8
|
112
|
+
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
113
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8"])
|
114
|
+
s.add_dependency(%q<simplecov>, ["~> 0.5"])
|
115
|
+
s.add_dependency(%q<rcov>, ["~> 1.0"])
|
109
116
|
end
|
110
117
|
end
|
111
118
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticketmaster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 7
|
9
|
+
- 0
|
10
|
+
version: 0.7.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- kiafaldorius
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2012-
|
20
|
+
date: 2012-04-04 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: activeresource
|
@@ -71,14 +71,13 @@ dependencies:
|
|
71
71
|
requirement: &id004 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ~>
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
hash:
|
76
|
+
hash: 3
|
77
77
|
segments:
|
78
|
-
-
|
79
|
-
- 3
|
78
|
+
- 2
|
80
79
|
- 0
|
81
|
-
version:
|
80
|
+
version: "2.0"
|
82
81
|
version_requirements: *id004
|
83
82
|
- !ruby/object:Gem::Dependency
|
84
83
|
name: jeweler
|
@@ -89,13 +88,42 @@ dependencies:
|
|
89
88
|
requirements:
|
90
89
|
- - ~>
|
91
90
|
- !ruby/object:Gem::Version
|
92
|
-
hash:
|
91
|
+
hash: 31
|
93
92
|
segments:
|
94
93
|
- 1
|
95
94
|
- 8
|
96
|
-
|
97
|
-
version: 1.8.3
|
95
|
+
version: "1.8"
|
98
96
|
version_requirements: *id005
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
prerelease: false
|
100
|
+
type: :development
|
101
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
103
|
+
requirements:
|
104
|
+
- - ~>
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
hash: 1
|
107
|
+
segments:
|
108
|
+
- 0
|
109
|
+
- 5
|
110
|
+
version: "0.5"
|
111
|
+
version_requirements: *id006
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: rcov
|
114
|
+
prerelease: false
|
115
|
+
type: :development
|
116
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ~>
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
hash: 15
|
122
|
+
segments:
|
123
|
+
- 1
|
124
|
+
- 0
|
125
|
+
version: "1.0"
|
126
|
+
version_requirements: *id007
|
99
127
|
description: Ticketmaster provides a universal API to ticket tracking and project management systems.
|
100
128
|
email: info@hybridgroup.com
|
101
129
|
executables:
|
@@ -108,6 +136,7 @@ extra_rdoc_files:
|
|
108
136
|
- TODO
|
109
137
|
files:
|
110
138
|
- .document
|
139
|
+
- .travis.yml
|
111
140
|
- Gemfile
|
112
141
|
- Gemfile.lock
|
113
142
|
- LICENSE
|