ticketmaster-redmine 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
@@ -14,8 +14,10 @@ module TicketMaster::Provider
14
14
  unless object.is_a? Hash
15
15
  hash = {:repository => object.id,
16
16
  :description => object.description,
17
- :subject => object.subject,
18
- :status => object.status}
17
+ :title => object.subject,
18
+ :status => object.status,
19
+ :priority => object.priority,
20
+ :project_id => object.id}
19
21
  else
20
22
  hash = object
21
23
  end
@@ -41,7 +43,7 @@ module TicketMaster::Provider
41
43
  end
42
44
 
43
45
  def self.create(*options)
44
- issue = API.new(options.first.merge!(:status => 'New'))
46
+ issue = API.new(options.first.merge!(:status => 'New', :priority => 'Normal'))
45
47
  ticket = self.new issue
46
48
  issue.save
47
49
  ticket
@@ -31,14 +31,14 @@ describe "Ticketmaster::Provider::Redmine::Ticket" do
31
31
  @tickets = @project.tickets([1])
32
32
  @tickets.should be_an_instance_of(Array)
33
33
  @tickets.first.should be_an_instance_of(@klass)
34
- @tickets.first.subject.should == 'test-issue'
34
+ @tickets.first.title.should == 'test-issue'
35
35
  end
36
36
 
37
37
  it "should be able to load all tickets based on attributes" do
38
38
  @tickets = @project.tickets(:id => 1)
39
39
  @tickets.should be_an_instance_of(Array)
40
40
  @tickets.first.should be_an_instance_of(@klass)
41
- @tickets.first.subject.should == 'test-issue'
41
+ @tickets.first.title.should == 'test-issue'
42
42
  end
43
43
 
44
44
  it "should return the ticket class" do
@@ -48,13 +48,13 @@ describe "Ticketmaster::Provider::Redmine::Ticket" do
48
48
  it "should be able to load a single ticket" do
49
49
  @ticket = @project.ticket(1)
50
50
  @ticket.should be_an_instance_of(@klass)
51
- @ticket.subject.should == 'test-issue'
51
+ @ticket.title.should == 'test-issue'
52
52
  end
53
53
 
54
54
  it "shoule be able to load a single ticket based on attributes" do
55
55
  @ticket = @project.ticket(:id => 1)
56
56
  @ticket.should be_an_instance_of(@klass)
57
- @ticket.subject.should == 'test-issue'
57
+ @ticket.title.should == 'test-issue'
58
58
  end
59
59
 
60
60
  it "should be able to update and save a ticket" do
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-redmine}
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 = ["Rafael George"]
12
- s.date = %q{2010-12-29}
12
+ s.date = %q{2010-12-30}
13
13
  s.description = %q{Allows ticketmaster to interact with Your System.}
14
14
  s.email = %q{george.rafael@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-redmine
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
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rafael George
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-29 00:00:00 -04:00
18
+ date: 2010-12-30 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency