Commit graph

141 commits

Author SHA1 Message Date
Vasundhara Jagdale
26e6cbfb9c
Remove Ruby 3.0 support (#7057)
* Remove Ruby 3.0 support

Signed-off-by: Vasu1105 <vjagdale@progress.com>

* Updates sonarqube coverage file

Signed-off-by: Vasu1105 <vjagdale@progress.com>

* Fix failing test after remmoval of support for ruby 3.0

Signed-off-by: Vasu1105 <vjagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vjagdale@progress.com>
2024-06-11 20:43:59 +05:30
Sonu Saha
9ab6a463d0
CHEF-11996: Move cookstyle as a dependency to inspec-core.gemspec (#7034)
* gem: Add cookstyle as a dependency for inspec-core.gemspec

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* chore: fix lint of empty newlines

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-05-06 16:30:05 +05:30
Vasundhara Jagdale
f7f35594bc
Upgrade declared minimum ruby version in gemspec from 2.4.0 to 3.0.3 (#6790)
* Upgrade ruby version in gempsec file

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Update to support ruby >= 3.0.3

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
2023-12-12 20:54:28 +05:30
Clinton Wolfe
968f3b2639
CHEF-2627 Clarify License Description on Rubygems (#6630)
* Add a pair of files describing the relationship between the Chef EULA and the Apache 2.0 license, intended to be referenced from rubygems.org

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Add message to rubygems.org description of all 4 gems describing relationship between the two licenses

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Insert the full text of the Apache 2.0 license into the gem description on the advice of Legal

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Update README with message clarifying relationship between the two licenses

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Removes the full text of the Apache 2 license, which after clarification is not
in fact required to be in the rubygems description.

This reverts commit 4d02573f59.

* LINTING - adjust text markers

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* LINTING - training whitespace

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Remove the word 'below' when refering to the inclusion of the Apache 2.0 license

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Add Chef-EULA to list of included files to inspec-core

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

---------

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-10-11 12:54:24 -04:00
Clinton Wolfe
dac2bdf878
CHEF-2438 Add train-kubernetes to inspec gemspec (#6512)
* Add train-kubernetes to inspec gemspec, fix spacing

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Fix failing test to detect system plugins

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

---------

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-05-15 20:14:15 -04:00
Nikita Mathur
30146e07fe
Revert "CFINSPEC-240 Extended file format support for waivers (#6193)" (#6366)
This reverts commit b7ddac9dcc.
2023-01-04 16:02:16 +05:30
Nikita Mathur
b7ddac9dcc
CFINSPEC-240 Extended file format support for waivers (#6193)
* Added separate waiver file reader and support for csv

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added support for json format waivers

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added support for xls and xlsx

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Build issues and updated description of gems

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Doc changes for waivers about supports

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Fix added to check final options presense in config

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Renamed variables from inputs to waivers

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Validation changes with other small changes

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Headers validation added for json and yaml

* Linter issues resolved

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Some refactoring and message change

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* exit code check removed from test cases since not req

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Doc change for waiver support for excel by showing example

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-08-01 09:19:35 -04:00
Clinton Wolfe
e6c66d0398 Add dependencies on train 3.10.0 for podman support
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-06-28 00:33:58 -04:00
Clinton Wolfe
32c9f567f4
Merge pull request #5863 from inspec/nm/progress-bar
CFINSPEC-10 Added Progress Bar streaming reporter plugin
2022-03-07 10:28:39 -05:00
Nikita Mathur
2a51cb3604 Streaming reporter with progress bar functionality added
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-02-18 18:11:16 +05:30
Vasu1105
6137577066 Update ruby version in gemspec file
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-10 11:22:32 +05:30
Tim Smith
48ff852289 Remove support for EOL Ruby 2.5
With the release of Ruby 3.1, Ruby 2.5 is now EOL. We should not be supporting an EOL release of Ruby.

Signed-off-by: Tim Smith <tsmith@chef.io>
2021-12-31 22:54:53 -05:00
Clinton Wolfe
62c5f2c1cf Move rake and cookstyle deps out of inspec core gemspec
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-11-17 22:47:49 -05:00
Clinton Wolfe
d8a2000fdb Move cookstyle dep from inspec gemspec to inspec-core, add rake
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-11-13 00:28:33 -05:00
Nikita Mathur
ced270725d Change after code review on cookstyle check
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2021-09-29 13:23:35 +05:30
Vasu1105
e7b413df21 Fix cannot load such file -- aws-sdk-batch (LoadError)
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-08-31 12:17:10 +05:30
Clinton Wolfe
4cf34764bc Pin mongo gem to 2.13.2 to avoid broken symlink
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-08-11 13:12:44 -04:00
Vasu1105
89610eb569 Fixed review comments
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-06-29 12:00:35 +05:30
Clinton Wolfe
cdfb325ca3 Apply chefstyle -a, and manually remove duplicate requires
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-12-21 13:25:04 -05:00
Tim Smith
981dbf75ff Require ruby 2.5+ / allow ruby 3
The currently ruby requirement is going to break things when we pull
Ruby 3 into Chef Infra Client next year.

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-12-18 07:08:02 -08:00
Nick Schwaderer
36022c603d Bump faraday dependencies
There are several outstanding issues about bumping faraday and
faraday_middleware. This gives us access to additional HTTP methods and
the versions we are pinned to are quite old.

Fixes #4234

Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
2020-08-27 12:38:43 +01:00
Ryan Davis
77acd330e5 Fix our inspec.gemspec for appbundler.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2020-02-10 18:34:00 -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
5d8a0af8ce
Merge pull request #4768 from inspec/zenspider/bug628
Wire up backend to rspec metadata, allowing for example groups to use resources
2019-12-09 12:09:41 -08:00
Ryan Davis
a14e7548ec Clean up super stale dependency commentary.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-06 17:07:22 -08:00
Ryan Davis
7593274ffa Bump faraday_middleware to get their fix for a missing constant.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-12-06 16:52:42 -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
Miah Johnson
be53391565 Update author/email tags in gemspec
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-24 12:55:11 -07:00
Miah Johnson
f7575cca00 Remove more magic comments
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-09 13:24:25 -07: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
tyler-ball
63225931ec Updating license-acceptance version constraint to support 1.0 when it is released
Signed-off-by: tyler-ball <tball@chef.io>
2019-04-25 13:54:09 -06:00
Tim Smith
590dcc6d60 Bump the main inspec gem as well
I missed this one

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-16 21:21:46 -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
Clinton Wolfe
e4d17b6cc8
Merge pull request #3912 from inspec/cw/add-train-habitat
Include train-habitat gem with InSpec
2019-04-01 15:59:11 -04:00
Clinton Wolfe
1c5cb230e8 Include habitat gem with InSpec
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-01 15:10:16 -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
Clinton Wolfe
cbd0dacd39 Remove temporary reliance on Train branch
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:27:49 -05:00