translated_attributes 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.3
1
+ 0.5.4
@@ -74,7 +74,9 @@ module TranslatedAttributes
74
74
  end
75
75
 
76
76
  def set_translated_attribute(locale, field, value)
77
- return if translated_attributes_for(locale)[field] == value
77
+ old_value = translated_attributes_for(locale)[field]
78
+ return if old_value == value
79
+ changed_attributes.merge!("#{field}_in_#{locale}" => old_value)
78
80
  translated_attributes_for(locale)[field] = value
79
81
  @translated_attributes_changed = true
80
82
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{translated_attributes}
8
- s.version = "0.5.3"
8
+ s.version = "0.5.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
12
- s.date = %q{2009-12-13}
12
+ s.date = %q{2010-06-07}
13
13
  s.email = %q{grosser.michael@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "README.markdown"
@@ -30,13 +30,13 @@ Gem::Specification.new do |s|
30
30
  s.homepage = %q{http://github.com/grosser/translated_attributes}
31
31
  s.rdoc_options = ["--charset=UTF-8"]
32
32
  s.require_paths = ["lib"]
33
- s.rubygems_version = %q{1.3.5}
33
+ s.rubygems_version = %q{1.3.6}
34
34
  s.summary = %q{ActiveRecord/Rails simple translatable attributes}
35
35
  s.test_files = [
36
- "spec/spec_helper.rb",
36
+ "spec/models.rb",
37
37
  "spec/translated_attributes_spec.rb",
38
- "spec/models.rb",
39
- "spec/integration_spec.rb"
38
+ "spec/integration_spec.rb",
39
+ "spec/spec_helper.rb"
40
40
  ]
41
41
 
42
42
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translated_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 5
8
+ - 4
9
+ version: 0.5.4
5
10
  platform: ruby
6
11
  authors:
7
12
  - Michael Grosser
@@ -9,19 +14,21 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-12-13 00:00:00 +01:00
17
+ date: 2010-06-07 00:00:00 +02:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: activerecord
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
23
29
  version: "0"
24
- version:
30
+ type: :runtime
31
+ version_requirements: *id001
25
32
  description:
26
33
  email: grosser.michael@gmail.com
27
34
  executables: []
@@ -55,23 +62,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
62
  requirements:
56
63
  - - ">="
57
64
  - !ruby/object:Gem::Version
65
+ segments:
66
+ - 0
58
67
  version: "0"
59
- version:
60
68
  required_rubygems_version: !ruby/object:Gem::Requirement
61
69
  requirements:
62
70
  - - ">="
63
71
  - !ruby/object:Gem::Version
72
+ segments:
73
+ - 0
64
74
  version: "0"
65
- version:
66
75
  requirements: []
67
76
 
68
77
  rubyforge_project:
69
- rubygems_version: 1.3.5
78
+ rubygems_version: 1.3.6
70
79
  signing_key:
71
80
  specification_version: 3
72
81
  summary: ActiveRecord/Rails simple translatable attributes
73
82
  test_files:
74
- - spec/spec_helper.rb
75
- - spec/translated_attributes_spec.rb
76
83
  - spec/models.rb
84
+ - spec/translated_attributes_spec.rb
77
85
  - spec/integration_spec.rb
86
+ - spec/spec_helper.rb