flame 4.6.1 → 4.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ce4a1b941ab147d4e92afc8024b9b82389312ee
4
- data.tar.gz: 57a6c28e514f56aff4b2ee5599c2585ce9e0fc70
3
+ metadata.gz: 5c0e43f8e0156e604ac4017ff3b993fe5642c43b
4
+ data.tar.gz: 4c05f795159fb966bc1904ac490065418cefa16d
5
5
  SHA512:
6
- metadata.gz: bbb044a87d151b6d67a7d37bc0cf84a1b38da2100bfbcb7fabddedb43f5af71464d9f248b423d8ee1923e9dc36bfc6564c1dde0928a0cd4e28c31b33c5dbef60
7
- data.tar.gz: c549f57dd9e04d9a87435711c32e8b89c3e23817126152c46f55a4c43d27d1ed036998e1d52810c10f9d6850e8256a76e4a90a7da2e5b6d0a4bcf0aa4664b9c5
6
+ metadata.gz: f130cf06d7c55e0e9ea8d4f32d2b40facec59c6d668e470d6b1fd0cc40fe80c6a5a77f77f0f2078886c5621e5986def6f68a84c8eea7c28973c555810becf89a
7
+ data.tar.gz: 251f21aef4f4cde5d5b045faf04792d86b7f30e954a6324e2cd0c53effc9feab14bc5066f436602be979c502c605d4f077f77918465d4c52fdc05d42bc9b491e
data/bin/flame CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'thor'
4
4
  require 'fileutils'
5
- require 'gorilla-patch/string'
5
+ require 'gorilla-patch/letters_case'
6
6
  require 'erb'
7
7
 
8
8
  ## CLI Application
@@ -25,7 +25,7 @@ class FlameCLI < Thor
25
25
  module New
26
26
  module_function
27
27
 
28
- using GorillaPatch::StringExt
28
+ using GorillaPatch::LettersCase
29
29
 
30
30
  def build(app_name)
31
31
  @app_name = app_name
@@ -99,7 +99,7 @@ module Flame
99
99
  end
100
100
 
101
101
  class << self
102
- using GorillaPatch::StringExt
102
+ using GorillaPatch::LettersCase
103
103
 
104
104
  ## Default root path of the controller for requests
105
105
  def default_path
@@ -1,4 +1,4 @@
1
- require 'gorilla-patch/hash'
1
+ require 'gorilla-patch/symbolize'
2
2
 
3
3
  require_relative 'cookies'
4
4
  require_relative 'request'
@@ -10,8 +10,6 @@ module Flame
10
10
  class Dispatcher
11
11
  attr_reader :request, :response
12
12
 
13
- using GorillaPatch::HashExt
14
-
15
13
  include Flame::Dispatcher::Static
16
14
 
17
15
  ## Initialize Dispatcher from Application#call
@@ -56,9 +54,13 @@ module Flame
56
54
  value ? @body = value : @body ||= ''
57
55
  end
58
56
 
57
+ using GorillaPatch::Symbolize
58
+
59
59
  ## Parameters of the request
60
60
  def params
61
- @params ||= request.params.keys_to_sym(deep: true)
61
+ @params ||= request.params.merge(
62
+ request.params.symbolize_keys(deep: true)
63
+ )
62
64
  end
63
65
 
64
66
  ## Session object as Hash
data/lib/flame/render.rb CHANGED
@@ -4,7 +4,7 @@ require 'tilt'
4
4
  require 'tilt/plain'
5
5
  require 'tilt/erb'
6
6
 
7
- require 'gorilla-patch/module'
7
+ require 'gorilla-patch/letters_case'
8
8
 
9
9
  module Flame
10
10
  ## Helper for render functionality
@@ -49,8 +49,6 @@ module Flame
49
49
  @ctrl.config[:views_dir]
50
50
  end
51
51
 
52
- using GorillaPatch::ModuleExt
53
-
54
52
  ## Compile file with Tilt engine
55
53
  ## @param filename [String] filename
56
54
  def compile_file(filename = @filename)
@@ -85,6 +83,8 @@ module Flame
85
83
  .sort! { |a, b| b.split('/').size <=> a.split('/').size }
86
84
  end
87
85
 
86
+ using GorillaPatch::LettersCase
87
+
88
88
  ## Find possible directories for the controller
89
89
  def controller_dirs
90
90
  parts = @ctrl.class.underscore.split('/').map do |part|
data/lib/flame/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Flame
4
- VERSION = '4.6.1'.freeze
4
+ VERSION = '4.6.2'.freeze
5
5
  end
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: 4.6.1
4
+ version: 4.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-08 00:00:00.000000000 Z
11
+ date: 2016-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -50,20 +50,20 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.0'
53
+ version: '1'
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
- version: 0.0.17
56
+ version: 1.0.0
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: '0.0'
63
+ version: '1'
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
- version: 0.0.17
66
+ version: 1.0.0
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: thor
69
69
  requirement: !ruby/object:Gem::Requirement