Merge branch 'master' of https://github.com/dfinke/ImportExcel into refactor

This commit is contained in:
jhoneill
2019-12-08 12:46:15 +00:00
3 changed files with 39 additions and 23 deletions

View File

@@ -6,7 +6,7 @@
RootModule = 'ImportExcel.psm1'
# Version number of this module.
ModuleVersion = '6.5.3'
ModuleVersion = '7.0.0'
# ID used to uniquely identify this module
GUID = '60dd4136-feff-401a-ba27-a84458c57ede'
@@ -160,7 +160,7 @@ Check out the How To Videos https://www.youtube.com/watch?v=U3Ne_yX4tYo&list=PL5
'.\InferData\InferData.ps1',
'.\Pivot\Pivot.ps1',
'.\spikes\ConvertFrom-ExcelColumnName.ps1',
'.\Examples', '.\images', '.\Testimonials' ,'.\Public' , ".\Private"
'.\Examples', '.\images', '.\Testimonials' , '.\Public'
)

View File

@@ -42,15 +42,21 @@ if (($IsLinux -or $IsMacOS) -or $env:NoAutoSize) {
catch {
$env:NoAutoSize = $true
if ($IsLinux) {
Write-Warning -Message ('ImportExcel Module Cannot Autosize. Please run the following command to install dependencies:' + [environment]::newline +
'"sudo apt-get install -y --no-install-recommends libgdiplus libc6-dev"')
$msg = @"
ImportExcel Module Cannot Autosize. Please run the following command to install dependencies:
apt-get -y update && apt-get install -y --no-install-recommends libgdiplus libc6-dev
"@
Write-Warning -Message $msg
}
if ($IsMacOS) {
Write-Warning -Message ('ImportExcel Module Cannot Autosize. Please run the following command to install dependencies:' + [environment]::newline +
'"brew install mono-libgdiplus"')
}
$msg = @"
ImportExcel Module Cannot Autosize. Please run the following command to install dependencies:
brew install mono-libgdiplus
"@
Write-Warning -Message $msg
}
finally {
$ExcelPackage | Close-ExcelPackage -NoSave
}
}
}

View File

@@ -60,6 +60,16 @@ Plus, wiring the [PowerShell ScriptAnalyzer Excel report](https://github.com/dfi
![](./images/ScriptAnalyzerReport.png)
# What's new 7.0.0
## Refactor
- Remove all functions from the `psm1`
- Move functions into public subdirectory
- Align TDD and continuous integration workflow for this refactor
- Move help from functions to mdHelp and use [PlatyPS](https://www.powershellgallery.com/packages/platyPS) to generate external help file
Thanks to [James O'Neill](https://twitter.com/jamesoneill) for the refactor and [Illy](https://twitter.com/ili_z) on the continuous integration.
# What's new 6.5.3
Thanks again to the community for making this module even better.