sinatra-cometio 0.5.1 → 0.5.2
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 +9 -3
- data/lib/sinatra-cometio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4340d27e7e828310edf2e977f5c6a631cf14e1c4
|
4
|
+
data.tar.gz: 3c31cd77caa527eebba3b6ac625893e3840264bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 522551d054a61d3abab658025adfcba67be3a6a8912cacab6d4e41a2b3441140d1478af1422efe602f59e3a9f28d140213fb74ca105f9aac427994f38ebc57d6
|
7
|
+
data.tar.gz: 94e529d321863dde674bd8520e4e9720267c32c0543dcb8fc68165335e866b4fa798fe0a85db8f43392b5ade4b975e9da796c3331c6c772bcf844c23afe5a313
|
data/History.txt
CHANGED
@@ -30,10 +30,16 @@ module Sinatra
|
|
30
30
|
@@options = {}
|
31
31
|
opts.each do |k,v|
|
32
32
|
k = k.to_sym
|
33
|
-
|
34
|
-
|
33
|
+
unless default_options.include? k
|
34
|
+
STDERR.puts "!! #{self} setting - \"#{k}\" is not valid key"
|
35
35
|
else
|
36
|
-
|
36
|
+
unless default_options[k][1].call(v)
|
37
|
+
default = default_options[k][0]
|
38
|
+
STDERR.puts "!! #{self} setting - \"#{k} => #{v}\" is not valid. set default \"#{k} => #{default}\""
|
39
|
+
@@options[k] = default
|
40
|
+
else
|
41
|
+
@@options[k] = v
|
42
|
+
end
|
37
43
|
end
|
38
44
|
end
|
39
45
|
default_options.each do |k, v|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-cometio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Hashimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|