github 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,20 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github (0.6.0)
4
+ github (0.6.1)
5
5
  highline (~> 1.5.1)
6
6
  json (~> 1.4.6)
7
7
  launchy (~> 0.3.7)
8
8
  text-format (= 1.0.0)
9
+ text-hyphen (= 1.0.0)
9
10
 
10
11
  GEM
11
12
  remote: http://rubygems.org/
12
13
  specs:
13
- activerecord (2.3.10)
14
- activesupport (= 2.3.10)
15
- activesupport (2.3.10)
16
- configuration (1.1.0)
14
+ activemodel (3.0.5)
15
+ activesupport (= 3.0.5)
16
+ builder (~> 2.1.2)
17
+ i18n (~> 0.4)
18
+ activerecord (3.0.5)
19
+ activemodel (= 3.0.5)
20
+ activesupport (= 3.0.5)
21
+ arel (~> 2.0.2)
22
+ tzinfo (~> 0.3.23)
23
+ activesupport (3.0.5)
24
+ arel (2.0.9)
25
+ builder (2.1.2)
26
+ configuration (1.2.0)
17
27
  highline (1.5.2)
28
+ i18n (0.5.0)
18
29
  json (1.4.6)
19
30
  launchy (0.3.7)
20
31
  configuration (>= 0.0.5)
@@ -24,12 +35,13 @@ GEM
24
35
  text-format (1.0.0)
25
36
  text-hyphen (~> 1.0.0)
26
37
  text-hyphen (1.0.0)
38
+ tzinfo (0.3.25)
27
39
 
28
40
  PLATFORMS
29
41
  ruby
30
42
 
31
43
  DEPENDENCIES
32
- activerecord (~> 2.3.10)
44
+ activerecord (~> 3.0.0)
33
45
  github!
34
46
  rake
35
47
  rspec (~> 1.3.1)
@@ -1,4 +1,10 @@
1
- == 0.6.0
1
+ == 0.6.1 2011-04-03
2
+
3
+ * Can install github into ruby 1.9
4
+ * Test suite runs in ruby 1.9
5
+ * Bumped development requirements to activerecord 3.0
6
+
7
+ == 0.6.0 2011-01-30
2
8
 
3
9
  * If credentials not setup, then user prompted for them
4
10
  * Corrected the "gem source --add" call [kedarmhaswade]
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
+ s.add_dependency "text-hyphen", "1.0.0"
22
23
  s.add_dependency "text-format", "1.0.0"
23
24
  s.add_dependency "highline", "~> 1.5.1"
24
25
  s.add_dependency "json", "~> 1.4.6"
@@ -26,5 +27,5 @@ Gem::Specification.new do |s|
26
27
 
27
28
  s.add_development_dependency "rake"
28
29
  s.add_development_dependency "rspec", "~>1.3.1"
29
- s.add_development_dependency "activerecord", "~>2.3.10"
30
+ s.add_development_dependency "activerecord", "~>3.0.0"
30
31
  end
@@ -334,8 +334,9 @@ helper :get_network_data do |user, options|
334
334
  if cache_network_data(options)
335
335
  begin
336
336
  return cache_data(user)
337
- rescue SocketError
337
+ rescue Exception => e
338
338
  STDERR.puts "*** Warning: There was a problem accessing the network."
339
+ STDERR.puts e
339
340
  rv = get_cache
340
341
  STDERR.puts "Using cached data."
341
342
  rv
@@ -373,12 +374,17 @@ helper :commits_cache_path do
373
374
  File.join(dir, 'commits-cache')
374
375
  end
375
376
 
377
+ helper :github_user do
378
+ `git config --get github.user`.chomp
379
+ end
380
+
381
+ helper :github_token do
382
+ `git config --get github.token`.chomp
383
+ end
384
+
376
385
  helper :cache_data do |user|
377
- raw_data = Kernel.open(network_meta_for(user)).read
378
- File.open( network_cache_path, 'w' ) do |out|
379
- out.write(raw_data)
380
- end
381
- data = JSON.parse(raw_data)
386
+ `curl -s -L -F 'login=#{github_user}' -F 'token=#{github_token}' #{network_meta_for(user)} -o #{network_cache_path}`
387
+ get_cache
382
388
  end
383
389
 
384
390
  helper :cache_expired? do
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require "readline"
2
3
  require "highline"
3
4
  module GitHub
@@ -1,3 +1,3 @@
1
1
  module GitHub
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github admin" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github browse" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github clone" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github create-from-local" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github fetch" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github fork" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github home" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github info" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github issues" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github network" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github pull-request" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github pull" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github search" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require File.dirname(__FILE__) + '/command_helper'
2
+ require File.expand_path("../command_helper", __FILE__)
3
3
 
4
4
  describe "github track" do
5
5
  include CommandHelper
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
- require File.dirname(__FILE__) + '/commands/command_helper'
2
+ require File.expand_path("../commands/command_helper", __FILE__)
3
3
 
4
4
  describe "github" do
5
5
  include CommandHelper
@@ -1,6 +1,9 @@
1
1
  require 'bundler/setup'
2
2
  require 'spec'
3
3
  require 'active_record'
4
+ require 'active_support/core_ext/numeric/time'
5
+ require 'active_support/core_ext/time/acts_like'
6
+ require 'active_support/core_ext/time/calculations'
4
7
 
5
8
  require File.dirname(__FILE__) + '/../lib/github'
6
9
 
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 6
9
- - 0
10
- version: 0.6.0
5
+ version: 0.6.1
11
6
  platform: ruby
12
7
  authors:
13
8
  - Chris Wanstrath
@@ -18,119 +13,97 @@ autorequire:
18
13
  bindir: bin
19
14
  cert_chain: []
20
15
 
21
- date: 2011-01-30 00:00:00 -08:00
16
+ date: 2011-04-03 00:00:00 -04:00
22
17
  default_executable:
23
18
  dependencies:
24
19
  - !ruby/object:Gem::Dependency
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
20
+ name: text-hyphen
21
+ requirement: &id001 !ruby/object:Gem::Requirement
26
22
  none: false
27
23
  requirements:
28
24
  - - "="
29
25
  - !ruby/object:Gem::Version
30
- hash: 23
31
- segments:
32
- - 1
33
- - 0
34
- - 0
35
26
  version: 1.0.0
36
27
  type: :runtime
37
- requirement: *id001
28
+ prerelease: false
29
+ version_requirements: *id001
30
+ - !ruby/object:Gem::Dependency
38
31
  name: text-format
32
+ requirement: &id002 !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - "="
36
+ - !ruby/object:Gem::Version
37
+ version: 1.0.0
38
+ type: :runtime
39
39
  prerelease: false
40
+ version_requirements: *id002
40
41
  - !ruby/object:Gem::Dependency
41
- version_requirements: &id002 !ruby/object:Gem::Requirement
42
+ name: highline
43
+ requirement: &id003 !ruby/object:Gem::Requirement
42
44
  none: false
43
45
  requirements:
44
46
  - - ~>
45
47
  - !ruby/object:Gem::Version
46
- hash: 1
47
- segments:
48
- - 1
49
- - 5
50
- - 1
51
48
  version: 1.5.1
52
49
  type: :runtime
53
- requirement: *id002
54
- name: highline
55
50
  prerelease: false
51
+ version_requirements: *id003
56
52
  - !ruby/object:Gem::Dependency
57
- version_requirements: &id003 !ruby/object:Gem::Requirement
53
+ name: json
54
+ requirement: &id004 !ruby/object:Gem::Requirement
58
55
  none: false
59
56
  requirements:
60
57
  - - ~>
61
58
  - !ruby/object:Gem::Version
62
- hash: 11
63
- segments:
64
- - 1
65
- - 4
66
- - 6
67
59
  version: 1.4.6
68
60
  type: :runtime
69
- requirement: *id003
70
- name: json
71
61
  prerelease: false
62
+ version_requirements: *id004
72
63
  - !ruby/object:Gem::Dependency
73
- version_requirements: &id004 !ruby/object:Gem::Requirement
64
+ name: launchy
65
+ requirement: &id005 !ruby/object:Gem::Requirement
74
66
  none: false
75
67
  requirements:
76
68
  - - ~>
77
69
  - !ruby/object:Gem::Version
78
- hash: 29
79
- segments:
80
- - 0
81
- - 3
82
- - 7
83
70
  version: 0.3.7
84
71
  type: :runtime
85
- requirement: *id004
86
- name: launchy
87
72
  prerelease: false
73
+ version_requirements: *id005
88
74
  - !ruby/object:Gem::Dependency
89
- version_requirements: &id005 !ruby/object:Gem::Requirement
75
+ name: rake
76
+ requirement: &id006 !ruby/object:Gem::Requirement
90
77
  none: false
91
78
  requirements:
92
79
  - - ">="
93
80
  - !ruby/object:Gem::Version
94
- hash: 3
95
- segments:
96
- - 0
97
81
  version: "0"
98
82
  type: :development
99
- requirement: *id005
100
- name: rake
101
83
  prerelease: false
84
+ version_requirements: *id006
102
85
  - !ruby/object:Gem::Dependency
103
- version_requirements: &id006 !ruby/object:Gem::Requirement
86
+ name: rspec
87
+ requirement: &id007 !ruby/object:Gem::Requirement
104
88
  none: false
105
89
  requirements:
106
90
  - - ~>
107
91
  - !ruby/object:Gem::Version
108
- hash: 25
109
- segments:
110
- - 1
111
- - 3
112
- - 1
113
92
  version: 1.3.1
114
93
  type: :development
115
- requirement: *id006
116
- name: rspec
117
94
  prerelease: false
95
+ version_requirements: *id007
118
96
  - !ruby/object:Gem::Dependency
119
- version_requirements: &id007 !ruby/object:Gem::Requirement
97
+ name: activerecord
98
+ requirement: &id008 !ruby/object:Gem::Requirement
120
99
  none: false
121
100
  requirements:
122
101
  - - ~>
123
102
  - !ruby/object:Gem::Version
124
- hash: 23
125
- segments:
126
- - 2
127
- - 3
128
- - 10
129
- version: 2.3.10
103
+ version: 3.0.0
130
104
  type: :development
131
- requirement: *id007
132
- name: activerecord
133
105
  prerelease: false
106
+ version_requirements: *id008
134
107
  description: The official `github` command line helper for simplifying your GitHub experience.
135
108
  email:
136
109
  - drnicwilliams@gmail.com
@@ -202,7 +175,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
202
175
  requirements:
203
176
  - - ">="
204
177
  - !ruby/object:Gem::Version
205
- hash: 3
178
+ hash: -1545769033972644842
206
179
  segments:
207
180
  - 0
208
181
  version: "0"
@@ -211,14 +184,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
184
  requirements:
212
185
  - - ">="
213
186
  - !ruby/object:Gem::Version
214
- hash: 3
187
+ hash: -1545769033972644842
215
188
  segments:
216
189
  - 0
217
190
  version: "0"
218
191
  requirements: []
219
192
 
220
193
  rubyforge_project: github
221
- rubygems_version: 1.4.2
194
+ rubygems_version: 1.6.0
222
195
  signing_key:
223
196
  specification_version: 3
224
197
  summary: The official `github` command line helper for simplifying your GitHub experience.