mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 19:58:03 +01:00
Update project naming one more time
This commit is contained in:
16
Makefile
16
Makefile
@@ -1,11 +1,11 @@
|
||||
all: bin/asciiio
|
||||
all: bin/asciinema
|
||||
|
||||
bin/asciiio: tmp/asciiio.zip
|
||||
echo '#!/usr/bin/env python' > bin/asciiio
|
||||
cat tmp/asciiio.zip >> bin/asciiio
|
||||
chmod +x bin/asciiio
|
||||
bin/asciinema: tmp/asciinema.zip
|
||||
echo '#!/usr/bin/env python' > bin/asciinema
|
||||
cat tmp/asciinema.zip >> bin/asciinema
|
||||
chmod +x bin/asciinema
|
||||
|
||||
tmp/asciiio.zip: src/__main__.py src/asciicast.py src/recorders.py src/timed_file.py src/uploader.py src/config.py src/options.py src/cli.py
|
||||
tmp/asciinema.zip: src/__main__.py src/asciicast.py src/recorders.py src/timed_file.py src/uploader.py src/config.py src/options.py src/cli.py
|
||||
mkdir -p tmp
|
||||
rm -rf tmp/asciiio.zip
|
||||
cd src && zip ../tmp/asciiio.zip *.py
|
||||
rm -rf tmp/asciinema.zip
|
||||
cd src && zip ../tmp/asciinema.zip *.py
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
# | (_| \__ \ (__| | |_| | (_) |
|
||||
# \__,_|___/\___|_|_(_)_|\___/
|
||||
#
|
||||
# ascii.io recorder installation script
|
||||
# asciinema recorder installation script
|
||||
|
||||
BIN_NAME="asciinema"
|
||||
BIN_URL="https://raw.github.com/sickill/asciinema/master/bin/asciinema"
|
||||
|
||||
@@ -52,7 +52,7 @@ def print_help():
|
||||
|
||||
|
||||
def print_version():
|
||||
print 'asciiio 1.0.1'
|
||||
print 'asciinema 0.9.1'
|
||||
|
||||
|
||||
def handle_unknown_action(action):
|
||||
|
||||
@@ -4,7 +4,7 @@ import uuid
|
||||
|
||||
class Config:
|
||||
|
||||
def __init__(self, base_path="~/.ascii.io"):
|
||||
def __init__(self, base_path="~/.asciinema"):
|
||||
self.base_path = os.path.expanduser(base_path)
|
||||
self.config_filename = '%s/config' % self.base_path
|
||||
|
||||
@@ -35,7 +35,7 @@ class Config:
|
||||
try:
|
||||
api_url = self.config.get('api', 'url')
|
||||
except ConfigParser.NoOptionError:
|
||||
api_url = 'http://ascii.io'
|
||||
api_url = 'http://asciinema.org'
|
||||
|
||||
api_url = os.environ.get('ASCII_IO_API_URL', api_url)
|
||||
|
||||
|
||||
@@ -23,9 +23,9 @@ def create_config(config_file_content=None):
|
||||
class TestConfig(object):
|
||||
|
||||
def test_api_url(self):
|
||||
# defaults to http://ascii.io
|
||||
# defaults to http://asciinema.org
|
||||
config = create_config()
|
||||
assert_equal('http://ascii.io', config.api_url)
|
||||
assert_equal('http://asciinema.org', config.api_url)
|
||||
|
||||
# uses api.url from config file
|
||||
config = create_config("[api]\nurl = bar")
|
||||
|
||||
Reference in New Issue
Block a user