ticketmaster-unfuddle 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +1 -1
  2. data/VERSION +1 -1
  3. data/lib/ticketmaster-unfuddle.rb +5 -4
  4. metadata +5 -14
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ begin
7
7
  gem.name = "ticketmaster-unfuddle"
8
8
  gem.summary = %Q{Ticketmaster provider for Unfuddle}
9
9
  gem.description = %Q{Ticketmaster provider for Unfuddle}
10
- gem.email = "simon@hoerup.dk"
10
+ gem.email = "simon@hybridgroup.com"
11
11
  gem.homepage = "http://ticketrb.com"
12
12
  gem.authors = ["Sirupsen"]
13
13
  gem.add_dependency "unfuddler", ">= 0"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -7,12 +7,13 @@ module TicketMasterMod
7
7
  Unfuddler.authenticate(ticket.project.authentication.to_hash)
8
8
  project = Unfuddler::Project.find(ticket.project.name)
9
9
 
10
- ticket = ticket.to_hash.select do |key, value|
11
- [:summary, :priority, :description].include?(key.to_sym)
10
+ new_ticket = {}
11
+ ticket.to_hash.each_pair do |key, value|
12
+ new_ticket[key] = value if [:summary, :priority, :description].include?(key.to_sym)
13
+ new_ticket[key] = value.to_s if value.is_a?(Integer)
12
14
  end
13
- ticket["priority"] = ticket["priority"].to_s
14
15
 
15
- project.ticket.create(ticket)
16
+ project.ticket.create(new_ticket)
16
17
  end
17
18
 
18
19
  def self.save(ticket)
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-unfuddle
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 0
9
- - 0
10
- version: 0.0.0
8
+ - 1
9
+ version: 0.0.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - Sirupsen
@@ -15,18 +14,16 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-06-07 00:00:00 +02:00
17
+ date: 2010-06-12 00:00:00 +02:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: unfuddler
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
25
  - - ">="
28
26
  - !ruby/object:Gem::Version
29
- hash: 3
30
27
  segments:
31
28
  - 0
32
29
  version: "0"
@@ -36,18 +33,16 @@ dependencies:
36
33
  name: thoughtbot-shoulda
37
34
  prerelease: false
38
35
  requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
36
  requirements:
41
37
  - - ">="
42
38
  - !ruby/object:Gem::Version
43
- hash: 3
44
39
  segments:
45
40
  - 0
46
41
  version: "0"
47
42
  type: :development
48
43
  version_requirements: *id002
49
44
  description: Ticketmaster provider for Unfuddle
50
- email: simon@hoerup.dk
45
+ email: simon@hybridgroup.com
51
46
  executables: []
52
47
 
53
48
  extensions: []
@@ -75,27 +70,23 @@ rdoc_options:
75
70
  require_paths:
76
71
  - lib
77
72
  required_ruby_version: !ruby/object:Gem::Requirement
78
- none: false
79
73
  requirements:
80
74
  - - ">="
81
75
  - !ruby/object:Gem::Version
82
- hash: 3
83
76
  segments:
84
77
  - 0
85
78
  version: "0"
86
79
  required_rubygems_version: !ruby/object:Gem::Requirement
87
- none: false
88
80
  requirements:
89
81
  - - ">="
90
82
  - !ruby/object:Gem::Version
91
- hash: 3
92
83
  segments:
93
84
  - 0
94
85
  version: "0"
95
86
  requirements: []
96
87
 
97
88
  rubyforge_project:
98
- rubygems_version: 1.3.7
89
+ rubygems_version: 1.3.6
99
90
  signing_key:
100
91
  specification_version: 3
101
92
  summary: Ticketmaster provider for Unfuddle