Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v1.4.0 #129

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.4.0:

- Rename `policy` to `traffic_policy` in Listener builders and `ngrok.forward`
- Fix quickstart example in README

## 1.3.0:

- Add `root_cas` to session builder and `ngrok.forward`. Setting this to `host` will use the host's trusted certificates to connect for the ngrok session.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "ngrok-python"
version = "1.3.0"
version = "1.4.0"
description = "The ngrok Agent SDK for Python"

[lib]
Expand Down
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/.doctrees/http_listener_builder.doctree
Binary file not shown.
Binary file modified docs/.doctrees/index.doctree
Binary file not shown.
Binary file modified docs/.doctrees/labeled_listener_builder.doctree
Binary file not shown.
Binary file modified docs/.doctrees/listener.doctree
Binary file not shown.
Binary file modified docs/.doctrees/module.doctree
Binary file not shown.
Binary file modified docs/.doctrees/session.doctree
Binary file not shown.
Binary file modified docs/.doctrees/session_builder.doctree
Binary file not shown.
Binary file modified docs/.doctrees/tcp_listener_builder.doctree
Binary file not shown.
Binary file modified docs/.doctrees/tls_listener_builder.doctree
Binary file not shown.
12 changes: 10 additions & 2 deletions docs/genindex.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion docs/http_listener_builder.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion docs/tcp_listener_builder.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion docs/tls_listener_builder.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ async def test_https_listener_with_invalid_traffic_policy_json(self):
error = None
try:
_, session = await make_http_and_session()
await session.http_endpoint().traffic_policy('{ "inbound": "not valid" }').listen()
await session.http_endpoint().traffic_policy(
'{ "inbound": "not valid" }'
).listen()
except ValueError as err:
error = err
self.assertIsInstance(error, ValueError)
Expand Down Expand Up @@ -271,7 +273,9 @@ async def test_https_listener_with_invalid_traffic_policy_action(self):

try:
http_server, session = await make_http_and_session()
listener = await session.http_endpoint().traffic_policy(traffic_policy).listen()
listener = (
await session.http_endpoint().traffic_policy(traffic_policy).listen()
)
listener.forward(http_server.listen_to)
_ = retry_request().get(listener.url())
except ValueError as err:
Expand Down
Loading