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 +1 -1
- data/lib/provider/ticket.rb +6 -1
- data/spec/ticket_spec.rb +5 -0
- data/ticketmaster-github.gemspec +31 -34
- metadata +8 -9
- data/.gitignore +0 -25
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.3
|
data/lib/provider/ticket.rb
CHANGED
@@ -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"
|
data/ticketmaster-github.gemspec
CHANGED
@@ -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
|
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.
|
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-
|
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
|
-
|
17
|
+
"README.md"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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.
|
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
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 13
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
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-
|
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
|
-
|
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.
|
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