sinatra-backstage 0.2.3.1 → 0.2.3.2

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: e58dc96a19bb7bba819b47974b17a5864e0b214b
4
- data.tar.gz: 9b411cfc7c8921de0d4a61069874d9118d33cc77
3
+ metadata.gz: 2fe6aa6d4025104f3cd16efd4c0c2a5ce3d61f68
4
+ data.tar.gz: 0b8006c04ee79a60c4a32a46633570674e3cf229
5
5
  SHA512:
6
- metadata.gz: 12e1fe251f9a529ab829ec818138828b0a31e4d08353c3eb05fec268dbc07850832a2cc15c95a3b00d20e3315a3fefe0903e2fd8801eb86b30f157db96e3aca2
7
- data.tar.gz: d9249c78a0ccecace4cab9083b0765d781104d402b641bf9ad939521556d8e570bbc23b4a278a23a808f95ed9586086da25db3c47cecdfc21f88e7061197ea8f
6
+ metadata.gz: a013460aa8eae9b4d8034a3abf539915348433c6d6eb3b31a28c5da4c2604ddd9e708cdaa4362ee7c2e47bc69f34c9e06c1dd2b0c71d1528029e8303097eb8b1
7
+ data.tar.gz: 8db14557af72b3e2132583448ab21211171877b8c5169d1092545adaf07a6de19152ad486d52e346af37c974d17cf5d9b35cf157c16c1d5db1b9d31f9faa8319
@@ -20,13 +20,8 @@ module Sinatra
20
20
  # puts "-- REST.Routing get namespace after format ( params = #{params})"
21
21
  format = 'json' if request.accept.include?('text/json') || request.accept.include?('application/json')
22
22
  ## get json options
23
- json_opts = params.delete('json_opts')
24
- json_opts = json_opts.inject({}) do |hash_sym, (key, val)|
25
- hash_sym[key.to_sym] = val.map do |el|
26
- el.to_sym
27
- end
28
- hash_sym
29
- end if json_opts
23
+ json_method = params.delete('json_method')
24
+ json_opts = {:methods => ([json_method] || [])}
30
25
  ## get objects
31
26
  @objects = rest_get_all klass, params
32
27
  # puts "-- REST.Routing get namespace ( @objects = #{@objects})"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-backstage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.1
4
+ version: 0.2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov