prisma 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/prisma.rb +0 -1
  2. data/lib/prisma/group.rb +1 -2
  3. metadata +2 -18
data/lib/prisma.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'rails/all'
2
2
  require 'redis-namespace'
3
- require 'bitset'
4
3
 
5
4
  require 'prisma/group'
6
5
  require 'prisma/railtie'
data/lib/prisma/group.rb CHANGED
@@ -41,8 +41,7 @@ module Prisma
41
41
  when :bitmap
42
42
  bitstring = Prisma.redis.get(Prisma.redis_key(name, date)) || ''
43
43
  string = bitstring.unpack('b*').first
44
- bitmap = Bitset.from_s(string)
45
- data[date] = bitmap.cardinality
44
+ data[date] = string.count('1')
46
45
  end
47
46
  end
48
47
  data
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.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -91,22 +91,6 @@ dependencies:
91
91
  - - ~>
92
92
  - !ruby/object:Gem::Version
93
93
  version: 0.1.2
94
- - !ruby/object:Gem::Dependency
95
- name: bitset
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: 0.1.0
102
- type: :runtime
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: 0.1.0
110
94
  - !ruby/object:Gem::Dependency
111
95
  name: rspec-rails
112
96
  requirement: !ruby/object:Gem::Requirement
@@ -352,7 +336,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
352
336
  version: '0'
353
337
  segments:
354
338
  - 0
355
- hash: 2186605231112697474
339
+ hash: -3103978242459801241
356
340
  required_rubygems_version: !ruby/object:Gem::Requirement
357
341
  none: false
358
342
  requirements: