with_connection 0.1.10 → 0.1.11

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.10
1
+ 0.1.11
@@ -0,0 +1,25 @@
1
+ module Dalli
2
+ class Server
3
+ class KAsyncSocket < EventMachine::Synchrony::TCPSocket
4
+ def readfull(count)
5
+ value = ''
6
+ read count, value
7
+ value
8
+ end
9
+ end
10
+
11
+ class KSocket
12
+ class << self
13
+ def open_with_async(*args)
14
+ if EM.reactor_running?
15
+ KAsyncSocket.new *args
16
+ else
17
+ open_without_async *args
18
+ end
19
+ end
20
+ alias open_without_async open
21
+ alias open open_with_async
22
+ end
23
+ end
24
+ end
25
+ end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "with_connection"
8
- s.version = "0.1.10"
8
+ s.version = "0.1.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Doug Youch"]
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
  "lib/active_record/fiber_patches/log_subscriber.rb",
30
30
  "lib/active_support/cache/features/adapter_methods.rb",
31
31
  "lib/active_support/cache/memcache_connection_pool.rb",
32
+ "lib/dalli/async_socket.rb",
32
33
  "lib/with_connection.rb",
33
34
  "lib/with_connection/connection_pool.rb",
34
35
  "with_connection.gemspec"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: with_connection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -95,6 +95,7 @@ files:
95
95
  - lib/active_record/fiber_patches/log_subscriber.rb
96
96
  - lib/active_support/cache/features/adapter_methods.rb
97
97
  - lib/active_support/cache/memcache_connection_pool.rb
98
+ - lib/dalli/async_socket.rb
98
99
  - lib/with_connection.rb
99
100
  - lib/with_connection/connection_pool.rb
100
101
  - with_connection.gemspec
@@ -113,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
113
114
  version: '0'
114
115
  segments:
115
116
  - 0
116
- hash: -1960058264002246096
117
+ hash: -1499532644223541582
117
118
  required_rubygems_version: !ruby/object:Gem::Requirement
118
119
  none: false
119
120
  requirements: