ruby-pwsh 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b5fc05fdc86cf9f85687a67df245cacc1e5d6a15a69c2edfa00c357d66ecc13
4
- data.tar.gz: d9c78f4421482617d5c8388245603fa024bf22cfbd3024d894b047b1ebfc330f
3
+ metadata.gz: dd8ad4546d9fbdc7bf62c17f8132adb9647e311e9e3319b22b5161f924fd94c3
4
+ data.tar.gz: c607771ae691c4593b839cc1134d3e0fcc15b0a454eef93a3b146301d13b3411
5
5
  SHA512:
6
- metadata.gz: 7b8b0a2ce494bb3344e84d3db3c657054c4ecbc46d998f9b605b3d7a1bbf886adb03624134bce5eb6b50ece05c486f3e6aab4b74c5cc876b3b3c23dd5242eb0b
7
- data.tar.gz: 211ccd9d067fdfb5a3aa0ea618edc6fcba49883344791a6a0688c5292b3eb8a8a3e666432471e0255bfa89fc213535474f3fd1de15f1d5c3369c12dd9df7cf9f
6
+ metadata.gz: e8efb9f23a1fe2302369938416d08e463c4c5e088712dac293b10f0e8abc09431f91057039f95f918382e4775b932da4ab270901591f58d834a01c1d784d4fe6
7
+ data.tar.gz: 788c3c601d46c37478b41abe5a068eac7da7c0912ec71f703841f4d462a3363d2c613bbeb8356b6a38b21a3870eec0d567e4bfa2d2892a40aadd1e4a62dc38e1
data/.rubocop.yml CHANGED
@@ -17,3 +17,11 @@ AllCops:
17
17
  # Disabled
18
18
  Style/ClassAndModuleChildren:
19
19
  Enabled: false
20
+
21
+ ####################################################
22
+ # Cops below here due for deprecation
23
+ ####################################################
24
+ # ``Rspec/FilePath`` is going to be deprecated in the next major release of rubocop >=3.0.0: see <https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath>
25
+ # As the new cops are already present, e.g., Rspec/SpecFilePathPathFormat, then disabling this in preparation
26
+ RSpec/FilePath:
27
+ Enabled: false
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # ruby-pwsh
2
2
 
3
+ [![Code Owners](https://img.shields.io/badge/owners-DevX--team-blue)](https://github.com/puppetlabs/ruby-pwsh/blob/main/CODEOWNERS)
4
+ [![ci](https://github.com/puppetlabs/ruby-pwsh/actions/workflows/ci.yml/badge.svg)](https://github.com/puppetlabs/ruby-pwsh/actions/workflows/ci.yml)
5
+ ![GitHub release (latest by date)](https://img.shields.io/github/v/release/puppetlabs/ruby-pwsh)
6
+
3
7
  > _The PowerShell gem._
4
8
 
5
9
  This gem enables you to execute PowerShell from within ruby without having to instantiate and tear down a PowerShell process for each command called.
@@ -81,3 +85,7 @@ The following platforms are supported:
81
85
  - OSX
82
86
  - RedHat
83
87
  - Ubuntu
88
+
89
+ ## License
90
+
91
+ This codebase is licensed under Apache 2.0. However, the open source dependencies included in this codebase might be subject to other software licenses such as AGPL, GPL2.0, and MIT.
@@ -656,8 +656,8 @@ class Puppet::Provider::DscBaseProvider
656
656
  modified_string
657
657
  end
658
658
 
659
- # Parses a resource definition (as from `invocable_resource`) and, if the resource is implemented
660
- # as a PowerShell class, ensures the System environment variable for PSModulePath is munged to
659
+ # Parses a resource definition (as from `invocable_resource`) and
660
+ # ensures the System environment variable for PSModulePath is munged to
661
661
  # include the vendored PowerShell modules. Due to a bug in PSDesiredStateConfiguration, class-based
662
662
  # DSC Resources cannot be called via Invoke-DscResource by path, only by module name, *and* the
663
663
  # module must be discoverable in the system-level PSModulePath. The postscript for invocation has
@@ -666,8 +666,6 @@ class Puppet::Provider::DscBaseProvider
666
666
  # @param resource [Hash] a hash with the information needed to run `Invoke-DscResource`
667
667
  # @return [String] A multi-line string which sets the PSModulePath at the system level
668
668
  def munge_psmodulepath(resource)
669
- return unless resource[:dscmeta_resource_implementation] == 'Class'
670
-
671
669
  vendor_path = resource[:vendored_modules_path].tr('/', '\\')
672
670
  <<~MUNGE_PSMODULEPATH.strip
673
671
  $UnmungedPSModulePath = [System.Environment]::GetEnvironmentVariable('PSModulePath','machine')
data/lib/pwsh/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Pwsh
4
4
  # The version of the ruby-pwsh gem
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-pwsh
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-17 00:00:00.000000000 Z
11
+ date: 2023-12-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: PowerShell code manager for ruby.
14
14
  email: