Skip to content

Commit b575ea2

Browse files
New release 2.4.2
Fix PSCouchDBAttachment class see issue #10
2 parents da5076d + 490658a commit b575ea2

116 files changed

Lines changed: 30 additions & 50305 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
### PowerShell ###
2+
# Exclude packaged modules
3+
*.zip
4+
5+
# Exclude .NET assemblies from source
6+
*.dll
7+
8+
### VisualStudioCode ###
9+
.vscode/*
10+
!.vscode/settings.json
11+
!.vscode/tasks.json
12+
!.vscode/launch.json
13+
!.vscode/extensions.json
14+
!.vscode/*.code-snippets
15+
16+
# Local History for Visual Studio Code
17+
.history/
18+
19+
# Built Visual Studio Code Extensions
20+
*.vsix
21+
22+
### VisualStudioCode Patch ###
23+
# Ignore all local history of files
24+
.history
25+
.ionide
26+
27+
# Sphinx documentation
28+
docs/_build/

PSCouchDB/PSCouchDB.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
)
2929

3030
# Version number of this module.
31-
ModuleVersion = '2.4.1'
31+
ModuleVersion = '2.4.2'
3232

3333
# Supported PSEditions
3434
# CompatiblePSEditions = @()

PSCouchDB/PSCouchDB.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class PSCouchDBAttachment {
198198
$this.content_type = [PSCouchDBAttachment]::ConfirmMime($this.filename)
199199
# Get data
200200
if ((Get-Item -Path $path).length -gt 0) {
201-
$bytes = [System.Text.Encoding]::UTF8.GetBytes((Get-Content -Path $path))
201+
$bytes = [System.Text.Encoding]::UTF8.GetBytes((Get-Content -Path $path -Raw))
202202
$this.data = [System.Convert]::ToBase64String($bytes)
203203
} else {
204204
throw [System.IO.InvalidDataException] "$path attachment is empty."

docs/build/doctrees/auth.doctree

-5.6 KB
Binary file not shown.
-130 KB
Binary file not shown.
-87.3 KB
Binary file not shown.

docs/build/doctrees/config.doctree

-10.4 KB
Binary file not shown.
-33.2 KB
Binary file not shown.

docs/build/doctrees/ddoc.doctree

-28.7 KB
Binary file not shown.
-91.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)