ticketmaster-github 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/provider/comment.rb +1 -1
- data/lib/provider/project.rb +17 -0
- data/lib/provider/ticket.rb +16 -0
- data/ticketmaster-github.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.2
|
data/lib/provider/comment.rb
CHANGED
data/lib/provider/project.rb
CHANGED
@@ -13,6 +13,7 @@ module TicketMaster::Provider
|
|
13
13
|
unless object.is_a? Hash
|
14
14
|
hash = {:description => object.description,
|
15
15
|
:created_at => object.created_at,
|
16
|
+
:updated_at => object.created_at,
|
16
17
|
:name => object.name,
|
17
18
|
:id => object.name,
|
18
19
|
:owner => object.owner}
|
@@ -23,6 +24,22 @@ module TicketMaster::Provider
|
|
23
24
|
end
|
24
25
|
end
|
25
26
|
|
27
|
+
def created_at
|
28
|
+
begin
|
29
|
+
Time.parse(self[:created_at])
|
30
|
+
rescue
|
31
|
+
self[:created_at]
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def updated_at
|
36
|
+
begin
|
37
|
+
Time.parse(self[:created_at])
|
38
|
+
rescue
|
39
|
+
self[:created_at]
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
26
43
|
def id
|
27
44
|
self[:name]
|
28
45
|
end
|
data/lib/provider/ticket.rb
CHANGED
@@ -70,6 +70,22 @@ module TicketMaster::Provider
|
|
70
70
|
TicketMaster::Provider::Github.api.create_issue("#{TicketMaster::Provider::Github.login}/#{project_id}", title, body, options.first)
|
71
71
|
end
|
72
72
|
|
73
|
+
def created_at
|
74
|
+
begin
|
75
|
+
Time.parse(self[:created_at])
|
76
|
+
rescue
|
77
|
+
self[:created_at]
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def updated_at
|
82
|
+
begin
|
83
|
+
Time.parse(self[:updated_at])
|
84
|
+
rescue
|
85
|
+
self[:updated_at]
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
73
89
|
def save
|
74
90
|
t = Ticket.find_by_id(project_id, number)
|
75
91
|
return false if t.title == title and t.body == body
|
data/ticketmaster-github.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ticketmaster-github}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.2"
|
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-04-
|
12
|
+
s.date = %q{2011-04-08}
|
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 = [
|
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 2
|
10
|
+
version: 0.4.2
|
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-04-
|
18
|
+
date: 2011-04-08 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|