vagrant-puppet-install 3.1.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce7c5501d9f1183d796e72a057c648c386b23a66
4
- data.tar.gz: 60047fe56e991741c042ed6e80985eac733c8736
3
+ metadata.gz: fd581140ef127f0b1d8eff44dc9b236909c05c2e
4
+ data.tar.gz: c47a647457d7aba371af6396c0b9129e1f4a1220
5
5
  SHA512:
6
- metadata.gz: 3a613581a550fdc1b15b5873903549fd3cc3f2e5f5c683d51c3414cab411abb38022e928be3705d124939dd26accff4e127d7208643dcecd9f8937236884de08
7
- data.tar.gz: 7d3f7baa4bc1ccb1f39f1a61794efce2aa73c8c126141894a2b8ad6c75d706c97c51c0d7b5bf808650e42dd08de867b132459348628eb458453b30e28eaecbf4
6
+ metadata.gz: 198797655bef1dca1f251eb261dffa21feb0e0b1e1453d177118c760b05c617b178d99ac7d5d1b25a8cb5e9cd2e3b2ffbac14cfa8a98dd93acb89f131ff90dac
7
+ data.tar.gz: e744df7b94828d4dd8eeefd36d2077091b2256c7f3112b10bf15774d5ab1a528eb543ce178f23d203e53ce3f6b5ed5e67469c3f6ce1326b40476bfab6a6f265b
data/CHANGELOG.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Change Log
2
2
 
3
- ## [Unreleased](https://github.com/petems/vagrant-puppet-install/tree/HEAD)
3
+ ## [v3.1.0](https://github.com/petems/vagrant-puppet-install/tree/v3.1.0) (2016-01-21)
4
4
 
5
- [Full Changelog](https://github.com/petems/vagrant-puppet-install/compare/v3.0.0...HEAD)
5
+ [Full Changelog](https://github.com/petems/vagrant-puppet-install/compare/v3.0.0...v3.1.0)
6
6
 
7
7
  **Closed issues:**
8
8
 
@@ -106,4 +106,4 @@
106
106
 
107
107
 
108
108
 
109
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
109
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/README.md CHANGED
@@ -43,7 +43,7 @@ middleware. You specify the version of the `puppet-common` package you want
43
43
  installed using the `puppet_install.puppet_version` config key. The version string
44
44
  should be a valid Puppet release (ie. `2.7.11`, `3.7.4`, etc.).
45
45
 
46
- The Puppet version is validated against the RubyGems API, so you can use gem syntax to give a [pessimistic version constraint](http://guides.rubygems.org/patterns/#pessimistic-version-constraint) such as `~> 2.7` which will return the latest version of the 2.7.*.
46
+ The Puppet version is validated against the RubyGems API. So as long as the version you give is [listed there](https://rubygems.org/gems/puppet/versions/), it will allow you to install.
47
47
 
48
48
  Install the latest version of Puppet:
49
49
 
@@ -19,9 +19,6 @@ module VagrantPlugins
19
19
  elsif @puppet_version.to_s == 'latest'
20
20
  # resolve `latest` to a real version
21
21
  @puppet_version = retrieve_latest_puppet_version
22
- elsif valid_puppet_version?(puppet_version)
23
- # allows for pessimistic version constraint
24
- @puppet_version = retrieve_latest_puppet_version(puppet_version)
25
22
  end
26
23
  @install_url = nil if @install_url == UNSET_VALUE
27
24
  end
@@ -51,9 +48,9 @@ A list of valid versions can be found at: http://docs.puppetlabs.com/release_not
51
48
  private
52
49
 
53
50
  # Query RubyGems.org's Ruby API and retrive the latest version of Puppet.
54
- def retrieve_latest_puppet_version(version = nil)
51
+ def retrieve_latest_puppet_version
55
52
  available_gems =
56
- dependency_installer.find_gems_with_sources(puppet_gem_dependency(version))
53
+ dependency_installer.find_gems_with_sources(puppet_gem_dependency)
57
54
  spec, _source =
58
55
  if available_gems.respond_to?(:last)
59
56
  # DependencyInstaller sorts the results such that the last one is
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module PuppetInstall
3
- VERSION = "3.1.0"
3
+ VERSION = "4.0.0"
4
4
  end
5
5
  end
@@ -6,6 +6,11 @@ require 'vagrant-puppet-install'
6
6
 
7
7
  Vagrant.configure("2") do |config|
8
8
 
9
+ config.vm.define :no_config_set do |no_config_set|
10
+ no_config_set.vm.box = "ubuntu/trusty64"
11
+ no_config_set.vm.provision "shell", inline: "echo 'Should still work with no puppet plugin enabled'"
12
+ end
13
+
9
14
  config.vm.define :trusty_ubuntu_box do |trusty_ubuntu_box|
10
15
  trusty_ubuntu_box.puppet_install.puppet_version = :latest
11
16
  trusty_ubuntu_box.puppet_install.install_url = 'https://gist.githubusercontent.com/petems/6723c2eedb9d32d7ad97/raw/990ff448f6430aa015e208668a3cecb3f1db0d4b/purge_old_install_new.sh'
@@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "rake", "~> 10.1.1"
23
23
  spec.add_development_dependency "rspec", "~> 2.14.1"
24
24
  spec.add_development_dependency "rubocop", "~> 0.17.0"
25
+ spec.add_development_dependency "pry"
25
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-puppet-install
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Chisamore
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-01-21 00:00:00.000000000 Z
13
+ date: 2016-01-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -68,6 +68,20 @@ dependencies:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
70
  version: 0.17.0
71
+ - !ruby/object:Gem::Dependency
72
+ name: pry
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
71
85
  description: A Vagrant plugin that ensures the desired version of Puppet is installed
72
86
  via the Puppet Labs package repos.
73
87
  email: