ticketmaster-github 0.5.2 → 0.5.3

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.2
1
+ 0.5.3
@@ -26,7 +26,8 @@ module TicketMaster::Provider
26
26
  :description => object.body,
27
27
  :body =>object.body,
28
28
  :project_id => project_id,
29
- :requestor => object.user}
29
+ :requestor => object.user,
30
+ :author => object.user}
30
31
  else
31
32
  object.merge!(:project_id => project_id)
32
33
  hash = object
@@ -47,6 +48,10 @@ module TicketMaster::Provider
47
48
  self[:user]
48
49
  end
49
50
 
51
+ def author
52
+ self[:user]
53
+ end
54
+
50
55
  def self.find_by_id(project_id, number)
51
56
  self.new(project_id, TicketMaster::Provider::Github.api.issue(project_id, number))
52
57
  end
data/spec/ticket_spec.rb CHANGED
@@ -33,6 +33,11 @@ describe "Ticketmaster::Provider::Github::Ticket" do
33
33
  ticket.title.should be_eql('Move Ajax Test to Core')
34
34
  end
35
35
 
36
+ it "should return author in ticket" do
37
+ ticket = @project.ticket(@ticket_id)
38
+ ticket.author.should == 'jeresig'
39
+ end
40
+
36
41
  it "should be able to open a new ticket"
37
42
 
38
43
  it "should be able to update a existing ticket"
@@ -1,62 +1,59 @@
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-github}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
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-05-08}
12
+ s.date = %q{2011-05-23}
13
13
  s.description = %q{This provides an interface with github through the ticketmaster gem.}
14
14
  s.email = %q{hong.quach@abigfisch.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.md"
17
+ "README.md"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.md",
24
- "Rakefile",
25
- "VERSION",
26
- "lib/provider/comment.rb",
27
- "lib/provider/github.rb",
28
- "lib/provider/project.rb",
29
- "lib/provider/ticket.rb",
30
- "lib/ticketmaster-github.rb",
31
- "spec/comment_spec.rb",
32
- "spec/factories/comment.rb",
33
- "spec/factories/issue.rb",
34
- "spec/factories/repository.rb",
35
- "spec/project_spec.rb",
36
- "spec/spec.opts",
37
- "spec/spec_helper.rb",
38
- "spec/ticket_spec.rb",
39
- "spec/ticketmaster-github_spec.rb",
40
- "ticketmaster-github.gemspec"
21
+ "LICENSE",
22
+ "README.md",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "lib/provider/comment.rb",
26
+ "lib/provider/github.rb",
27
+ "lib/provider/project.rb",
28
+ "lib/provider/ticket.rb",
29
+ "lib/ticketmaster-github.rb",
30
+ "spec/comment_spec.rb",
31
+ "spec/factories/comment.rb",
32
+ "spec/factories/issue.rb",
33
+ "spec/factories/repository.rb",
34
+ "spec/project_spec.rb",
35
+ "spec/spec.opts",
36
+ "spec/spec_helper.rb",
37
+ "spec/ticket_spec.rb",
38
+ "spec/ticketmaster-github_spec.rb",
39
+ "ticketmaster-github.gemspec"
41
40
  ]
42
41
  s.homepage = %q{http://github.com/kiafaldorius/ticketmaster-github}
43
- s.rdoc_options = ["--charset=UTF-8"]
44
42
  s.require_paths = ["lib"]
45
- s.rubygems_version = %q{1.3.7}
43
+ s.rubygems_version = %q{1.6.1}
46
44
  s.summary = %q{The github provider for ticketmaster}
47
45
  s.test_files = [
48
46
  "spec/comment_spec.rb",
49
- "spec/factories/comment.rb",
50
- "spec/factories/issue.rb",
51
- "spec/factories/repository.rb",
52
- "spec/project_spec.rb",
53
- "spec/spec_helper.rb",
54
- "spec/ticket_spec.rb",
55
- "spec/ticketmaster-github_spec.rb"
47
+ "spec/factories/comment.rb",
48
+ "spec/factories/issue.rb",
49
+ "spec/factories/repository.rb",
50
+ "spec/project_spec.rb",
51
+ "spec/spec_helper.rb",
52
+ "spec/ticket_spec.rb",
53
+ "spec/ticketmaster-github_spec.rb"
56
54
  ]
57
55
 
58
56
  if s.respond_to? :specification_version then
59
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
60
57
  s.specification_version = 3
61
58
 
62
59
  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-github
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease: false
4
+ hash: 13
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 2
10
- version: 0.5.2
9
+ - 3
10
+ version: 0.5.3
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: 2011-05-08 00:00:00 -07:00
18
+ date: 2011-05-23 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -59,7 +59,6 @@ extra_rdoc_files:
59
59
  - README.md
60
60
  files:
61
61
  - .document
62
- - .gitignore
63
62
  - LICENSE
64
63
  - README.md
65
64
  - Rakefile
@@ -84,8 +83,8 @@ homepage: http://github.com/kiafaldorius/ticketmaster-github
84
83
  licenses: []
85
84
 
86
85
  post_install_message:
87
- rdoc_options:
88
- - --charset=UTF-8
86
+ rdoc_options: []
87
+
89
88
  require_paths:
90
89
  - lib
91
90
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -109,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
108
  requirements: []
110
109
 
111
110
  rubyforge_project:
112
- rubygems_version: 1.3.7
111
+ rubygems_version: 1.6.1
113
112
  signing_key:
114
113
  specification_version: 3
115
114
  summary: The github provider for ticketmaster
data/.gitignore DELETED
@@ -1,25 +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
- nbproject/
23
-
24
- ## RVM
25
- .rvmrc