Skip to content

Commit dfb4c68

Browse files
authored
Merge pull request #744 from rodjek/remove_string_monkeypatches
Remove monkeypatches to implement String#%
2 parents a45bf5c + e33752c commit dfb4c68

File tree

5 files changed

+0
-84
lines changed

5 files changed

+0
-84
lines changed

lib/puppet-lint.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
require 'puppet-lint/data'
99
require 'puppet-lint/checks'
1010
require 'puppet-lint/bin'
11-
require 'puppet-lint/monkeypatches'
1211

1312
class PuppetLint::NoCodeError < StandardError; end
1413
class PuppetLint::NoFix < StandardError; end

lib/puppet-lint/monkeypatches.rb

Lines changed: 0 additions & 2 deletions
This file was deleted.

lib/puppet-lint/monkeypatches/string_percent.rb

Lines changed: 0 additions & 56 deletions
This file was deleted.

lib/puppet-lint/monkeypatches/string_prepend.rb

Lines changed: 0 additions & 13 deletions
This file was deleted.

spec/puppet-lint_spec.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,6 @@
88
expect(subject.code).to_not be_nil
99
end
1010

11-
# rubocop:disable Style/FormatString
12-
it 'should have support for % with a hash' do
13-
string = 'replace %{hash}' % { :hash => 'replaced' }
14-
expect(string).to match('replace replaced')
15-
end
16-
17-
it 'should not break regular % support' do
18-
string = 'replace %s %s' % %w[get replaced]
19-
expect(string).to match('replace get replaced')
20-
end
21-
# rubocop:enable Style/FormatString
22-
2311
it 'should return empty manifest when empty one given as the input' do
2412
subject.code = ''
2513
subject.run

0 commit comments

Comments
 (0)