localizable_model 0.6.0 → 0.6.1

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: b0befa06d12b655333ff09bd3f7f009b21806c34
4
- data.tar.gz: 74af6b379c30a03c157aed92ff198397deedad5e
3
+ metadata.gz: b3902e29eaab564acc2753ae5e5d04545feda0f5
4
+ data.tar.gz: 8884513d6e619967791fbc65bf2357fbc86ac4b2
5
5
  SHA512:
6
- metadata.gz: e8885b708fd5f7b187640b38a1aaac9afa8f3f19266dba80b34e84d53fab60cb5fdea4a62fbba62b5f446d1ab16f39357d1ee3ce33efaf625bda51f954c7f97b
7
- data.tar.gz: e8364bc5267a73a71115f2403c1678065cb22867899eda3ed4eb5fd700ca699b1f1640b985cc785aab8858bdfc9d09da84c34ad498626547d75cff7973e88d8b
6
+ metadata.gz: 289de56df353850bd04c5cda0ac6d043a5de8daa6645fab96c31d8be175a36142d81fcf1d46f1939201060203f27a33d987cee18b88086765c80c431d6c49e36
7
+ data.tar.gz: 1adac6179d67bb3d1a607e6d9e7dcedc3c8b9f425757081b7a81099b98fa48fc1eaad7f7759dc9b5f0893cc998f606ae0aaca212650e5ebce0560a4ce709c587
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  LocalizableModel allows any ActiveRecord model to have localized attributes.
4
4
 
5
- [![Build Status](https://travis-ci.org/kord-as/localizable_model.svg?branch=master)](https://travis-ci.org/kord-as/localizable_model) [![Code Climate](https://codeclimate.com/github/kord-as/localizable_model/badges/gpa.svg)](https://codeclimate.com/github/kord-as/localizable_model) [![Test Coverage](https://codeclimate.com/github/kord-as/localizable_model/badges/coverage.svg)](https://codeclimate.com/github/kord-as/localizable_model) [![Dependency Status](https://gemnasium.com/kord-as/localizable_model.svg)](https://gemnasium.com/kord-as/localizable_model)
5
+ [![Build Status](https://travis-ci.org/anyone-oslo/localizable_model.svg?branch=master)](https://travis-ci.org/anyone-oslo/localizable_model) [![Code Climate](https://codeclimate.com/github/anyone-oslo/localizable_model/badges/gpa.svg)](https://codeclimate.com/github/anyone-oslo/localizable_model) [![Test Coverage](https://codeclimate.com/github/anyone-oslo/localizable_model/badges/coverage.svg)](https://codeclimate.com/github/anyone-oslo/localizable_model) [![Dependency Status](https://gemnasium.com/anyone-oslo/localizable_model.svg)](https://gemnasium.com/anyone-oslo/localizable_model)
6
6
 
7
7
  ## Installation
8
8
 
@@ -25,7 +25,7 @@ module LocalizableModel
25
25
 
26
26
  def locales
27
27
  (
28
- [record.locale, I18n.locale] + I18n.available_locales + record.locales
28
+ [record.locale, I18n.locale] + record.locales
29
29
  ).compact.map(&:to_sym).uniq
30
30
  end
31
31
 
@@ -20,7 +20,7 @@ module LocalizableModel
20
20
  # Returns an AnyLocalizer for the model.
21
21
  #
22
22
  def any_locale
23
- AnyLocalizer.new(self)
23
+ @any_localizer ||= AnyLocalizer.new(self)
24
24
  end
25
25
 
26
26
  # Setter for locale
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module LocalizableModel
4
- VERSION = "0.6.0".freeze unless LocalizableModel.const_defined?("VERSION")
4
+ VERSION = "0.6.1".freeze unless LocalizableModel.const_defined?("VERSION")
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localizable_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inge Jørgensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-23 00:00:00.000000000 Z
11
+ date: 2018-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2
@@ -96,7 +96,7 @@ dependencies:
96
96
  version: '5.0'
97
97
  description: LocalizableModel provides localization support for ActiveRecord objects
98
98
  email:
99
- - inge@kord.no
99
+ - inge@anyone.no
100
100
  executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  version: '0'
136
136
  requirements: []
137
137
  rubyforge_project: "."
138
- rubygems_version: 2.4.5
138
+ rubygems_version: 2.6.14
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Localization support for ActiveRecord objects