ticketmaster-pivotal 0.3.9 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.9
1
+ 0.4.9
@@ -20,6 +20,15 @@ module TicketMaster::Provider
20
20
  PivotalAPI.authenticate(auth.username, auth.password)
21
21
  end
22
22
  end
23
+
24
+ def valid?
25
+ begin
26
+ PROJECT_API.find(:first)
27
+ true
28
+ rescue
29
+ false
30
+ end
31
+ end
23
32
 
24
33
  end
25
34
  end
@@ -2,9 +2,20 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe "TicketmasterPivotal" do
4
4
 
5
- it "should be able to instantiate a new instance" do
5
+ before(:each) do
6
+ headers = {'X-TrackerToken' => '000000'}
7
+ ActiveResource::HttpMock.respond_to do |mock|
8
+ mock.get '/services/v3/projects.xml', headers, fixture_for('projects'), 200
9
+ end
6
10
  @ticketmaster = TicketMaster.new(:pivotal, {:token => '000000'})
11
+ end
12
+
13
+ it "should be able to instantiate a new instance" do
7
14
  @ticketmaster.should be_an_instance_of(TicketMaster)
8
15
  @ticketmaster.should be_a_kind_of(TicketMaster::Provider::Pivotal)
9
16
  end
17
+
18
+ it "should return true with valid authentication" do
19
+ @ticketmaster.valid?.should be_true
20
+ end
10
21
  end
@@ -1,63 +1,60 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-pivotal}
8
- s.version = "0.3.9"
8
+ s.version = "0.4.9"
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{2010-12-07}
12
+ s.date = %q{2011-06-06}
13
13
  s.description = %q{This is a ticketmaster provider for interacting with Pivotal Tracker .}
14
14
  s.email = %q{hong.quach@abigfisch.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.markdown"
17
+ "README.markdown"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.markdown",
24
- "Rakefile",
25
- "VERSION",
26
- "lib/pivotal/pivotal-api.rb",
27
- "lib/provider/comment.rb",
28
- "lib/provider/pivotal.rb",
29
- "lib/provider/project.rb",
30
- "lib/provider/ticket.rb",
31
- "lib/ticketmaster-pivotal.rb",
32
- "spec/comments_spec.rb",
33
- "spec/fixtures/notes.xml",
34
- "spec/fixtures/notes/1946635.xml",
35
- "spec/fixtures/projects.xml",
36
- "spec/fixtures/projects/93790.xml",
37
- "spec/fixtures/stories.xml",
38
- "spec/fixtures/stories/4056827.xml",
39
- "spec/projects_spec.rb",
40
- "spec/spec.opts",
41
- "spec/spec_helper.rb",
42
- "spec/ticketmaster-pivotal_spec.rb",
43
- "spec/tickets_spec.rb",
44
- "ticketmaster-pivotal.gemspec"
21
+ "LICENSE",
22
+ "README.markdown",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "lib/pivotal/pivotal-api.rb",
26
+ "lib/provider/comment.rb",
27
+ "lib/provider/pivotal.rb",
28
+ "lib/provider/project.rb",
29
+ "lib/provider/ticket.rb",
30
+ "lib/ticketmaster-pivotal.rb",
31
+ "spec/comments_spec.rb",
32
+ "spec/fixtures/notes.xml",
33
+ "spec/fixtures/notes/1946635.xml",
34
+ "spec/fixtures/projects.xml",
35
+ "spec/fixtures/projects/93790.xml",
36
+ "spec/fixtures/stories.xml",
37
+ "spec/fixtures/stories/4056827.xml",
38
+ "spec/projects_spec.rb",
39
+ "spec/spec.opts",
40
+ "spec/spec_helper.rb",
41
+ "spec/ticketmaster-pivotal_spec.rb",
42
+ "spec/tickets_spec.rb",
43
+ "ticketmaster-pivotal.gemspec"
45
44
  ]
46
45
  s.homepage = %q{http://ticket.rb}
47
- s.rdoc_options = ["--charset=UTF-8"]
48
46
  s.require_paths = ["lib"]
49
- s.rubygems_version = %q{1.3.7}
47
+ s.rubygems_version = %q{1.6.1}
50
48
  s.summary = %q{This is a ticketmaster provider for interacting with Pivotal Tracker}
51
49
  s.test_files = [
52
50
  "spec/comments_spec.rb",
53
- "spec/projects_spec.rb",
54
- "spec/spec_helper.rb",
55
- "spec/ticketmaster-pivotal_spec.rb",
56
- "spec/tickets_spec.rb"
51
+ "spec/projects_spec.rb",
52
+ "spec/spec_helper.rb",
53
+ "spec/ticketmaster-pivotal_spec.rb",
54
+ "spec/tickets_spec.rb"
57
55
  ]
58
56
 
59
57
  if s.respond_to? :specification_version then
60
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
61
58
  s.specification_version = 3
62
59
 
63
60
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-pivotal
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease: false
4
+ hash: 29
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 3
8
+ - 4
9
9
  - 9
10
- version: 0.3.9
10
+ version: 0.4.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - HybridGroup
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-07 00:00:00 -08:00
18
+ date: 2011-06-06 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -93,7 +93,6 @@ extra_rdoc_files:
93
93
  - README.markdown
94
94
  files:
95
95
  - .document
96
- - .gitignore
97
96
  - LICENSE
98
97
  - README.markdown
99
98
  - Rakefile
@@ -122,8 +121,8 @@ homepage: http://ticket.rb
122
121
  licenses: []
123
122
 
124
123
  post_install_message:
125
- rdoc_options:
126
- - --charset=UTF-8
124
+ rdoc_options: []
125
+
127
126
  require_paths:
128
127
  - lib
129
128
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -147,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
146
  requirements: []
148
147
 
149
148
  rubyforge_project:
150
- rubygems_version: 1.3.7
149
+ rubygems_version: 1.6.1
151
150
  signing_key:
152
151
  specification_version: 3
153
152
  summary: This is a ticketmaster provider for interacting with Pivotal Tracker
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC
22
- .rvmrc