ruby-pwsh 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitattributes +2 -0
- data/.gitignore +15 -0
- data/.rspec +3 -0
- data/.rubocop.yml +31 -0
- data/.travis.yml +25 -0
- data/CODEOWNERS +2 -0
- data/DESIGN.md +70 -0
- data/Gemfile +51 -0
- data/LICENSE.txt +21 -0
- data/README.md +69 -0
- data/Rakefile +44 -0
- data/design-comms.png +0 -0
- data/lib/pwsh.rb +653 -0
- data/lib/pwsh/util.rb +54 -0
- data/lib/pwsh/version.rb +6 -0
- data/lib/pwsh/windows_powershell.rb +108 -0
- data/lib/ruby-pwsh.rb +3 -0
- data/lib/templates/init.ps1 +824 -0
- data/ruby-pwsh.gemspec +39 -0
- metadata +66 -0
data/ruby-pwsh.gemspec
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'pwsh/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'ruby-pwsh'
|
9
|
+
spec.version = Pwsh::VERSION
|
10
|
+
spec.authors = ['Puppet, Inc.']
|
11
|
+
spec.email = ['info@puppet.com']
|
12
|
+
|
13
|
+
spec.summary = 'PowerShell code manager for ruby.'
|
14
|
+
spec.description = 'PowerShell code manager for ruby.'
|
15
|
+
spec.homepage = 'https://github.com/puppetlabs/ruby-pwsh'
|
16
|
+
spec.license = 'MIT'
|
17
|
+
|
18
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
19
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
20
|
+
if spec.respond_to?(:metadata)
|
21
|
+
|
22
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
23
|
+
spec.metadata['source_code_uri'] = 'https://github.com/puppetlabs/ruby-pwsh'
|
24
|
+
spec.metadata['changelog_uri'] = 'https://github.com/puppetlabs/ruby-pwsh'
|
25
|
+
else
|
26
|
+
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
27
|
+
'public gem pushes.'
|
28
|
+
end
|
29
|
+
|
30
|
+
# Specify which files should be added to the gem when it is released.
|
31
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
32
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
33
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
34
|
+
end
|
35
|
+
|
36
|
+
spec.bindir = 'exe'
|
37
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
38
|
+
spec.require_paths = ['lib']
|
39
|
+
end
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby-pwsh
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Puppet, Inc.
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-09-25 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: PowerShell code manager for ruby.
|
14
|
+
email:
|
15
|
+
- info@puppet.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- ".gitattributes"
|
21
|
+
- ".gitignore"
|
22
|
+
- ".rspec"
|
23
|
+
- ".rubocop.yml"
|
24
|
+
- ".travis.yml"
|
25
|
+
- CODEOWNERS
|
26
|
+
- DESIGN.md
|
27
|
+
- Gemfile
|
28
|
+
- LICENSE.txt
|
29
|
+
- README.md
|
30
|
+
- Rakefile
|
31
|
+
- design-comms.png
|
32
|
+
- lib/pwsh.rb
|
33
|
+
- lib/pwsh/util.rb
|
34
|
+
- lib/pwsh/version.rb
|
35
|
+
- lib/pwsh/windows_powershell.rb
|
36
|
+
- lib/ruby-pwsh.rb
|
37
|
+
- lib/templates/init.ps1
|
38
|
+
- ruby-pwsh.gemspec
|
39
|
+
homepage: https://github.com/puppetlabs/ruby-pwsh
|
40
|
+
licenses:
|
41
|
+
- MIT
|
42
|
+
metadata:
|
43
|
+
homepage_uri: https://github.com/puppetlabs/ruby-pwsh
|
44
|
+
source_code_uri: https://github.com/puppetlabs/ruby-pwsh
|
45
|
+
changelog_uri: https://github.com/puppetlabs/ruby-pwsh
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
requirements: []
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 2.7.6
|
63
|
+
signing_key:
|
64
|
+
specification_version: 4
|
65
|
+
summary: PowerShell code manager for ruby.
|
66
|
+
test_files: []
|