ticketmaster-pivotal 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 HybridGroup
1
+ Copyright (c) 2009-2010 The Hybrid Group
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -8,6 +8,8 @@ distribute, sublicense, and/or sell copies of the Software, and to
8
8
  permit persons to whom the Software is furnished to do so, subject to
9
9
  the following conditions:
10
10
 
11
+ NONE
12
+
11
13
  The above copyright notice and this permission notice shall be
12
14
  included in all copies or substantial portions of the Software.
13
15
 
data/README.markdown CHANGED
@@ -14,4 +14,4 @@ Description goes here.
14
14
 
15
15
  ## Copyright
16
16
 
17
- Copyright (c) 2010 HybridGroup. See LICENSE for details.
17
+ Copyright (c) 2010 The Hybrid Group. See LICENSE for details.
data/Rakefile CHANGED
@@ -11,6 +11,7 @@ begin
11
11
  gem.homepage = "http://ticket.rb"
12
12
  gem.authors = ["HybridGroup"]
13
13
  gem.add_development_dependency "rspec", ">= 1.2.9"
14
+ gem.add_dependency "ticketmaster", ">= 0.3.0"
14
15
  gem.add_dependency "activesupport", ">= 2.3.0"
15
16
  gem.add_dependency "activeresource", ">= 2.3.0"
16
17
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.5
1
+ 0.3.6
@@ -27,32 +27,32 @@ describe "Ticketmaster::Provider::Pivotal::Comment" do
27
27
 
28
28
  it "should be able to load all comments" do
29
29
  @comments = @ticket.comments
30
- @comments.should be_an_instance_of Array
31
- @comments.first.should be_an_instance_of @klass
30
+ @comments.should be_an_instance_of(Array)
31
+ @comments.first.should be_an_instance_of(@klass)
32
32
  end
33
33
 
34
34
  it "should be able to load all comments based on 'id's" do
35
35
  @comments = @ticket.comments([@comment_id])
36
- @comments.should be_an_instance_of Array
37
- @comments.first.should be_an_instance_of @klass
36
+ @comments.should be_an_instance_of(Array)
37
+ @comments.first.should be_an_instance_of(@klass)
38
38
  @comments.first.id.should == @comment_id
39
39
  end
40
40
 
41
41
  it "should be able to load all comments based on attributes" do
42
42
  @comments = @ticket.comments(:id => @comment_id)
43
- @comments.should be_an_instance_of Array
44
- @comments.first.should be_an_instance_of @klass
43
+ @comments.should be_an_instance_of(Array)
44
+ @comments.first.should be_an_instance_of(@klass)
45
45
  end
46
46
 
47
47
  it "should be able to load a comment based on id" do
48
48
  @comment = @ticket.comment(@comment_id)
49
- @comment.should be_an_instance_of @klass
49
+ @comment.should be_an_instance_of(@klass)
50
50
  @comment.id.should == @comment_id
51
51
  end
52
52
 
53
53
  it "should be able to load a comment based on attributes" do
54
54
  @comment = @ticket.comment(:id => @comment_id)
55
- @comment.should be_an_instance_of @klass
55
+ @comment.should be_an_instance_of(@klass)
56
56
  end
57
57
 
58
58
  it "should return the class" do
@@ -61,6 +61,6 @@ describe "Ticketmaster::Provider::Pivotal::Comment" do
61
61
 
62
62
  it "should be able to create a comment" do # which as mentioned before is technically a ticket update
63
63
  @comment = @ticket.comment!(:body => 'hello there boys and girls')
64
- @comment.should be_an_instance_of @klass
64
+ @comment.should be_an_instance_of(@klass)
65
65
  end
66
66
  end
@@ -20,37 +20,37 @@ describe "Ticketmaster::Provider::Pivotal::Project" do
20
20
  end
21
21
 
22
22
  it "should be able to load all projects" do
23
- @ticketmaster.projects.should be_an_instance_of Array
24
- @ticketmaster.projects.first.should be_an_instance_of @klass
23
+ @ticketmaster.projects.should be_an_instance_of(Array)
24
+ @ticketmaster.projects.first.should be_an_instance_of(@klass)
25
25
  end
