Commit graph

49 commits

Author SHA1 Message Date
Tim Smith
d2775e6b69 Allow license-acceptance 2.x gem dep
This release bumps the tty deps so we can bring in newer versions of
those libs in chef and workstation.

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-08-27 11:18:33 -07:00
Nick Schwaderer
d1042bc7d4
Merge pull request #5202 from inspec/readme
Don't ship the readme in the gem
2020-08-17 11:47:01 +01:00
Tim Smith
cfcf21482b Don't ship the readme in the gem
We're just deleting this from chef and workstation anyways. It's buried deep in the install directory and doesn't do anyone any good.

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-08-13 13:49:20 -07:00
Tim Smith
9053ad621b Remove htmlentities dependency
#4853 has been closed and I can find this being used anywhere in the codebase.

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-08-13 13:26:17 -07:00
Tim Smith
5e56fb57bf Remove unused term-ansicolor
I went to swap this for pastel, but in the end I couldn't find where it was actually used.

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-08-12 19:15:54 -07:00
Nick Schwaderer
5dd999229b Pin json_schemer to maintain Ruby 2.4 support
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-07-16 13:44:32 +01:00
James Stocks
9766cbd249 Fix tomlrb dependency
We need to avoid tomlrb 1.3.0 - fixes https://github.com/inspec/inspec/issues/5089

Signed-off-by: James Stocks <jstocks@chef.io>
2020-06-12 09:44:24 +01:00
Clinton Wolfe
b2deb9a4c1 Pin pry to ~> 0.13 to get Pry::Prompt new API to avoid deprecation warning
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-04-22 14:57:22 -04:00
Clinton Wolfe
dc5f8f1f64 Loosen gemspec constraint on method_source per tas50
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-04-21 16:43:06 -04:00
Nick Schwaderer
4021bb3c62 Bumps method_source dependency version
The `method_source` dependency for inspec-core has not been bumped in
five years, and it is indirectly holding `pry` back elsewhere in the
ecosystem which is causing issues for ruby 2.7+ support.

Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-04-21 15:39:28 +01:00
Jacob Henry
724f82237b Revision of schema to JSON Schema draft 7
Signed-off-by: Jacob Henry <jchenry@mitre.org>
2020-02-05 17:05:47 -08:00
Ryan Davis
217d79d4d6 Revamp dependencies and file content across inspec and inspec-core.
+ inspec-core has all the real dependencies for inspec (the project).
+ inspec keeps all aws/azure/gcp code and their dependencies.
+ inspec depends on inspec-core and inspec-bin.
+ Removed test_files entirely.
+ Removed FNM_DOTMATCH on our globs... don't cargo cult.
+ Added some code to print out the gemspec and files to make it easier
  to debug by executing the gemspec directly.
+ Sorted all deps... so hard to find things.
+ Added version specifiers where needed.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2020-01-29 15:48:26 -08:00
Ryan Davis
56988f9f8a Rework and unify gemspecs.
First step is to get them agreeing on dependencies.

There's still some oddities between train vs train-core and
dependencies for AWS and the like, but this brings them in line so
diffing between them is MUCH better.

Next is to gut inspec and push everything over to inspec-core.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2020-01-29 15:47:20 -08:00
Tim Smith
acad3d473d Allow Thor 1.x versions to be used
Thor 1.0 drops support for Ruby 1.8 and 1.9. We should loosen this dep
to allow the 1.x series since bug fixes are occuring there now.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-12-17 13:04:23 -08:00
Ryan Davis
f67171fa6b Bump rspec to 3.9 and fix broken tests.
Tests are STILL brittle, but this at least lets us drop old rspec.

Fixes #4575

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-06 16:52:35 -08:00
Ryan Davis
cfa40e3cc4 Added chef-telemetry 1.0 to dependencies.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-03 18:44:30 -08:00
Ryan Davis
a17dc0a2bc Dropping chef-core from dependencies.
We'll be moving some code from chef-core to chef-telemetry and adding
that dependency in the next sprint.

Fixes #4716.
Fixes #4719.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-13 13:32:21 -08:00
Clinton Wolfe
c9dac74318 Add chef-core dependency to gemspec
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-10-09 14:11:00 -07:00
Clinton Wolfe
35a2582ca8 Pin RSpec to 3.8.6 to avoid test failures for now
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-10-08 19:16:29 -07:00
Clinton Wolfe
9bd5ba8752 Add deps on train 3 and train-winrm 0.2
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-08-15 14:01:11 -04:00
Miah Johnson
a4f4fe5231 chefstyle -a; https://github.com/chef/chefstyle/pull/74
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-07-08 17:22:50 -07:00
Ryan Davis
a5309ea392 blindly applied chefstyle -a
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00
Miah Johnson
0255fe0e18 Fix unbounded dependencies
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-03 18:35:47 -07:00
Miah Johnson
23245df6d1 Replace jsonschema with json-schema.
Also just use json, its packaged with ruby already.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-01 22:04:36 -07:00
Clinton Wolfe
7116de3929 Adjust license-acceptance pins to avoid conflict
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 15:47:26 -06:00
Clinton Wolfe
44059a84e4 Bump license-acceptance dep to 1.0
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 15:47:26 -06:00
Clinton Wolfe
1c3604cb1e Remove empty executables list from gemspecs
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 13:27:09 -06:00
Clinton Wolfe
44fcc6d874 Remove binary file from gemspecs
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 13:27:09 -06:00
Tim Smith
00ce6c02df Require Ruby 2.4 or later
Ruby 2.3 is no longer supported. Drop this release from InSpec and
instead support the 3 latest Ruby releases.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-16 21:19:40 -07:00
Clinton Wolfe
638d4440a5 Add license-acceptance library to gemspec
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:33:04 -04:00
Clinton Wolfe
ccdd1cfffb Drop aws-sdk 2, move to train 2, add train-aws 0.1
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-08 14:24:46 -04:00
Tim Smith
bad372e47d Don't include plugin test files in the gem file
One of the test files is causing chef omnibus failures on Solaris for some reason, but really there's no reason to ship all these test files in the install artifact. This slims down the gem and install size a good amount. I'm open to a better regex if someone has opinions.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-03-31 14:32:20 -07:00
Keith Walters
c2bd0616fe Allow http resource to follow redirects
By specifying a `max_redirects` attribute, the `http` resource worker
will follow any HTTP Redirect response (301, 302, etc...) up to the
limit defined by this attribute. For a local worker, exceeding that
limit will raise a `FaradayMiddleware::RedirectLimitReached` exception.
For a remote worker, the curl command will exit without populating the
`status` and `body` properties.

Signed-off-by: Keith Walters <keith.walters@cattywamp.us>
2019-03-16 20:54:52 -04:00
Jerry Aldrich
8b93292f3f Add term-ansicolor to inspec-core gem
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-02-10 19:59:37 -08:00
Clinton Wolfe
5282baf9ce Relax pin on train in inspec-core
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:44:42 -05:00
Clinton Wolfe
304a1b9873 Temporarily pin train to 1.7.1
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-31 22:24:18 -05:00
Noel Georgi
f1fbd518e5 Expose additional WinRM options for transport, basic auth, and SSPI (#3669)
Signed-off-by: Noel Georgi <git@frezbo.com>
2018-12-20 11:57:53 -05:00
Clinton Wolfe
c0a46cf841
UI Object for for CLI work (#3618)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-12-12 11:44:16 -05:00
Tim Smith
e4ce25b8a1 Adjust files included in gems to improve appbundler support (#3663)
Signed-off-by: Tim Smith <tsmith@chef.io>
2018-12-12 11:23:19 -05:00
Jared
79bf71d9e8 Pin train to 1.5.11 (#3657)
Signed-off-by: Jared Ledvina <jared@techsmix.net>
2018-12-11 09:00:24 -05:00
Jared Quick
f990b78b48
Pin to train 1.5.6 (#3568)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-11-01 16:23:37 -04:00
Jared Quick
8432cd73c4
Pin inspec to the new train. (#3531)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-18 16:37:56 -04:00
Jared Quick
f7551b3de3
Fix plugin issues on omni builds (#3499)
* Fix plugin issues on omni builds
* Fix gemspec to include etc dir.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-11 23:25:01 -04:00
Clinton Wolfe
857b9bb11c Plugins: Support for Train Plugins in InSpec (#3444)
* Unit tests passing for loading Train plugins
* detect works with a train test fixture
* Update fixture install of train-fixture-plugin
* Add functional tests for detect and shell when talking to a train plugin backend
* Update docs to reflect availability of Train plugins
* Functional test for install train plugin from path
* Working install train plugin from path, more tests for installing from odd locations
* PR Feedback

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-09-27 18:46:35 -04:00
Jared Quick
927720998c
Add platforms schema command (#3346)
* Add platforms schema command.
* Add functional test.
* Update tests with sorted export.
* Bump train version.
* Fix syntax in tests.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-13 15:36:17 -04:00
Christoph Hartmann
df9036f6e4 inspec compliance: use multipart upload to support upload on windows (#3369)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-09-07 14:25:31 -04:00
Tom Qiang Wu
aa44c24b07 bump inspec/train version (#3331)
Obvious fix.
2018-08-28 15:53:13 -04:00
Jared Quick
d44eb67672
Bump train version for inspec. (#3147)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-06-14 15:26:00 -04:00
Miah Johnson
67bbbb6ecf Split inspec into a core gem. (#3008)
* Split inspec into a core gem.
* Include inspec-core.gemspec, not inspec.gemspec.
* Only load aws and azure when the gems are installed.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-05-03 10:30:01 -04:00