Commit Graph

1213 Commits

Author SHA1 Message Date
Brian Warner
615986b0dc Merge PR237
closes #235
2017-07-31 12:29:21 -07:00
Brian Warner
da9f2504d9 Merge PR236
closes #234
2017-07-31 12:27:25 -07:00
Leo Arias
049fd7c880 use versioneer to set the version of the snap 2017-07-30 23:19:28 +00:00
Leo Arias
1559e4ad90 hack to make the snap version not dirty 2017-07-30 23:10:18 +00:00
Brian Warner
d8102c5217 NEWS: preliminary release notes for upcoming release 2017-07-27 18:40:52 -07:00
Brian Warner
534ff82ad2 Merge PR229: make misc/demo-journal.py flake8-clean 2017-07-24 14:15:48 -05:00
Brian Warner
769dafc94a Merge PR228: add flake8 tests to travis (py36 only, for now) 2017-07-24 14:15:13 -05:00
cclauss
ed7962f7d8 Replacement for #220 2017-07-23 23:14:01 +02:00
cclauss
17eb84b2a2 *.py (with the dot) 2017-07-23 19:38:46 +02:00
cclauss
19dc466789 flake8 tests in .travis.yml 2017-07-23 18:53:10 +02:00
Brian Warner
54036c231f Merge branch '212-bad-nameplates'
closes #212
2017-07-23 01:56:31 -05:00
Brian Warner
8b0a245e19 reject invalid codes with KeyFormatError
refs #212
2017-07-23 00:02:09 -05:00
Brian Warner
de0af837cc test_cli: fix unicode problems
should fix #223
2017-07-22 23:19:43 -05:00
Brian Warner
62382b7ac4 Merge PR197: add --websocket-protocol-option= to server
closes #197
closes #196
2017-07-15 17:40:22 -07:00
Brian Warner
b3b6e1ba8a test_cli: one more test, with argument split off from the name
This is probably an easier way to pass in JSON with embedded spaces:

 wormhole-server start --websocket-protocol-option 'x=["foo": "bar"]'
2017-07-15 17:39:02 -07:00
Jean-Paul Calderone
ba0e8997c5 accept protocol options and set them on the ws factory 2017-07-15 17:30:59 -07:00
Jean-Paul Calderone
aa7013e6f5 Factor duplicate RelayServer construction out 2017-07-15 17:30:59 -07:00
Jean-Paul Calderone
55b4b333dc accept some options on the cli 2017-07-15 17:30:59 -07:00
Brian Warner
2bf27b2e7a Merge branch '61-help'
refs #61
2017-07-15 17:29:20 -07:00
Brian Warner
fb03620fe9 test_cli: hush Click unicode_literals warnings 2017-07-15 17:27:11 -07:00
Brian Warner
1ca51168c5 add test for 'wormhole help' 2017-07-15 17:27:11 -07:00
Brian Warner
b34165d4fb 'wormhole help' should print the same thing as 'wormhole --help'
refs #61
2017-07-15 17:27:06 -07:00
Brian Warner
d2c91c7154 Merge PR189 (in rebased form)
closes #189
2017-07-15 17:20:03 -07:00
Jean-Paul Calderone
efb77443bf Avoid corrupting state if creating a new db fails 2017-07-15 17:05:35 -07:00
cclauss
2ecdd02d24 import contextlib, random
Also on line 239, where is `parse()` defined and on line 241, where is `update_my_state()` defined?
2017-07-10 18:44:05 +02:00
Brian Warner
a836f5e3b8 Merge branch 'open-crowded'
closes #211
2017-07-01 01:18:01 -07:00
Brian Warner
13b4a1793f server: OPEN/CLOSE on crowded mailbox should provoke "crowded" error
The Mailbox object throws CrowdedError, but WebSocketRendezvous wasn't
handling it specifically. The server responded by dropping the connection and
logging an "Unhandled Error", so the client would reconnect and then get the
same error again and again.

This changes WebSocketRendezvous to handle CrowdedError by sending a
"crowded" error response. The client should react to this by giving up on the
connection entirely, and not reconnecting.
2017-07-01 01:17:48 -07:00
Brian Warner
c58172632c Merge PR210 2017-07-01 01:10:03 -07:00
Brian Warner
af4df47fe7 rendezvous: fix misleading log message
We only log the internal (sqlite) ID of the nameplate, not the actual
small-integer name. While investigating misbehavior due to overload, I was
confused into thinking that users were getting nameplates in the 15000+
range, when in fact those were merely the internal database row ids.
2017-06-30 12:46:02 -07:00
Leo Arias
97b194ccd8 Fix the xkcd link markup 2017-06-30 12:51:28 -06:00
Brian Warner
c9ef7a64a2 Merge PR206
closes #206
2017-06-29 15:49:55 -07:00
Brian Warner
fc1bf4f141 README: minor reformatting, move tox down to Development 2017-06-29 15:49:34 -07:00
Pablo Oliveira
7088b0eb27 improve installation instructions
Added separated subsections for each OS (OS X, Linux, Windows) on the installation guide.
2017-06-29 15:45:59 -07:00
Brian Warner
faf41ca765 Merge PR202
closes #202
2017-06-29 07:54:35 -07:00
Leo Arias
919e46c0bb Use the latest git tag as the snap version
With this change it's easier to automate the continuous delivery of the snap, because when a verified tag is pushed to the repo the snap will get that version. There will be no need to manually change the version in the snapcraft.yaml.
2017-06-29 07:54:26 -07:00
Brian Warner
a312761fb9 Merge PR200 2017-06-29 07:53:09 -07:00
Brian Warner
532e0b5f55 Merge PR199 2017-06-29 07:52:05 -07:00
Brian Warner
01f1000ae9 Merge PR194 2017-06-29 07:50:23 -07:00
Brian Warner
1ed3ab003e README: more updates 2017-06-29 07:50:10 -07:00
Johan Lindskogen
97b601276f Make default option of prompt uppercase
Makes it clear what happens when user just presses `Enter`

See: https://stackoverflow.com/questions/7803728/standard-format-for-yes-no-questions-in-the-terminal
2017-06-28 21:36:45 +02:00
lanzelot1989
9d5a049424 Add relevant xkcd 2017-06-28 20:47:20 +02:00
Chandan Rai
e84eb547be corrected typo 2017-06-28 17:46:14 +05:30
Quentin Hibon
79f1d3bd0e Update README.md
Update Debian and Ubuntu installation instructions
2017-06-28 14:01:12 +02:00
Brian Warner
38097847c4 server: manage common args in the same way as client-side CLI
This now shares the _compose() decorator with wormhole.cli.cli, and removes
the arguments_to_config() function in favor of just copying all kwargs into
the Config object.
2017-06-26 23:05:16 +01:00
Brian Warner
1d5fee04ae Merge PR187
closes #187
closes #185
2017-06-26 21:59:59 +01:00
Jean-Paul Calderone
ec2e305b84 define start-like options just once 2017-06-26 21:38:18 +01:00
Brian Warner
9413edac47 Merge PR186: add server --relay-database-path and --stats-json-path
closes #186
2017-06-26 21:28:57 +01:00
Brian Warner
44a44738ec take new args for 'restart' too, fixes test failure 2017-06-26 21:26:32 +01:00
Jean-Paul Calderone
6b20cb760a Take cli args for db and stats paths 2017-06-26 21:26:32 +01:00
Jean-Paul Calderone
777d722b0d Let me use FakeConfig in another test method 2017-06-26 21:26:32 +01:00