sinatra-cometio 0.5.2 → 0.5.3
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-cometio/options.rb +3 -3
- data/lib/sinatra-cometio/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: 7366b752f203aee57fe8059be07f8076c6aff669
|
4
|
+
data.tar.gz: 367d862a10f6a3b1dff45f4a7fb7bca4bc3f7e95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7313b5cb9872a6a2adb3ad4be09fa9b91b0edde6866ad8c22092514df03879ca377a9e64e68f9f1420322a7d69d2d0f850325ef87146de389bdcd384fb2ca523
|
7
|
+
data.tar.gz: 44f51a10701c8b444054b613d59861ecec2841e0fa672f58b3d87ca2144e80be1079425a288f9806c8f7a2fc90fd6e244f23cd2236a250029bd516ed3c0dd6b3
|
data/History.txt
CHANGED
@@ -31,11 +31,11 @@ module Sinatra
|
|
31
31
|
opts.each do |k,v|
|
32
32
|
k = k.to_sym
|
33
33
|
unless default_options.include? k
|
34
|
-
STDERR.puts "!!
|
34
|
+
STDERR.puts "!! Sinatra::CometIO setting - \"#{k}\" is not valid key"
|
35
35
|
else
|
36
36
|
unless default_options[k][1].call(v)
|
37
37
|
default = default_options[k][0]
|
38
|
-
STDERR.puts "!!
|
38
|
+
STDERR.puts "!! Sinatra::CometIO setting - \"#{k} => #{v}\" is not valid. set default \"#{k} => #{default}\""
|
39
39
|
@@options[k] = default
|
40
40
|
else
|
41
41
|
@@options[k] = v
|
@@ -43,7 +43,7 @@ module Sinatra
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
default_options.each do |k, v|
|
46
|
-
@@options[k] = v unless @@options.include? k
|
46
|
+
@@options[k] = v[0] unless @@options.include? k
|
47
47
|
end
|
48
48
|
@@options
|
49
49
|
end
|