Merge pull request #53 from apenney/51-ivanov-aleksey
Replacement for #51
This commit is contained in:
commit
4304dee233
3 changed files with 12 additions and 5 deletions
14
Gemfile
14
Gemfile
|
@ -1,11 +1,17 @@
|
|||
source :rubygems
|
||||
source 'https://rubygems.org'
|
||||
|
||||
gem 'puppetlabs_spec_helper'
|
||||
gem 'rspec-expectations', "2.11.3"
|
||||
gem 'mocha', "0.10.5"
|
||||
group :development, :test do
|
||||
gem 'rake', :require => false
|
||||
gem 'rspec-puppet', :require => false
|
||||
gem 'puppetlabs_spec_helper', :require => false
|
||||
gem 'simplecov', :require => false
|
||||
gem 'pry', :require => false
|
||||
end
|
||||
|
||||
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
||||
gem 'puppet', puppetversion, :require => false
|
||||
else
|
||||
gem 'puppet', :require => false
|
||||
end
|
||||
|
||||
# vim:ft=ruby
|
||||
|
|
1
Rakefile
Normal file
1
Rakefile
Normal file
|
@ -0,0 +1 @@
|
|||
require 'puppetlabs_spec_helper/rake_tasks'
|
|
@ -6,7 +6,7 @@ module Util
|
|||
class IniFile
|
||||
|
||||
@@SECTION_REGEX = /^\s*\[([\w\d\.\\\/\-\:]+)\]\s*$/
|
||||
@@SETTING_REGEX = /^(\s*)([\w\d\.\\\/\-]+)([ \t]*=[ \t]*)([\S\s]*?)\s*$/
|
||||
@@SETTING_REGEX = /^(\s*)([\w\d\.\\\/\-\s]*[\w\d\.\\\/\-])([ \t]*=[ \t]*)([\S\s]*?)\s*$/
|
||||
@@COMMENTED_SETTING_REGEX = /^(\s*)[#;]+(\s*)([\w\d\.\\\/\-]+)([ \t]*=[ \t]*)([\S\s]*?)\s*$/
|
||||
|
||||
def initialize(path, key_val_separator = ' = ')
|
||||
|
|
Loading…
Reference in a new issue