flame 3.3.2 → 3.3.3

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: 961b6996b8d6f921a727f75d9a3986b2d27c87ff
4
- data.tar.gz: 17df2b8f0253a510c11daaf1bbab63f85c99e739
3
+ metadata.gz: 818593ea5e91d1799682df0b33a06a19c26248fd
4
+ data.tar.gz: 4f4ef2f5370602c4803e8b996d716dc88f51d200
5
5
  SHA512:
6
- metadata.gz: 73b42ef28db03c658a25d6c92bd9356ff50a7ae82e610ec27cd9168eede687117b6bfe52410d2fba433b0300434c124bd5c3393cdb9bfcab454212d0a802044e
7
- data.tar.gz: 0e26def8d075900c4784bcdf5fb131111f1211dadc7c02cc1be351e3e4e00cc598d9d066232fd3ab967ebbbe6cf718594bfd35ff21e255535a05fd2ed813f41a
6
+ metadata.gz: e911c832e857fc1dfbdca84a683568c12d0f3d8d1711b8f9c38c17d874c16fd217fa573badd5af5bdfd6668e5329dabae17907943a5c54e57acf1202c8e0022c
7
+ data.tar.gz: 8690872363c5d6f705ff0a181cb1d2ba12b2a40d4fe8efd0a68dd51fc524602fc1933a72842a5636c8698ef61a09918ab6f25320f7fb89db8389fd67bfd8e8f3
data/lib/flame.rb CHANGED
@@ -1,4 +1,2 @@
1
- require 'gorilla-patch/string'
2
-
3
1
  require_relative 'flame/application'
4
2
  require_relative 'flame/controller'
@@ -1,8 +1,12 @@
1
+ require 'gorilla-patch/hash'
2
+
1
3
  module Flame
2
4
  ## Helpers for dispatch Flame::Application#call
3
5
  class Dispatcher
4
6
  attr_reader :request, :response
5
7
 
8
+ using GorillaPatch::HashExt
9
+
6
10
  def initialize(app, env)
7
11
  @app = app
8
12
  @request = Flame::Request.new(env)
@@ -27,7 +31,7 @@ module Flame
27
31
  end
28
32
 
29
33
  def params
30
- request.params
34
+ @params ||= request.params.merge(request.params.keys_to_sym)
31
35
  end
32
36
 
33
37
  def session
data/lib/flame/render.rb CHANGED
@@ -2,6 +2,8 @@ require 'tilt'
2
2
  require 'tilt/plain'
3
3
  require 'tilt/erb'
4
4
 
5
+ require 'gorilla-patch/string'
6
+
5
7
  module Flame
6
8
  ## Helper for render functionality
7
9
  class Render
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flame
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-07 00:00:00.000000000 Z
11
+ date: 2015-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack