ticketmaster 0.4.8 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -150,6 +150,19 @@ Once you require it, then you are ready to use Basecamp with ticketmaster
150
150
 
151
151
  The source code is located at [ticketmaster-basecamp](http://github.com/hybridgroup/ticketmaster-basecamp)
152
152
 
153
+ ### Github
154
+
155
+ To use Github's issue tracking with ticketmaster, install it:
156
+ gem install ticketmaster-github
157
+
158
+ Once you require it, then you are ready to use Github and ticketmaster
159
+
160
+ require 'ticketmaster'
161
+ require 'ticketmaster-github'
162
+ github = TicketMaster.new(:github, :username => 'you', :password => 'pass')
163
+
164
+ The source code is located at [ticketmaster-github](http://github.com/hybridgroup/ticketmaster-github)
165
+
153
166
  ### Unfuddle (Alpha, needs compatibility update)
154
167
 
155
168
  To use Unfuddle with ticketmaster, install it:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.8
1
+ 0.4.9
@@ -3,11 +3,12 @@ def generate(options)
3
3
  if ARGV.length == 0
4
4
  ARGV << '--help'
5
5
  else
6
- options[:provider] = ARGV.shift
7
- if options[:provider].first == '_'
8
- options[:provider][0] = ''
6
+ provider_name = ARGV.shift
7
+ if provider_name.start_with? '_'
8
+ options[:provider] = provider_name[1..-1]
9
9
  options[:provider_dir] = options[:provider]
10
10
  else
11
+ options[:provider] = provider_name
11
12
  options[:provider_dir] = 'ticketmaster-' + options[:provider]
12
13
  end
13
14
  end
@@ -3,6 +3,8 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
3
  require 'spec'
4
4
  require 'spec/autorun'
5
5
 
6
+ require 'fileutils'
7
+
6
8
  Spec::Runner.configure do |config| end
7
9
  # Tests for the cli
8
10
  # I'm not quite sure what the most effective way to test this is...
@@ -32,4 +34,29 @@ describe "Ticketmaster CLI" do
32
34
  pending
33
35
  end
34
36
 
37
+ describe :generate do
38
+ it "should generate provider skeleton w/o runtime errors" do
39
+ provider_name = "test-provider"
40
+ expected_name = "ticketmaster-#{provider_name}"
41
+ begin
42
+ generate = `#{@ticket} generate #{provider_name}`
43
+ $?.should == 0
44
+ File.exists?(expected_name).should == true
45
+ ensure
46
+ FileUtils.remove_dir(expected_name) if File.exists? expected_name
47
+ end
48
+ end
49
+
50
+ it "should not prefix 'ticketmaster' when not asked to" do
51
+ provider_name = "test-provider"
52
+ begin
53
+ generate = `#{@ticket} generate _#{provider_name}`
54
+ $?.should == 0
55
+ File.exists?(provider_name).should == true
56
+ ensure
57
+ FileUtils.remove_dir(provider_name) if File.exists? provider_name
58
+ end
59
+ end
60
+ end
61
+
35
62
  end
data/ticketmaster.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster}
8
- s.version = "0.4.8"
8
+ s.version = "0.4.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kiafaldorius", "Sirupsen", "deadprogrammer"]
12
- s.date = %q{2010-08-11}
12
+ s.date = %q{2010-09-27}
13
13
  s.default_executable = %q{tm}
14
14
  s.description = %q{Ticketmaster provides a universal API to ticket tracking and project management systems.}
15
15
  s.email = %q{info@hybridgroup.com}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 8
10
- version: 0.4.8
9
+ - 9
10
+ version: 0.4.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - kiafaldorius
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-08-11 00:00:00 -07:00
20
+ date: 2010-09-27 00:00:00 -07:00
21
21
  default_executable: tm
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency