anoubis 1.0.1 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/app/controllers/anoubis/application_controller.rb +4 -0
- data/app/controllers/anoubis/core/index/actions.rb +1 -1
- data/app/controllers/anoubis/core/index_controller.rb +3 -3
- data/app/controllers/anoubis/data/actions.rb +947 -0
- data/app/controllers/anoubis/data/callbacks.rb +66 -0
- data/app/controllers/anoubis/data/convert.rb +422 -0
- data/app/controllers/anoubis/data/defaults.rb +215 -0
- data/app/controllers/anoubis/data/get.rb +529 -0
- data/app/controllers/anoubis/data/load.rb +87 -0
- data/app/controllers/anoubis/data/set.rb +47 -0
- data/app/controllers/anoubis/data/setup.rb +102 -0
- data/app/controllers/anoubis/data_controller.rb +21 -0
- data/app/controllers/anoubis/etc/field.rb +7 -0
- data/app/controllers/anoubis/output/basic.rb +1 -1
- data/app/controllers/anoubis/sso/client/index_controller.rb +2 -2
- data/app/controllers/anoubis/sso/server/login_controller.rb +5 -5
- data/app/controllers/anoubis/sso/server/user_controller.rb +2 -2
- data/app/controllers/anoubis/tenant/index_controller.rb +3 -3
- data/app/models/anoubis/application_record.rb +141 -0
- data/app/services/anoubis/log_service.rb +97 -0
- data/app/services/anoubis/request_service.rb +134 -0
- data/config/locales/en.yml +20 -6
- data/config/locales/ru.yml +25 -13
- data/config/routes.rb +19 -19
- data/lib/anoubis/version.rb +1 -1
- metadata +32 -33
- data/app/controllers/anoubis/core/data/actions.rb +0 -962
- data/app/controllers/anoubis/core/data/callbacks.rb +0 -68
- data/app/controllers/anoubis/core/data/convert.rb +0 -407
- data/app/controllers/anoubis/core/data/defaults.rb +0 -217
- data/app/controllers/anoubis/core/data/get.rb +0 -531
- data/app/controllers/anoubis/core/data/load.rb +0 -89
- data/app/controllers/anoubis/core/data/set.rb +0 -49
- data/app/controllers/anoubis/core/data/setup.rb +0 -104
- data/app/controllers/anoubis/core/data_controller.rb +0 -28
- data/app/controllers/anoubis/sso/client/data/actions.rb +0 -5
- data/app/controllers/anoubis/sso/client/data/callbacks.rb +0 -5
- data/app/controllers/anoubis/sso/client/data/convert.rb +0 -5
- data/app/controllers/anoubis/sso/client/data/defaults.rb +0 -5
- data/app/controllers/anoubis/sso/client/data/get.rb +0 -5
- data/app/controllers/anoubis/sso/client/data/load.rb +0 -26
- data/app/controllers/anoubis/sso/client/data/set.rb +0 -5
- data/app/controllers/anoubis/sso/client/data/setup.rb +0 -5
- data/app/controllers/anoubis/sso/client/data_controller.rb +0 -21
- data/app/controllers/anoubis/tenant/data/actions.rb +0 -11
- data/app/controllers/anoubis/tenant/data/callbacks.rb +0 -11
- data/app/controllers/anoubis/tenant/data/convert.rb +0 -11
- data/app/controllers/anoubis/tenant/data/defaults.rb +0 -11
- data/app/controllers/anoubis/tenant/data/get.rb +0 -11
- data/app/controllers/anoubis/tenant/data/load.rb +0 -52
- data/app/controllers/anoubis/tenant/data/set.rb +0 -11
- data/app/controllers/anoubis/tenant/data/setup.rb +0 -11
- data/app/controllers/anoubis/tenant/data_controller.rb +0 -28
- data/app/controllers/anoubis/tenants_controller.rb +0 -7
- data/app/controllers/anoubis/users_controller.rb +0 -7
- data/app/mailers/anoubis/application_mailer.rb +0 -8
data/config/locales/ru.yml
CHANGED
@@ -36,15 +36,33 @@ ru:
|
|
36
36
|
|
37
37
|
|
38
38
|
anoubis:
|
39
|
-
all: Все
|
40
|
-
success: Успешное завершение
|
41
|
-
error: Ошибка
|
39
|
+
all: "Все"
|
40
|
+
success: "Успешное завершение"
|
41
|
+
error: "Ошибка"
|
42
|
+
default_tab: "Основная"
|
43
|
+
default_tab_hint: "Это основная вкладка"
|
44
|
+
errors:
|
45
|
+
incorrect_login: "Некорректный логин или пароль"
|
46
|
+
session_expired: "Сессия завершена"
|
47
|
+
incorrect_user: "Некорректный пользователь"
|
48
|
+
access_not_allowed: "Доступ запрещен"
|
42
49
|
install:
|
43
50
|
menu:
|
44
51
|
dashboard:
|
45
|
-
title: Дашборд
|
46
|
-
page_title: Дашборд
|
47
|
-
short_title: Дашборд
|
52
|
+
title: "Дашборд"
|
53
|
+
page_title: "Дашборд"
|
54
|
+
short_title: "Дашборд"
|
55
|
+
form:
|
56
|
+
titles:
|
57
|
+
edit: "Редактирование элемента: %{title}"
|
58
|
+
show: "Просмотр элемента: %{title}"
|
59
|
+
new: "Добавление нового элемента"
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
48
66
|
|
49
67
|
|
50
68
|
|
@@ -55,8 +73,7 @@ ru:
|
|
55
73
|
incorrect_parameters: Некорректные параметры
|
56
74
|
error_changing_data: Ошибка изменения данных
|
57
75
|
|
58
|
-
|
59
|
-
default_tab_hint: Это основная вкладка
|
76
|
+
|
60
77
|
months:
|
61
78
|
main:
|
62
79
|
- Январь
|
@@ -111,11 +128,6 @@ ru:
|
|
111
128
|
buttons:
|
112
129
|
edit: "Редактировать: %{title}"
|
113
130
|
delete: "Удалить: %{title}"
|
114
|
-
form:
|
115
|
-
titles:
|
116
|
-
edit: "Редактирование элемента: %{title}"
|
117
|
-
show: "Просмотр элемента: %{title}"
|
118
|
-
new: "Добавление нового элемента"
|
119
131
|
|
120
132
|
tenants:
|
121
133
|
errors:
|
data/config/routes.rb
CHANGED
@@ -8,13 +8,13 @@ Anoubis::Engine.routes.draw do
|
|
8
8
|
|
9
9
|
|
10
10
|
if lib_type == 'tenant'
|
11
|
-
match 'api/:version/*path', { controller: '
|
11
|
+
match 'api/:version/*path', { controller: 'anoubis/tenant/index', action: 'options', constraints: { method: 'OPTIONS' }, via: [:options] }
|
12
12
|
|
13
|
-
post 'api/:version/login', to: '
|
14
|
-
post 'api/:version/validate', to: '
|
15
|
-
post 'api/:version/recover', to: '
|
16
|
-
post 'api/:version/logout', to: '
|
17
|
-
get 'api/:version/menu', to: '
|
13
|
+
post 'api/:version/login', to: 'anoubis/tenant/index#login', :defaults => { :format => 'json' }
|
14
|
+
post 'api/:version/validate', to: 'anoubis/tenant/index#validate', :defaults => { :format => 'json' }
|
15
|
+
post 'api/:version/recover', to: 'anoubis/tenant/index#recover', :defaults => { :format => 'json' }
|
16
|
+
post 'api/:version/logout', to: 'anoubis/tenant/index#logout', :defaults => { :format => 'json' }
|
17
|
+
get 'api/:version/menu', to: 'anoubis/tenant/index#menu', :defaults => { :format => 'json' }
|
18
18
|
|
19
19
|
scope path: 'api', :defaults => { :format => 'json' } do
|
20
20
|
scope path: ':version' do
|
@@ -35,18 +35,18 @@ Anoubis::Engine.routes.draw do
|
|
35
35
|
if lib_type == 'sso-server'
|
36
36
|
scope path: 'api', defaults: { format: 'json' } do
|
37
37
|
scope path: ':version' do
|
38
|
-
match '*path', { controller: '
|
38
|
+
match '*path', { controller: 'anoubis/sso/server/login', action: 'options', constraints: { method: 'OPTIONS' }, via: [:options] }
|
39
39
|
|
40
|
-
get 'login', to: '
|
41
|
-
post 'login', to: '
|
42
|
-
get 'login/:session', to: '
|
43
|
-
put 'login/:session', to: '
|
44
|
-
delete 'login/:session', to: '
|
40
|
+
get 'login', to: 'anoubis/sso/server/login#index'
|
41
|
+
post 'login', to: 'anoubis/sso/server/login#create'
|
42
|
+
get 'login/:session', to: 'anoubis/sso/server/login#show'
|
43
|
+
put 'login/:session', to: 'anoubis/sso/server/login#update'
|
44
|
+
delete 'login/:session', to: 'anoubis/sso/server/login#destroy'
|
45
45
|
|
46
|
-
get 'user/current', to: '
|
47
|
-
get 'user/:uuid', to: '
|
48
|
-
put 'user/current', to: '
|
49
|
-
put 'user/:uuid', to: '
|
46
|
+
get 'user/current', to: 'anoubis/sso/server/user#show_current'
|
47
|
+
get 'user/:uuid', to: 'anoubis/sso/server/user#show'
|
48
|
+
put 'user/current', to: 'anoubis/sso/server/user#update_current'
|
49
|
+
put 'user/:uuid', to: 'anoubis/sso/server/user#update'
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
@@ -54,10 +54,10 @@ Anoubis::Engine.routes.draw do
|
|
54
54
|
if lib_type == 'sso-client'
|
55
55
|
scope path: 'api', defaults: { format: 'json' } do
|
56
56
|
scope path: ':version' do
|
57
|
-
match '*path', { controller: '
|
57
|
+
match '*path', { controller: 'anoubis/sso/server/login', action: 'options', constraints: { method: 'OPTIONS' }, via: [:options] }
|
58
58
|
|
59
|
-
get 'menu', to: '
|
60
|
-
post 'logout', to: '
|
59
|
+
get 'menu', to: 'anoubis/sso/client/index#menu'
|
60
|
+
post 'logout', to: 'anoubis/sso/client/index#logout'
|
61
61
|
#get 'login', to: 'anubis/sso/server/login#index'
|
62
62
|
#post 'login', to: 'anubis/sso/server/login#create'
|
63
63
|
#put 'login/:session', to: 'anubis/sso/server/login#update'
|
data/lib/anoubis/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anoubis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Ryabov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.5.3
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: gelf
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 3.1.0
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 3.1.0
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: rake
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,18 +149,18 @@ files:
|
|
135
149
|
- Rakefile
|
136
150
|
- app/controllers/anoubis/application_controller.rb
|
137
151
|
- app/controllers/anoubis/core/application_controller.rb
|
138
|
-
- app/controllers/anoubis/core/data/actions.rb
|
139
|
-
- app/controllers/anoubis/core/data/callbacks.rb
|
140
|
-
- app/controllers/anoubis/core/data/convert.rb
|
141
|
-
- app/controllers/anoubis/core/data/defaults.rb
|
142
|
-
- app/controllers/anoubis/core/data/get.rb
|
143
|
-
- app/controllers/anoubis/core/data/load.rb
|
144
|
-
- app/controllers/anoubis/core/data/set.rb
|
145
|
-
- app/controllers/anoubis/core/data/setup.rb
|
146
|
-
- app/controllers/anoubis/core/data_controller.rb
|
147
152
|
- app/controllers/anoubis/core/index/actions.rb
|
148
153
|
- app/controllers/anoubis/core/index/callbacks.rb
|
149
154
|
- app/controllers/anoubis/core/index_controller.rb
|
155
|
+
- app/controllers/anoubis/data/actions.rb
|
156
|
+
- app/controllers/anoubis/data/callbacks.rb
|
157
|
+
- app/controllers/anoubis/data/convert.rb
|
158
|
+
- app/controllers/anoubis/data/defaults.rb
|
159
|
+
- app/controllers/anoubis/data/get.rb
|
160
|
+
- app/controllers/anoubis/data/load.rb
|
161
|
+
- app/controllers/anoubis/data/set.rb
|
162
|
+
- app/controllers/anoubis/data/setup.rb
|
163
|
+
- app/controllers/anoubis/data_controller.rb
|
150
164
|
- app/controllers/anoubis/etc.rb
|
151
165
|
- app/controllers/anoubis/etc/base.rb
|
152
166
|
- app/controllers/anoubis/etc/data.rb
|
@@ -168,15 +182,6 @@ files:
|
|
168
182
|
- app/controllers/anoubis/output/menu.rb
|
169
183
|
- app/controllers/anoubis/output/update.rb
|
170
184
|
- app/controllers/anoubis/sso/client/application_controller.rb
|
171
|
-
- app/controllers/anoubis/sso/client/data/actions.rb
|
172
|
-
- app/controllers/anoubis/sso/client/data/callbacks.rb
|
173
|
-
- app/controllers/anoubis/sso/client/data/convert.rb
|
174
|
-
- app/controllers/anoubis/sso/client/data/defaults.rb
|
175
|
-
- app/controllers/anoubis/sso/client/data/get.rb
|
176
|
-
- app/controllers/anoubis/sso/client/data/load.rb
|
177
|
-
- app/controllers/anoubis/sso/client/data/set.rb
|
178
|
-
- app/controllers/anoubis/sso/client/data/setup.rb
|
179
|
-
- app/controllers/anoubis/sso/client/data_controller.rb
|
180
185
|
- app/controllers/anoubis/sso/client/index/actions.rb
|
181
186
|
- app/controllers/anoubis/sso/client/index/callbacks.rb
|
182
187
|
- app/controllers/anoubis/sso/client/index_controller.rb
|
@@ -184,22 +189,10 @@ files:
|
|
184
189
|
- app/controllers/anoubis/sso/server/login_controller.rb
|
185
190
|
- app/controllers/anoubis/sso/server/user_controller.rb
|
186
191
|
- app/controllers/anoubis/tenant/application_controller.rb
|
187
|
-
- app/controllers/anoubis/tenant/data/actions.rb
|
188
|
-
- app/controllers/anoubis/tenant/data/callbacks.rb
|
189
|
-
- app/controllers/anoubis/tenant/data/convert.rb
|
190
|
-
- app/controllers/anoubis/tenant/data/defaults.rb
|
191
|
-
- app/controllers/anoubis/tenant/data/get.rb
|
192
|
-
- app/controllers/anoubis/tenant/data/load.rb
|
193
|
-
- app/controllers/anoubis/tenant/data/set.rb
|
194
|
-
- app/controllers/anoubis/tenant/data/setup.rb
|
195
|
-
- app/controllers/anoubis/tenant/data_controller.rb
|
196
192
|
- app/controllers/anoubis/tenant/index/actions.rb
|
197
193
|
- app/controllers/anoubis/tenant/index/callbacks.rb
|
198
194
|
- app/controllers/anoubis/tenant/index_controller.rb
|
199
|
-
- app/controllers/anoubis/tenants_controller.rb
|
200
|
-
- app/controllers/anoubis/users_controller.rb
|
201
195
|
- app/jobs/anoubis/application_job.rb
|
202
|
-
- app/mailers/anoubis/application_mailer.rb
|
203
196
|
- app/models/anoubis/application_record.rb
|
204
197
|
- app/models/anoubis/core/application_record.rb
|
205
198
|
- app/models/anoubis/core/locales.rb
|
@@ -225,6 +218,8 @@ files:
|
|
225
218
|
- app/models/anoubis/tenant/user.rb
|
226
219
|
- app/models/anoubis/tenant/user_group.rb
|
227
220
|
- app/services/anoubis/core_service.rb
|
221
|
+
- app/services/anoubis/log_service.rb
|
222
|
+
- app/services/anoubis/request_service.rb
|
228
223
|
- app/services/anoubis/session_service.rb
|
229
224
|
- app/validators/presence_in_tenant_validator.rb
|
230
225
|
- config/initializers/mime_type.rb
|
@@ -322,7 +317,11 @@ files:
|
|
322
317
|
homepage: https://github.com/RA-Company/
|
323
318
|
licenses:
|
324
319
|
- MIT
|
325
|
-
metadata:
|
320
|
+
metadata:
|
321
|
+
homepage_uri: https://github.com/RA-Company/
|
322
|
+
source_code_uri: https://github.com/RA-Company/anoubis
|
323
|
+
changelog_uri: https://github.com/RA-Company/anoubis/blob/main/CHANGELOG.md
|
324
|
+
documentation_uri: https://www.rubydoc.info/gems/anoubis/1.0.10
|
326
325
|
post_install_message:
|
327
326
|
rdoc_options: []
|
328
327
|
require_paths:
|