thecore_api 1.5.10 → 1.5.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d34f33ca2e4e62557a788e09bb158cdd1cddc1ff64015947dcc90c15ccb5bbed
4
- data.tar.gz: 6fbd77a0d9f789e64444be579f2252dd0f4705fb340e5c00dad570ec79f51079
3
+ metadata.gz: 2c7b3d5a21b06d42c03e74c8fe651f80977fa8b9a152f8f2f34968cd5fa3aa39
4
+ data.tar.gz: 322d93245bd5a37e71b08b8c439d76f5988615ae64973d574f423b7b0aa9feb6
5
5
  SHA512:
6
- metadata.gz: dbf13f342450fa6935f7c92dfb921e221893514278cfc134b56240e012709eeb167118fab6089b81f4f7cc6acaa8d8837d392f1d5031378c0ebaf419ce75be8f
7
- data.tar.gz: e669ca4c0baf19045b8f4a3b2f89ebf8dafaef21e0fc65e7f7f7dd36b7f708757190aa2efeb862978b87bbdd988e6fac4045fc7f2f4660cc10917f8c37bc33ee
6
+ metadata.gz: 2bd82a65f2a1183ad441a4c7babfa6d68ccb49818ed68319278f5da97657bf22939106c0063391f5e812227509a3278a440c682267d4f7dad6a41e5d19299f40
7
+ data.tar.gz: 22cb70596e5e6054b50c27d628c3e4abfb4eebff8cdd5332b9a606001749fd77acb072561435c7a88c9d5ecaa21f80bb008a0f6e38d5d0caff7f9bc9137a4968
@@ -34,10 +34,10 @@ class Api::V1::InfoController < Api::V1::BaseController
34
34
  # GET '/api/v1/info/schema'
35
35
  def schema
36
36
  pivot = {}
37
- if Rails.env.development?
38
- Rails.configuration.eager_load_namespaces.each(&:eager_load!) if Rails.version.to_i == 5 #Rails 5
39
- Zeitwerk::Loader.eager_load_all if Rails.version.to_i >= 6 #Rails 6
40
- end
37
+ # if Rails.env.development?
38
+ # Rails.configuration.eager_load_namespaces.each(&:eager_load!) if Rails.version.to_i == 5 #Rails 5
39
+ # Zeitwerk::Loader.eager_load_all if Rails.version.to_i >= 6 #Rails 6
40
+ # end
41
41
  ApplicationRecord.subclasses.each do |d|
42
42
  model = d.to_s.underscore.tableize
43
43
  pivot[model] ||= {}
@@ -61,10 +61,10 @@ class Api::V1::InfoController < Api::V1::BaseController
61
61
  # GET '/api/v1/info/dsl'
62
62
  def dsl
63
63
  pivot = {}
64
- if Rails.env.development?
65
- Rails.configuration.eager_load_namespaces.each(&:eager_load!) if Rails.version.to_i == 5 #Rails 5
66
- Zeitwerk::Loader.eager_load_all if Rails.version.to_i >= 6 #Rails 6
67
- end
64
+ # if Rails.env.development?
65
+ # Rails.configuration.eager_load_namespaces.each(&:eager_load!) if Rails.version.to_i == 5 #Rails 5
66
+ # Zeitwerk::Loader.eager_load_all if Rails.version.to_i >= 6 #Rails 6
67
+ # end
68
68
  ApplicationRecord.subclasses.each do |d|
69
69
  model = d.to_s.underscore.tableize
70
70
  pivot[model] = (d.instance_methods(false).include?(:json_attrs) && !d.json_attrs.blank?) ? d.json_attrs : nil
@@ -1,3 +1,3 @@
1
1
  module ThecoreApi
2
- VERSION = "1.5.10".freeze
2
+ VERSION = "1.5.12".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.10
4
+ version: 1.5.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-04 00:00:00.000000000 Z
11
+ date: 2020-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore
@@ -161,7 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0'
163
163
  requirements: []
164
- rubygems_version: 3.0.6
164
+ rubyforge_project:
165
+ rubygems_version: 2.7.6.2
165
166
  signing_key:
166
167
  specification_version: 4
167
168
  summary: Taris API.