puppet-resource_api 1.8.14 → 1.8.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -3
- data/README.md +6 -6
- data/lib/puppet/resource_api/base_context.rb +1 -1
- data/lib/puppet/resource_api/data_type_handling.rb +9 -2
- data/lib/puppet/resource_api/simple_provider.rb +4 -4
- data/lib/puppet/resource_api/transport.rb +13 -0
- data/lib/puppet/resource_api/version.rb +1 -1
- data/lib/puppet/resource_api.rb +4 -1
- data/puppet-resource_api.gemspec +7 -8
- metadata +3 -20
- data/.dependency_decisions.yml +0 -98
- data/.fixtures.yml +0 -8
- data/.github/dependabot.yml +0 -12
- data/.gitignore +0 -15
- data/.rspec +0 -3
- data/.rubocop.yml +0 -159
- data/.travis.yml +0 -43
- data/CODEOWNERS +0 -2
- data/Gemfile +0 -81
- data/HISTORY.md +0 -408
- data/Rakefile +0 -66
- data/appveyor.yml +0 -41
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/codecov.yml +0 -3
- data/contrib/README.md +0 -7
- data/contrib/pre-commit +0 -18
data/contrib/pre-commit
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
# Code modified from: https://gist.github.com/hanloong/9849098
|
5
|
-
require 'English'
|
6
|
-
|
7
|
-
changed_files = `git diff --name-only --cached --diff-filter=ACM`.split(%r{\n})
|
8
|
-
changed_files = changed_files.select { |file_name|
|
9
|
-
File.extname(file_name) == '.rb'
|
10
|
-
}.join(' ')
|
11
|
-
|
12
|
-
system("bundle exec rubocop -a #{changed_files}") unless changed_files.empty?
|
13
|
-
|
14
|
-
if $CHILD_STATUS.to_s[-1].to_i.zero? && !changed_files.empty?
|
15
|
-
system("git add #{changed_files}")
|
16
|
-
end
|
17
|
-
|
18
|
-
exit $CHILD_STATUS.to_s[-1].to_i
|