I am new to Ruby but just need to run this:
https://github.com/github/platform-samples/blob/master/api/ruby/team_audit.rb.
-
I know how require works in Perl, but don’t know how does the Ruby
require work. Does it require just the octokit.rb file or the whole
directory including the ./client subdirectory? -
For the ssl cert error, I tried the solution here to download the new
cert, https://gist.github.com/luislavena/f064211759ee0f806c88, but still
doesn’t work. -
One more note, for the ssl cert error, I don’t get it when run “gem
install octokit” from a pc at home, but always got that error from the
company pc. Can anyone help me get this running?
Thanks
Jirong
C:\OTPPB2015\Workspace\Ruby>dir
Directory of C:\OTPPB2015\Workspace\Ruby
10/09/2015 01:20 PM
.
10/09/2015 01:20 PM ..
10/09/2015 11:07 AM 18 hello.rb
10/09/2015 12:58 PM octokit
09/24/2015 09:35 AM 2,182 octokit.rb
10/09/2015 12:57 PM 2,447 team_audit.rb
3 File(s) 4,647 bytes
3 Dir(s) 273,722,306,560 bytes free
C:\OTPPB2015\Workspace\Ruby>ruby team_audit.rb
C:/Tools/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in
require’: cannot load such file – octokit/client (LoadError) from
C:/Tools/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire’
from C:/OTPPB2015/Workspace/Ruby/octokit.rb:1:in <top (required)>’
from team_audit.rb:13:inrequire_relative’
from team_audit.rb:13:in `
'
C:\OTPPB2015\Workspace\Ruby>
C:\Users\huj\Desktop>ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]
C:\Users\huj\Desktop>gem -v
2.4.5.1
C:\Users\huj\Desktop>gem install octokit
ERROR: Could not find a valid gem 'octokit' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect
returned=1 errno=0 state=
SSLv3 read server certificate B: certificate verify failed
(https://api.rubygems.org/specs.4.8.gz)