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 +4 -4
- data/bin/flame +2 -2
- data/lib/flame/controller.rb +1 -1
- data/lib/flame/dispatcher.rb +6 -4
- data/lib/flame/render.rb +3 -3
- data/lib/flame/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c0e43f8e0156e604ac4017ff3b993fe5642c43b
|
4
|
+
data.tar.gz: 4c05f795159fb966bc1904ac490065418cefa16d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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::
|
28
|
+
using GorillaPatch::LettersCase
|
29
29
|
|
30
30
|
def build(app_name)
|
31
31
|
@app_name = app_name
|
data/lib/flame/controller.rb
CHANGED
data/lib/flame/dispatcher.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'gorilla-patch/
|
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.
|
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/
|
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
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.
|
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-
|
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: '
|
53
|
+
version: '1'
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.0
|
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: '
|
63
|
+
version: '1'
|
64
64
|
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0.0
|
66
|
+
version: 1.0.0
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: thor
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|