revent 0.4 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/revent/as_r.rb CHANGED
@@ -137,16 +137,6 @@ module Revent
137
137
 
138
138
  # To make your class a server, just include Revent::RRServer in it.
139
139
  module ASRServer
140
- # Compresses using zlib and converts the input to an array of bytes.
141
- def self.compress(value)
142
- enc = RubyAMF::IO::AMFSerializer.new
143
- enc.write_amf3(value)
144
- s = enc.stream
145
-
146
- s = Zlib::Deflate.deflate(s)
147
- s.unpack('c*')
148
- end
149
-
150
140
  # For security check, normally command cannot be too long
151
141
  DEFAULT_MAX_CMD_LENGTH = 1024
152
142
 
@@ -28,7 +28,7 @@ module Revent
28
28
  code_with_timestamp = @b.decrypt_string(encrypted_code_with_timestamp)
29
29
  code0 = code_with_timestamp.slice!(0, @code_length)
30
30
  timestamp0 = code_with_timestamp.to_i
31
- code == code0 and Time.now.to_i - timestamp0 < @valid_period_in_sec
31
+ code.upcase == code0 and Time.now.to_i - timestamp0 < @valid_period_in_sec
32
32
  end
33
33
 
34
34
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revent
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.4"
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ngoc DAO Thanh
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-23 00:00:00 +09:00
12
+ date: 2008-02-26 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15