rsync_config 0.1.2 → 0.1.3

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: 4694d08c6a2074063c60f16d51af74575a97a13d
4
- data.tar.gz: d0a1c0a7a485a617f95b2cc08465c253b6f34f04
3
+ metadata.gz: 4cd270330ad8254f82aad7aac5675aa8f4307634
4
+ data.tar.gz: df548daca589d99d58be213addb1fbb901e10496
5
5
  SHA512:
6
- metadata.gz: fd390792fbd5197e952d53f3cce882879c654bb0bad8ba97124fe98b91f0279e8ec063c222002663bc1eb30b9a786c30813e74d3d0e5202ec8949d587dc8d432
7
- data.tar.gz: 327311fb0616a38fc675723b7492c743fed1a4f116200806cb0bf194218ea60ecc0dbe6e0c7b0b89218aaf7ba94e55e558a66f2252b0562816b087d116b89a09
6
+ metadata.gz: ed121211361350f2146251f007d5585499809817aed4c6b8ba2523f268010b50767fb85db35365e055797ee21029273c809d0f8ca6ea008be07bfc588438d928
7
+ data.tar.gz: 268c974d7e770e068874b69dc665f3559c797fc9896ce80a48c33c29bdc39022866b0da47ada0731642e53775e219cb1c5f92d35a79db79c7fd683996639ebeb
@@ -26,6 +26,11 @@ module RsyncConfig
26
26
  end
27
27
 
28
28
  rule module_section
29
+ module_definition module_section
30
+ / module_definition
31
+ end
32
+
33
+ rule module_definition
29
34
  module_header module_body
30
35
  end
31
36
 
@@ -1,3 +1,3 @@
1
1
  module RsyncConfig
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -243,4 +243,18 @@ EOL
243
243
  end
244
244
  end
245
245
 
246
+ def test_failing_to_parse_bug_2
247
+ content = <<EOL
248
+ [TEST0001]
249
+ uid = user
250
+ [TEST0002]
251
+ uid = user
252
+ EOL
253
+
254
+ content.strip!
255
+
256
+ assert_nothing_raised do
257
+ RsyncConfig.parse content
258
+ end
259
+ end
246
260
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsync_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Bodi