iniparse 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/iniparse.gemspec +2 -2
  3. data/lib/iniparse.rb +3 -3
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df89c5288250ac2060dc5fff2d55a8f58ed150ec
4
- data.tar.gz: fb378ab6a528d5c718a39b24b1429872a6724a25
3
+ metadata.gz: 7c1c931ade267961e7c0dab6b062728ee98d49d8
4
+ data.tar.gz: d0126c8292915eedea7e1ea3aab1b67dafa0e9f3
5
5
  SHA512:
6
- metadata.gz: aa5111d419e946cfdab3bc81dd811461594e94e44d2664b891d3271b514d65f6c0475daceef40d56bcf9232808d14481b3e240f0bf0eb63c822fdf0aaed60387
7
- data.tar.gz: c6f7dd510ad5beba9120abae324c1ebc7429ae827b046c96a145b8d7c790329c80d2d91d20829c292753aa14ce5faf95c9500554410a188c7dd9024e8b07df7a
6
+ metadata.gz: 7831a3090756a11a7d6c467527c2d76b12b0d48a5cd9139e8a59d022a5f7883de306438b8074360e4cf968a43abecec1b509855cf35ee5aa52d0794731557081
7
+ data.tar.gz: 9d6ec8317e4fc1006f85a03ba1cafc0063ed1ea05d8f66ea9b45179ff72044b74414047c2a0e51be50217beaa6966d1436a77309a7e59babe01c34107f47bc5a
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
12
12
  ## If your rubyforge_project name is different, then edit it and comment out
13
13
  ## the sub! line in the Rakefile
14
14
  s.name = 'iniparse'
15
- s.version = '1.4.0'
16
- s.date = '2015-04-06'
15
+ s.version = '1.4.1'
16
+ s.date = '2015-08-04'
17
17
  s.rubyforge_project = 'iniparse'
18
18
 
19
19
  s.summary = 'A pure Ruby library for parsing INI documents.'
@@ -7,7 +7,7 @@ require File.join(dir, 'lines')
7
7
  require File.join(dir, 'parser')
8
8
 
9
9
  module IniParse
10
- VERSION = '1.4.0'
10
+ VERSION = '1.4.1'
11
11
 
12
12
  # A base class for IniParse errors.
13
13
  class IniParseError < StandardError; end
@@ -36,7 +36,7 @@ module IniParse
36
36
  # IniParse::Document
37
37
  #
38
38
  def parse(source)
39
- IniParse::Parser.new(source.gsub("\\\n", '')).parse
39
+ IniParse::Parser.new(source.gsub(/(?<!\\)\\\n/, '')).parse
40
40
  end
41
41
 
42
42
  # Opens the file at +path+, reads and parses it's contents.
@@ -48,7 +48,7 @@ module IniParse
48
48
  # IniParse::Document
49
49
  #
50
50
  def open(path)
51
- document = IniParse::Parser.new(File.read(path)).parse
51
+ document = parse(File.read(path))
52
52
  document.path = path
53
53
  document
54
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iniparse
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-06 00:00:00.000000000 Z
11
+ date: 2015-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec