eitil 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/eitil_wrapper/lib/eitil_wrapper/records/default_calculators.rb +1 -2
- data/eitil_wrapper/lib/eitil_wrapper/records/default_scopes.rb +1 -2
- data/eitil_wrapper/lib/eitil_wrapper/records/default_sorts.rb +2 -1
- data/lib/eitil/version.rb +1 -1
- metadata +1 -2
- data/eitil_core/lib/eitil_core/kernel/always_require_relative.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62c186ffdd14894a3ed5ce9d6a635030821ab1bdc86aa5ad7f35c7d1a3592dca
|
4
|
+
data.tar.gz: b53791e40cd28e1f6435e9cbc2888c57e26ca6f5d05b3cb3518f7285a6311618
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 869d88f962e7a688b203d0f5e89132ce5f343975d6ce1a0c926691454027c5935073086766c5d0febb28be0108ca8a183f106cfb32b8314f50046dbffd6d68c7
|
7
|
+
data.tar.gz: 3ebe01d21f32cc00c3e9c84b9937b71d9e1aa46590f5b0384c18d28e0a1d6706a161cab34c58bdb2a0b59c2a8883dcf1371bcd928f645b8c6fadcdd6057143c4
|
@@ -36,7 +36,7 @@ module EitilWrapper
|
|
36
36
|
subclass.use_eitil_calculators
|
37
37
|
|
38
38
|
rescue => e
|
39
|
-
puts "default calculators failed for #{subclass} because of #{e.class} and '#{e.to_s.split(' ').first}'"
|
39
|
+
puts "default calculators failed for class '#{subclass}' with expected table '#{subclass.table_name}' because of #{e.class} and '#{e.to_s.split(' ').first}'"
|
40
40
|
end
|
41
41
|
|
42
42
|
def use_eitil_calculators
|
@@ -99,4 +99,3 @@ module EitilWrapper
|
|
99
99
|
end
|
100
100
|
end
|
101
101
|
end
|
102
|
-
|
@@ -43,7 +43,7 @@ module EitilWrapper
|
|
43
43
|
subclass.use_eitil_scopes
|
44
44
|
|
45
45
|
rescue => e
|
46
|
-
puts "default scopes failed for #{subclass} because of #{e.class} and '#{e.to_s.split(' ').first}'"
|
46
|
+
puts "default scopes failed for class '#{subclass}' with expected table '#{subclass.table_name}' because of #{e.class} and '#{e.to_s.split(' ').first}'"
|
47
47
|
end
|
48
48
|
|
49
49
|
def use_eitil_scopes
|
@@ -56,7 +56,6 @@ module EitilWrapper
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def columns_of_type(data_type)
|
59
|
-
binding.pry if $pry
|
60
59
|
columns_hash.select { |column,v| v.sql_type_metadata.type == data_type }
|
61
60
|
end
|
62
61
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
# require "eitil_wrapper/records/default_sorts"
|
2
3
|
|
3
4
|
# require "eitil_wrapper/railtie" to run the dynamic dispatch as an init hook during boot
|
@@ -35,7 +36,7 @@ module EitilWrapper
|
|
35
36
|
subclass.use_eitil_sorts
|
36
37
|
|
37
38
|
rescue => e
|
38
|
-
puts "default sorts failed for #{subclass} because of #{e.class} and '#{e.to_s.split(' ').first}'"
|
39
|
+
puts "default sorts failed for class '#{subclass}' with expected table '#{subclass.table_name}' because of #{e.class} and '#{e.to_s.split(' ').first}'"
|
39
40
|
end
|
40
41
|
|
41
42
|
def use_eitil_sorts
|
data/lib/eitil/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eitil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jurriaan Schrofer
|
@@ -207,7 +207,6 @@ files:
|
|
207
207
|
- eitil_core/lib/eitil_core/hash/auto_dig.rb
|
208
208
|
- eitil_core/lib/eitil_core/hash/transform_string_values.rb
|
209
209
|
- eitil_core/lib/eitil_core/kernel.rb
|
210
|
-
- eitil_core/lib/eitil_core/kernel/always_require_relative.rb
|
211
210
|
- eitil_core/lib/eitil_core/kernel/loadquire.rb
|
212
211
|
- eitil_core/lib/eitil_core/kernel/loadquire_bang.rb
|
213
212
|
- eitil_core/lib/eitil_core/lookups.rb
|
@@ -1,21 +0,0 @@
|
|
1
|
-
|
2
|
-
# require "eitil_core/kernel/always_require_relative"
|
3
|
-
|
4
|
-
Kernel.module_eval do
|
5
|
-
|
6
|
-
def always_require_relative(current_path, relative_path, extension = '.rb')
|
7
|
-
|
8
|
-
unless Object.const_defined?('Rails')
|
9
|
-
return require_relative(path)
|
10
|
-
end
|
11
|
-
|
12
|
-
absolute_path = File.expand_path(relative_path, current_path).concat(extension)
|
13
|
-
|
14
|
-
if Rails.env.development?
|
15
|
-
load(absolute_path)
|
16
|
-
else
|
17
|
-
require(absolute_path)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|