bing_translate_yaml 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/tasks/translate_task.rake +3 -1
  2. metadata +4 -4
@@ -44,7 +44,9 @@ def translate_hash(yaml)
44
44
  yaml.keys.each do |key|
45
45
  source = yaml[key]
46
46
 
47
- if source.is_a?(String)
47
+ if source.is_a?(Symbol)
48
+ translated = source
49
+ elsif source.is_a?(String)
48
50
  translated = translate_string(source)
49
51
  elsif source.is_a?(Hash)
50
52
  translated = translate_hash(source)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bing_translate_yaml
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lasse Bunk
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-08 00:00:00 Z
18
+ date: 2012-05-09 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: bing_translate_yaml is a simple Ruby on Rails plugin to translate your YAML files using Bing.