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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8f6680d4fdb375f50c14ea1725d32cf73c395b3825578f9e2f25b1ce6e593d7
4
- data.tar.gz: b07c28ea6939450e7f46947d894db437b65142684994d47e6dfa8527356b4cae
3
+ metadata.gz: 5564840ddc80ff7aa53877b92a53d012c1d7da569d66ebc62f0de81b3e048ce9
4
+ data.tar.gz: 5e341c5940739f53d6d391de924fce6c85894992362b9d3946be674bbc33c0e3
5
5
  SHA512:
6
- metadata.gz: '0980d8b70e512963c7be3ca8af3c5519b482370a8e5510f00606e6f93e066218583f19627f02df641dffba02476f1ed185ba63f2986e66a7c278c7bd744f607d'
7
- data.tar.gz: c329d8a59897919e8a652c314115514d3f532cd6b23067e911f76651fcc5121ffe9eba4034923ab4504c8ee8ad0900f043f20ec1a5240938e2da7d2f5663b412
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: "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", sans-serif;
20
+ $font_family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
21
21
 
22
22
  /**
23
23
  * Some generic components
@@ -17,7 +17,7 @@ module Tolk
17
17
  end
18
18
 
19
19
  def format_i18n_text_area_value(value)
20
- yaml_value(value).to_s.force_encoding("UTF-8")
20
+ yaml_value(value).to_s.dup.force_encoding("UTF-8")
21
21
  end
22
22
 
23
23
  def yaml_value(value)
@@ -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(&:phrase_id).uniq
95
+ existing_ids = self.translations.pluck(:phrase_id).uniq
96
96
  Tolk::Phrase.count - existing_ids.count
97
97
  end
98
98
 
@@ -0,0 +1,4 @@
1
+ # Add the assets for Rails 6 app
2
+ if defined?(Rails)
3
+ Rails.application.config.assets.precompile += %w[tolk/application.js tolk/application.css]
4
+ end
@@ -20,7 +20,7 @@ module Tolk
20
20
  will_paginate collection, options
21
21
  else
22
22
  # Otherwise use Kaminari
23
- paginate collection, options
23
+ paginate collection, **options
24
24
  end
25
25
  end
26
26
  end
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
@@ -1,3 +1,3 @@
1
1
  module Tolk
2
- VERSION = "3.2.0"
2
+ VERSION = "4.1.0"
3
3
  end
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: 3.2.0
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: 2019-03-25 00:00:00.000000000 Z
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: sass
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.3.13
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.3.13
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.2.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.0.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