traco 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/traco/class_methods.rb +1 -1
- data/lib/traco/version.rb +1 -1
- data/spec/traco_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTc4OWNjMzkxOTcwNzE3NmE4NDM4MDQ4MWM5MGIyMzJkNjRlZWY0OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTYzYTFhZmFjYzk1Yjk1ZTM4NGJhN2QyOGIwNGM1ZTYzZDg0OGI2NQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWRjNTM2ZjcyYTZhNTliYmUzNjg4OWJlZTBiMTdjMTA3NzM1ODBkMTJlOGVi
|
10
|
+
NjQzZmJhMzhkMTA5YjdkYmQzY2NiODk3YzM2YzMzZWNiMGMzNGYzYWEyYWZj
|
11
|
+
Nzg3NzE4OGE4NDE5OWE2YjQyNzI1OTAyN2I2MWMwZTk5ZmNiYmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzY1OGI0MTc3OTNhOGU2NzJhYWQxYWU3YzI2N2IwZWM0MGQxNDY4Yjc1MGE3
|
14
|
+
NDY3ZTBiNTc5MDNiNzNlNzEyNTEwNTNhNjc2MTEwOWVmZDgyNDkzNmVkNjdi
|
15
|
+
NDhmMDBkMmFlMjNiNWI4NTJmMTRlMTM5N2NmYzliMTU1ZjExODc=
|
data/lib/traco/class_methods.rb
CHANGED
data/lib/traco/version.rb
CHANGED
data/spec/traco_spec.rb
CHANGED
@@ -83,6 +83,11 @@ describe Post, ".current_locale_column" do
|
|
83
83
|
I18n.locale = :sv
|
84
84
|
expect(Post.current_locale_column(:title)).to eq :title_sv
|
85
85
|
end
|
86
|
+
|
87
|
+
it "returns the column name with right format for the current locale with region identifier" do
|
88
|
+
I18n.locale = :"pt-BR"
|
89
|
+
expect(Post.current_locale_column(:title)).to eq :title_pt_br
|
90
|
+
end
|
86
91
|
end
|
87
92
|
|
88
93
|
describe Post, "#title" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traco
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henrik Nyh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|