minuteman 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minuteman (0.1.0)
4
+ minuteman (0.1.1)
5
5
  redis (~> 3.0.2)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -101,7 +101,7 @@ today_events.include?(User.all.map(&:id))
101
101
 
102
102
  ## Bitwise operations
103
103
 
104
- You can intersect sets using bitwise AND(`&`), OR(`|`), NOT(`-`) and XOR(`^`).
104
+ You can intersect sets using bitwise AND(`&`), OR(`|`), NOT(`~`, `-`) and XOR(`^`).
105
105
  Also you can use plus(`+`) and minus(`-`) operations.
106
106
 
107
107
  ```ruby
@@ -110,7 +110,10 @@ set1 - set2
110
110
  set1 & set2
111
111
  set1 | set2
112
112
  set1 ^ set2
113
- -set1
113
+
114
+ ~set1 \
115
+ ==> This are the same
116
+ -set1 /
114
117
  ```
115
118
 
116
119
  ### Example
@@ -28,6 +28,7 @@ class Minuteman
28
28
  def -@
29
29
  bit_operation("NOT", key)
30
30
  end
31
+ alias :~@ :-@
31
32
 
32
33
  # Public: Calculates the substract of one set to another
33
34
  #
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "minuteman"
3
- s.version = "0.1.0"
3
+ s.version = "0.1.1"
4
4
  s.summary = "Bit Analytics"
5
5
  s.description = "Fast and furious tracking system using Redis bitwise operations"
6
6
  s.authors = ["elcuervo"]
@@ -101,7 +101,7 @@ describe Minuteman do
101
101
  end
102
102
 
103
103
  it "should accept the NOT bitwise operations" do
104
- not_operation = -@week_events
104
+ not_operation = ~@week_events
105
105
 
106
106
  assert @week_events.include?(2)
107
107
  assert @week_events.include?(12)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minuteman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: