parse_to_hash 0.0.1 → 0.0.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: e2af9bc9e0c1813b970ff923277ce2f445ea210f
4
- data.tar.gz: 16d673fc13c853bbb7556f313dcd35a5592437d7
3
+ metadata.gz: 2c16d51456bfe15ec044b3b07eead91e8abc93bb
4
+ data.tar.gz: 245f8a4e4483bfb44c0fa1dedd321dd0a9d2982e
5
5
  SHA512:
6
- metadata.gz: d594d420c4b89cb18a3ac6fe3918fa4b70d1eb08299fc01c73027949bff9926fd07f6ac697a9c6960d632aba852835dd9029848b698d94a90552183af49829d4
7
- data.tar.gz: 89db7832616797b916e7a721aa69aa299936dfc91ff6a4cea006992723abdfeaece02f073f0208696b5f42db3ca6cfac12b5fa40d653a6fbc68722ede8f9bba5
6
+ metadata.gz: 3c64e69e2d7deef83d86bd245cef494bfcb1330ffe14824dc5b7e15b006e07fce25f3d7bd44155b1d532b9bf3bb69f6b0ad3ef2a19216f4e5dda040d4e4fccbf
7
+ data.tar.gz: afd40a5812c99635c0d592b2243de3136f8b1f362306e4c172bb1f5b63ecc2d06b792bde9e7d9ee5da22a02f4bd5dd3349b546787a5000a4d9c94b89468eedec
data/lib/parse_to_hash.rb CHANGED
@@ -6,7 +6,7 @@ module ParseToHash
6
6
  header = []
7
7
  input.each_line do |line|
8
8
  next if line =~ /^\s*$/
9
- next if line =~ /^\s#/
9
+ next if line =~ /^\s*#/
10
10
  if header.empty?
11
11
  header = line.gsub(/#.*$/m, '').gsub(/\s+/m, ' ').strip.split(' ').map { |i| i.to_sym }
12
12
  else
@@ -1,3 +1,3 @@
1
1
  module ParseToHash
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parse_to_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fraser Scott
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-13 00:00:00.000000000 Z
11
+ date: 2015-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler