Commit Graph

61 Commits

Author SHA1 Message Date
Darragh Bailey
82202945ce
Migrate documentation to github pages (#1523)
Switch from having all documentation contained within the README to
publishing a jekyll static site of documentation under github pages.

This allows for configuration and installation guides to be handled
separately to make for the relevant pieces to be in smaller chunks and
therefore easier to follow for users. Additionally a table of contents
can now be included in a left navigation section that ensures it should
be possible to quickly jump from the start to any section and back
again.

Include support for publishing previews and releases under separate
directories to allow for them to exist at the same time as the other
latest version of the documents.

The navigation section also includes support for accessing any of the
other versions published so that it easier to see what configuration
options exist for a given release. These will be published automatically
when releases are added.
2022-07-19 13:48:02 +00:00
Darragh Bailey
c7bcb50b2b
Avoid domain undefine on configuration update (#1496)
Calling undefine on a domain and recreating it can result in some edge
case errors where if the current capabilities of libvirt have been
reduced, it may not be possible to restore the old definition.

Instead switch to calling `domain_define` with the new definition and
check that the resulting libvirt domain definition has been updated in
the expected manner, otherwise report an error to the user.

Fixes: #949
Relates-to: #1329
Relates-to: #1027
Relates-to: #1371
2022-06-03 09:42:28 +00:00
Dan Čermák
9675167c1c
unrestrict fog-core version to ~> 2 (#1487) 2022-05-02 13:26:14 +01:00
Darragh Bailey
380b3c2096
Make simplecov a source development dependency only (#1418)
Remove the need for downstream packaging to either require or patch
out simplecov from existing files by making it an optional development
dependency.
2021-12-03 12:50:02 +00:00
Darragh Bailey
0e654579b5
Update the source code URI (#1394)
Update the source code URI so that rubygems references the repository
that the code was moved to instead of from before when it was hosted
under the original author's personal org.
2021-11-04 12:37:13 +00:00
Dan Čermák
d6c603b163
Unrestrict rspec-* version to >= 3.5 to sync with vagrant
Vagrant recently bumped its minimum rspec version to 3.10. This commit
unrestricts the version so that the requirements from old and new vagrant
versions can be accommodated.
2021-08-04 09:27:14 +02:00
Darragh Bailey
18ebb9d9ed
Enable frozen string across project (#1319)
Turn on frozen string support in all files by using a comment to avoid
enabling across dependencies where it may not work.

Fixes: #1177
2021-06-30 13:27:03 +01:00
Darragh Bailey
06fef8ba46
Allow rspec to float on minor releases (#1316)
To ensure the tests can be run across multiple vagrant releases, must
allow newer rspec minor releases. As these are for development, it
should be alright to allow a wider range.
2021-06-25 11:20:59 +01:00
Darragh Bailey
3ff5795528
Add myself to the gem authors (#1295)
So that it's reflected on rubygems.org, add myself to the gem authors.
2021-05-27 17:09:32 +01:00
Pavel Valena
b7133d8f8f Since Ruby 3.0 rexml needs to be required
as it's no longer a default gem.
2021-05-12 21:38:43 +01:00
Dan Čermák
db61946828
Add a simple Proc extension to support bindings (#1240)
This removes the dependency on the contextual_proc gem

Fixes: #1238
2021-04-03 14:41:44 +01:00
Darragh Bailey
876e906de0
Improve id_ssh_key_file finalizing (#1230)
Move finalizing the id_ssh_key_file based on how other settings are
currently defined to a separate private function and extend the tests to
accept defining additional expects/allows within the table.

This should apply a consistent set of rules where if the user explicitly
supplies the key, it will attempt to resolve it based on the expected
ssh directory, and will always retain the explicit setting even if it
doesn't exist. Where connect_via_ssh is enabled, it will attempt to
detect if the default key exists, otherwise it will disable the setting.
If the user does not want automatic guesses, they can explicitly disable
by setting it to `nil`.

Fixes: #1228
2021-03-20 15:38:02 +00:00
Darragh Bailey
66d394d42e
Switch from travis to github actions for unit tests (#1206)
Migrate to github actions as travis has switched to a process that will
require requesting minutes regularly for open source projects, and
current development is slow enough that this additional overhead is too
much.

Correct the generation of the line coverage following the example at
coverallsapp/github-action#29. Remove dependency on coveralls
gem as no longer needed if using the action.

Patch older versions of simplecov to contain a branch_coverage?
method to ensure working with simplecov-lcov.
2021-02-20 15:23:16 +00:00
Darragh Bailey
ac2c857599
Exclude spec helpers from coverage (#1179)
Filter out spec helpers and test code from coverage reports.

This will prevent future changes reporting reduction in coverage
even when only adding additional tests.
2020-12-15 13:15:06 +00:00
Darragh Bailey
20067be0d2
Support building from git-archive tarballs (#1187)
Adds support for exposing the correct version via export-subst for
git-archive constructed tarballs to make it easier to consume directly
from source.

Will check in the following order of preference:
 - version file
 - format string containing "Tag:"
 - clone remote to describe commit
2020-12-14 18:49:50 +00:00
Darragh Bailey
966ef2a534
Tag version from git tag (#1161)
Switch to looking up the version from a file with a fall back to get
it directly from git tags if the file isn't available.

The version file is automatically generated by a task of building of the
gem and included in the package release to prevent reading from git.

Should allow the release process to be automated from pushing of a git
tag.
2020-10-23 18:18:52 +01:00
Darragh Bailey
386f7ff4fc
Merge branch 'master' into patch-1 2020-03-27 18:52:02 +00:00
Darragh Bailey
7b7f54ff41
Include license and README with gem 2020-03-27 18:46:22 +00:00
Vít Ondruch
608037c15c Use fog-libvirt facilities to create volumes for QEMU session.
This is supported since fog-libvirt 0.6.0 via https://github.com/fog/fog-libvirt/pull/60
2019-07-17 18:27:00 +02:00
Pirate Praveen Arimbrathodiyil
44a760f668 Update fog-core to latest version
fog-core 2.x is released and we'd like to use it in debian
2019-02-18 18:30:44 +01:00
James Conroy-Finn
429b236087 Use the same version of Nokogiri as Vagrant 2019-02-13 14:51:23 +00:00
Vít Ondruch
5f7841ffff Revert back to development version of .gemspec file. (#929)
This reverts commit 34a0def7d1, because it
seems to be completely accidental change, when the file was overridden by
Bundler or so.
2018-12-02 22:56:50 +01:00
Hans-Christoph Steiner
116f85f4be
include locales 2018-11-09 14:15:11 +00:00
Hans-Christoph Steiner
2ca5603ad2
remove gemspec use of git ls-files
In 5158b0e733, `git ls-files` was added to list the _files_ and _test_files_.  This will never work for any process that uses a source tarball, like Debian packages and I think gems.  Using `git ls-files` requires _git_ is installed on the build machine and requires that the _.git/_ dir is present in the source.

Example fixes:
* jfelchner/ruby-progressbar#54
* rubygems/rubygems#2064
* wpscanteam/CMSScanner#64
2018-11-09 12:42:13 +00:00
dima
6eedaea0ce 0.0.45 2018-10-23 11:19:27 +02:00
dima
57ed83c46d 0.0.44 2018-10-23 11:14:17 +02:00
dima
edd350e6fd remove date 2018-02-07 09:00:33 +01:00
dima
5158b0e733 0.0.42 2018-02-03 11:21:07 +01:00
dima
34a0def7d1 0.0.41 2018-02-02 18:49:20 +01:00
Gerben Meijer
c2b6c54df6 Bump rspec-core to 3.5.0 2017-08-16 14:28:46 +02:00
Dmitry Vasilets
88836fabb1 Merge pull request #771 from zdw/remove_xmlrpc_dep
fog-core 1.44.0 depends on xmlrpc, which depends on Vagrant-incompatible ruby version
2017-04-29 11:43:00 +02:00
Zack Williams
a963b9f40f require older version of fog-core, without xmlrpc dep 2017-04-28 14:27:17 -07:00
Vít Ondruch
ab882ec489 Bump fog-libvirt dependency.
Fixes #568.
2016-10-04 14:09:14 +02:00
Gerben Meijer
86a2ba5250 Change github reference to the new organization 2016-04-27 14:08:25 +02:00
Kirill Shirinkin
7f3f61f215 Fix fog-libvirt version 2016-03-06 16:57:28 +01:00
Darragh Bailey
afb53addb1 Add rudimentary spec test to WaitTillUp using vagrant-spec
Add some basic spec tests for the WaitTillUp action class to lay some
foundations. Utilize vagrant-spec pinned to a known working commit for
tests to pass consistently until they provide releases.

Requires updating some of the rspec libraries and includes
sharedcontext.rb from the jantman/vagrant-r10k project on github.
2016-01-27 18:21:25 +00:00
Josef Stribny
749b431bc8 Depend on new extracted fog-libvirt gem
And depend on ruby-libvirt library through fog-libvirt.
2015-04-17 14:56:31 +02:00
dima
e0e0da3827 :) 2015-04-09 08:14:08 +02:00
John Beredimas
b7a9abfc16 Allow isolated networks 2015-04-09 08:12:51 +02:00
Vít Ondruch
33295eb6f8 Update summary and description. 2015-01-26 14:44:39 +01:00
Adam Spiers
773a4f48d6 allow newer ruby-libvirt (#158)
As per #158, vagrant-libvirt depends on ruby-libvirt transitively
through fog.  Since fog/fog#2706 was resolved, fog now requires
ruby-libvirt ~> 0.5.0, therefore vagrant-libvirt should allow both 0.4.x
and 0.5.x.  Furthermore, according to semantic versioning, we currently
have no good reason to reject anything newer below 1.x.  If such a
restriction is required in the future (e.g. < 0.7.0) then it is likely
that fog's .gemspec will take care of that on our behalf anyway.

Closes #158.
2014-10-26 23:22:10 +00:00
Adam Spiers
138bea1077 make gem dependencies reasonably optimistic again (fixes #253)
This reverts the vagrant-libvirt.gemspec changes in commit
19cd8be193.
2014-10-16 01:42:29 +01:00
Brian Pitts
ea2c3ea8bf Accept any version of Nokogiri 1.6 2014-09-28 10:48:28 -05:00
dima
19cd8be193 version 0.0.21 2014-09-17 10:57:34 +02:00
Brian Pitts
68b39f1fa6 Revert "Revert "Bump Nokogiri version"" 2014-07-20 12:10:07 -05:00
Dmitry Vasilets
1cffb77bac Revert "Bump Nokogiri version" 2014-07-18 21:49:22 +02:00
Nico Tonozzi
9b458f99c7 Bump Nokogiri version 2014-07-18 13:14:20 -06:00
Bradley Smith
0e9458db6c refactor set_domain_name to avoid duplicate names when running multiple guests. 2014-07-04 10:47:29 -06:00
dima
de4ca2ba97 version 0.0.15 , min supported vagrant version 1.4.3 2014-02-01 22:20:03 +01:00
Brian Pitts
2b2277d884 Add Brian to gem authors 2014-01-30 20:02:42 -06:00