tolk 4.0.0 → 4.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3b8c4145bee58c4db93bc70ac392f22264f23720a87ca3e3a512492b01dbd4b
4
- data.tar.gz: e4694d43dcdd750bcd16b1b9c0fdc021501909ecbca548f91936fd92e64b46bd
3
+ metadata.gz: 1fca3085bb13c35ef269e555c2314fd69334ef0b0b143f3a8ed3cae827737346
4
+ data.tar.gz: a4a41860859f8801124a0a7cf5a081aac3c4a59011099a15131de0e7d5a5a75d
5
5
  SHA512:
6
- metadata.gz: 76679eb34ea30aa1fe16e5023ed30399e308f9eaede2911f9ca78e70aa308c22885a2b20442f3766e348d1baa6aea1e17a8c5ccfa05633e44113b60b18e7805b
7
- data.tar.gz: 9df6c43007fc43e82aa0bf24fe97521bd9c509dfe81f36f9edf727a58ceeaf796c3c7ac920ed759dccf92df44ad748d9c5fd1c905e8b7479aba473a7a576d58f
6
+ metadata.gz: 3fcddfa3b3ffe130191c3586a018a52fa6e42bc83aa3e75d8166956bf86e6c8f68e46657b0c878b02f32c6b8289f9dc97bbd1d79d8e883cf1224157d0572dd99
7
+ data.tar.gz: 2b788d4317956d34ae913b027252cf94e3a7e80ef77de46ec32ebe91fed2b378547e955bcc0f53f983f4b5006de10fd285b5b53ef565f46e1c3cdd55a00cd645
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Tolk
2
- VERSION = "4.0.0"
2
+ VERSION = "4.0.1"
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: 4.0.0
4
+ version: 4.0.1
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: 2020-07-22 00:00:00.000000000 Z
15
+ date: 2020-11-04 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails
@@ -168,6 +168,7 @@ files:
168
168
  - app/views/tolk/locales/show.html.erb
169
169
  - app/views/tolk/searches/_form.html.erb
170
170
  - app/views/tolk/searches/show.html.erb
171
+ - config/initializers/assets.rb
171
172
  - config/initializers/will_paginate.rb
172
173
  - config/routes.rb
173
174
  - lib/generators/tolk/install_generator.rb