anoubis 1.0.11 → 1.0.12
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca54a9f12fd045c1744271d6cf951da94061e002af8d32a1eb50e2616daeac75
|
4
|
+
data.tar.gz: e5dbe2556e68d9e2a6509dfca422237f94626b060006e40e319e649619b8be90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91436b864c0a61a4d66d510b5e1845c73e07857c40f3f93b06fc1c406fc7b5d3dc3e9c247cb26285f6746ac04da526bb9adb1a7bddfdf337492220756dbe1caa
|
7
|
+
data.tar.gz: 209eeb301e6bd66bf17617c7fb395ec4cb3d31cf48d838ee06adfdf67c23205e1e73d72a3d2c131bf775bcc2955fe7128de0f5a9e3c726eb7d427f5ce466ea85
|
@@ -14,6 +14,10 @@ class Anoubis::ApplicationController < ActionController::API
|
|
14
14
|
# @return [Anoubis::Output] standard output.
|
15
15
|
attr_accessor :output
|
16
16
|
|
17
|
+
# @!attribute [rw] exports
|
18
|
+
# @return [Anubis::Export] Export data class
|
19
|
+
attr_accessor :exports
|
20
|
+
|
17
21
|
##
|
18
22
|
# Returns default locale initialized in application configuration file. Variable is taken from {https://guides.rubyonrails.org/i18n.html Rails.configuration.i18n.default_locale} parameter
|
19
23
|
# @return [String] default locale
|
@@ -54,6 +58,7 @@ class Anoubis::ApplicationController < ActionController::API
|
|
54
58
|
self.locale = params[:locale] if params.has_key? :locale
|
55
59
|
self.locale = default_locale unless self.locale
|
56
60
|
self.locale = default_locale if self.locale == ''
|
61
|
+
self.exports = nil
|
57
62
|
begin
|
58
63
|
I18n.locale = locale
|
59
64
|
rescue
|
@@ -139,8 +139,8 @@ module Anoubis
|
|
139
139
|
# Convert value from database to table view for datetime type
|
140
140
|
def convert_db_to_view_value_datetime(key, value)
|
141
141
|
field = self.etc.data.fields[key]
|
142
|
-
puts key
|
143
|
-
puts value.class
|
142
|
+
#puts key
|
143
|
+
#puts value.class
|
144
144
|
if (value.class == Date) || (value.class == ActiveSupport::TimeWithZone)
|
145
145
|
begin
|
146
146
|
new_value = convert_datetime_to_string value, field.format
|
@@ -10,6 +10,7 @@ require_dependency "anoubis/data/callbacks"
|
|
10
10
|
##
|
11
11
|
# Main data controller class
|
12
12
|
class Anoubis::DataController < Anoubis::ApplicationController
|
13
|
+
include ActionController::MimeResponds
|
13
14
|
include Anoubis::Data::Actions
|
14
15
|
include Anoubis::Data::Load
|
15
16
|
include Anoubis::Data::Get
|
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.12
|
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-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -321,7 +321,7 @@ metadata:
|
|
321
321
|
homepage_uri: https://github.com/RA-Company/
|
322
322
|
source_code_uri: https://github.com/RA-Company/anoubis
|
323
323
|
changelog_uri: https://github.com/RA-Company/anoubis/blob/main/CHANGELOG.md
|
324
|
-
documentation_uri: https://www.rubydoc.info/gems/anoubis/1.0.
|
324
|
+
documentation_uri: https://www.rubydoc.info/gems/anoubis/1.0.12
|
325
325
|
post_install_message:
|
326
326
|
rdoc_options: []
|
327
327
|
require_paths:
|