iniparse 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/iniparse.gemspec +2 -2
- data/lib/iniparse.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c1c931ade267961e7c0dab6b062728ee98d49d8
|
4
|
+
data.tar.gz: d0126c8292915eedea7e1ea3aab1b67dafa0e9f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7831a3090756a11a7d6c467527c2d76b12b0d48a5cd9139e8a59d022a5f7883de306438b8074360e4cf968a43abecec1b509855cf35ee5aa52d0794731557081
|
7
|
+
data.tar.gz: 9d6ec8317e4fc1006f85a03ba1cafc0063ed1ea05d8f66ea9b45179ff72044b74414047c2a0e51be50217beaa6966d1436a77309a7e59babe01c34107f47bc5a
|
data/iniparse.gemspec
CHANGED
@@ -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.
|
16
|
-
s.date = '2015-04
|
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.'
|
data/lib/iniparse.rb
CHANGED
@@ -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.
|
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(
|
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 =
|
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.
|
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
|
11
|
+
date: 2015-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|