Skip to content

Commit

Permalink
New release 2.4.2
Browse files Browse the repository at this point in the history
Fix PSCouchDBAttachment class
see issue #10
  • Loading branch information
MatteoGuadrini committed Jan 24, 2022
2 parents da5076d + 490658a commit b575ea2
Show file tree
Hide file tree
Showing 116 changed files with 30 additions and 50,305 deletions.
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
### PowerShell ###
# Exclude packaged modules
*.zip

# Exclude .NET assemblies from source
*.dll

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

# Sphinx documentation
docs/_build/
2 changes: 1 addition & 1 deletion PSCouchDB/PSCouchDB.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
)

# Version number of this module.
ModuleVersion = '2.4.1'
ModuleVersion = '2.4.2'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
2 changes: 1 addition & 1 deletion PSCouchDB/PSCouchDB.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class PSCouchDBAttachment {
$this.content_type = [PSCouchDBAttachment]::ConfirmMime($this.filename)
# Get data
if ((Get-Item -Path $path).length -gt 0) {
$bytes = [System.Text.Encoding]::UTF8.GetBytes((Get-Content -Path $path))
$bytes = [System.Text.Encoding]::UTF8.GetBytes((Get-Content -Path $path -Raw))
$this.data = [System.Convert]::ToBase64String($bytes)
} else {
throw [System.IO.InvalidDataException] "$path attachment is empty."
Expand Down
Binary file removed docs/build/doctrees/auth.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/classes.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/cmdlets.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/config.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/databases.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/ddoc.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/documents.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file removed docs/build/doctrees/index.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/intro.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/permission.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/server.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/support.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/uses.doctree
Binary file not shown.
4 changes: 0 additions & 4 deletions docs/build/html/.buildinfo

This file was deleted.

82 changes: 0 additions & 82 deletions docs/build/html/_images/pscouchdb-logo.svg

This file was deleted.

53 changes: 0 additions & 53 deletions docs/build/html/_sources/auth.rst.txt

This file was deleted.

0 comments on commit b575ea2

Please sign in to comment.