eitil 2.0.4 → 2.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2edc24dc4673e9c8eabc8340bbdb05bcf714b0a657b963df0a31a585e9577a9d
|
4
|
+
data.tar.gz: ac24d95b97cf8c7ad21719264a5d8519d11e8d3eddee862c97a9dbc264b96768
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db7b2af3252a1e6443b8a22e6555ff61ebb4df435963e8b42b872a2fa219f1a3286fa6abaf3c5905d61918c98df48a04b355d84b6c84604640549ed690599971
|
7
|
+
data.tar.gz: 23c9459574092284fcf095cd8bb4a1ca41f97a1e5013caad874058ee9dece9f03411fe281a37ccec4bd2d619b40aff70db0285ac1177421aa4cc974a70b39efb
|
@@ -15,7 +15,6 @@ require_relative "application_exporter/style_cells"
|
|
15
15
|
require_relative "application_exporter/store_file"
|
16
16
|
require_relative "application_exporter/setters"
|
17
17
|
require_relative "application_exporter/selectors"
|
18
|
-
require_relative "application_exporter/lookups"
|
19
18
|
require_relative "application_exporter/infos"
|
20
19
|
require_relative "application_exporter/log_state"
|
21
20
|
|
data/lib/eitil/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eitil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jurriaan Schrofer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -246,7 +246,6 @@ files:
|
|
246
246
|
- eitil_integrate/lib/eitil_integrate/application_exporter/infos.rb
|
247
247
|
- eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
|
248
248
|
- eitil_integrate/lib/eitil_integrate/application_exporter/log_state.rb
|
249
|
-
- eitil_integrate/lib/eitil_integrate/application_exporter/lookups.rb
|
250
249
|
- eitil_integrate/lib/eitil_integrate/application_exporter/selectors.rb
|
251
250
|
- eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
|
252
251
|
- eitil_integrate/lib/eitil_integrate/application_exporter/store_file.rb
|
@@ -1,50 +0,0 @@
|
|
1
|
-
|
2
|
-
# require "eitil_integrate/application_exporter/lookups"
|
3
|
-
|
4
|
-
require "eitil_integrate/application_exporter/initialize"
|
5
|
-
require "eitil_support/directory"
|
6
|
-
|
7
|
-
module EitilIntegrate::RubyXL
|
8
|
-
class ApplicationExporter
|
9
|
-
|
10
|
-
class << self
|
11
|
-
|
12
|
-
def exporter_paths
|
13
|
-
EitilSupport::Directory.files('app/views/exporters/exporters').select { |path| path.end_with? '_exporter.rb' }
|
14
|
-
end
|
15
|
-
|
16
|
-
def exporter_names
|
17
|
-
exporter_paths.map { |path| path.split('/').last.remove('.rb').camelcase }
|
18
|
-
end
|
19
|
-
|
20
|
-
def exporter_constants
|
21
|
-
exporter_names.map &:constantize
|
22
|
-
end
|
23
|
-
|
24
|
-
def exporter_infos
|
25
|
-
exporter_constants.map { |_c| { "#{_c.to_s.remove("Exporter")}": _c.info || {} } }.inject &:merge
|
26
|
-
end
|
27
|
-
|
28
|
-
def exporter_info(exporter, info)
|
29
|
-
exporter_infos[exporter]&.dig(info)
|
30
|
-
end
|
31
|
-
|
32
|
-
# returns the exporter_infos, without the datatypes – for taxonomy purpuses, the field
|
33
|
-
# names are often sufficient
|
34
|
-
def exporter_taxonomy
|
35
|
-
parameter_fields = exporter_infos.transform_values { |v| v.select { |k,v| k == :required || k == :optional } }
|
36
|
-
|
37
|
-
parameter_fields.transform_values do |setting_collection|
|
38
|
-
setting_collection.transform_values do |setting|
|
39
|
-
setting.map { |key| key.is_a?(Hash) ? key.keys : key }.flatten
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
def exporter_params
|
45
|
-
exporter_infos.transform_values { |v| [v[:required], v[:optional]].flatten.compact }
|
46
|
-
end
|
47
|
-
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|