ruby-pwsh 0.4.0 → 0.4.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: f99e2cb873011c1222023d1161d8dd442ee25a41dbbfd46c4f41c34dcae64dec
4
- data.tar.gz: 958293d288ab63a4972a662ef5c9a3441a519558d0513a67dda2c412abb1fbc6
3
+ metadata.gz: 2fcc279675091bc4fcf7b31a7f309561c49b14352895424f72ca9170ffd51de3
4
+ data.tar.gz: 2c1160616d59bc30f1a641469617e0b941e610bf48e8c640a1de2a95df66778c
5
5
  SHA512:
6
- metadata.gz: 9aa8a90d1f9a2647f4b413c7aea243a2d8f1cd59f4885be523c6f2017d4b14eec15e047b8d9b450e148b0d0af8184d4c39025c408bd2abc3054b1919d3125632
7
- data.tar.gz: 5daf8fc2fac2184578b9986e5f4b7aeea4572ff7d1bc84673f7e4ce696741d5d00969331a7356437dd52604dff0aa3a0a97cba62fad3a2fd588068ca62f07601
6
+ metadata.gz: f957369ca4ed3b5932c843195bd9ec20614dd7211b8f0fd1e1ed76833aa8912d897a5341d605c89b95e7b76a9ba623c3064709e2ed1182415dbb907285d61dbd
7
+ data.tar.gz: 7508304850d8663c31f8ce420accf3a3007e594176365199ddb910e50a383ab7dc2b7e17911213c3fc5cea66eafcfb4ae89b7554f03b47df94fcd81483cad056
@@ -2,7 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
4
4
 
5
- ## [0.4.0](https://github.com/puppetlabs/ruby-pwsh/tree/0.4.0) (2020-01-13)
5
+ ## [0.4.1](https://github.com/puppetlabs/ruby-pwsh/tree/0.4.1) (2020-02-12)
6
+
7
+ [Full Changelog](https://github.com/puppetlabs/ruby-pwsh/compare/0.4.0...0.4.1)
8
+
9
+ ### Fixed
10
+
11
+ - Ensure ruby versions older than 2.3 function correctly [\#30](https://github.com/puppetlabs/ruby-pwsh/pull/30) ([binford2k](https://github.com/binford2k))
12
+
13
+ ## [0.4.0](https://github.com/puppetlabs/ruby-pwsh/tree/0.4.0) (2020-01-14)
6
14
 
7
15
  [Full Changelog](https://github.com/puppetlabs/ruby-pwsh/compare/0.3.0...0.4.0)
8
16
 
data/Rakefile CHANGED
@@ -61,8 +61,6 @@ end
61
61
  desc 'Build the gem'
62
62
  task :build do
63
63
  gemspec_path = File.join(Dir.pwd, 'ruby-pwsh.gemspec')
64
- # Delete the puppet-specific code if it exists
65
- # FileUtils.rm_r('lib/puppet') if File.exist?('lib/puppet')
66
64
  run_local_command("bundle exec gem build '#{gemspec_path}'")
67
65
  end
68
66
 
@@ -75,7 +73,7 @@ task :tag, [:version, :sha] do |_task, args|
75
73
  raise "Invalid version #{args[:version]} - must be like '1.2.3'" unless args[:version] =~ /^\d+\.\d+\.\d+$/
76
74
 
77
75
  run_local_command('git fetch upstream')
78
- run_local_command("git tag -a version -m #{args[:version]} #{args[:sha]}")
76
+ run_local_command("git tag -a #{args[:version]} -m #{args[:version]} #{args[:sha]}")
79
77
  run_local_command('git push upstream --tags')
80
78
  end
81
79
 
@@ -54,7 +54,7 @@ module Pwsh
54
54
  if manager.nil? || !manager.alive?
55
55
  # ignore any errors trying to tear down this unusable instance
56
56
  begin
57
- manager&.exit
57
+ manager.exit unless manager.nil? # rubocop:disable Style/SafeNavigation
58
58
  rescue
59
59
  nil
60
60
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Pwsh
4
4
  # The version of the ruby-pwsh gem
5
- VERSION = '0.4.0'
5
+ VERSION = '0.4.1'
6
6
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puppetlabs-pwshlib",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "author": "puppetlabs",
5
5
  "summary": "Provide library code for interoperating with PowerShell.",
6
6
  "license": "MIT",
@@ -76,7 +76,7 @@
76
76
  "requirements": [
77
77
  {
78
78
  "name": "puppet",
79
- "version_requirement": ">= 4.10.0 < 7.0.0"
79
+ "version_requirement": ">= 5.5.0 < 7.0.0"
80
80
  }
81
81
  ],
82
82
  "pdk-version": "1.13.0",
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
33
33
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
34
  end
35
- # require 'pry'; binding.pry;
35
+
36
36
  spec.bindir = 'exe'
37
37
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
38
38
  spec.require_paths = ['lib']
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: 0.4.0
4
+ version: 0.4.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: 2020-01-14 00:00:00.000000000 Z
11
+ date: 2020-02-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: PowerShell code manager for ruby.
14
14
  email: