ticketmaster-jira 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  class TicketMaster
2
2
  module Jira
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
@@ -22,6 +22,9 @@ module TicketMaster::Provider
22
22
  # declare needed overloaded methods here
23
23
 
24
24
  def project(*options)
25
+ if options.first.is_a? String
26
+ options[0] = options[0].to_i
27
+ end
25
28
  if options.first.is_a? Fixnum
26
29
  Project.find_by_id(options.first)
27
30
  elsif options.first.is_a? Hash
@@ -28,6 +28,10 @@ module TicketMaster::Provider
28
28
  end
29
29
  end
30
30
 
31
+ def id
32
+ self[:id].to_i
33
+ end
34
+
31
35
  def updated_at
32
36
  normalize_datetime(self[:updated_at])
33
37
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-jira
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Charles Lowell
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-05-26 00:00:00 -04:00
19
+ date: 2011-05-27 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency