tuning 5.1.0 → 5.1.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/MIT-LICENSE +1 -1
- data/README.md +1 -1
- data/lib/tuning/extensions/action_view/handlers.rb +14 -6
- data/lib/tuning/railtie.rb +0 -2
- data/lib/tuning/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 47fce98d7cbcc828bb91838d0e99054e9a597a74
|
|
4
|
+
data.tar.gz: f02d154c4d4d936a83231d1fcd36504555321bd2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8859909f2280ae4dc49b8b187b81d5e575b4ae2b88b2ccd5aea29c9b8ca8e3b2a2838eb8b33af083a550729883526181dbb1ad8701a5a0658e33cef990206b66
|
|
7
|
+
data.tar.gz: 56da1721032820314d84a3f041885162b7ed2732c5a4fcab028d65ce3f9f250750eb22af6bb99672ad844f9f3eac471e30c99ba0b4cc63a2899beada133e07e2
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -149,7 +149,7 @@ I will mainly ensure compatibility to Rails, AWS, PostgreSQL, Redis, Elasticsear
|
|
|
149
149
|
|
|
150
150
|
## Credits
|
|
151
151
|
|
|
152
|
-
This gem is maintained and funded by [
|
|
152
|
+
This gem is maintained and funded by [museways](https://github.com/museways).
|
|
153
153
|
|
|
154
154
|
## License
|
|
155
155
|
|
|
@@ -8,12 +8,20 @@ module Tuning
|
|
|
8
8
|
|
|
9
9
|
def call(template)
|
|
10
10
|
if template.type.json?
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
if File.basename(template.identifier).starts_with?('_')
|
|
12
|
+
template.source
|
|
13
|
+
else
|
|
14
|
+
<<~STRING
|
|
15
|
+
output = begin
|
|
16
|
+
#{template.source}
|
|
17
|
+
end
|
|
18
|
+
if output.is_a?(String)
|
|
19
|
+
output
|
|
20
|
+
else
|
|
21
|
+
output.to_json
|
|
22
|
+
end
|
|
23
|
+
STRING
|
|
24
|
+
end
|
|
17
25
|
else
|
|
18
26
|
template.source
|
|
19
27
|
end
|
data/lib/tuning/railtie.rb
CHANGED
data/lib/tuning/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tuning
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.1.
|
|
4
|
+
version: 5.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- mmontossi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|