mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
HTTPS everywhere
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[](https://travis-ci.org/sickill/asciinema)
|
[](https://travis-ci.org/sickill/asciinema)
|
||||||
|
|
||||||
Command line client for [asciinema.org](http://asciinema.org) service.
|
Command line client for [asciinema.org](https://asciinema.org) service.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ Check the available commands and options with:
|
|||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
If you want to contribute to this project check out
|
If you want to contribute to this project check out
|
||||||
[Contributing](http://asciinema.org/contributing) page.
|
[Contributing](https://asciinema.org/contributing) page.
|
||||||
|
|
||||||
## Authors
|
## Authors
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import uuid
|
|||||||
|
|
||||||
|
|
||||||
DEFAULT_CONFIG_FILE_PATH = "~/.asciinema/config"
|
DEFAULT_CONFIG_FILE_PATH = "~/.asciinema/config"
|
||||||
DEFAULT_API_URL = 'http://asciinema.org'
|
DEFAULT_API_URL = 'https://asciinema.org'
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
|
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -20,7 +20,7 @@ setup(
|
|||||||
description='Command line recorder for asciinema.org service',
|
description='Command line recorder for asciinema.org service',
|
||||||
author=asciinema.__author__,
|
author=asciinema.__author__,
|
||||||
author_email='m@ku1ik.com',
|
author_email='m@ku1ik.com',
|
||||||
url='http://asciinema.org',
|
url='https://asciinema.org',
|
||||||
download_url=(url_template % asciinema.__version__),
|
download_url=(url_template % asciinema.__version__),
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
|
|||||||
@@ -22,11 +22,11 @@ class TestConfig(object):
|
|||||||
|
|
||||||
def test_api_url_when_no_file_and_no_override_set(self):
|
def test_api_url_when_no_file_and_no_override_set(self):
|
||||||
config = create_config()
|
config = create_config()
|
||||||
assert_equal('http://asciinema.org', config.api_url)
|
assert_equal('https://asciinema.org', config.api_url)
|
||||||
|
|
||||||
def test_api_url_when_no_url_set_and_no_override_set(self):
|
def test_api_url_when_no_url_set_and_no_override_set(self):
|
||||||
config = create_config('')
|
config = create_config('')
|
||||||
assert_equal('http://asciinema.org', config.api_url)
|
assert_equal('https://asciinema.org', config.api_url)
|
||||||
|
|
||||||
def test_api_url_when_url_set_and_no_override_set(self):
|
def test_api_url_when_url_set_and_no_override_set(self):
|
||||||
config = create_config("[api]\nurl = http://the/url")
|
config = create_config("[api]\nurl = http://the/url")
|
||||||
|
|||||||
Reference in New Issue
Block a user