Skip to content

Commit

Permalink
Merge pull request #189 from barseghyanartur/dev
Browse files Browse the repository at this point in the history
Docs/fixes (#188)
  • Loading branch information
barseghyanartur authored Sep 26, 2024
2 parents a8946e0 + 1915795 commit 4af5b73
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 65 deletions.
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

0 comments on commit 4af5b73

Please sign in to comment.