data_formatter 0.0.7 → 0.0.8

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: fe125d488dcdb11f6b1873d521523b4d1a259ae3
4
- data.tar.gz: cd76b58b75c701e6f081de91bdb294b676487905
3
+ metadata.gz: 290247bac33b4717b193dbc226364f79def3a093
4
+ data.tar.gz: cd7001a31c087fb5d74af42a34f65eabbdbb4808
5
5
  SHA512:
6
- metadata.gz: 97164daf95aca3a9168588e0761b80857410654bd5833d60fe6ef3644b3e92ef15a31ee71f05ec86764af5485bbf98a59db5846e09bc0ea55c675ac223c70bf7
7
- data.tar.gz: 4482dd0af26b828eeb68629d8438889fbfaee00fce0149133cdbd0fbc81f60b03e1d7df96b6f038ecf7f0b85291ed6b461a7304e265a5ce1ed1760650b71cae8
6
+ metadata.gz: b2df565d9eb39cbfea9917c6661780160fa595053725a58707e5945459e75d99626ffce21b931157c5f0f06860d4d0c50f2ddeab357317b9167d41170c53af47
7
+ data.tar.gz: ce0338d6a19a209b54455468ff8adf7b4cdf9c80134cc57fec19c054bfbc019804404cd40f7bf7606d25fed92a71bd2d1e54b73d038b25dc685a4d9c77bc3092
@@ -10,7 +10,7 @@ module DataFormatter
10
10
  end
11
11
 
12
12
  def prepare(data)
13
- data.map { |v| Value.new(data: v, indentation: indentation) }
13
+ data.map { |v| Value.new(data: v, indentation: indentation, lang: lang) }
14
14
  end
15
15
 
16
16
  end
@@ -14,7 +14,7 @@ module DataFormatter
14
14
  format_number
15
15
  elsif is?(String)
16
16
  format_string
17
- elsif is?(Symbol)
17
+ elsif is?(Symbol)
18
18
  format_symbol
19
19
  elsif is?(TrueClass, FalseClass)
20
20
  format_boolean
@@ -44,7 +44,7 @@ module DataFormatter
44
44
  end
45
45
 
46
46
  def format_string
47
- escaped_value = { "\a" => '\a', "\b" => '\b', "\r" => '\r', "\n" => '\n', "\t" => '\t' }.inject(value) do |memo, pair|
47
+ escaped_value = { "\a" => '\a', "\b" => '\b', "\r" => '\r', "\n" => '\n', "\t" => '\t' }.inject(value) do |memo, pair|
48
48
  memo.gsub(pair[0], pair[1])
49
49
  end
50
50
  mark_up(data: escaped_value, surround: '"', kind: "string" )
@@ -63,7 +63,7 @@ module DataFormatter
63
63
  end
64
64
 
65
65
  def format_array
66
- ArrayCollection.new(data: value, indentation: indentation)
66
+ ArrayCollection.new(data: value, indentation: indentation, lang: lang)
67
67
  end
68
68
 
69
69
  def mark_up(args)
@@ -1,3 +1,3 @@
1
1
  module DataFormatter
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Starr Horne
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project:
156
- rubygems_version: 2.2.0
156
+ rubygems_version: 2.2.2
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Format data for display