]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
(FM-7316) - Setup for i18n process
authorDavid Swan <david.swan@puppet.com>
Thu, 30 Aug 2018 12:50:28 +0000 (13:50 +0100)
committerDavid Swan <david.swan@puppet.com>
Fri, 31 Aug 2018 15:31:39 +0000 (16:31 +0100)
.fixtures.yml
.rubocop.yml
.sync.yml
Gemfile
Rakefile
metadata.json

index 0c221f0da7306aa9c8f020cfcd70fc146e5f175f..b419b4d716007b132ad970fbdbb544a44551b278 100644 (file)
@@ -2,5 +2,7 @@ fixtures:
   repositories:
     "stdlib":
       "repo": "git://github.com/puppetlabs/puppetlabs-stdlib.git"
   repositories:
     "stdlib":
       "repo": "git://github.com/puppetlabs/puppetlabs-stdlib.git"
+    "translate": 
+      "repo": "https://github.com/puppetlabs/puppetlabs-translate"
   symlinks:
     "apt": "#{source_dir}"
   symlinks:
     "apt": "#{source_dir}"
index 54d1597aaa1a34941d39d88a8bb3be165ed01e64..ef3b9a56c2698eba61231d2db771c90032921883 100644 (file)
@@ -1,5 +1,7 @@
 ---
 ---
-require: rubocop-rspec
+require:
+- rubocop-i18n
+- rubocop-rspec
 AllCops:
   DisplayCopNames: true
   TargetRubyVersion: '2.1'
 AllCops:
   DisplayCopNames: true
   TargetRubyVersion: '2.1'
@@ -66,6 +68,7 @@ Style/TrailingCommaInLiteral:
 Style/SymbolArray:
   Description: Using percent style obscures symbolic intent of array's contents.
   EnforcedStyle: brackets
 Style/SymbolArray:
   Description: Using percent style obscures symbolic intent of array's contents.
   EnforcedStyle: brackets
+inherit_from: ".rubocop_todo.yml"
 RSpec/MessageSpies:
   EnforcedStyle: receive
 Style/Documentation:
 RSpec/MessageSpies:
   EnforcedStyle: receive
 Style/Documentation:
index d4c7b223b1a36319e1423623cabcaf2ed9f9403d..ad63bcd99bddf7dc5b0bafd1166b3ab26a1014dd 100644 (file)
--- a/.sync.yml
+++ b/.sync.yml
@@ -25,6 +25,18 @@ Gemfile:
         git: 'https://github.com/skywinder/github-changelog-generator'
         ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018'
         condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')"
         git: 'https://github.com/skywinder/github-changelog-generator'
         ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018'
         condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')"
+      - gem: puppet-lint-i18n
+
+.rubocop.yml:
+   default_configs:
+    inherit_from: .rubocop_todo.yml
+    require:
+      - rubocop-i18n
+      - rubocop-rspec
+
+Rakefile:
+  requires:
+    - puppet_pot_generator/rake_tasks
 
 appveyor.yml:
   delete: true
 
 appveyor.yml:
   delete: true
diff --git a/Gemfile b/Gemfile
index 05cb6e6f34a7abaa9dbab0de6da457d63c6eb3b8..1aff7a8bcd9a14d6ccd740ffa57a579f092029e3 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -34,6 +34,7 @@ group :development do
   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]
   gem "github_changelog_generator",                    require: false, git: 'https://github.com/skywinder/github-changelog-generator', ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')
   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]
   gem "github_changelog_generator",                    require: false, git: 'https://github.com/skywinder/github-changelog-generator', ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')
+  gem "puppet-lint-i18n",                              require: false
 end
 group :system_tests do
   gem "puppet-module-posix-system-r#{minor_version}", require: false, platforms: [:ruby]
 end
 group :system_tests do
   gem "puppet-module-posix-system-r#{minor_version}", require: false, platforms: [:ruby]
index 204fb18cdc93921bd5fd42edf660b53e874f7ef8..112dc4212b029e4b9ccb32b721b70301f92e294c 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -2,6 +2,7 @@ require 'puppetlabs_spec_helper/rake_tasks'
 require 'puppet-syntax/tasks/puppet-syntax'
 require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any?
 require 'github_changelog_generator/task' if Bundler.rubygems.find_name('github_changelog_generator').any?
 require 'puppet-syntax/tasks/puppet-syntax'
 require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any?
 require 'github_changelog_generator/task' if Bundler.rubygems.find_name('github_changelog_generator').any?
+require 'puppet_pot_generator/rake_tasks'
 
 def changelog_user
   return unless Rake.application.top_level_tasks.include? "changelog"
 
 def changelog_user
   return unless Rake.application.top_level_tasks.include? "changelog"
index d637afd40e775b19be6075b39c89be7794ff3565..b8b9518d86e6f8f8947a039e83a34be657e51741 100644 (file)
     {
       "name": "puppetlabs/stdlib",
       "version_requirement": ">= 4.16.0 < 6.0.0"
     {
       "name": "puppetlabs/stdlib",
       "version_requirement": ">= 4.16.0 < 6.0.0"
+    },
+    {
+      "name": "puppetlabs/translate",
+      "version_requirement": ">= 1.0.0 < 2.0.0"
     }
   ],
   "operatingsystem_support": [
     }
   ],
   "operatingsystem_support": [