anoubis 1.0.1 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -0
  3. data/app/controllers/anoubis/application_controller.rb +4 -0
  4. data/app/controllers/anoubis/core/index/actions.rb +1 -1
  5. data/app/controllers/anoubis/core/index_controller.rb +3 -3
  6. data/app/controllers/anoubis/data/actions.rb +947 -0
  7. data/app/controllers/anoubis/data/callbacks.rb +66 -0
  8. data/app/controllers/anoubis/data/convert.rb +422 -0
  9. data/app/controllers/anoubis/data/defaults.rb +215 -0
  10. data/app/controllers/anoubis/data/get.rb +529 -0
  11. data/app/controllers/anoubis/data/load.rb +87 -0
  12. data/app/controllers/anoubis/data/set.rb +47 -0
  13. data/app/controllers/anoubis/data/setup.rb +102 -0
  14. data/app/controllers/anoubis/data_controller.rb +21 -0
  15. data/app/controllers/anoubis/etc/field.rb +7 -0
  16. data/app/controllers/anoubis/output/basic.rb +1 -1
  17. data/app/controllers/anoubis/sso/client/index_controller.rb +2 -2
  18. data/app/controllers/anoubis/sso/server/login_controller.rb +5 -5
  19. data/app/controllers/anoubis/sso/server/user_controller.rb +2 -2
  20. data/app/controllers/anoubis/tenant/index_controller.rb +3 -3
  21. data/app/models/anoubis/application_record.rb +141 -0
  22. data/app/services/anoubis/log_service.rb +97 -0
  23. data/app/services/anoubis/request_service.rb +134 -0
  24. data/config/locales/en.yml +20 -6
  25. data/config/locales/ru.yml +25 -13
  26. data/config/routes.rb +19 -19
  27. data/lib/anoubis/version.rb +1 -1
  28. metadata +32 -33
  29. data/app/controllers/anoubis/core/data/actions.rb +0 -962
  30. data/app/controllers/anoubis/core/data/callbacks.rb +0 -68
  31. data/app/controllers/anoubis/core/data/convert.rb +0 -407
  32. data/app/controllers/anoubis/core/data/defaults.rb +0 -217
  33. data/app/controllers/anoubis/core/data/get.rb +0 -531
  34. data/app/controllers/anoubis/core/data/load.rb +0 -89
  35. data/app/controllers/anoubis/core/data/set.rb +0 -49
  36. data/app/controllers/anoubis/core/data/setup.rb +0 -104
  37. data/app/controllers/anoubis/core/data_controller.rb +0 -28
  38. data/app/controllers/anoubis/sso/client/data/actions.rb +0 -5
  39. data/app/controllers/anoubis/sso/client/data/callbacks.rb +0 -5
  40. data/app/controllers/anoubis/sso/client/data/convert.rb +0 -5
  41. data/app/controllers/anoubis/sso/client/data/defaults.rb +0 -5
  42. data/app/controllers/anoubis/sso/client/data/get.rb +0 -5
  43. data/app/controllers/anoubis/sso/client/data/load.rb +0 -26
  44. data/app/controllers/anoubis/sso/client/data/set.rb +0 -5
  45. data/app/controllers/anoubis/sso/client/data/setup.rb +0 -5
  46. data/app/controllers/anoubis/sso/client/data_controller.rb +0 -21
  47. data/app/controllers/anoubis/tenant/data/actions.rb +0 -11
  48. data/app/controllers/anoubis/tenant/data/callbacks.rb +0 -11
  49. data/app/controllers/anoubis/tenant/data/convert.rb +0 -11
  50. data/app/controllers/anoubis/tenant/data/defaults.rb +0 -11
  51. data/app/controllers/anoubis/tenant/data/get.rb +0 -11
  52. data/app/controllers/anoubis/tenant/data/load.rb +0 -52
  53. data/app/controllers/anoubis/tenant/data/set.rb +0 -11
  54. data/app/controllers/anoubis/tenant/data/setup.rb +0 -11
  55. data/app/controllers/anoubis/tenant/data_controller.rb +0 -28
  56. data/app/controllers/anoubis/tenants_controller.rb +0 -7
  57. data/app/controllers/anoubis/users_controller.rb +0 -7
  58. data/app/mailers/anoubis/application_mailer.rb +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2952b978cd0972cc3e1ced91c7728940ce7d90e0247097c1a2e755f06ab01bd4
