phraseapp-in-context-editor-ruby 1.0.3 → 1.0.4

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: 01523b055b91761df927cdf84848aef55c6290ed
4
- data.tar.gz: 784a66ff617287b86f09610e775164ea10dfa20b
3
+ metadata.gz: 09cccb5ab0eb9919e1e1136899458c49399d213f
4
+ data.tar.gz: ac914cb6850aaaf98609ff8a5b058fbfa847ab52
5
5
  SHA512:
6
- metadata.gz: 0a54b0688e2c1fba44dc024ab69c712dcd3bebec6148767b0a412603a4d72ef595fa18bccc2e9ff38e4153aedad9dd8f3341ef609c5a32b5f9f3e3d03703158a
7
- data.tar.gz: a35d23543c9f8c2c8c21a11b3b077a398406c3266435581b50ae92d996eecc225d552d851ed2f2cf75bb2d9ebbc7d5b363ca1798a9625d00ae6e005ff5d8d5ad
6
+ metadata.gz: e688825105ec8f027cf7d9746448c082f0cd2af167c211666a601b854619c6838f673d1c849f5ba92b01acd5cf4953a58fae959d1ed70ebfec33e03302a2c896
7
+ data.tar.gz: 3550c33403f4208af419fc6879582048ac6ae21caf6411976ffefcccb2113ca3f64b17c863128fd56473c5d5683811a7cc2822fd4b45fdc9319c20f92f256ade
@@ -41,6 +41,8 @@ module PhraseApp
41
41
  private
42
42
 
43
43
  def translation_or_subkeys
44
+ return nil if @key.nil? || @key.to_s == ""
45
+
44
46
  keys = api_wrapper.keys_with_prefix(@key)
45
47
  return nil unless keys.present?
46
48
 
@@ -1,5 +1,5 @@
1
1
  module PhraseApp
2
2
  module InContextEditor
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phraseapp-in-context-editor-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dynport GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-06 00:00:00.000000000 Z
11
+ date: 2016-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json