train-pwsh 0.1.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c0b97bc0ab701a473da4c28af195434cfc6fc374103614bb00ea02766c7d28f
4
- data.tar.gz: 86f25bad8916379f13ae5769dc0a0ee89d30b1798c679496903a3b8a874f015f
3
+ metadata.gz: da66dd3bfae044e714689303864eed1b206c158282c49b0023a2847edcc9466d
4
+ data.tar.gz: de4f87e4206d4d54bd1fd0ca908ffb5bdaed81573c92046d71d9c64ea832b85e
5
5
  SHA512:
6
- metadata.gz: 1da78073262a500f458e9208d39850a778aa2b1993f8db53e2e8286bdb5850834e249124cee78b98a4be09b47cca338ad645f3b46fea2b45f8794b95e87672f1
7
- data.tar.gz: e16e5aebad94903f7d7c7663eb5f41d9939029149f875fd1aa8af1fc1e2936cdd762440c47a8fe0632e362c2e69cf86f0f5f5e267d0504a2aa79ab336c12cfd0
6
+ metadata.gz: 6c78670c60457b39db97f0f83011c353841be259b8c2b0fdc1ab4967f878ab2aecfb5ba4707f101e180615fde9407bebfa137cdecd46be4523d72e64b135890f
7
+ data.tar.gz: d9cb83c1ef7f82c51d3f26b583b2496e8f57c9ede8c28006efedd4848cfc3a491a9868c5044c2ca1b652034ac4fe618ec14f3c887d73258bd8b4f56215a49faf
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Licensed under the apache-2.0 license, except as noted below.
1
+ Licensed under the Apache-2.0 license, except as noted below.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
4
 
data/README.md CHANGED
@@ -12,6 +12,31 @@ A train-pwsh connection has eight fields that are needed for authentication, whi
12
12
 
13
13
  These fields need to be defined in the config file stored at this directory: `~/.inspec/config.json`. Particularly, under the `credentials` key of the json file, create a `pwsh` key with the value being another dictionary. This dictionary should have a key named `pwsh-options` with the value being another dictionary. This dictionary should contain the names of the eight fields above as well as their values. Please refer to this [link](https://origin.inspec.io/docs/reference/config/) for more detailed instructions.
14
14
 
15
+ As mentioned in the link above documentation, to run train-pwsh, a `config.json` file is needed at the following directory: `~/.inspec/config.json`. An example json file is shown below; the values will need to be populated with your actual data.
16
+
17
+ ```json
18
+ {
19
+ "version": "1.1",
20
+ "cli_options": {
21
+ "color": "true"
22
+ },
23
+ "credentials": {
24
+ "pwsh": {
25
+ "pwsh-options": {
26
+ "client_id": "INSERT CLIENT ID",
27
+ "tenant_id": "INSERT TENANT ID",
28
+ "client_secret": "INSERT CLIENT SECRET",
29
+ "certificate_path": "INSERT CERTIFICATE PATH",
30
+ "certificate_password": "INSERT CERTIFICATE PASSWORD",
31
+ "organization": "INSERT ORGANIZATION",
32
+ "sharepoint_admin_url": "INSERT SHAREPOINT ADMIN URL",
33
+ "pwsh_path": "INSERT POWERSHELL PATH"
34
+ }
35
+ }
36
+ }
37
+ }
38
+ ```
39
+
15
40
  On top of this, environment variables may need to be defined for some of these eight fields if they are to be used elsewhere in the profile as inputs. The README for the profile will specify which ones need to be stored as environment variables.
16
41
 
17
42
  To set an environment variable on Mac, go to the `zschrc` file located at `~/.zschrc` and enter in the following syntax: `export VARIABLE_NAME='insert_value'`
data/Rakefile CHANGED
@@ -1,4 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "bundler/gem_tasks"
4
+ require 'github_changelog_generator/task'
5
+
4
6
  task default: %i[]
7
+
8
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
9
+ config.user = 'skandwal'
10
+ config.project = 'train-pwsh'
11
+ config.since_tag = '1.0.7'
12
+ config.future_release = '2.0.0'
13
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Train
4
4
  module Pwsh
5
- VERSION = "0.1.6"
5
+ VERSION = "1.0.7"
6
6
  end
7
7
  end
data/train-pwsh.gemspec CHANGED
@@ -8,17 +8,15 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["Sujay Kandwal"]
9
9
  spec.email = ["skandwal@mitre.org"]
10
10
  spec.files = Dir['lib/**/*.rb'] + Dir['bin/*']+ ["README.md", "LICENSE.md", "NOTICE.md", "CHANGELOG.md", "CODE_OF_CONDUCT.md"]
11
- spec.summary = "Enabling continuous Powershell connection over Inspec"
12
- #spec.description = "TODO: Write a longer description or delete this line."
13
- #spec.homepage = "TODO: Put your gem's website or public repo URL here."
14
- spec.license = "MIT"
11
+ spec.summary = "Enabling continuous Powershell connection over Inspec."
12
+ spec.description = "Enabling continuous Powershell connection over Inspec."
13
+ spec.homepage = "https://rubygems.org/gems/train-pwsh"
14
+ spec.license = "Apache-2.0"
15
15
  spec.required_ruby_version = ">= 2.6.0"
16
16
 
17
- #spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
18
-
19
- #spec.metadata["homepage_uri"] = spec.homepage
20
- #spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
21
- #spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "https://github.com/mitre/train-pwsh/"
19
+ spec.metadata["changelog_uri"] = spec.metadata['source_code_uri'] + "blob/main/CHANGELOG.md"
22
20
 
23
21
  # Specify which files should be added to the gem when it is released.
24
22
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train-pwsh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sujay Kandwal
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-03 00:00:00.000000000 Z
11
+ date: 2025-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: train
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description:
41
+ description: Enabling continuous Powershell connection over Inspec.
42
42
  email:
43
43
  - skandwal@mitre.org
44
44
  executables: []
@@ -59,10 +59,13 @@ files:
59
59
  - lib/train-pwsh/version.rb
60
60
  - sig/train/pwsh.rbs
61
61
  - train-pwsh.gemspec
62
- homepage:
62
+ homepage: https://rubygems.org/gems/train-pwsh
63
63
  licenses:
64
- - MIT
65
- metadata: {}
64
+ - Apache-2.0
65
+ metadata:
66
+ homepage_uri: https://rubygems.org/gems/train-pwsh
67
+ source_code_uri: https://github.com/mitre/train-pwsh/
68
+ changelog_uri: https://github.com/mitre/train-pwsh/blob/main/CHANGELOG.md
66
69
  post_install_message:
67
70
  rdoc_options: []
68
71
  require_paths:
@@ -81,5 +84,5 @@ requirements: []
81
84
  rubygems_version: 3.3.27
82
85
  signing_key:
83
86
  specification_version: 4
84
- summary: Enabling continuous Powershell connection over Inspec
87
+ summary: Enabling continuous Powershell connection over Inspec.
85
88
  test_files: []