scratchpaper 0.0.4 → 0.0.5

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: 10326bd830ce693a323240ae3b9116354d4c4bf2
4
- data.tar.gz: 4acae9ef95fffbedadec1f482fd67f3b2f4ee055
3
+ metadata.gz: 31f7a8d09eca0b628cefef9d4662ed676425cb8a
4
+ data.tar.gz: f1d3a6b7966d633167266381535ddeea012c1ec6
5
5
  SHA512:
6
- metadata.gz: 77c18879e61223d39abb0c379fb7fd6fa8cdb9cbf612159683344de35a08272d7123eb702d2dd278518766a592dc6e40cd0633fbd14f71c6035f035eb1a3cedc
7
- data.tar.gz: 08c282ab4f5568b4878c5ddd9311d30dce03e80d81589119a7467513ceb322cd5426e8e8b2c0051cc93056f509d1846c39302b3dc9791a0ffc3410cdeadd3541
6
+ metadata.gz: 7a75196f7318d43ff3323810a4062ed76c1c6aa7820fa7bd8ac0f74dcda6554cfb9fc2d23a4c5016a2ae4f36bad1c7a0cab0527425c14931301279a4b37e33bc
7
+ data.tar.gz: 56553f1a656cec7adce67fbec3b48d55a4f56d85f2293711c2a831b4ff3c758d9970905e0b693a0ba9605cbf10557463795fd918a99f355b8e56c2c36514557e
data/lib/scratchpaper.rb CHANGED
@@ -26,7 +26,7 @@ module ScratchPaper
26
26
  def sr(data)
27
27
  case data
28
28
  when ActiveRecord::Relation
29
- st(data.map { |r| r.attributes.to_a })
29
+ st([data.attribute_names] + data.map { |r| data.attributes.values })
30
30
  when ActiveRecord::Base
31
31
  st(data.attributes.to_a)
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module ScratchPaper
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scratchpaper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Brown