ruby_reportable 0.4.0 → 0.4.1

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: 105e1e74042eaae1eaa26a163b12e78fd79212fe
4
- data.tar.gz: 3f617be2415d29d5d1df070a87acf616faa06548
3
+ metadata.gz: 536fc58a8672343c53cbe20116d38f21a88e12b7
4
+ data.tar.gz: d4569ed9acd976c4f77572a22c02c22f644615ec
5
5
  SHA512:
6
- metadata.gz: 99b6e66e7c4b6bb142c24abc7218d28b7668c8f927d0a03d736f57abe6d0dc9867eff501a45c9fa66d2111c6ce90c2d4f4ca0e35750601bf2683cf53254611e6
7
- data.tar.gz: 371b88318c0cd2d1d2ba3922ef2beb03178a6a0a6684bf262ed9cc8e95dc0cdc5e5a06dc193ff443bda10767d79ad80d62e49a26039714d80117078dc52a53ce
6
+ metadata.gz: ed6b34325043147e672966a1eb10db12afe6563787b62157f0fe2f7c5ae06f330183efc2aaac4fcb76a9b254879ed8d2ea9636acb15214d9d0d85a2842ff3001
7
+ data.tar.gz: dd3543f110217752f0415a7bc2003c9b894299b2839f7640d1545b531ee6702e2479050e97e9cfa13ff1b32d78701c2a4ea27a36ddff05c7748340fe929d850f
@@ -156,7 +156,9 @@ module RubyReportable
156
156
  if sort.to_s.empty?
157
157
  data
158
158
  else
159
- data.sort_by {|element| element[sort]}
159
+ sort = [sort] unless sort.is_a?(Array)
160
+
161
+ data.sort_by {|element| sort.map {|column| element[column]} }
160
162
  end
161
163
  end
162
164
 
@@ -1,3 +1,3 @@
1
1
  module RubyReportable
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_reportable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John 'asceth' Long
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-25 00:00:00.000000000 Z
11
+ date: 2013-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec