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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 505f90a5cca2f2e65cde2008bdf79105d5f0f060
4
- data.tar.gz: 772945906fb5529c2ed7cd60a0e1090e70d714c6
3
+ metadata.gz: b9c1a3c5e1ccf7fd061f061a9b4f5ae26d91df93
4
+ data.tar.gz: 54779fd6578939c3906e6eb8a12f26a4ea2eefeb
5
5
  SHA512:
6
- metadata.gz: 41c438bdb865cb7bd39dd97a839a7207ec9fb98584f7a663e3794fb75417387f935ba67a8763e3764cae13c898d31b488d8a24ef9598a03d92380cc10f4c0095
7
- data.tar.gz: 5675c4f5189f8f9b36a5558bf0eac9f6eb5ba45a9ed5a98860d88c12a5a9877d83c6976b7dc92a7cd7f820ca5cc7e69922ad6b6360f41763ea1c5554ad94f061
6
+ metadata.gz: c0a3f3634e7f7e27bbf6e288b4cd13d5983fae65df932da320eb9c756b4323c4ef608e6745a69966be07b3226b926887f2065c263b9cfeab5f3d241d980dd682
7
+ data.tar.gz: f28e31d12c855eebd016a76dd8bb9227e7ba2aeead4470b53798734a584e87395091c8c56a70d7a5a4d7bd19ffa7b40f77f5500886cf3d042d43b37ce310106f
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.2.5 2013-04-03
2
+
3
+ * print invalid setting error
4
+
1
5
  === 0.2.4 2013-04-02
2
6
 
3
7
  * bugfix WebSocket check on iOS
@@ -29,10 +29,16 @@ module Sinatra
29
29
  @@options = {}
30
30
  opts.each do |k,v|
31
31
  k = k.to_sym
32
- if default_options.include? k
33
- @@options[k] = default_options[k][1].call(v) ? v : default_options[k][0]
32
+ unless default_options.include? k
33
+ STDERR.puts "!! #{self} setting - \"#{k}\" is not valid key"
34
34
  else
35
- @@options[k] = v
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|
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module WebSocketIO
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-websocketio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hashimoto