inifile 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,9 @@
1
- == 0.4.0 / 2011-02-
1
+ == 0.4.1 / 2011-02-22
2
+
3
+ Bug Fixes
4
+ - Empty quotes [Steffen Beyer]
5
+
6
+ == 0.4.0 / 2011-02-15
2
7
 
3
8
  Enhancements
4
9
  - Added multiline support [André Gawron]
@@ -12,7 +12,7 @@ class IniFile
12
12
 
13
13
  # :stopdoc:
14
14
  class Error < StandardError; end
15
- VERSION = '0.4.0'
15
+ VERSION = '0.4.1'
16
16
  # :startdoc:
17
17
 
18
18
  #
@@ -54,7 +54,7 @@ class IniFile
54
54
  @rgxp_section = %r/\A\s*\[([^\]]+)\]/o
55
55
  @rgxp_param = %r/\A([^#{@param}]+)#{@param}\s*"?([^"]*)"?\z/
56
56
 
57
- @rgxp_multiline_start = %r/\A([^#{@param}]+)#{@param}\s*"+([^"]*)?\z/
57
+ @rgxp_multiline_start = %r/\A([^#{@param}]+)#{@param}\s*"([^"]*)?\z/
58
58
  @rgxp_multiline_value = %r/\A([^"]*)\z/
59
59
  @rgxp_multiline_end = %r/\A([^"]*)"\z/
60
60
 
@@ -15,3 +15,7 @@ other = "stuff"
15
15
  four = "hello
16
16
  multiple
17
17
  multilines"
18
+
19
+ [empty_lines]
20
+ empty = ""
21
+ not_empty=full
@@ -345,6 +345,9 @@ class TestIniFile < Test::Unit::TestCase
345
345
  expected = {"four" => "hello\nmultiple\nmultilines"}
346
346
  assert_equal expected, multiple
347
347
 
348
+ multiple = ini_file['empty_lines']
349
+ expected = {'empty' => '', 'not_empty' => 'full'}
350
+
348
351
  end
349
352
 
350
353
  if RUBY_VERSION >= '1.9'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inifile
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tim Pease
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-15 00:00:00 -07:00
18
+ date: 2011-02-22 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency