ibrain-core 0.4.4 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ibrain/core/version.rb +2 -2
- data/lib/ibrain/core.rb +0 -1
- data/lib/ibrain_core.rb +1 -6
- metadata +3 -18
- data/config/initializers/friendly_id.rb +0 -87
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz: '
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09278662f5dace559b2b93ed9a45f39ef9ca822643b31e0e50b44e923e1027dc'
|
4
|
+
data.tar.gz: 8f19875c9383f8235aaf53596978f7ab0fb568924a312d018e867fe5b4ae2957
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b68fc74e862182d9295200edb26eced011eccd9f7e6b93b994a8392127a9ecb29e1a4e26405238ce4e450e76b1b86ccbf54a5c3f334752fdae6a04999dc708a2
|
7
|
+
data.tar.gz: 31d6e746ca29c99508950469e01e36b98279098cd7d6b97220a1a77de568c0e10da90fa9b0d877fa16375d48852e386f2b25db7f80b1aeb02b2bb60266402de7
|
data/lib/ibrain/core/version.rb
CHANGED
data/lib/ibrain/core.rb
CHANGED
data/lib/ibrain_core.rb
CHANGED
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
|
+
version: 0.4.7
|
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-
|
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
|
@@ -308,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
308
293
|
- !ruby/object:Gem::Version
|
309
294
|
version: '0'
|
310
295
|
requirements: []
|
311
|
-
rubygems_version: 3.
|
296
|
+
rubygems_version: 3.2.22
|
312
297
|
signing_key:
|
313
298
|
specification_version: 4
|
314
299
|
summary: Its Core is an sso authen gem for Ruby on Rails.
|
@@ -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
|