4
- data.tar.gz: 4d83a4fd21a78e398a380aab8300d5b0d2eef043ab866bc92ff46935eb09c9ca
3
+ metadata.gz: cc8ceeedc090ec925b88f60a4590f8cbdd834818d47ce9f5478c7f7a425ed381
4
+ data.tar.gz: 3ffc744a25fbf9cef5506538898902eb55ec8283505292c66fb14740b7fb6d5e
5
5
  SHA512:
6
- metadata.gz: a07795ecbb430b0c62f3245f202de5cc88debdaa42256e70e49f5a1838c61ae18c72d0287b48b5089c7e8ab42647b831854d2fc7ade6fcb62644225f6de4424c
7
- data.tar.gz: c256666a07e9b8ba80769840dca82e2029d556530bae8620fc25acfc01b778c8d534c2d65a70222ea153ef6a8d6030a9a894310de15f4a7ce577a22c552000ba
6
+ metadata.gz: 28801bcc259fe678bbffb89d96a36c5d31fb47b9aa4ea1fe82f59e1434142b93032587806a0882c4948b743272b0c2c5306fbf2952ecf5b9fef0c799e3446e97
7
+ data.tar.gz: d2bfc2c2e958e790f8f5b8aa4bd8bea22b9e9931d65a598668900afffddd7b97363e596f07d168d663f65d9cee2046b2008f2e659783f5854f162758903cb070
data/README.md CHANGED
@@ -21,6 +21,16 @@ Or install it yourself as:
21
21
  $ gem install anoubis
22
22
  ```
23
23
 
24
+ ## Configuration parameters
25
+
26
+ This configuration parameters can be placed at files config/application.rb for global configuration or config/environments/<environment>.rb for custom environment configuration.
27
+
28
+ ```ruby
29
+ config.graylog_server = '127.0.0.1' # Graylog server (By default set as '127.0.0.1') (*optional)
30
+ config.graylog_port = 12201 # Graylog server port (By default set as 12201) (*optional)
31
+ config.graylog_facility = 'Graylog' # Graylog source identifier (By default set as 'Graylog') (*optional)
32
+ ```
33
+
24
34
  ## Contributing
25
35
  Contribution directions go here.
26
36
 
@@ -10,6 +10,10 @@ class Anoubis::ApplicationController < ActionController::API
10
10
  ## Current used locale
11
11
  attr_accessor :locale
12
12
 
13
+ # @!attribute [rw] output
14
+ # @return [Anoubis::Output] standard output.
15
+ attr_accessor :output
16
+
13
17
  ##
14
18
  # Returns default locale initialized in application configuration file. Variable is taken from {https://guides.rubyonrails.org/i18n.html Rails.configuration.i18n.default_locale} parameter
15
19
  # @return [String] default locale
@@ -1,4 +1,4 @@
1
- require_dependency "anubis/output/login"
1
+ require_dependency "anoubis/output/login"
2
2
 
3
3
  module Anoubis
4
4
  module Core
@@ -1,6 +1,6 @@
1
- require_dependency "anubis/core/application_controller"
2
- require_dependency "anubis/core/index/actions"
3
- require_dependency "anubis/core/index/callbacks"
1
+ require_dependency "anoubis/core/application_controller"
2
+ require_dependency "anoubis/core/index/actions"
3
+ require_dependency "anoubis/core/index/callbacks"
4
4
 
5
5
  module Anoubis
6
6
  module Core