sinatra-websocketio 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/lib/sinatra-websocketio/options.rb +9 -3
- data/lib/sinatra-websocketio/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: b9c1a3c5e1ccf7fd061f061a9b4f5ae26d91df93
|
4
|
+
data.tar.gz: 54779fd6578939c3906e6eb8a12f26a4ea2eefeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0a3f3634e7f7e27bbf6e288b4cd13d5983fae65df932da320eb9c756b4323c4ef608e6745a69966be07b3226b926887f2065c263b9cfeab5f3d241d980dd682
|
7
|
+
data.tar.gz: f28e31d12c855eebd016a76dd8bb9227e7ba2aeead4470b53798734a584e87395091c8c56a70d7a5a4d7bd19ffa7b40f77f5500886cf3d042d43b37ce310106f
|
data/History.txt
CHANGED
@@ -29,10 +29,16 @@ module Sinatra
|
|
29
29
|
@@options = {}
|
30
30
|
opts.each do |k,v|
|
31
31
|
k = k.to_sym
|
32
|
-
|
33
|
-
|
32
|
+
unless default_options.include? k
|
33
|
+
STDERR.puts "!! #{self} setting - \"#{k}\" is not valid key"
|
34
34
|
else
|
35
|
-
|
35
|
+
unless default_options[k][1].call(v)
|
36
|
+
default = default_options[k][0]
|
37
|
+
STDERR.puts "!! #{self} setting - \"#{k} => #{v}\" is not valid. set default \"#{k} => #{default}\""
|
38
|
+
@@options[k] = default
|
39
|
+
else
|
40
|
+
@@options[k] = v
|
41
|
+
end
|
36
42
|
end
|
37
43
|
end
|
38
44
|
default_options.each do |k, v|
|