formaticon 0.1.2 → 0.1.4

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: b77d471969aa5783fb91c63a7ae181fbb2e08699
4
- data.tar.gz: e3f59eff7b13ab90f99d65bfb7674b1f6949800f
3
+ metadata.gz: a4e99e6b067e5400762af44c1d3fa1cf78817038
4
+ data.tar.gz: 289fdba23829938684da136cf9d5c5acd5bd4ec0
5
5
  SHA512:
6
- metadata.gz: 462da5b0eae1ac5a41b99df76277918cb0c27de33edf91d3b640d19ac1ca8ed419f389929e3172205ab773f0b36fa619065581c7e6384cc83c54ec8788dc24ce
7
- data.tar.gz: 94a66acdbe69db43e865975d6dee11f88872fa7938a3dab1c764219a2db5afb4e0824d4b45609d00cbf081a5dcd338c54b20c64d58ed1a0e8a9e4a3251db3287
6
+ metadata.gz: 33c924196cfa6733cb0203c414e757796b6d1693c3a9698c3cd89d10045d1b1a901b904aed14130718a2d31ddb4ce193c1a84fa1f0a66f4995abd56e959d0d08
7
+ data.tar.gz: e47cc96ed651b45e261d0900150053e3b668bd9e3b09d1e14d75ba744c5ab4a5437daedeb0c81224e9df97b3ef1b1de86550be037cd20a8789567c4f46a9fc1b
@@ -1,3 +1,6 @@
1
+ # v0.1.4
2
+ * Update some parsing rules
3
+
1
4
  # v0.1.2
2
5
  * Fixes for erlang conversion
3
6
 
@@ -36,10 +36,12 @@ module Formaticon
36
36
  def ruby
37
37
  data = erl_string.dup
38
38
  data.scan(/('?[A-Za-z0-9_\-@\.]+'?)/).flatten.sort_by(&:length).reverse.uniq.each do |string|
39
- unless(string.include?("'"))
39
+ unless(string.include?("'") || string.include?("@"))
40
40
  data.gsub!(/([^A-Za-z0-9_\-@\.])#{Regexp.escape(string)}/, "\\1'#{string}'")
41
41
  end
42
42
  end
43
+ data.gsub!('<<', '')
44
+ data.gsub!('>>', '')
43
45
  data.gsub!('{', 'Hash[')
44
46
  data.gsub!('}', ']')
45
47
  self.instance_eval(data.gsub(/\s/, ''))
@@ -1,4 +1,4 @@
1
1
  module Formaticon
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.1.2')
3
+ VERSION = Gem::Version.new('0.1.4')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formaticon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-11 00:00:00.000000000 Z
11
+ date: 2014-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-simple