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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/formaticon/converters/erlang.rb +3 -1
- data/lib/formaticon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4e99e6b067e5400762af44c1d3fa1cf78817038
|
4
|
+
data.tar.gz: 289fdba23829938684da136cf9d5c5acd5bd4ec0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33c924196cfa6733cb0203c414e757796b6d1693c3a9698c3cd89d10045d1b1a901b904aed14130718a2d31ddb4ce193c1a84fa1f0a66f4995abd56e959d0d08
|
7
|
+
data.tar.gz: e47cc96ed651b45e261d0900150053e3b668bd9e3b09d1e14d75ba744c5ab4a5437daedeb0c81224e9df97b3ef1b1de86550be037cd20a8789567c4f46a9fc1b
|
data/CHANGELOG.md
CHANGED
@@ -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/, ''))
|
data/lib/formaticon/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-simple
|