ticketmaster-mingle 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -22,6 +22,14 @@ module TicketMaster::Provider
22
22
  MingleAPI.authenticate(auth.server, auth.login, auth.password)
23
23
  end
24
24
  # declare needed overloaded methods here
25
+ def valid?
26
+ begin
27
+ PROJECT_API.find(:first)
28
+ true
29
+ rescue
30
+ false
31
+ end
32
+ end
25
33
 
26
34
  end
27
35
  end
@@ -1,20 +1,20 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <card_comments type="array">
3
- <comment>
4
- <content>Hi</content>
5
- <created_by url="http://localhost:8080/api/v2/users/21.xml">
6
- <name>Jeff</name>
7
- <login>j</login>
8
- </created_by>
9
- <created_at type="datetime">2010-03-10T21:16:39Z</created_at>
10
- </comment>
11
- <comment>
12
- <content>hello there</content>
13
- <created_by url="http://localhost:8080/api/v2/users/1.xml">
14
- <name>bonna</name>
15
- <login>bonna</login>
16
- </created_by>
17
- <created_at type="datetime">2010-03-10T21:16:02Z</created_at>
18
- </comment>
19
- </card_comments>
20
-
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <card_comments type="array">
3
+ <comment>
4
+ <content>Hi</content>
5
+ <created_by url="http://localhost:8080/api/v2/users/21.xml">
6
+ <name>Jeff</name>
7
+ <login>j</login>
8
+ </created_by>
9
+ <created_at type="datetime">2010-03-10T21:16:39Z</created_at>
10
+ </comment>
11
+ <comment>
12
+ <content>hello there</content>
13
+ <created_by url="http://localhost:8080/api/v2/users/1.xml">
14
+ <name>bonna</name>
15
+ <login>bonna</login>
16
+ </created_by>
17
+ <created_at type="datetime">2010-03-10T21:16:02Z</created_at>
18
+ </comment>
19
+ </card_comments>
20
+
@@ -1,11 +1,18 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe "Ticketmaster::Provider::Mingle" do
4
+
5
+ before(:all) do
6
+ @ticketmaster = TicketMaster.new(:mingle, {:server => 'myserver.com', :username => 'anymoto', :password => '000000'})
7
+ end
4
8
 
5
9
  it "should be able to instantiate a new instance" do
6
- @ticketmaster = TicketMaster.new(:mingle, {:server => 'myserver.com', :username => 'anymoto', :password => '000000'})
7
10
  @ticketmaster.should be_an_instance_of(TicketMaster)
8
11
  @ticketmaster.should be_a_kind_of(TicketMaster::Provider::Mingle)
9
12
  end
13
+
14
+ it "should return true for a valid authentication" do
15
+ @ticketmaster.valid?.should be_true
16
+ end
10
17
 
11
18
  end
data/spec/tickets_spec.rb CHANGED
@@ -11,7 +11,7 @@ describe "Ticketmaster::Provider::Mingle::Ticket" do
11
11
  mock.get '/api/v2/projects/test_project/cards/42.xml', headers, fixture_for('cards/42'), 200
12
12
  mock.get '/api/v2/projects/test_project/cards.xml', headers, fixture_for('cards'), 200
13
13
  mock.get '/api/v2/projects/test_project/cards/42.xml', headers, fixture_for('cards/42'), 200
14
- mock.put '/api/v2/projects/test_project/cards/42.xml?card[name]=Ticket%201&card[number]=42&card[created_on]=Wed%20Oct%2014%2009:14:54%20UTC%202009&card[modified_on]=Wed%20Oct%2014%2009:14:54%20UTC%202009&card[id]=0&card[description]=New%20card%20description', headers_post_put, '', 200
14
+ mock.put '/api/v2/projects/test_project/cards/42.xml?card[number]=42&card[name]=Ticket%201&card[created_on]=Wed%20Oct%2014%2009:14:54%20UTC%202009&card[id]=0&card[modified_on]=Wed%20Oct%2014%2009:14:54%20UTC%202009&card[description]=New%20card%20description', headers_post_put, '', 200
15
15
  mock.post '/api/v2/projects/test_project/cards.xml?card[title]=Ticket%20%2312&card[description]=Body', headers_post_put, '', 200
16
16
  end
17
17
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-mingle}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Hybridgroup"]
12
- s.date = %q{2011-02-21}
12
+ s.date = %q{2011-06-23}
13
13
  s.description = %q{Allows ticketmaster to interact with Mingle}
14
14
  s.email = %q{ana@hybridgroup.com}
15
15
  s.extra_rdoc_files = [
@@ -50,7 +50,7 @@ Gem::Specification.new do |s|
50
50
  ]
51
51
  s.homepage = %q{http://ticketrb.com}
52
52
  s.require_paths = ["lib"]
53
- s.rubygems_version = %q{1.4.2}
53
+ s.rubygems_version = %q{1.6.2}
54
54
  s.summary = %q{Ticketmaster Provider for Mingle}
55
55
  s.test_files = [
56
56
  "spec/comments_spec.rb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-mingle
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Hybridgroup
@@ -15,14 +15,13 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-21 00:00:00 -06:00
18
+ date: 2011-06-23 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  prerelease: false
23
- name: ticketmaster
24
23
  type: :runtime
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
26
25
  none: false
27
26
  requirements:
28
27
  - - "="
@@ -33,12 +32,12 @@ dependencies:
33
32
  - 5
34
33
  - 2
35
34
  version: 0.5.2
36
- requirement: *id001
35
+ name: ticketmaster
36
+ version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
38
38
  prerelease: false
39
- name: bundler
40
39
  type: :development
41
- version_requirements: &id002 !ruby/object:Gem::Requirement
40
+ requirement: &id002 !ruby/object:Gem::Requirement
42
41
  none: false
43
42
  requirements:
44
43
  - - ~>
@@ -49,12 +48,12 @@ dependencies:
49
48
  - 0
50
49
  - 0
51
50
  version: 1.0.0
52
- requirement: *id002
51
+ name: bundler
52
+ version_requirements: *id002
53
53
  - !ruby/object:Gem::Dependency
54
54
  prerelease: false
55
- name: jeweler
56
55
  type: :development
57
- version_requirements: &id003 !ruby/object:Gem::Requirement
56
+ requirement: &id003 !ruby/object:Gem::Requirement
58
57
  none: false
59
58
  requirements:
60
59
  - - ~>
@@ -65,12 +64,12 @@ dependencies:
65
64
  - 5
66
65
  - 1
67
66
  version: 1.5.1
68
- requirement: *id003
67
+ name: jeweler
68
+ version_requirements: *id003
69
69
  - !ruby/object:Gem::Dependency
70
70
  prerelease: false
71
- name: rcov
72
71
  type: :development
73
- version_requirements: &id004 !ruby/object:Gem::Requirement
72
+ requirement: &id004 !ruby/object:Gem::Requirement
74
73
  none: false
75
74
  requirements:
76
75
  - - ">="
@@ -79,12 +78,12 @@ dependencies:
79
78
  segments:
80
79
  - 0
81
80
  version: "0"
82
- requirement: *id004
81
+ name: rcov
82
+ version_requirements: *id004
83
83
  - !ruby/object:Gem::Dependency
84
84
  prerelease: false
85
- name: rspec
86
85
  type: :development
87
- version_requirements: &id005 !ruby/object:Gem::Requirement
86
+ requirement: &id005 !ruby/object:Gem::Requirement
88
87
  none: false
89
88
  requirements:
90
89
  - - "="
@@ -95,12 +94,12 @@ dependencies:
95
94
  - 2
96
95
  - 9
97
96
  version: 1.2.9
98
- requirement: *id005
97
+ name: rspec
98
+ version_requirements: *id005
99
99
  - !ruby/object:Gem::Dependency
100
100
  prerelease: false
101
- name: activesupport
102
101
  type: :runtime
103
- version_requirements: &id006 !ruby/object:Gem::Requirement
102
+ requirement: &id006 !ruby/object:Gem::Requirement
104
103
  none: false
105
104
  requirements:
106
105
  - - ">="
@@ -111,12 +110,12 @@ dependencies:
111
110
  - 0
112
111
  - 4
113
112
  version: 3.0.4
114
- requirement: *id006
113
+ name: activesupport
114
+ version_requirements: *id006
115
115
  - !ruby/object:Gem::Dependency
116
116
  prerelease: false
117
- name: activeresource
118
117
  type: :runtime
119
- version_requirements: &id007 !ruby/object:Gem::Requirement
118
+ requirement: &id007 !ruby/object:Gem::Requirement
120
119
  none: false
121
120
  requirements:
122
121
  - - ">="
@@ -127,7 +126,8 @@ dependencies:
127
126
  - 0
128
127
  - 4
129
128
  version: 3.0.4
130
- requirement: *id007
129
+ name: activeresource
130
+ version_requirements: *id007
131
131
  description: Allows ticketmaster to interact with Mingle
132
132
  email: ana@hybridgroup.com
133
133
  executables: []
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  requirements: []
199
199
 
200
200
  rubyforge_project:
201
- rubygems_version: 1.4.2
201
+ rubygems_version: 1.6.2
202
202
  signing_key:
203
203
  specification_version: 3
204
204
  summary: Ticketmaster Provider for Mingle