ibrain-core 0.4.4 → 0.4.5

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: '087401863edb38ef4c79a4b227d0d9bd6baf02336414acaa7ed601c1dc8ea555'
4
- data.tar.gz: b8a0e0da594c23a3c9adf80372f915f9e57844ca130d1a8e690652ae885188da
3
+ metadata.gz: e0dfff268b752582b0733cd99f43f0784e20061a2898e29a0c779000e7a07cce
4
+ data.tar.gz: b42ec5acdd8014ea314e3adacf6bbe6b470720d30aafa84d3b729efbc2d9f913
5
5
  SHA512:
6
- metadata.gz: 864a49233b8032fc29dc288a9390bce89fcf1ec334a57ffe6b902c792a0d5a0583ac5d33b6f7c48a87fdb841375e15cd39c20a6df4e33ff2b413671f5f64d03b
7
- data.tar.gz: 0f46faaa77b045dccd3c6327e76070d75362343203d1986ccbfa8692bb40c022b70b6e17ada05062c14fa7f328de1ff32ef1be6934470d783454ec9314527941
6
+ metadata.gz: e618a908b94991ade401094a790c46815421f752b451ba481626075860723f059a8d9413b586f8ffe39fd9234b671ee264a500eb0b4de5fe9941a4f610ac6ba6
7
+ data.tar.gz: 1e0ed241b8efc3c4f3545b88513d300a93702cbc7b65401764e562d9ec4322f84f2ae479b19247f212581cc43d6b40ab90163e7b5a3d5548f702c7a981fb63eb
@@ -1,14 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ibrain
4
- VERSION = "0.4.4"
4
+ VERSION = "0.4.5"
5
5
 
6
6
  def self.ibrain_version
7
7
  VERSION
8
8
  end
9
9
 
10
10
  def self.previous_ibrain_minor_version
11
- '0.4.3'
11
+ '0.4.4'
12
12
  end
13
13
 
14
14
  def self.ibrain_gem_version
data/lib/ibrain/core.rb CHANGED
@@ -10,7 +10,6 @@ require 'activerecord/session_store'
10
10
 
11
11
  require 'awesome_nested_set'
12
12
  require 'cancan'
13
- require 'friendly_id'
14
13
  require 'kaminari/activerecord'
15
14
  require 'rack/cors'
16
15
  require 'ransack'
data/lib/ibrain_core.rb CHANGED
@@ -1,8 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "zeitwerk"
4
-
5
4
  loader = Zeitwerk::Loader.new
6
5
  loader.tag = File.basename(__FILE__, ".rb")
7
6
  loader.inflector = Zeitwerk::GemInflector.new(__FILE__)
8
- loader.push_dir(__dir__)
7
+ loader.enable_reloading
8
+ loader.setup
9
+ loader.reload
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibrain-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tai Nguyen Van
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-06 00:00:00.000000000 Z
11
+ date: 2022-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-session_store
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: friendly_id
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: gem-release
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -227,7 +213,6 @@ files:
227
213
  - app/models/ibrain/role.rb
228
214
  - app/models/ibrain/role_user.rb
229
215
  - app/repositories/ibrain/base_repository.rb
230
- - config/initializers/friendly_id.rb
231
216
  - config/locales/en.yml
232
217
  - config/locales/jp.yml
233
218
  - config/locales/vi.yml
@@ -1,87 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # FriendlyId Global Configuration
4
- #
5
- # Use this to set up shared configuration options for your entire application.
6
- # Any of the configuration options shown here can also be applied to single
7
- # models by passing arguments to the `friendly_id` class method or defining
8
- # methods in your model.
9
- #
10
- # To learn more, check out the guide:
11
- #
12
- # http://norman.github.io/friendly_id/file.Guide.html
13
-
14
- FriendlyId.defaults do |config|
15
- # ## Reserved Words
16
- #
17
- # Some words could conflict with Rails's routes when used as slugs, or are
18
- # undesirable to allow as slugs. Edit this list as needed for your app.
19
- config.use :reserved
20
-
21
- # ## Friendly Finders
22
- #
23
- # Uncomment this to use friendly finders in all models. By default, if
24
- # you wish to find a record by its friendly id, you must do:
25
- #
26
- # MyModel.friendly.find('foo')
27
- #
28
- # If you uncomment this, you can do:
29
- #
30
- # MyModel.find('foo')
31
- #
32
- # This is significantly more convenient but may not be appropriate for
33
- # all applications, so you must explicity opt-in to this behavior. You can
34
- # always also configure it on a per-model basis if you prefer.
35
- #
36
- # Something else to consider is that using the :finders addon boosts
37
- # performance because it will avoid Rails-internal code that makes runtime
38
- # calls to `Module.extend`.
39
- #
40
- # config.use :finders
41
- #
42
- # ## Slugs
43
- #
44
- # Most applications will use the :slugged module everywhere. If you wish
45
- # to do so, uncomment the following line.
46
- #
47
- # config.use :slugged
48
- #
49
- # By default, FriendlyId's :slugged addon expects the slug column to be named
50
- # 'slug', but you can change it if you wish.
51
- #
52
- # config.slug_column = 'slug'
53
- #
54
- # When FriendlyId can not generate a unique ID from your base method, it appends
55
- # a UUID, separated by a single dash. You can configure the character used as the
56
- # separator. If you're upgrading from FriendlyId 4, you may wish to replace this
57
- # with two dashes.
58
- #
59
- # config.sequence_separator = '-'
60
- #
61
- # ## Tips and Tricks
62
- #
63
- # ### Controlling when slugs are generated
64
- #
65
- # As of FriendlyId 5.0, new slugs are generated only when the slug field is
66
- # nil, but if you're using a column as your base method can change this
67
- # behavior by overriding the `should_generate_new_friendly_id` method that
68
- # FriendlyId adds to your model. The change below makes FriendlyId 5.0 behave
69
- # more like 4.0.
70
- #
71
- # config.use Module.new {
72
- # def should_generate_new_friendly_id?
73
- # slug.blank? || <your_column_name_here>_changed?
74
- # end
75
- # }
76
- #
77
- # FriendlyId uses Rails's `parameterize` method to generate slugs, but for
78
- # languages that don't use the Roman alphabet, that's not usually suffient. Here
79
- # we use the Babosa library to transliterate Russian Cyrillic slugs to ASCII. If
80
- # you use this, don't forget to add "babosa" to your Gemfile.
81
- #
82
- # config.use Module.new {
83
- # def normalize_friendly_id(text)
84
- # text.to_slug.normalize! transliterations: [:russian, :latin]
85
- # end
86
- # }
87
- end