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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4aae873857dde0e2bb516991464e98b147eec015
4
- data.tar.gz: a64b89595ccb80617899535e7cb9ed48626b1dc8
3
+ metadata.gz: da1e479aaedf8a76b810a3fd99e46b11e6e840aa
4
+ data.tar.gz: 7c848b7652555805dfe03180edf6e26f8a969f88
5
5
  SHA512:
6
- metadata.gz: b0ecf191b2b6153a7d0acc4da832e17c1bd43e65920a6e86ea3a214ff153aef63a2c28806b601615a1d1e68ec09443290472fec065923312cb052f35d637f988
7
- data.tar.gz: cc68d8c818f4b411ce60ddf9caeb616454cc07da37da45fcaf45aa3ed3a8f69a8bcd61da48732a9c1e3c85f03a7d540283c8d4f58e34544ad59a0edcb18dfd03
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
@@ -1,3 +1,3 @@
1
1
  module DataFormatter
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  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.9
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: 2015-07-20 00:00:00.000000000 Z
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.2.2
156
+ rubygems_version: 2.4.5.1
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Format data for display