structure 0.28.4 → 0.28.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/structure.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d77e0416536e453a05108b31134fd24008e49f0e
4
- data.tar.gz: e2122d7456a18be5adbef05cf999cc0b435f1e7a
3
+ metadata.gz: a158acd0d19fb497f1a4f27f61f06f948f93d0ac
4
+ data.tar.gz: 486e59f519adb28fd005fd0271674e37727399ff
5
5
  SHA512:
6
- metadata.gz: d5ced1b086d058b3959b87c4be06e0b3e71634c91beb10806bacb14d02ff956a532b0d1c42bb5915d601ac8b1865c6b0d7be6184a0d8491f02b8ef4ac52de56e
7
- data.tar.gz: 8085732ad84ef408c32eda27c35e4cadd25a11aaf919593cb93b26508ef91cb2efcf3f57ff1c22088b48735b89b715965644c22d53e3e88cec5c7ab001dab8fe
6
+ metadata.gz: 39eaa7d3d4dbb630c0df9f6c85ab7aea49ea6b6b42c492998899bad758df80bba5a5c6d53ac892c2ad7239889ec2024cb6df133e333807ece7275c8d269342c8
7
+ data.tar.gz: 8369d5557f02d08906f6632a604a3b37f25f8a4153156e958a63cfcc3db26221af95b4eb866c0c292dcfcdaa45f27ebe330dbfa4bfabd3200ea1eef7ef3fc801
data/structure.rb CHANGED
@@ -34,8 +34,8 @@ module Structure
34
34
  "#<#{class_name} #{
35
35
  attributes
36
36
  .map { |key, val|
37
- if val.is_a?(Array) && val.size > 3
38
- "#{key}=[#{val.take(3).map(&:inspect).join(', ')}...]"
37
+ if val.is_a?(Array)
38
+ "#{key}=[#{val.take(3).map(&:inspect).join(', ')}" + (val.size > 3 ? '...' : '') + ']'
39
39
  else
40
40
  "#{key}=#{val.inspect}"
41
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: structure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.4
4
+ version: 0.28.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-26 00:00:00.000000000 Z
11
+ date: 2014-08-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: me@hakanensari.com