26
26
 
27
27
  it "should be able to load projects from an array of ids" do
28
28
  @projects = @ticketmaster.projects([@project_id])
29
- @projects.should be_an_instance_of Array
30
- @projects.first.should be_an_instance_of @klass
29
+ @projects.should be_an_instance_of(Array)
30
+ @projects.first.should be_an_instance_of(@klass)
31
31
  @projects.first.id.should == @project_id
32
32
  end
33
33
 
34
34
  it "should be able to load all projects from attributes" do
35
35
  @projects = @ticketmaster.projects(:id => @project_id)
36
- @projects.should be_an_instance_of Array
37
- @projects.first.should be_an_instance_of @klass
36
+ @projects.should be_an_instance_of(Array)
37
+ @projects.first.should be_an_instance_of(@klass)
38
38
  @projects.first.id.should == @project_id
39
39
  end
40
40
 
41
41
  it "should be able to find a project" do
42
42
  @ticketmaster.project.should == @klass
43
- @ticketmaster.project.find(@project_id).should be_an_instance_of @klass
43
+ @ticketmaster.project.find(@project_id).should be_an_instance_of(@klass)
44
44
  end
45
45
 
46
46
  it "should be able to find a project by id" do
47
- @ticketmaster.project(@project_id).should be_an_instance_of @klass
47
+ @ticketmaster.project(@project_id).should be_an_instance_of(@klass)
48
48
  @ticketmaster.project(@project_id).id.should == @project_id
49
49
  end
50
50
 
51
51
  it "should be able to find a project by attributes" do
52
52
  @ticketmaster.project(:id => @project_id).id.should == @project_id
53
- @ticketmaster.project(:id => @project_id).should be_an_instance_of @klass
53
+ @ticketmaster.project(:id => @project_id).should be_an_instance_of(@klass)
54
54
  end
55
55
 
56
56
  # always returns true, pivotal doesn't allow updating project attributes
@@ -64,7 +64,7 @@ describe "Ticketmaster::Provider::Pivotal::Project" do
64
64
 
65
65
  it "should be able to create a project" do
66
66
  @project = @ticketmaster.project.create(:name => 'Project #1')
67
- @project.should be_an_instance_of @klass
67
+ @project.should be_an_instance_of(@klass)
68
68
  end
69
69
 
70
70
  end
@@ -4,7 +4,7 @@ describe "TicketmasterPivotal" do
4
4
 
5
5
  it "should be able to instantiate a new instance" do
6
6
  @ticketmaster = TicketMaster.new(:pivotal, {:token => '000000'})
7
- @ticketmaster.should be_an_instance_of TicketMaster
8
- @ticketmaster.should be_a_kind_of TicketMaster::Provider::Pivotal
7
+ @ticketmaster.should be_an_instance_of(TicketMaster)
8
+ @ticketmaster.should be_a_kind_of(TicketMaster::Provider::Pivotal)
9
9
  end
10
10
  end
data/spec/tickets_spec.rb CHANGED
@@ -22,21 +22,21 @@ describe "Ticketmaster::Provider::Pivotal::Ticket" do
22
22
  end
23
23
 
24
24
  it "should be able to load all tickets" do
25
- @project.tickets.should be_an_instance_of Array
26
- @project.tickets.first.should be_an_instance_of @klass
25
+ @project.tickets.should be_an_instance_of(Array)
26
+ @project.tickets.first.should be_an_instance_of(@klass)
27
27
  end
28
28
 
29
29
  it "should be able to load all tickets based on an array of ids" do
30
30
  @tickets = @project.tickets([@ticket_id])
31
- @tickets.should be_an_instance_of Array
32
- @tickets.first.should be_an_instance_of @klass
31
+ @tickets.should be_an_instance_of(Array)
32
+ @tickets.first.should be_an_instance_of(@klass)
33
33
  @tickets.first.id.should == @ticket_id
34
34
  end
35
35
 
36
36
  it "should be able to load all tickets based on attributes" do
