]> gitweb.fluxo.info Git - puppet-mailalias_core.git/commitdiff
(maint) PDK manages certain files
authorMelissa Stone <melissa@puppet.com>
Mon, 30 Apr 2018 21:25:42 +0000 (14:25 -0700)
committerMelissa Stone <melissa@puppet.com>
Mon, 30 Apr 2018 21:38:55 +0000 (14:38 -0700)
Certain files, like the Gemfile and spec/spec_helper.rb are managed by
PDK. When we run `pdk update`, any changes we make to these files will
be overwritten.

.sync.yml [new file with mode: 0644]
CHANGELOG.md
Gemfile
Rakefile
spec/spec_helper.rb
spec/spec_helper_local.rb [new file with mode: 0644]

diff --git a/.sync.yml b/.sync.yml
new file mode 100644 (file)
index 0000000..00a3fb4
--- /dev/null
+++ b/.sync.yml
@@ -0,0 +1,31 @@
+---
+Gemfile:
+  required:
+    ':system_tests':
+      - gem: 'puppet-module-posix-system-r#{minor_version}'
+        platforms: ruby
+      - gem: 'puppet-module-win-system-r#{minor_version}'
+        platforms:
+          - mswin
+          - mingw
+          - x64_mingw
+      - gem: beaker
+        version: '~> 3.13'
+        from_env: BEAKER_VERSION
+      - gem: beaker-abs
+        from_env: BEAKER_ABS_VERSION
+        version: '~> 0.1'
+      - gem: beaker-pe
+      - gem: beaker-hostgenerator
+        from_env: BEAKER_HOSTGENERATOR_VERSION
+      - gem: beaker-rspec
+        from_env: BEAKER_RSPEC_VERSION
+    ':development':
+      - gem: puppet-blacksmith
+        version: '~> 3.4'
+      - gem: puppet-strings
+
+Rakefile:
+  requires:
+    - puppet_blacksmith/rake_tasks
+    - puppet-lint/tasks/puppet-lint
index caf255a90153d8dd95322f14788e5816034973f2..33e085f1d8f4ef87434e748dd9cb87610cd73003 100644 (file)
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
 ### Added
 - Gem dependency on puppet-blacksmith, which is required to ship to the module
   to forge.puppet.com
+### Changed
+- The Gemfile and spec/spec_helper.rb are managed by pdk. Any additional content
+  for these files should be defined in .syn.yml and spec/spec_helper_local.rb
+  respectively
 
 ## [1.0.1] - 2018-04-30
 ### Summary
diff --git a/Gemfile b/Gemfile
index 25d4426de4ca9789c7382c65455f7af74235c877..bb4eff80f3570e83e09a9feefeefb174e2950a68 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -32,26 +32,19 @@ group :development do
   gem "puppet-module-posix-dev-r#{minor_version}",     require: false, platforms: [:ruby]
   gem "puppet-module-win-default-r#{minor_version}",   require: false, platforms: [:mswin, :mingw, :x64_mingw]
   gem "puppet-module-win-dev-r#{minor_version}",       require: false, platforms: [:mswin, :mingw, :x64_mingw]
-
-  # Needed to push to the forge
   gem "puppet-blacksmith", '~> 3.4',                   require: false
-
-  # Puppet Strings for documentation purposes
-  gem 'puppet-strings'
-  gem 'rake'
+  gem "puppet-strings",                                require: false
 end
-
 group :system_tests do
-  gem "puppet-module-posix-system-r#{minor_version}", require: false, platforms: [:ruby]
-  gem "puppet-module-win-system-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw]
+  gem "puppet-module-posix-system-r#{minor_version}",                            require: false, platforms: [:ruby]
+  gem "puppet-module-win-system-r#{minor_version}",                              require: false, platforms: [:mswin, :mingw, :x64_mingw]
   gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 3.13')
   gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.1')
-  gem "beaker-pe", require: false
+  gem "beaker-pe",                                                               require: false
   gem "beaker-hostgenerator"
   gem "beaker-rspec"
 end
 
-
 puppet_version = ENV['PUPPET_GEM_VERSION']
 puppet_type = gem_type(puppet_version)
 facter_version = ENV['FACTER_GEM_VERSION']
index 81381e0cf8c7f2c0adff141e2e8dc839aa5ac85a..a39cae2f0306b22affcd8bcc36885a5f6a9daace 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -1,2 +1,4 @@
 require 'puppetlabs_spec_helper/rake_tasks'
 require 'puppet-syntax/tasks/puppet-syntax'
+require 'puppet_blacksmith/rake_tasks'
+require 'puppet-lint/tasks/puppet-lint'
index 9885e2df6bba9edc7bb040cba9666f2b146b4340..efd225b540fcb886c0b5ecdd291eb96afd8cd648 100644 (file)
@@ -28,17 +28,3 @@ end
 RSpec.configure do |c|
   c.default_facts = default_facts
 end
-
-dir = File.expand_path(File.dirname(__FILE__))
-$LOAD_PATH.unshift File.join(dir, 'lib')
-
-# So everyone else doesn't have to include this base constant.
-module PuppetSpec
-  FIXTURE_DIR = File.join(File.expand_path(File.dirname(__FILE__)), 'fixtures') unless defined?(FIXTURE_DIR)
-end
-
-require 'puppet_spec/files'
-
-Pathname.glob("#{dir}/shared_behaviours/**/*.rb") do |behaviour|
-  require behaviour.relative_path_from(Pathname.new(dir))
-end
diff --git a/spec/spec_helper_local.rb b/spec/spec_helper_local.rb
new file mode 100644 (file)
index 0000000..0fcc231
--- /dev/null
@@ -0,0 +1,13 @@
+dir = File.expand_path(File.dirname(__FILE__))
+$LOAD_PATH.unshift File.join(dir, 'lib')
+
+# So everyone else doesn't have to include this base constant.
+module PuppetSpec
+  FIXTURE_DIR = File.join(File.expand_path(File.dirname(__FILE__)), 'fixtures') unless defined?(FIXTURE_DIR)
+end
+
+require 'puppet_spec/files'
+
+Pathname.glob("#{dir}/shared_behaviours/**/*.rb") do |behaviour|
+  require behaviour.relative_path_from(Pathname.new(dir))
+end