rails_i18n_manager 1.0.2 → 1.0.3

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: 1582e51311f1da753a0240ed429a9b7dbec17704410f633ffc6a5efa15a5da38
4
- data.tar.gz: 2e72a24e32dd28d8a3b7a738fe182f09ba8451ca44a67db8577da02a3fd4a4e9
3
+ metadata.gz: b8f237f3945385f864800ae205e29a56db0968035bf0121e0efbf24e890b924b
4
+ data.tar.gz: c000f125974eb73ecadde8ef9d14e6dcc9bb031145d1c693e02dc60c9d564fdb
5
5
  SHA512:
6
- metadata.gz: 4be1f55dade0acd9bc08c0f411d3ef294e8d94575a8d1add5af734901bb5112f520282936582133cdf766f12519e555e016ea04e699de8cd8266d45a3f7c8c20
7
- data.tar.gz: 92908f9f5c2778c0cfacb737f0f33690b322dcaf91674a4c82ec100b7ba9c249625cd292dca478e8ff5efb308f9a4d5d10019466ec9020f80d2ecefcb0d317b7
6
+ metadata.gz: 227ab42ce4c3ef87b9325f2570607f9beb4db7a66073f60adfb753623337394e7ddea82d221cfa9e74481f69d259321e2ef1e89de56fcb4e916f5e67de78c779
7
+ data.tar.gz: a02b2383a8495a14bd25a4b5a48eafb8fff08b3dd161a75f4d999b383f7a08a28b0e00ea3f6ade4d08c5382be72836aca53caa17fe1a07fc67e14ca813c2ffd8
@@ -0,0 +1,3 @@
1
+ //= link_tree ../images/rails_i18n_manager
2
+ //= link_directory ../stylesheets/rails_i18n_manager .css
3
+ //= link_directory ../javascripts/rails_i18n_manager .js
@@ -4,7 +4,7 @@ module RailsI18nManager
4
4
 
5
5
  include ActiveSortOrder
6
6
 
7
- scope :multi_search, ->(full_str){
7
+ scope :multi_search, ->(full_str){
8
8
  if full_str.present?
9
9
  rel = self
10
10
 
@@ -17,27 +17,27 @@ module RailsI18nManager
17
17
  app.middleware.use ::ActionDispatch::Static, "#{root}/public"
18
18
  end
19
19
 
20
- ### Were not using sprockets were just storing everything in public
21
- ### Sprockets Config below
22
- # initializer "rails_i18n_manager.assets.precompile" do |app|
23
- # app.config.assets.precompile << "rails_i18n_manager_manifest.js" ### manifest file required
24
- # app.config.assets.precompile << "rails_i18n_manager/favicon.ico"
25
-
26
- # ### Automatically precompile assets in specified folders
27
- # ["app/assets/images/"].each do |folder|
28
- # dir = app.root.join(folder)
29
-
30
- # if Dir.exist?(dir)
31
- # Dir.glob(File.join(dir, "**/*")).each do |f|
32
- # asset_name = f.to_s
33
- # .split(folder).last # Remove fullpath
34
- # .sub(/^\/*/, '') ### Remove leading '/'
35
-
36
- # app.config.assets.precompile << asset_name
37
- # end
38
- # end
39
- # end
40
- # end
20
+ initializer "rails_i18n_manager.assets.precompile" do |app|
21
+ # this initializer is only called when sprockets is in use
22
+
23
+ app.config.assets.precompile << "rails_i18n_manager_manifest.js" ### manifest file required
24
+ app.config.assets.precompile << "rails_i18n_manager/favicon.ico"
25
+
26
+ ### Automatically precompile assets in specified folders
27
+ ["app/assets/images/"].each do |folder|
28
+ dir = app.root.join(folder)
29
+
30
+ if Dir.exist?(dir)
31
+ Dir.glob(File.join(dir, "**/*")).each do |f|
32
+ asset_name = f.to_s
33
+ .split(folder).last # Remove fullpath
34
+ .sub(/^\/*/, '') ### Remove leading '/'
35
+
36
+ app.config.assets.precompile << asset_name
37
+ end
38
+ end
39
+ end
40
+ end
41
41
 
42
42
  end
43
43
  end
@@ -1,3 +1,3 @@
1
1
  module RailsI18nManager
2
- VERSION = "1.0.2".freeze
2
+ VERSION = "1.0.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_i18n_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Weston Ganger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-07 00:00:00.000000000 Z
11
+ date: 2024-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -220,6 +220,11 @@ files:
220
220
  - LICENSE
221
221
  - README.md
222
222
  - Rakefile
223
+ - app/assets/config/rails_i18n_manager_manifest.rb
224
+ - app/assets/images/rails_i18n_manager/favicon.ico
225
+ - app/assets/javascripts/rails_i18n_manager/application.js
226
+ - app/assets/stylesheets/rails_i18n_manager/application.css
227
+ - app/assets/stylesheets/rails_i18n_manager/utility.css
223
228
  - app/controllers/rails_i18n_manager/application_controller.rb
224
229
  - app/controllers/rails_i18n_manager/translation_apps_controller.rb
225
230
  - app/controllers/rails_i18n_manager/translations_controller.rb
@@ -265,10 +270,6 @@ files:
265
270
  - lib/rails_i18n_manager/config.rb
266
271
  - lib/rails_i18n_manager/engine.rb
267
272
  - lib/rails_i18n_manager/version.rb
268
- - public/rails_i18n_manager/application.css
269
- - public/rails_i18n_manager/application.js
270
- - public/rails_i18n_manager/favicon.ico
271
- - public/rails_i18n_manager/utility.css
272
273
  homepage: https://github.com/westonganger/rails_i18n_manager
273
274
  licenses:
274
275
  - MIT