embedded_localization 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c9d4ba03a83e4b00d477de754f8543f82a1126d3
4
+ data.tar.gz: fd62663a6f3f8e1bfe7d7ef0f11e185bfc5d923e
5
+ SHA512:
6
+ metadata.gz: da8453448db137e3324312d8cf896909c0d697b422453a6ba7e65133b4a88bf196b0c8ff3d3429115647dfa9c2dc2260bc71d01b9d0eeb8a608b9890843b25e0
7
+ data.tar.gz: f39c89fb69b5ae335bef4e11113d8386068d58f0c372ef3a9f0283b3e0e9b2d65ae38e06571b34ee4f41300bec373d3010aac858f69a9ae49da1e53a63937dfb
data/.travis.yml CHANGED
@@ -2,20 +2,22 @@ language: ruby
2
2
  bundler_args: --without development
3
3
  rvm:
4
4
  - 1.8.7
5
- - 1.9.2
6
5
  - 1.9.3
7
6
  - 2.0.0
7
+ - 2.1.1
8
8
  - ruby-head
9
+ - jruby-head
10
+ - rbx
9
11
  - ree
12
+ env: JRUBY_OPTS="--server -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -J-Xms512m -J-Xmx1024m"
10
13
  matrix:
11
14
  allow_failures:
12
- - rbx-18mode
13
- - rbx-19mode
15
+ - rbx
14
16
  - rvm: ruby-head
17
+ - rvm: jruby-head
15
18
  - rvm: ree
16
19
  - rvm: 1.8.7
17
- - rvm: 1.9.2
18
- - rvm: rbx-18mode
20
+ - rvm: jruby-19mode
19
21
  branches:
20
22
  only:
21
23
  - master
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = EmbeddedLocalization::VERSION
8
8
  s.authors = ["Tilo Sloboda"]
9
9
  s.email = ["tilo.sloboda@gmail.com"]
10
- s.homepage = "http://www.unixgods.org/~tilo/Ruby/embedded_localization"
10
+ s.homepage = "https://github.com/tilo/embedded_localization"
11
11
  s.summary = %q{Rails I18n: library for embedded ActiveRecord 3 model/data translation}
12
12
  s.description = %q{Rails I18n: Embedded_Localization for ActiveRecord 3 is very lightweight, and allows you to transparently store translations of attributes right inside each record -- no extra database tables needed to store the localization data!}
13
13
 
@@ -1,3 +1,3 @@
1
1
  module EmbeddedLocalization
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
@@ -109,6 +109,10 @@ describe 'model has translated field with attribute of that same name' do
109
109
  movie.reload
110
110
  end
111
111
 
112
+ it 'correctly reports the translated_locales' do
113
+ movie.translated_locales.should eq [:en]
114
+ end
115
+
112
116
  # when setting all fields in the default locale's languange:
113
117
  it 'correctly reports translation_missing for updated record' do
114
118
  movie.translation_missing.should eq Hash.new
@@ -143,6 +147,10 @@ describe 'model has translated field with attribute of that same name' do
143
147
  movie.reload
144
148
  end
145
149
 
150
+ it 'correctly reports the translated_locales' do
151
+ movie.translated_locales.should eq [:en, :ru, :tr, :de]
152
+ end
153
+
146
154
  it 'can assign the translated field' do
147
155
  movie.title = title_en
148
156
  movie.save.should be_true
@@ -106,6 +106,10 @@ describe 'model has translated field without attribute of that same name' do
106
106
  genre.reload
107
107
  end
108
108
 
109
+ it 'correctly reports the translated_locales' do
110
+ genre.translated_locales.should eq [:en]
111
+ end
112
+
109
113
  # when setting all fields in the default locale's languange:
110
114
  it 'correctly reports translation_missing for updated record' do
111
115
  genre.translation_missing.should eq Hash.new
@@ -141,6 +145,10 @@ describe 'model has translated field without attribute of that same name' do
141
145
  genre.reload
142
146
  end
143
147
 
148
+ it 'correctly reports the translated_locales' do
149
+ genre.translated_locales.should eq [:en, :jp, :ko, :de]
150
+ end
151
+
144
152
  it 'can assign the translated field' do
145
153
  genre.name = genre_name_en
146
154
  genre.save.should be_true
metadata CHANGED
@@ -1,81 +1,72 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embedded_localization
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
5
- prerelease:
4
+ version: 1.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tilo Sloboda
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-01-12 00:00:00.000000000 Z
11
+ date: 2014-11-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: activerecord
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: 4.0.0
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: 4.0.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: i18n
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: sqlite3
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
- description: ! 'Rails I18n: Embedded_Localization for ActiveRecord 3 is very lightweight,
69
+ description: 'Rails I18n: Embedded_Localization for ActiveRecord 3 is very lightweight,
79
70
  and allows you to transparently store translations of attributes right inside each
80
71
  record -- no extra database tables needed to store the localization data!'
81
72
  email:
@@ -84,8 +75,8 @@ executables: []
84
75
  extensions: []
85
76
  extra_rdoc_files: []
86
77
  files:
87
- - .gitignore
88
- - .travis.yml
78
+ - ".gitignore"
79
+ - ".travis.yml"
89
80
  - Gemfile
90
81
  - README.md
91
82
  - Rakefile
@@ -103,32 +94,31 @@ files:
103
94
  - spec/schema.rb
104
95
  - spec/spec.opts
105
96
  - spec/spec_helper.rb
106
- homepage: http://www.unixgods.org/~tilo/Ruby/embedded_localization
97
+ homepage: https://github.com/tilo/embedded_localization
107
98
  licenses:
108
99
  - MIT
109
100
  - GPL-2
101
+ metadata: {}
110
102
  post_install_message:
111
103
  rdoc_options: []
112
104
  require_paths:
113
105
  - lib
114
106
  required_ruby_version: !ruby/object:Gem::Requirement
115
- none: false
116
107
  requirements:
117
- - - ! '>='
108
+ - - ">="
118
109
  - !ruby/object:Gem::Version
119
110
  version: '0'
120
111
  required_rubygems_version: !ruby/object:Gem::Requirement
121
- none: false
122
112
  requirements:
123
- - - ! '>='
113
+ - - ">="
124
114
  - !ruby/object:Gem::Version
125
115
  version: '0'
126
116
  requirements: []
127
- rubyforge_project: ! '[none]'
128
- rubygems_version: 1.8.23
117
+ rubyforge_project: "[none]"
118
+ rubygems_version: 2.2.2
129
119
  signing_key:
130
- specification_version: 3
131
- summary: ! 'Rails I18n: library for embedded ActiveRecord 3 model/data translation'
120
+ specification_version: 4
121
+ summary: 'Rails I18n: library for embedded ActiveRecord 3 model/data translation'
132
122
  test_files:
133
123
  - spec/embedded_localization/native_column_spec.rb
134
124
  - spec/embedded_localization/simple_model_spec.rb