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

Docs/fixes (#188) #189

Merged
merged 1 commit into from
Sep 26, 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
10 changes: 10 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ are used for versioning (schema follows below):
0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.

0.10
----
2024-09-27

- For both ``StringTemplate`` and ``LazyStringTemplate`` the ``faker``
argument had become optional and positionally moved from first to the last
place.
- Improve string templates.
- Minor documentation improvements.

0.9.9
-----
2024-09-27
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Update version ONLY here
VERSION := 0.9.9
VERSION := 0.10
SHELL := /bin/bash
# Makefile for project
VENV := ~/.virtualenvs/fake.py/bin/activate
Expand Down
2 changes: 1 addition & 1 deletion docs/creating_archives.rst
Original file line number Diff line number Diff line change
Expand Up @@ -325,4 +325,4 @@ Using text templates:
{domain_name}
"""
# EML file
eml_file = FAKER.eml_file(content=StringTemplate(FAKER, template))
eml_file = FAKER.eml_file(content=StringTemplate(template))
4 changes: 2 additions & 2 deletions docs/creating_docx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ Using text templates:
"""
# DOCX file of 1 page
docx_file_1 = FAKER.docx_file(
texts=[StringTemplate(FAKER, template)],
texts=[StringTemplate(template)],
)
# DOCX file of 10 pages
docx_file_10 = FAKER.odt_file(
texts=[StringTemplate(FAKER, template) for _ in range(10)],
texts=[StringTemplate(template) for _ in range(10)],
)
4 changes: 2 additions & 2 deletions docs/creating_odt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ Using text templates:
"""
# ODT file of 1 page
odt_file_1 = FAKER.odt_file(
texts=[StringTemplate(FAKER, template)],
texts=[StringTemplate(template)],
)
# ODT file of 10 pages
odt_file_10 = FAKER.odt_file(
texts=[StringTemplate(FAKER, template) for _ in range(10)],
texts=[StringTemplate(template) for _ in range(10)],
)
Loading
Loading