ticketmaster 0.5.6 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.6
1
+ 0.6.6
@@ -24,6 +24,12 @@ module TicketMaster::Provider
24
24
  def authorize(authentication = {})
25
25
  @authentication = TicketMaster::Authenticator.new(authentication)
26
26
  end
27
+
28
+ # All providers must define this method.
29
+ # It should implement the code for validating the authentication
30
+ def valid?
31
+ raise TicketMaster::Exception.new("#{Base.name}::#{this_method} method must be implemented by the provider")
32
+ end
27
33
 
28
34
  # Providers should try to define this method
29
35
  #
@@ -13,6 +13,13 @@ describe "Ticketmaster Exception Messages" do
13
13
  before(:each) do
14
14
  @ticketmaster = TicketMaster.new(:tester, {})
15
15
  end
16
+
17
+ describe "TicketMaster::Provider::Base" do
18
+ it "valid? method raises correct exception" do
19
+ msg = "TicketMaster::Provider::Base::valid? method must be implemented by the provider"
20
+ lambda { @ticketmaster.valid? }.should raise_error(@exception, msg)
21
+ end
22
+ end
16
23
 
17
24
  describe "TicketMaster::Provider::Helper" do
18
25
  it "easy_finder method raises correct exception" do
data/ticketmaster.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster}
8
- s.version = "0.5.6"
8
+ s.version = "0.6.6"
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 = %q{2011-04-08}
12
+ s.date = %q{2011-06-02}
13
13
  s.default_executable = %q{tm}
14
14
  s.description = %q{Ticketmaster provides a universal API to ticket tracking and project management systems.}
15
15
  s.email = %q{info@hybridgroup.com}
@@ -82,7 +82,7 @@ Gem::Specification.new do |s|
82
82
  ]
83
83
  s.homepage = %q{http://ticketrb.com}
84
84
  s.require_paths = ["lib"]
85
- s.rubygems_version = %q{1.4.2}
85
+ s.rubygems_version = %q{1.6.0}
86
86
  s.summary = %q{Ticketmaster provides a universal API to ticket tracking and project management systems.}
87
87
  s.test_files = [
88
88
  "examples/tm_example.rb",
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: 7
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 5
9
8
  - 6
10
- version: 0.5.6
9
+ - 6
10
+ version: 0.6.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - kiafaldorius
@@ -17,14 +17,12 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-04-08 00:00:00 -05:00
20
+ date: 2011-06-02 00:00:00 +00:00
21
21
  default_executable: tm
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
- prerelease: false
25
- name: activeresource
26
24
  type: :runtime
27
- version_requirements: &id001 !ruby/object:Gem::Requirement
25
+ requirement: &id001 !ruby/object:Gem::Requirement
28
26
  none: false
29
27
  requirements:
30
28
  - - ">="
@@ -33,12 +31,12 @@ dependencies:
33
31
  segments:
34
32
  - 0
35
33
  version: "0"
36
- requirement: *id001
37
- - !ruby/object:Gem::Dependency
34
+ version_requirements: *id001
35
+ name: activeresource
38
36
  prerelease: false
39
- name: activesupport
37
+ - !ruby/object:Gem::Dependency
40
38
  type: :runtime
41
- version_requirements: &id002 !ruby/object:Gem::Requirement
39
+ requirement: &id002 !ruby/object:Gem::Requirement
42
40
  none: false
43
41
  requirements:
44
42
  - - ">="
@@ -47,12 +45,12 @@ dependencies:
47
45
  segments:
48
46
  - 0
49
47
  version: "0"
50
- requirement: *id002
51
- - !ruby/object:Gem::Dependency
48
+ version_requirements: *id002
49
+ name: activesupport
52
50
  prerelease: false
53
- name: jeweler
51
+ - !ruby/object:Gem::Dependency
54
52
  type: :runtime
55
- version_requirements: &id003 !ruby/object:Gem::Requirement
53
+ requirement: &id003 !ruby/object:Gem::Requirement
56
54
  none: false
57
55
  requirements:
58
56
  - - ">="
@@ -61,12 +59,12 @@ dependencies:
61
59
  segments:
62
60
  - 0
63
61
  version: "0"
64
- requirement: *id003
65
- - !ruby/object:Gem::Dependency
62
+ version_requirements: *id003
63
+ name: jeweler
66
64
  prerelease: false
67
- name: hashie
65
+ - !ruby/object:Gem::Dependency
68
66
  type: :runtime
69
- version_requirements: &id004 !ruby/object:Gem::Requirement
67
+ requirement: &id004 !ruby/object:Gem::Requirement
70
68
  none: false
71
69
  requirements:
72
70
  - - ">="
@@ -75,12 +73,12 @@ dependencies:
75
73
  segments:
76
74
  - 0
77
75
  version: "0"
78
- requirement: *id004
79
- - !ruby/object:Gem::Dependency
80
- prerelease: false
76
+ version_requirements: *id004
81
77
  name: hashie
78
+ prerelease: false
79
+ - !ruby/object:Gem::Dependency
82
80
  type: :runtime
83
- version_requirements: &id005 !ruby/object:Gem::Requirement
81
+ requirement: &id005 !ruby/object:Gem::Requirement
84
82
  none: false
85
83
  requirements:
86
84
  - - "="
@@ -91,12 +89,12 @@ dependencies:
91
89
  - 0
92
90
  - 0
93
91
  version: 1.0.0
94
- requirement: *id005
95
- - !ruby/object:Gem::Dependency
92
+ version_requirements: *id005
93
+ name: hashie
96
94
  prerelease: false
97
- name: activesupport
95
+ - !ruby/object:Gem::Dependency
98
96
  type: :runtime
99
- version_requirements: &id006 !ruby/object:Gem::Requirement
97
+ requirement: &id006 !ruby/object:Gem::Requirement
100
98
  none: false
101
99
  requirements:
102
100
  - - ">="
@@ -107,12 +105,12 @@ dependencies:
107
105
  - 3
108
106
  - 2
109
107
  version: 2.3.2
110
- requirement: *id006
111
- - !ruby/object:Gem::Dependency
108
+ version_requirements: *id006
109
+ name: activesupport
112
110
  prerelease: false
113
- name: activeresource
111
+ - !ruby/object:Gem::Dependency
114
112
  type: :runtime
115
- version_requirements: &id007 !ruby/object:Gem::Requirement
113
+ requirement: &id007 !ruby/object:Gem::Requirement
116
114
  none: false
117
115
  requirements:
118
116
  - - ">="
@@ -123,7 +121,9 @@ dependencies:
123
121
  - 3
124
122
  - 2
125
123
  version: 2.3.2
126
- requirement: *id007
124
+ version_requirements: *id007
125
+ name: activeresource
126
+ prerelease: false
127
127
  description: Ticketmaster provides a universal API to ticket tracking and project management systems.
128
128
  email: info@hybridgroup.com
129
129
  executables:
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  requirements: []
225
225
 
226
226
  rubyforge_project:
227
- rubygems_version: 1.4.2
227
+ rubygems_version: 1.6.0
228
228
  signing_key:
229
229
  specification_version: 3
230
230
  summary: Ticketmaster provides a universal API to ticket tracking and project management systems.