lolita-translation 0.7.2 → 0.7.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
  SHA1:
3
- metadata.gz: 0d13f0b3c8ae3cfd3e2464773538a6ab3f21552a
4
- data.tar.gz: 171b142817fef43c89ee2e274306e7dbe35feb19
3
+ metadata.gz: 82d4dfe1c5fbf9846029e38c41e8651c8152d81c
4
+ data.tar.gz: d0474e27688f2fe3360ae616e7b511e2f150811a
5
5
  SHA512:
6
- metadata.gz: 71da84d89a2c4a43c5c7cefa609a66a72927f4e8edcdfb15350b7d469e413904c906995cea85a883aa3a3badac4076df843b94ad6f04fafe40266ab4fa8a1167
7
- data.tar.gz: 722fd8ac3412b58df090a2f5087e1af4ea61dbe06a0179ae46cbf255d6470e306ec9a26c1695d64246ec2de842c986e4bd6e43d1f2a58117527c0f7248ab9ebc
6
+ metadata.gz: 3babc9b1de2e3c6efbf8f685cd6ee649a24f2394fb1119b1f075dbdc44bf9421bd67685b6c0c158fe1facfa4e374f211cf2a5de0dcdaac07f39d94aedff56683
7
+ data.tar.gz: e7405f2d718d9dc9fa4a349c0da8ee23ab877133eee78354c0a2de5df5c30bf59cd7f4b744f59107b11a3d50bf2e9b26512cc1d97a27a6ca198ec4c548de99ff
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ group :test do
7
7
  gem 'rspec-rails', '~> 2.14'
8
8
  gem 'ffaker', '~> 1.16.2'
9
9
  gem 'capybara', '~> 2.1'
10
- gem 'selenium-webdriver', '~> 2.34.0'
10
+ gem 'selenium-webdriver', '~> 2.38.0'
11
11
  gem 'sqlite3', '~> 1.3.7'
12
12
  gem 'byebug'
13
13
  gem 'cover_me'
data/README.md CHANGED
@@ -32,6 +32,9 @@ Translations table holds only translations, but not the original data from defau
32
32
  a.title
33
33
  #=> "Title in LV"
34
34
 
35
+ a.in(:lv).title #returns record's title attribute in locale that's passed
36
+ #=> "Title in LV"
37
+
35
38
  When a "find" is executed and current language is not the same as default language then `:translations` are added to `:includes` to pre fetch all translations.
36
39
 
37
40
  The `ModelNameTranslation` class is created for you automaticly with all validations for ranslated fields. Of course you can create it manualy for custom vlidations and other.
@@ -176,6 +176,7 @@ module Lolita
176
176
  yield
177
177
  @record_current_locale = old_locale
178
178
  end
179
+ original_record
179
180
  end
180
181
 
181
182
  def system_current_locale
@@ -3,7 +3,7 @@ module Lolita
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 7
6
- PATCH = 2
6
+ PATCH = 3
7
7
  BUILD = nil
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolita-translation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ITHouse (Latvia) and Arturs Meisters
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-12 00:00:00.000000000 Z
11
+ date: 2013-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lolita
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.0.4
126
+ rubygems_version: 2.1.9
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Lolita extension that add multilanguate support to Lolita.