add travis
This commit is contained in:
parent
dddaf080a7
commit
011f888601
@ -1,6 +1,5 @@
|
||||
language: crystal
|
||||
|
||||
# Uncomment the following if you'd like Travis to run specs and check code formatting
|
||||
# script:
|
||||
# - crystal spec
|
||||
# - crystal tool format --check
|
||||
install:
|
||||
- shards install
|
||||
script:
|
||||
- crystal bin/ameba.cr
|
||||
|
@ -1,5 +1,9 @@
|
||||
version: 2.0
|
||||
shards:
|
||||
ameba:
|
||||
git: https://github.com/crystal-ameba/ameba.git
|
||||
version: 0.13.4
|
||||
|
||||
crest:
|
||||
git: https://github.com/mamantoha/crest.git
|
||||
version: 0.27.0
|
||||
|
@ -12,6 +12,11 @@ dependencies:
|
||||
crest:
|
||||
github: mamantoha/crest
|
||||
|
||||
development_dependencies:
|
||||
ameba:
|
||||
github: crystal-ameba/ameba
|
||||
version: ~> 0.13.0
|
||||
|
||||
crystal: 1.1.1
|
||||
|
||||
license: MIT
|
||||
|
@ -11,11 +11,11 @@ rescue
|
||||
exit
|
||||
end
|
||||
|
||||
def get_access_token(appId : Int32)
|
||||
def get_access_token(app_id : Int32)
|
||||
puts "Open this page, and save token to config.json\n\n"
|
||||
|
||||
token_url = "https://oauth.vk.com/authorize?client_id="\
|
||||
"#{appId}&redirect_uri=vk.com&response_type=token"\
|
||||
"#{app_id}&redirect_uri=vk.com&response_type=token"\
|
||||
"&display=mobile&v=5.131&revoke=1&state=01010&scope=offline"
|
||||
|
||||
puts token_url
|
||||
|
Loading…
Reference in New Issue
Block a user