ticketmaster-github 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.4
1
+ 0.6.5
@@ -36,7 +36,7 @@ module TicketMaster::Provider
36
36
 
37
37
  def valid?
38
38
  begin
39
- TicketMaster::Provider::Github.api.user.total_private_repo_count >= 0
39
+ TicketMaster::Provider::Github.api.user.total_private_repos >= 0
40
40
  rescue
41
41
  false
42
42
  end
@@ -18,4 +18,18 @@ describe "Ticketmaster::Provider::Github" do
18
18
  TicketMaster::Provider::Github.api.authenticated?.should be_true
19
19
  end
20
20
 
21
+ context 'when calling #valid?' do
22
+ it 'should test #total_private_repos number' do
23
+ user = mock 'user'
24
+ user.should_receive(:total_private_repos).and_return 0
25
+ TicketMaster::Provider::Github.api.should_receive(:user).and_return user
26
+ @github.valid?.should be_true
27
+ end
28
+
29
+ it 'should return false when the user provides wrong credentials' do
30
+ TicketMaster::Provider::Github.api.should_receive(:user).
31
+ and_raise 'some error'
32
+ @github.valid?.should_not be_true
33
+ end
34
+ end
21
35
  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.6.4"
8
+ s.version = "0.6.5"
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-07-05}
12
+ s.date = %q{2011-07-16}
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 = [
@@ -40,18 +40,8 @@ Gem::Specification.new do |s|
40
40
  ]
41
41
  s.homepage = %q{http://github.com/kiafaldorius/ticketmaster-github}
42
42
  s.require_paths = ["lib"]
43
- s.rubygems_version = %q{1.6.1}
43
+ s.rubygems_version = %q{1.6.2}
44
44
  s.summary = %q{The github provider for ticketmaster}
45
- s.test_files = [
46
- "spec/comment_spec.rb",
47
- "spec/factories/comment.rb",
48
- "spec/factories/issue.rb",
49
- "spec/factories/repository.rb",
50
- "spec/project_spec.rb",
51
- "spec/spec_helper.rb",
52
- "spec/ticket_spec.rb",
53
- "spec/ticketmaster-github_spec.rb"
54
- ]
55
45
 
56
46
  if s.respond_to? :specification_version then
57
47
  s.specification_version = 3
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: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 4
10
- version: 0.6.4
9
+ - 5
10
+ version: 0.6.5
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-07-05 00:00:00 -04:00
18
+ date: 2011-07-16 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -126,16 +126,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  requirements: []
127
127
 
128
128
  rubyforge_project:
129
- rubygems_version: 1.6.1
129
+ rubygems_version: 1.6.2
130
130
  signing_key:
131
131
  specification_version: 3
132
132
  summary: The github provider for ticketmaster
133
- test_files:
134
- - spec/comment_spec.rb
135
- - spec/factories/comment.rb
136
- - spec/factories/issue.rb
137
- - spec/factories/repository.rb
138
- - spec/project_spec.rb
139
- - spec/spec_helper.rb
140
- - spec/ticket_spec.rb
141
- - spec/ticketmaster-github_spec.rb
133
+ test_files: []
134
+