Skip to content

Commit a9e4b5c

Browse files
authored
README: update 2.0 -> 2.1 (#396)
cli: fix typo in enable-auto-fetch, add test
1 parent 0db8e5d commit a9e4b5c

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Webrecorder pywb 2.0
1+
Webrecorder pywb 2.1
22
====================
33

44
.. image:: https://travis-ci.org/webrecorder/pywb.svg?branch=master
@@ -11,7 +11,7 @@ Webrecorder pywb 2.0
1111
Web Archiving Tools for All
1212
---------------------------
1313

14-
`View the full pywb 2.0 documentation <https://pywb.readthedocs.org>`_
14+
`View the full pywb documentation <https://pywb.readthedocs.org>`_
1515

1616
**pywb** is a Python (2 and 3) web archiving toolkit for replaying web archives large and small as accurately as possible.
1717
The toolkit now also includes new features for creating high-fidelity web archives.
@@ -23,7 +23,7 @@ that is used by other web archives, including the traditional "Wayback Machine"
2323
New Features
2424
^^^^^^^^^^^^
2525

26-
The 2.0 release includes a major overhaul of pywb and introduces many new features, including the following:
26+
The 2.0 release included a major overhaul of pywb and introduces many new features, including the following:
2727

2828
* Dynamic multi-collection configuration system with no-restart updates.
2929

pywb/apps/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(self, args=None, default_port=8080, desc=''):
6161
parser.add_argument('--proxy-enable-wombat', action='store_true',
6262
help='Enable partial wombat JS overrides support in proxy mode')
6363
parser.add_argument('--enable-auto-fetch', action='store_true',
64-
help='Enable auto-fetch worker to capture resources from stylesheets, imgset when running in live/recording mode')
64+
help='Enable auto-fetch worker to capture resources from stylesheets, <img srcset> when running in live/recording mode')
6565

6666
self.desc = desc
6767
self.extra_config = {}
@@ -78,9 +78,11 @@ def __init__(self, args=None, default_port=8080, desc=''):
7878
'recording': self.r.proxy_record,
7979
'enable_wombat': self.r.proxy_enable_wombat
8080
}
81-
self.extra_config['enable_auto_fetch'] = self.r.enable_auto_fetch
8281

8382
self.r.live = True
83+
84+
self.extra_config['enable_auto_fetch'] = self.r.enable_auto_fetch
85+
8486
self.application = self.load()
8587

8688
if self.r.profile:

tests/test_cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ def test_proxy_cli(self):
2323
'enable_wombat': False}
2424
assert res.extra_config['proxy'] == exp
2525

26+
def test_auto_fetch_cli(self):
27+
res = wayback(['--enable-auto-fetch'])
28+
assert res.extra_config['enable_auto_fetch'] == True
29+
2630
def test_proxy_cli_rec(self):
2731
res = wayback(['--proxy', 'test', '--proxy-record'])
2832
assert res.extra_config['proxy']['recording'] == True

0 commit comments

Comments
 (0)