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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c1c931ade267961e7c0dab6b062728ee98d49d8
4
- data.tar.gz: d0126c8292915eedea7e1ea3aab1b67dafa0e9f3
3
+ metadata.gz: 208591a4d54a9cd42aa9d47a5a4ed8ebca97723e
4
+ data.tar.gz: 9c351364ea35799017d026dfd77d522e3e3bfc0b
5
5
  SHA512:
6
- metadata.gz: 7831a3090756a11a7d6c467527c2d76b12b0d48a5cd9139e8a59d022a5f7883de306438b8074360e4cf968a43abecec1b509855cf35ee5aa52d0794731557081
7
- data.tar.gz: 9d6ec8317e4fc1006f85a03ba1cafc0063ed1ea05d8f66ea9b45179ff72044b74414047c2a0e51be50217beaa6966d1436a77309a7e59babe01c34107f47bc5a
6
+ metadata.gz: b3a507a45fd4a0f8191999fc688acfe8b759ec9e2885aef775c20de1a94114549753d5d2153694e93eb4aa74c0467cfb74e51bebc902fd982ddcd3307e6fc783
7
+ data.tar.gz: 86ebaa68bddf947264e7359d137d758660de3d880f7c94728244d82a67782434b04918fad22b679f225a6dcde5e7dc14b3a2b08ccb8f87cd0f23d0d7c2fdbe70
@@ -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.1'
16
- s.date = '2015-08-04'
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.'
@@ -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.1'
10
+ VERSION = '1.4.2'
11
11
 
12
12
  # A base class for IniParse errors.
13
13
  class IniParseError < StandardError; end
@@ -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.1
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-08-04 00:00:00.000000000 Z
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec