prisma 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/prisma/group.rb +2 -2
  2. metadata +2 -2
@@ -96,8 +96,8 @@ module Prisma
96
96
 
97
97
  def bitmap_or_grouped_data(data)
98
98
  data = data.map do |date, values|
99
- value = values.map { |value| value.second.to_i }.inject(:|)
100
- value = value.to_s.count('1')
99
+ value = values.map { |value| value.second.to_i(2) }.inject(:|)
100
+ value = value.to_s(2).count('1')
101
101
  [date, value]
102
102
  end
103
103
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prisma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -337,7 +337,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
337
337
  version: '0'
338
338
  segments:
339
339
  - 0
340
- hash: -2365970208530084805
340
+ hash: -3924350062928356374
341
341
  required_rubygems_version: !ruby/object:Gem::Requirement
342
342
  none: false
343
343
  requirements: