releaf-i18n_database 1.1.20 → 1.1.21

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
- SHA1:
3
- metadata.gz: d3166d4a6482574513a43a5e92f15d6240862424
4
- data.tar.gz: ce914c25dce48f7d1025ed16eed77d6347d622f3
2
+ SHA256:
3
+ metadata.gz: d30cbd9e44376bad6e6e45ac2277bbb82fa49685d2c158f368b5f3a58b7aa7ab
4
+ data.tar.gz: 8892de01439c85e6aec093de08b92f9de1f800a1b8a4d71da9337961b54b2eeb
5
5
  SHA512:
6
- metadata.gz: 8a958a7a868ed12e8d6b59f9a553102fb278af492c0863d0da27c98263653f4b9700ff02edd17a0d2d16497f0d5a85c536894ebb8d1171d7cbdf9913cda85ed9
7
- data.tar.gz: da578f651b84af975ae978ac879f14123792c1611654c903b2290675469ec27c3fc272b8ea5d606da22ef60f54fb4a9e3edd1d4c7a0de3065d6e04a0c9c1ebc1
6
+ metadata.gz: 50d66d3ca8ca2e41425c610da69edfeec86b259a7df9a71612b6f7ded96a04ae7aeaf004a14b0bac14687eb0b11fa58020701abdd65f12962c67e66945bc0573
7
+ data.tar.gz: e5cf058863da8f110562772e76731dbeab726912dfbbfa2d4c9cf38b762bac214d64f87ca4adf77d81b64863b22bd81e4cf0aafbf79da68c2c7981b9f8364bab
@@ -63,8 +63,10 @@ describe Releaf::I18nDatabase::Backend do
63
63
 
64
64
  describe ".locales_pluralizations" do
65
65
  it "returns array all pluralization forms for releaf locales" do
66
- allow(Releaf.application.config).to receive(:all_locales).and_return([:de, :ru, :aasdsd])
67
- allow(I18n).to receive(:locale_available?).and_return(true)
66
+ allow(Releaf.application.config).to receive(:all_locales).and_return([:de, :ru])
67
+ allow(I18n).to receive(:t).with(:'i18n.plural.keys', locale: :de).and_return([:one, :other])
68
+ allow(I18n).to receive(:t).with(:'i18n.plural.keys', locale: :ru).and_return([:one, :few, :many])
69
+
68
70
  expect(described_class.locales_pluralizations).to eq([:one, :other, :few, :many, :zero])
69
71
  end
70
72
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: releaf-i18n_database
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.20
4
+ version: 1.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - CubeSystems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-13 00:00:00.000000000 Z
11
+ date: 2019-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: releaf-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.20
19
+ version: 1.1.21
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.1.20
26
+ version: 1.1.21
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails-i18n
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,22 +42,22 @@ dependencies:
42
42
  name: axlsx_rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '0.3'
48
45
  - - ">="
49
46
  - !ruby/object:Gem::Version
50
47
  version: 0.3.0
48
+ - - "~>"
49
+ - !ruby/object:Gem::Version
50
+ version: '0.3'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - "~>"
56
- - !ruby/object:Gem::Version
57
- version: '0.3'
58
55
  - - ">="
59
56
  - !ruby/object:Gem::Version
60
57
  version: 0.3.0
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '0.3'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: roo
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -138,29 +138,28 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  requirements: []
141
- rubyforge_project:
142
- rubygems_version: 2.6.10
141
+ rubygems_version: 3.0.2
143
142
  signing_key:
144
143
  specification_version: 4
145
144
  summary: i18n database gem for releaf
146
145
  test_files:
146
+ - spec/builders/translations/table_builder_spec.rb
147
+ - spec/builders/translations/index_builder_spec.rb
147
148
  - spec/builders/translations/builder_common_spec.rb
148
149
  - spec/builders/translations/edit_builder_spec.rb
149
- - spec/builders/translations/index_builder_spec.rb
150
- - spec/builders/translations/table_builder_spec.rb
151
- - spec/controllers/i18n_backend/translations_controller_spec.rb
152
150
  - spec/features/translations_spec.rb
153
- - spec/fixtures/all_translations_exported.xlsx
154
- - spec/fixtures/invalid.xls
155
- - spec/fixtures/invalid.xlsx
156
- - spec/fixtures/time.formats.xlsx
157
- - spec/fixtures/translations_import.xlsx
158
- - spec/fixtures/unsupported_import_file.png
151
+ - spec/models/i18n_database/i18n_entry_spec.rb
152
+ - spec/models/i18n_database/i18n_entry_translation_spec.rb
153
+ - spec/lib/releaf/i18n_database/translations_utilities_spec.rb
154
+ - spec/lib/releaf/i18n_database/humanize_missing_translations_spec.rb
159
155
  - spec/lib/releaf/i18n_database/backend_spec.rb
160
156
  - spec/lib/releaf/i18n_database/configuration_spec.rb
161
- - spec/lib/releaf/i18n_database/humanize_missing_translations_spec.rb
162
- - spec/lib/releaf/i18n_database/parse_spreadsheet_translations_spec.rb
163
157
  - spec/lib/releaf/i18n_database/translations_store_spec.rb
164
- - spec/lib/releaf/i18n_database/translations_utilities_spec.rb
165
- - spec/models/i18n_database/i18n_entry_spec.rb
166
- - spec/models/i18n_database/i18n_entry_translation_spec.rb
158
+ - spec/lib/releaf/i18n_database/parse_spreadsheet_translations_spec.rb
159
+ - spec/fixtures/all_translations_exported.xlsx
160
+ - spec/fixtures/unsupported_import_file.png
161
+ - spec/fixtures/time.formats.xlsx
162
+ - spec/fixtures/translations_import.xlsx
163
+ - spec/fixtures/invalid.xlsx
164
+ - spec/fixtures/invalid.xls
165
+ - spec/controllers/i18n_backend/translations_controller_spec.rb