astro-remcached 0.2.0 → 0.2.1

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.
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ *#
2
+ *~
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
+ :patch: 1
2
3
  :major: 0
3
4
  :minor: 2
4
- :patch: 0
data/lib/remcached.rb CHANGED
@@ -44,9 +44,11 @@ module Memcached
44
44
 
45
45
  def hash_key(key)
46
46
  hashed = 0
47
- key.bytes.each_with_index do |b, i|
47
+ i = 0
48
+ key.each_byte do |b|
48
49
  j = key.length - i - 1 % 4
49
50
  hashed ^= b << (j * 8)
51
+ i += 1
50
52
  end
51
53
  hashed
52
54
  end
data/remcached.gemspec ADDED
@@ -0,0 +1,46 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{remcached}
5
+ s.version = "0.2.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Stephan Maka"]
9
+ s.date = %q{2009-09-11}
10
+ s.description = %q{Ruby EventMachine memcached client}
11
+ s.email = %q{astro@spaceboyz.net}
12
+ s.files = [
13
+ ".gitignore",
14
+ "Rakefile",
15
+ "VERSION.yml",
16
+ "lib/remcached.rb",
17
+ "lib/remcached/client.rb",
18
+ "lib/remcached/const.rb",
19
+ "lib/remcached/pack_array.rb",
20
+ "lib/remcached/packet.rb",
21
+ "remcached.gemspec",
22
+ "spec/client_spec.rb",
23
+ "spec/memcached_spec.rb",
24
+ "spec/packet_spec.rb"
25
+ ]
26
+ s.homepage = %q{http://github.com/astro/remcached/}
27
+ s.rdoc_options = ["--charset=UTF-8"]
28
+ s.require_paths = ["lib"]
29
+ s.rubygems_version = %q{1.3.5}
30
+ s.summary = %q{Ruby EventMachine memcached client}
31
+ s.test_files = [
32
+ "spec/client_spec.rb",
33
+ "spec/memcached_spec.rb",
34
+ "spec/packet_spec.rb"
35
+ ]
36
+
37
+ if s.respond_to? :specification_version then
38
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
39
+ s.specification_version = 3
40
+
41
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
42
+ else
43
+ end
44
+ else
45
+ end
46
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astro-remcached
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephan Maka
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-08 00:00:00 -07:00
12
+ date: 2009-09-11 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -22,6 +22,7 @@ extensions: []
22
22
  extra_rdoc_files: []
23
23
 
24
24
  files:
25
+ - .gitignore
25
26
  - Rakefile
26
27
  - VERSION.yml
27
28
  - lib/remcached.rb
@@ -29,6 +30,7 @@ files:
29
30
  - lib/remcached/const.rb
30
31
  - lib/remcached/pack_array.rb
31
32
  - lib/remcached/packet.rb
33
+ - remcached.gemspec
32
34
  - spec/client_spec.rb
33
35
  - spec/memcached_spec.rb
34
36
  - spec/packet_spec.rb
@@ -59,6 +61,6 @@ signing_key:
59
61
  specification_version: 3
60
62
  summary: Ruby EventMachine memcached client
61
63
  test_files:
62
- - spec/packet_spec.rb
63
64
  - spec/client_spec.rb
64
65
  - spec/memcached_spec.rb
66
+ - spec/packet_spec.rb