formaticon 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b77d471969aa5783fb91c63a7ae181fbb2e08699
4
+ data.tar.gz: e3f59eff7b13ab90f99d65bfb7674b1f6949800f
5
+ SHA512:
6
+ metadata.gz: 462da5b0eae1ac5a41b99df76277918cb0c27de33edf91d3b640d19ac1ca8ed419f389929e3172205ab773f0b36fa619065581c7e6384cc83c54ec8788dc24ce
7
+ data.tar.gz: 94a66acdbe69db43e865975d6dee11f88872fa7938a3dab1c764219a2db5afb4e0824d4b45609d00cbf081a5dcd338c54b20c64d58ed1a0e8a9e4a3251db3287
data/CHANGELOG.md CHANGED
@@ -1,2 +1,5 @@
1
+ # v0.1.2
2
+ * Fixes for erlang conversion
3
+
1
4
  # v0.1.0
2
5
  * Initial release
data/README.md CHANGED
@@ -4,7 +4,7 @@ Stop re-inventing the configuration file wheel.
4
4
 
5
5
  ### Ini
6
6
 
7
- * `Formaticon::Helpers.ruby_to_ini(hash)`
7
+ * `Formaticon.ruby_to_ini(hash)`
8
8
 
9
9
  Original ruby:
10
10
 
@@ -38,7 +38,7 @@ bing = "bang"
38
38
 
39
39
  ### Xml
40
40
 
41
- * `Formaticon::Helpers.ruby_to_xml(hash)`
41
+ * `Formaticon.ruby_to_xml(hash)`
42
42
 
43
43
  Original ruby:
44
44
 
@@ -76,7 +76,7 @@ Formatted output:
76
76
 
77
77
  ### Erlang
78
78
 
79
- * `Formaticon::Helpers.ruby_to_erl(hash)`
79
+ * `Formaticon.ruby_to_erl(hash)`
80
80
 
81
81
  Original ruby:
82
82
 
@@ -35,7 +35,7 @@ module Formaticon
35
35
 
36
36
  def ruby
37
37
  data = erl_string.dup
38
- data.scan(/('?[A-Za-z0-9_\-@\.]+'?)/).flatten.sort_by(&:length).reverse.each do |string|
38
+ data.scan(/('?[A-Za-z0-9_\-@\.]+'?)/).flatten.sort_by(&:length).reverse.uniq.each do |string|
39
39
  unless(string.include?("'"))
40
40
  data.gsub!(/([^A-Za-z0-9_\-@\.])#{Regexp.escape(string)}/, "\\1'#{string}'")
41
41
  end
@@ -1,4 +1,4 @@
1
1
  module Formaticon
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.1.0')
3
+ VERSION = Gem::Version.new('0.1.2')
4
4
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formaticon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chris Roberts
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-08-18 00:00:00.000000000 Z
11
+ date: 2014-09-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: xml-simple
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  description: Helpers for generating configurations
@@ -33,44 +30,43 @@ executables: []
33
30
  extensions: []
34
31
  extra_rdoc_files: []
35
32
  files:
33
+ - CHANGELOG.md
34
+ - CONTRIBUTING.md
35
+ - Gemfile
36
+ - Gemfile.lock
37
+ - LICENSE
38
+ - README.md
39
+ - formaticon.gemspec
36
40
  - lib/formaticon.rb
41
+ - lib/formaticon/base_converter.rb
37
42
  - lib/formaticon/converters.rb
38
- - lib/formaticon/converters/xml.rb
39
- - lib/formaticon/converters/ini.rb
40
43
  - lib/formaticon/converters/erlang.rb
41
- - lib/formaticon/version.rb
44
+ - lib/formaticon/converters/ini.rb
45
+ - lib/formaticon/converters/xml.rb
42
46
  - lib/formaticon/helpers.rb
43
- - lib/formaticon/base_converter.rb
44
- - formaticon.gemspec
45
- - Gemfile
46
- - README.md
47
- - LICENSE
48
- - CHANGELOG.md
49
- - CONTRIBUTING.md
50
- - Gemfile.lock
47
+ - lib/formaticon/version.rb
51
48
  homepage: http://github.com/chrisroberts/formaticon
52
49
  licenses: []
50
+ metadata: {}
53
51
  post_install_message:
54
52
  rdoc_options: []
55
53
  require_paths:
56
54
  - lib
57
55
  required_ruby_version: !ruby/object:Gem::Requirement
58
- none: false
59
56
  requirements:
60
- - - ! '>='
57
+ - - ">="
61
58
  - !ruby/object:Gem::Version
62
59
  version: '0'
63
60
  required_rubygems_version: !ruby/object:Gem::Requirement
64
- none: false
65
61
  requirements:
66
- - - ! '>='
62
+ - - ">="
67
63
  - !ruby/object:Gem::Version
68
64
  version: '0'
69
65
  requirements: []
70
66
  rubyforge_project:
71
- rubygems_version: 1.8.24
67
+ rubygems_version: 2.2.2
72
68
  signing_key:
73
- specification_version: 3
69
+ specification_version: 4
74
70
  summary: Configuration format helper
75
71
  test_files: []
76
72
  has_rdoc: