ablab 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ablab.rb +1 -1
  3. data/lib/ablab/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0ea8de68dd059dc93af4147afa564a21013d2c3
4
- data.tar.gz: 08b1cb3ab370d6b1d911c87f2fa17aadacbe30d8
3
+ metadata.gz: 82d293eaf0749d76650522dc97506844134cee88
4
+ data.tar.gz: a84b487a47f41785c8f201f56e440520fc29b7d0
5
5
  SHA512:
6
- metadata.gz: 4192a527df2c3df978db666bacebe20e94b064c9fb8fd000dcf439381e76e0fd15fbacf55a71f8e6706ab00b306811cc6f78bfda86a97ab71f9583a8a26119b9
7
- data.tar.gz: bee0012554b0699013555eb85361c5c042fa12427e8da40f4b9fd095a64541c72bccde8598ee5f5c02d92ac5da2090b7d7392e363e852ebc9b7033b327d787d2
6
+ metadata.gz: 12a6ccf9c1c0c2850ca5dda109b3987e3112c657a1c9c6ac7778f499f68e394573028dbcfe45980f9189c7565353faf539f3ed964463be17924a5ea130f413d9
7
+ data.tar.gz: c163912d11582939e84776107a2ed1e735465bf121764f1a37f69fcb7e186cc09469067df486d98fea906b1a80c5a9f6d61cfe56422a93fc36677ea236050bfe
@@ -114,7 +114,7 @@ module Ablab
114
114
  def draw
115
115
  sid_hash = Digest::SHA1.hexdigest(session_id)[-8..-1].to_i(16)
116
116
  exp_hash = Digest::SHA1.hexdigest(experiment.name.to_s)[-8..-1].to_i(16)
117
- sid_hash ^ exp_hash % 1000
117
+ (sid_hash ^ exp_hash) % 1000
118
118
  end
119
119
  end
120
120
 
@@ -1,3 +1,3 @@
1
1
  module Ablab
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ablab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Ongaro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-01 00:00:00.000000000 Z
11
+ date: 2016-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails