You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to run the ruby script find-inactive-members.rb, but I get no output at all !
When I debug the ruby script I can see several errors.
Checking the syntax is OK
I also want to know what is the right syntax for the --date parameter?
I have worked this out with Prem Kumar from github.
We found out the correct date parameter and I used the -c flag in my command.
I understand that with this flag there is only the connectivity check and no actual run of the command.
The script is working fine now.
Perhaps some further explanation in the readme.md on how to use the flags can help. Like the date format.
I try to run the ruby script find-inactive-members.rb, but I get no output at all !
When I debug the ruby script I can see several errors.
Checking the syntax is OK
I also want to know what is the right syntax for the --date parameter?
ruby --version
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
gem env version
2.7.6
I am running on windows wsl ubuntu 18.04.4 LTS (Bionic Beaver)
When I run ruby -v -d find-inactive-members.rb -cv -o kadaster-it -d 03/12/2020
I see the following output:
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
Exception
LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems.rb:1397 - cannot load such file -- rubygems/defaults/ruby find-inactive-members.rb:85: warning: assigned but unused variable - email find-inactive-members.rb:230: warning: mismatched indentations at 'end' with 'def' at 191 Exception
SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - : syntax error, unexpected end-of-input().pos=
^
Exception
SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - <compiled>: syntax error, unexpected end-of-input ().sync= ^ Exception
LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59 - cannot load such file -- octokitException
SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - <compiled>: syntax error, unexpected end-of-input ().scheme= ^ Exception
SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - : syntax error, unexpected end-of-input().host=
^
Exception
SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - <compiled>: syntax error, unexpected end-of-input ().port= ^ Exception
SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - : syntax error, unexpected end-of-input().path=
^
Exception
SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - <compiled>: syntax error, unexpected end-of-input ().scheme= ^ Exception
SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - : syntax error, unexpected end-of-input().host=
^
Exception
SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - <compiled>: syntax error, unexpected end-of-input ().port= ^ Exception
LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59 - cannot load such file -- idnException
LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:137 - cannot load such file -- idn Exception
LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59 - cannot load such file -- idnException
LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:137 - cannot load such file -- idn Application client/secret? Authentication Token? true Exception
LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59 - cannot load such file -- yajlException
LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:137 - cannot load such file -- yajl Exception
LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59 - cannot load such file -- multi_jsonException `LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:137 - cannot load such file -- multi_json
Using Ext extension for JSON.
I, [2020-03-13T14:22:10.797362 #5942] INFO -- request: GET https://api.github.com/user
I, [2020-03-13T14:22:10.797645 #5942] INFO -- request: Accept: "application/vnd.github.v3+json"
User-Agent: "Octokit Ruby Gem 4.17.0"
Content-Type: "application/json"
Authorization: "token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
I, [2020-03-13T14:22:11.358629 #5942] INFO -- response: Status 200
I, [2020-03-13T14:22:11.359097 #5942] INFO -- response: date: "Fri, 13 Mar 2020 13:22:09 GMT"
content-type: "application/json; charset=utf-8"
transfer-encoding: "chunked"
connection: "close"
server: "GitHub.com"
status: "200 OK"
x-ratelimit-limit: "5000"
x-ratelimit-remaining: "4994"
x-ratelimit-reset: "1584107606"
cache-control: "private, max-age=60, s-maxage=60"
vary: "Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With"
etag: "W/"1ba9f7f769f4ec84d8167b574fc80a6e""
last-modified: "Tue, 10 Mar 2020 10:52:49 GMT"
x-oauth-scopes: "admin:enterprise, admin:org, admin:public_key, delete_repo, gist, notifications, read:packages, repo, user, write:packages"
x-accepted-oauth-scopes: ""
x-github-media-type: "github.v3; format=json"
access-control-expose-headers: "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset"
access-control-allow-origin: ""
strict-transport-security: "max-age=31536000; includeSubdomains; preload"
x-frame-options: "deny"
x-content-type-options: "nosniff"
x-xss-protection: "1; mode=block"
referrer-policy: "origin-when-cross-origin, strict-origin-when-cross-origin"
content-security-policy: "default-src 'none'"
x-github-request-id: "3F28:6581:2D6FCE8:3575709:5E6B8900"
Scopes: admin:enterprise,admin:org,admin:public_key,delete_repo,gist,notifications,read:packages,repo,user,write:packages
I, [2020-03-13T14:22:11.373147 #5942] INFO -- request: GET https://api.github.com/rate_limit
I, [2020-03-13T14:22:11.373349 #5942] INFO -- request: Accept: "application/vnd.github.v3+json"
User-Agent: "Octokit Ruby Gem 4.17.0"
Content-Type: "application/json"
Authorization: "token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
I, [2020-03-13T14:22:11.860253 #5942] INFO -- response: Status 200
I, [2020-03-13T14:22:11.860849 #5942] INFO -- response: date: "Fri, 13 Mar 2020 13:22:09 GMT"
content-type: "application/json; charset=utf-8"
transfer-encoding: "chunked"
connection: "close"
server: "GitHub.com"
status: "200 OK"
x-ratelimit-limit: "5000"
x-ratelimit-remaining: "4994"
x-ratelimit-reset: "1584107606"
cache-control: "no-cache"
x-oauth-scopes: "admin:enterprise, admin:org, admin:public_key, delete_repo, gist, notifications, read:packages, repo, user, write:packages"
x-accepted-oauth-scopes: ""
x-github-media-type: "github.v3; format=json"
access-control-expose-headers: "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset"
access-control-allow-origin: ""
strict-transport-security: "max-age=31536000; includeSubdomains; preload"
x-frame-options: "deny"
x-content-type-options: "nosniff"
x-xss-protection: "1; mode=block"
referrer-policy: "origin-when-cross-origin, strict-origin-when-cross-origin"
content-security-policy: "default-src 'none'"
vary: "Accept-Encoding, Accept, X-Requested-With"
x-github-request-id: "DD47:2AC70:192F26E:1D87A8C:5E6B8901"
Rate limit: 4994/5000
The text was updated successfully, but these errors were encountered: