data_formatter 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/data_formatter/array_collection.rb +2 -1
- data/lib/data_formatter/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da1e479aaedf8a76b810a3fd99e46b11e6e840aa
|
4
|
+
data.tar.gz: 7c848b7652555805dfe03180edf6e26f8a969f88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7384b6635376988705b67dbf14e38c001eac1b4bc776807f246c6927191f04a5c33ea13a48dfb9bdd8fadda9d53207d782d05707a6db554a6d2aeea72006c9e0
|
7
|
+
data.tar.gz: d0c65cb7270ddd660b461867fe4b04306b92220f41e0bcc33b52f1b333358b60fe1258217e6a6bf117037efa8a4a55ff00a93fd34449728ddb98320d90e1b39f
|
@@ -1,5 +1,6 @@
|
|
1
1
|
module DataFormatter
|
2
2
|
class ArrayCollection < Collection
|
3
|
+
Limit = 1000
|
3
4
|
|
4
5
|
def open
|
5
6
|
@open ||= Tag.new(css_class: "bracket", content: "[")
|
@@ -10,7 +11,7 @@ module DataFormatter
|
|
10
11
|
end
|
11
12
|
|
12
13
|
def prepare(data)
|
13
|
-
data.map { |v| Value.new(data: v, indentation: indentation, lang: lang) }
|
14
|
+
data.first(Limit).map { |v| Value.new(data: v, indentation: indentation, lang: lang) }
|
14
15
|
end
|
15
16
|
|
16
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Starr Horne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -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.
|
156
|
+
rubygems_version: 2.4.5.1
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: Format data for display
|