ticketmaster-github 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ begin
11
11
  gem.homepage = "http://github.com/kiafaldorius/ticketmaster-github"
12
12
  gem.authors = ["HybridGroup"]
13
13
  gem.add_development_dependency "rspec", ">= 1.2.9"
14
- gem.add_dependency "octokit"
14
+ gem.add_dependency "hybridgroup-octokit"
15
15
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.5
@@ -60,12 +60,17 @@ module TicketMaster::Provider
60
60
  end
61
61
 
62
62
  def self.find_by_id(id)
63
- self.new TicketMaster::Provider::Github.api.repository("#{TicketMaster::Provider::Github.login}/#{id}")
63
+ id = "#{TicketMaster::Provider::Github.login}/#{id}" unless id.include?("/")
64
+ self.new TicketMaster::Provider::Github.api.repository(id)
64
65
  end
65
66
 
66
67
  def self.find_all(*options)
67
- TicketMaster::Provider::Github.api.repositories(TicketMaster::Provider::Github.login).collect { |repository|
68
+ repos = []
69
+ user_repos = TicketMaster::Provider::Github.api.repositories(TicketMaster::Provider::Github.login).collect { |repository|
68
70
  self.new repository }
71
+ org_repos = TicketMaster::Provider::Github.api.organization_repositories(TicketMaster::Provider::Github.login).collect { |repository|
72
+ self.new repository }
73
+ repos = repos + user_repos + org_repos
69
74
  end
70
75
 
71
76
  def tickets(*options)
data/spec/spec_helper.rb CHANGED
@@ -2,6 +2,7 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
3
 
4
4
  require 'rubygems'
5
+ require 'active_support/core_ext/string'
5
6
  require 'spec'
6
7
  require 'factory_girl'
7
8
  require 'ticketmaster'
@@ -5,13 +5,13 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-github}
8
- s.version = "0.4.4"
8
+ s.version = "0.4.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-04-08}
13
- s.description = %q{This provides an interface with github through the ticketmaster gem.}
14
- s.email = %q{hong.quach@abigfisch.com}
12
+ s.date = %q{2011-04-09}
13
+ s.description = %q{Ticketmaster provider for Github Issues tracking.}
14
+ s.email = %q{hong@hybridgroup.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
17
  "README.md"
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 4
10
- version: 0.4.4
9
+ - 5
10
+ version: 0.4.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-04-08 00:00:00 -05:00
18
+ date: 2011-04-09 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -48,8 +48,8 @@ dependencies:
48
48
  version: "0"
49
49
  type: :runtime
50
50
  version_requirements: *id002
51
- description: This provides an interface with github through the ticketmaster gem.
52
- email: hong.quach@abigfisch.com
51
+ description: Ticketmaster provider for Github Issues tracking.
52
+ email: hong@hybridgroup.com
53
53
  executables: []
54
54
 
55
55
  extensions: []