ticketmaster-github 0.5.3 → 0.6.3

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.3
1
+ 0.6.3
@@ -34,6 +34,14 @@ module TicketMaster::Provider
34
34
  end
35
35
  end
36
36
 
37
+ def valid?
38
+ begin
39
+ TicketMaster::Provider::Github.api.user.total_private_repo_count >= 0
40
+ rescue
41
+ false
42
+ end
43
+ end
44
+
37
45
  def projects(*options)
38
46
  if options.empty?
39
47
  Project.find_all(options)
@@ -2,8 +2,11 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe "Ticketmaster::Provider::Github" do
4
4
 
5
+ before(:each) do
6
+ @github = TicketMaster.new(:github, {:login => 'juanespinosa', :password => 'asdfghk'})
7
+ end
8
+
5
9
  it "should be able to instantiate a new instance" do
6
- @github = TicketMaster.new(:github, {:login => 'juanespinosa', :token => 'asdfghk'})
7
10
  @github.should be_an_instance_of(TicketMaster)
8
11
  @github.should be_a_kind_of(TicketMaster::Provider::Github)
9
12
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-github}
8
- s.version = "0.5.3"
8
+ s.version = "0.6.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-23}
12
+ s.date = %q{2011-06-03}
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: 13
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 5
8
+ - 6
9
9
  - 3
10
- version: 0.5.3
10
+ version: 0.6.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-23 00:00:00 -04:00
18
+ date: 2011-06-03 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency