tolk 3.2.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/tolk/screen.scss +1 -1
- data/app/helpers/tolk/application_helper.rb +1 -1
- data/app/models/tolk/locale.rb +2 -2
- data/config/initializers/assets.rb +4 -0
- data/lib/tolk/pagination.rb +1 -1
- data/lib/tolk/sync.rb +1 -1
- data/lib/tolk/version.rb +1 -1
- metadata +16 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5564840ddc80ff7aa53877b92a53d012c1d7da569d66ebc62f0de81b3e048ce9
|
4
|
+
data.tar.gz: 5e341c5940739f53d6d391de924fce6c85894992362b9d3946be674bbc33c0e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27468ef20b2250b344ab1f4e2905eee920f504f37d20b8a2293fd327dd409ce309bf1246bab0b4525652b27d35a7558d3db597a9f3adee3431b4358f045949f6
|
7
|
+
data.tar.gz: 4f4ec9c4114d4d9503f3c7339f9f3cb00e2e0db0454bb36b32f9eb737f8add9f5e9e12fd8fb8dc3596502f5ef4316160b79abf9bf2cf3881854a6be3907c1141
|
@@ -17,7 +17,7 @@ a:hover {color: #000;}
|
|
17
17
|
* Variables
|
18
18
|
**/
|
19
19
|
$primary_color: #2fadcf;
|
20
|
-
$font_family:
|
20
|
+
$font_family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
|
21
21
|
|
22
22
|
/**
|
23
23
|
* Some generic components
|
data/app/models/tolk/locale.rb
CHANGED
@@ -27,7 +27,7 @@ module Tolk
|
|
27
27
|
include Tolk::Sync
|
28
28
|
include Tolk::Import
|
29
29
|
|
30
|
-
validates_uniqueness_of :name
|
30
|
+
validates_uniqueness_of :name, case_sensitive: false
|
31
31
|
validates_presence_of :name
|
32
32
|
|
33
33
|
cattr_accessor :special_prefixes
|
@@ -92,7 +92,7 @@ module Tolk
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def count_phrases_without_translation
|
95
|
-
existing_ids = self.translations.pluck(
|
95
|
+
existing_ids = self.translations.pluck(:phrase_id).uniq
|
96
96
|
Tolk::Phrase.count - existing_ids.count
|
97
97
|
end
|
98
98
|
|
data/lib/tolk/pagination.rb
CHANGED
data/lib/tolk/sync.rb
CHANGED
@@ -97,7 +97,7 @@ module Tolk
|
|
97
97
|
|
98
98
|
ignored_escaped = ignored.map { |key| Regexp.escape(key) }
|
99
99
|
|
100
|
-
regexp = Regexp.new(/\A#{ignored_escaped.join('|')}/)
|
100
|
+
regexp = Regexp.new(/\A(#{ignored_escaped.join('|')})(:?\.|\Z)/)
|
101
101
|
|
102
102
|
flat_hash.reject { |key, _| regexp === key }
|
103
103
|
end
|
data/lib/tolk/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tolk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2021-07-21 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rails
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: 0.8.6
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
|
-
name:
|
46
|
+
name: sassc
|
47
47
|
requirement: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
49
|
- - ">="
|
@@ -74,16 +74,22 @@ dependencies:
|
|
74
74
|
name: sqlite3
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- -
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '1.3'
|
80
|
+
- - "<"
|
78
81
|
- !ruby/object:Gem::Version
|
79
|
-
version: 1.
|
82
|
+
version: '1.5'
|
80
83
|
type: :development
|
81
84
|
prerelease: false
|
82
85
|
version_requirements: !ruby/object:Gem::Requirement
|
83
86
|
requirements:
|
84
|
-
- -
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.3'
|
90
|
+
- - "<"
|
85
91
|
- !ruby/object:Gem::Version
|
86
|
-
version: 1.
|
92
|
+
version: '1.5'
|
87
93
|
- !ruby/object:Gem::Dependency
|
88
94
|
name: mocha
|
89
95
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,6 +168,7 @@ files:
|
|
162
168
|
- app/views/tolk/locales/show.html.erb
|
163
169
|
- app/views/tolk/searches/_form.html.erb
|
164
170
|
- app/views/tolk/searches/show.html.erb
|
171
|
+
- config/initializers/assets.rb
|
165
172
|
- config/initializers/will_paginate.rb
|
166
173
|
- config/routes.rb
|
167
174
|
- lib/generators/tolk/install_generator.rb
|
@@ -190,14 +197,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
190
197
|
requirements:
|
191
198
|
- - ">="
|
192
199
|
- !ruby/object:Gem::Version
|
193
|
-
version: 2.
|
200
|
+
version: 2.5.0
|
194
201
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
202
|
requirements:
|
196
203
|
- - ">="
|
197
204
|
- !ruby/object:Gem::Version
|
198
205
|
version: '0'
|
199
206
|
requirements: []
|
200
|
-
rubygems_version: 3.
|
207
|
+
rubygems_version: 3.2.20
|
201
208
|
signing_key:
|
202
209
|
specification_version: 4
|
203
210
|
summary: Rails engine providing web interface for managing i18n yaml files
|