translate_acts_as_translatable_models 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,6 @@ task :translate_acts_as_translatable_models => :environment do
15
15
  raise "need to specify to=<locale>" unless @to_locale
16
16
 
17
17
  @force_translation = (ENV["force_translation"] == "true")
18
- @strip_html = (ENV["strip_html"] == "true")
19
18
 
20
19
  @app_id = ENV["app_id"]
21
20
  raise "need to specify app_id=<Your Bing API key>" unless @app_id
@@ -32,7 +31,6 @@ task :translate_acts_as_translatable_models => :environment do
32
31
  model_translated = false
33
32
  model.translatable_fields.each do |field|
34
33
  source = record.send("#{field}_#{@from_locale}")
35
- source = corder.decode(source) if !source.blank? && @strip_html
36
34
  dest = record.send("#{field}_#{@to_locale}")
37
35
 
38
36
  # only translate if not already translated
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translate_acts_as_translatable_models
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lasse Bunk
@@ -47,20 +47,6 @@ dependencies:
47
47
  version: 0.0.2
48
48
  type: :runtime
49
49
  version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: htmlentities
52
- prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- version: "0"
62
- type: :runtime
63
- version_requirements: *id003
64
50
  description: Ruby on Rails plugin for easy translation of your acts_as_translatable models.
65
51
  email: lassebunk@gmail.com
66
52
  executables: []