37
37
  @tickets = @project.tickets(:id => @ticket_id)
38
- @tickets.should be_an_instance_of Array
39
- @tickets.first.should be_an_instance_of @klass
38
+ @tickets.should be_an_instance_of(Array)
39
+ @tickets.first.should be_an_instance_of(@klass)
40
40
  @tickets.first.id.should == @ticket_id
41
41
  end
42
42
 
@@ -46,13 +46,13 @@ describe "Ticketmaster::Provider::Pivotal::Ticket" do
46
46
 
47
47
  it "should be able to load a single ticket" do
48
48
  @ticket = @project.ticket(@ticket_id)
49
- @ticket.should be_an_instance_of @klass
49
+ @ticket.should be_an_instance_of(@klass)
50
50
  @ticket.id.should == @ticket_id
51
51
  end
52
52
 
53
53
  it "should be able to load a single ticket based on attributes" do
54
54
  @ticket = @project.ticket(:id => @ticket_id)
55
- @ticket.should be_an_instance_of @klass
55
+ @ticket.should be_an_instance_of(@klass)
56
56
  @ticket.id.should == @ticket_id
57
57
  end
58
58
 
@@ -65,7 +65,7 @@ describe "Ticketmaster::Provider::Pivotal::Ticket" do
65
65
 
66
66
  it "should be able to create a ticket" do
67
67
  @ticket = @project.ticket!(:title => 'Ticket #12', :description => 'Body')
68
- @ticket.should be_an_instance_of @klass
68
+ @ticket.should be_an_instance_of(@klass)
69
69
  end
70
70
 
71
71
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-pivotal}
8
- s.version = "0.3.5"
8
+ s.version = "0.3.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["HybridGroup"]
@@ -62,15 +62,18 @@ Gem::Specification.new do |s|
62
62
 
63
63
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
64
64
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
65
+ s.add_runtime_dependency(%q<ticketmaster>, [">= 0.3.0"])
65
66
  s.add_runtime_dependency(%q<activesupport>, [">= 2.3.0"])
66
67
  s.add_runtime_dependency(%q<activeresource>, [">= 2.3.0"])
67
68
  else
68
69
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
70
+ s.add_dependency(%q<ticketmaster>, [">= 0.3.0"])
69
71
  s.add_dependency(%q<activesupport>, [">= 2.3.0"])
70
72
  s.add_dependency(%q<activeresource>, [">= 2.3.0"])
71
73
  end
72
74
  else
73
75
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
76
+ s.add_dependency(%q<ticketmaster>, [">= 0.3.0"])
74
77
  s.add_dependency(%q<activesupport>, [">= 2.3.0"])
75
78
  s.add_dependency(%q<activeresource>, [">= 2.3.0"])
76
79
  end
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: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - HybridGroup
@@ -35,9 +35,25 @@ dependencies:
35
35
  type: :development
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
38
- name: activesupport
38
+ name: ticketmaster
39
39
  prerelease: false
40
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 19
46
+ segments:
47
+ - 0
48
+ - 3
49
+ - 0
50
+ version: 0.3.0
51
+ type: :runtime
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: activesupport
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
41
57
  none: false
42
58
  requirements:
43
59
  - - ">="
@@ -49,11 +65,11 @@ dependencies:
49
65
  - 0
50
66
  version: 2.3.0
51
67
  type: :runtime
52
- version_requirements: *id002
68
+ version_requirements: *id003
53
69
  - !ruby/object:Gem::Dependency
54
70
  name: activeresource
55
71
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
72
+ requirement: &id004 !ruby/object:Gem::Requirement
57
73
  none: false
58
74
  requirements:
59
75
  - - ">="
@@ -65,7 +81,7 @@ dependencies:
65
81
  - 0
66
82
  version: 2.3.0
67
83
  type: :runtime
68
- version_requirements: *id003
84
+ version_requirements: *id004
69
85
  description: This is a ticketmaster provider for interacting with Pivotal Tracker .
70
86
  email: hong.quach@abigfisch.com
71
87
  executables: []