goldmine 1.1.0 → 1.1.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: 2da17da9ef071e7861b17cce9d420675d9a33113
4
- data.tar.gz: e5694ec828554a1e0330256e0cb203bbca7004fb
3
+ metadata.gz: 7421f1700877300625859b984fbc83837f4849d5
4
+ data.tar.gz: bd42c35da85afd81735aa03d211c64483f7a2b47
5
5
  SHA512:
6
- metadata.gz: bb3e37ca75c3dda52415bc671f2e334db814b2755d639654c37b72a69a2c1f606cc9910407d524b5abbd043319de776fb35d284df8945bfabbc6153a42e5b7c3
7
- data.tar.gz: 76cc1f317fbde8bdddf364ed3ea7b9734c2df8700dc80beecfb1457118f41aa31bc3ceddceb05814a77344260a56a49526e04d9e65763730a6e2e0469ec60579
6
+ metadata.gz: a9f5bfee12c8f9fb4e67fe88e442ecde36028028e6381716b0dde0a387770b7bf3fe14c5b696200eb6948a2d699018f26e39348a1c57aef1e5f6f650fb21237c
7
+ data.tar.gz: 67a6fd81116bd17f4601b51c363919b8d5b8b1537b691d90c6e9a5d2a58fef97dbc9b05e620de610212c704af0addc921a9116101cb4eb15aa7584f1066669c7
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- goldmine (1.1.0)
4
+ goldmine (1.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -151,7 +151,7 @@ This feature is useful when you need to do things like export to CSV or build us
151
151
  mined.to_a
152
152
  # result:
153
153
  [
154
- ["Name has an 'e'", ">= 21 years old"],
154
+ ["Name has an 'e'", ">= 21 years old", "total"],
155
155
  [false, true, 2],
156
156
  [true, true, 2],
157
157
  [true, false, 1]
@@ -86,7 +86,8 @@ module Goldmine
86
86
  row << pair.last.size
87
87
  end
88
88
  end
89
- rows.insert 0, pivoted_keys
89
+ header = pivoted_keys.map(&:to_s) << "total"
90
+ rows.insert 0, header
90
91
  rows
91
92
  end
92
93
 
@@ -1,3 +1,3 @@
1
1
  module Goldmine
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -67,7 +67,7 @@ class TestGoldmine < PryTest::Test
67
67
  record[:age] >= 21
68
68
  end
69
69
 
70
- expected = [["Name has an 'e'", ">= 21 years old"], [false, true, 2], [true, true, 2], [true, false, 1]]
70
+ expected = [["Name has an 'e'", ">= 21 years old", "total"], [false, true, 2], [true, true, 2], [true, false, 1]]
71
71
  assert mined.to_a == expected
72
72
  end
73
73
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goldmine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins