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'
|
group :development, :test do
|
||||||
gem 'rspec-expectations', "2.11.3"
|
gem 'rake', :require => false
|
||||||
gem 'mocha', "0.10.5"
|
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']
|
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
||||||
gem 'puppet', puppetversion, :require => false
|
gem 'puppet', puppetversion, :require => false
|
||||||
|
else
|
||||||
|
gem 'puppet', :require => false
|
||||||
end
|
end
|
||||||
|
|
||||||
# vim:ft=ruby
|
# 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
|
class IniFile
|
||||||
|
|
||||||
@@SECTION_REGEX = /^\s*\[([\w\d\.\\\/\-\:]+)\]\s*$/
|
@@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*$/
|
@@COMMENTED_SETTING_REGEX = /^(\s*)[#;]+(\s*)([\w\d\.\\\/\-]+)([ \t]*=[ \t]*)([\S\s]*?)\s*$/
|
||||||
|
|
||||||
def initialize(path, key_val_separator = ' = ')
|
def initialize(path, key_val_separator = ' = ')
|
||||||
|
|
Loading…
Reference in a new issue