iniparse 1.4.1 → 1.4.2
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 +1 -1
- data/lib/iniparse/document.rb +8 -0
- 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: 208591a4d54a9cd42aa9d47a5a4ed8ebca97723e
|
4
|
+
data.tar.gz: 9c351364ea35799017d026dfd77d522e3e3bfc0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3a507a45fd4a0f8191999fc688acfe8b759ec9e2885aef775c20de1a94114549753d5d2153694e93eb4aa74c0467cfb74e51bebc902fd982ddcd3307e6fc783
|
7
|
+
data.tar.gz: 86ebaa68bddf947264e7359d137d758660de3d880f7c94728244d82a67782434b04918fad22b679f225a6dcde5e7dc14b3a2b08ccb8f87cd0f23d0d7c2fdbe70
|
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-
|
15
|
+
s.version = '1.4.2'
|
16
|
+
s.date = '2015-12-03'
|
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
data/lib/iniparse/document.rb
CHANGED
@@ -32,6 +32,14 @@ module IniParse
|
|
32
32
|
@lines[key.to_s]
|
33
33
|
end
|
34
34
|
|
35
|
+
# Returns the section identified by +key+.
|
36
|
+
#
|
37
|
+
# If there is no Section with the given key it will be created.
|
38
|
+
#
|
39
|
+
def section(key)
|
40
|
+
@lines[key.to_s] ||= Lines::Section.new(key.to_s)
|
41
|
+
end
|
42
|
+
|
35
43
|
# Deletes the section whose name matches the given +key+.
|
36
44
|
#
|
37
45
|
# Returns the document.
|
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.2
|
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-
|
11
|
+
date: 2015-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|