grenache-ruby-http 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grenache/http/configurable.rb +4 -35
- data/lib/grenache/http/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33a53da5aa92dc20b6689dfffcce3e10ddeb73ce
|
4
|
+
data.tar.gz: c3313fc10e62fbc2f893839bc8218d62fd6ec271
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed1e4703fb0996d8b7f53500d1c73ad03200dd97857cb331c31400cd75d92addecebdaca5b3131d955311132b6478942d225315a5fcbceb27186b87f26caa83b
|
7
|
+
data.tar.gz: afe54dc849752d003bb663eedf29398e24a06ed8a897a603db0ab9851251b72b1fba11806457add644f4d24551ccd29ff160b03a96a8f77acefa40b47245b6c9
|
@@ -1,37 +1,6 @@
|
|
1
|
-
module
|
2
|
-
class
|
3
|
-
|
4
|
-
|
5
|
-
# thin server
|
6
|
-
attr_accessor :thin_threaded, :thin_threadpool_size
|
7
|
-
|
8
|
-
def initialize
|
9
|
-
set_bool :thin_threaded, params, false
|
10
|
-
set_val :thin_threadpool_size, params, 0
|
11
|
-
super
|
12
|
-
end
|
13
|
-
end
|
1
|
+
module Grenache
|
2
|
+
class Configuration
|
3
|
+
# thin server
|
4
|
+
attr_accessor :thin_threaded, :thin_threadpool_size
|
14
5
|
end
|
15
|
-
|
16
|
-
module HttpConfigurable
|
17
|
-
def self.included(base)
|
18
|
-
base.extend(ClassMethods)
|
19
|
-
end
|
20
|
-
|
21
|
-
def config
|
22
|
-
self.class.config
|
23
|
-
end
|
24
|
-
|
25
|
-
module ClassMethods
|
26
|
-
def configure
|
27
|
-
yield config
|
28
|
-
end
|
29
|
-
|
30
|
-
def config
|
31
|
-
@configuration ||= Grenache::Http::Configuration.new
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
include HttpConfigurable
|
37
6
|
end
|