ntq_tools 0.4.1 → 0.4.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
  SHA256:
3
- metadata.gz: 57781cd3327d2e0c9a4934e818210a94a5869680d6ca88f17920e627a8bcc49b
4
- data.tar.gz: aef6ae2230214af398d8a60254430478841d5a83400fe9b80d57764209cdaaad
3
+ metadata.gz: 6a659efedee45f286353f74dfd011457c90e4b3eaf8c32c4d0cb383cce2ccc7d
4
+ data.tar.gz: 821a0eac4a4087c84d8ba19fed374e6c3b0356293b0b13d603cc81da4b6fc55d
5
5
  SHA512:
6
- metadata.gz: 23710b7d19138ae83c21ea05db99511ff32fd68fd9541d1442d06f926e392922731a2adccb17949920ec6f945d81e003bb09abd70c475d5a0b77d8c96251cfbb
7
- data.tar.gz: 18c0103de806aaa82b170bf882c875647c18ac1e855913b0b3ae352a2dae3cf0db1a6b316776c2cfda2a5418128accc7b4fe2b23eea579cf2f70d2b85cc7a13f
6
+ metadata.gz: 6b6ef7eccb919303e48b2c8585bc58aeeeec748cf911fbb0658d399dd9d37ced2bcdbe081c7ca8d91e47a3b7d751c1b419e6771ab26aaf2d975e3b38dd81f48c
7
+ data.tar.gz: f4f9ea8b791b601ee3e324228a1e2129f0cc823aa810e4918fdb9f2eab434ebe6b2f65cb863be187792a55b55fc98c505d0b3b358f8609d8a46bc6b70e2342f8
@@ -2,7 +2,7 @@ require 'ntq_tools/translations/translation_tool'
2
2
  module NtqTools
3
3
  class TranslationsController < NtqTools::ApplicationController
4
4
  skip_before_action :verify_authenticity_token
5
- before_action :check_presence_of_key
5
+ before_action :check_presence_of_key, except: [:refresh]
6
6
 
7
7
  def show
8
8
  return render json: { data: nil }, status: 404 unless I18n.exists?(params[:key].to_s)
@@ -21,7 +21,7 @@ module NtqTools
21
21
  end
22
22
 
23
23
  def refresh
24
- if defined?(ReactOnRails) system "bundle exec rake react_on_rails:locale"
24
+ system("bundle exec rake react_on_rails:locale") if defined?(ReactOnRails)
25
25
  end
26
26
 
27
27
  private
@@ -1,3 +1,3 @@
1
1
  module NtqTools
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ntq_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin