tuning 5.1.0 → 5.1.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: ec88f4ec1c837b01d9448279aa384a93d28a1863
4
- data.tar.gz: aec3025e9539fc8e6738a784359e49e3c93b0477
3
+ metadata.gz: 47fce98d7cbcc828bb91838d0e99054e9a597a74
4
+ data.tar.gz: f02d154c4d4d936a83231d1fcd36504555321bd2
5
5
  SHA512:
6
- metadata.gz: eec54bc9c6e847bb606ce22bfcb59d2c7e39b8a657032cd10276a0ae103fe15fe66c4e90e7a68ab52d848ae5a1563217229cd9ed8e7d2a0cddb17732764a549c
7
- data.tar.gz: a2bdeb9522583671a6641e624eec54a30a59a5bc2de58fd83afaaee48d155da9c1b55603d890b9dfd0ec611b7892bacfb408dd7531480c5983016e5edb84dcc3
6
+ metadata.gz: 8859909f2280ae4dc49b8b187b81d5e575b4ae2b88b2ccd5aea29c9b8ca8e3b2a2838eb8b33af083a550729883526181dbb1ad8701a5a0658e33cef990206b66
7
+ data.tar.gz: 56da1721032820314d84a3f041885162b7ed2732c5a4fcab028d65ce3f9f250750eb22af6bb99672ad844f9f3eac471e30c99ba0b4cc63a2899beada133e07e2
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2017 Mathías Montossi
1
+ Copyright 2017 Museways
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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 [mmontossi](https://github.com/mmontossi).
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
- <<-STRING
12
- output = begin
13
- #{template.source}
14
- end
15
- output.to_json
16
- STRING
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
@@ -47,11 +47,9 @@ module Tuning
47
47
  end
48
48
  end
49
49
 
50
- =begin
51
50
  initializer 'tuning.i18n' do
52
51
  I18n.load_path += Dir[File.expand_path('../locales/*.yml', __FILE__)]
53
52
  end
54
- =end
55
53
 
56
54
  end
57
55
  end
@@ -1,5 +1,5 @@
1
1
  module Tuning
2
2
 
3
- VERSION = '5.1.0'
3
+ VERSION = '5.1.2'
4
4
 
5
5
  end
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.0
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-09-27 00:00:00.000000000 Z
11
+ date: 2017-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails