meta_programming_common 0.1.3 → 0.1.4
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 +4 -4
- data/lib/meta_programming_common/version.rb +1 -1
- data/lib/meta_programming_common.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e07aa3ae27c40f5e27f7de8d1e3b49de3fa1b4f42d07ff93e433fab5ea0371c
|
|
4
|
+
data.tar.gz: 20759a2632ceac78d6a01e07315d1fb908e0a687c948d65a2dd3720ca80cf672
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 316879c9f54c6fe0e3e03f37e667866ea61f028ea4b6200ad1429c1d1c3d0eee50b279e58e20348c9478f7c07d6b287552dac3ece35c15319e9990713967eb37
|
|
7
|
+
data.tar.gz: 69ed036607abf827de934fe9d1f29e9e1cfd891fe7f084f6b838fca7f9274b5ca300b81dd656ac5b2368ffee041919ab862dff6357a572a4c8a6608988199120
|
|
@@ -38,6 +38,7 @@ module MetaProgrammingCommon
|
|
|
38
38
|
#byebug
|
|
39
39
|
next if filename =~ /page_parser_base/
|
|
40
40
|
next if filename =~ /parser_page_base/
|
|
41
|
+
next if filename =~ /page_parser\.rb$/
|
|
41
42
|
next if filename =~ /page_archive/
|
|
42
43
|
if filename =~ /lib\/#{prefix}/
|
|
43
44
|
#byebug
|
|
@@ -45,6 +46,12 @@ module MetaProgrammingCommon
|
|
|
45
46
|
require filename
|
|
46
47
|
#puts filename
|
|
47
48
|
klass = File.basename(filename, '.rb').camelize.constantize
|
|
49
|
+
if klass == PageParser
|
|
50
|
+
# this is stupid AF -- I know but somehow the next above on 43 is not filtering
|
|
51
|
+
# out the module
|
|
52
|
+
else
|
|
53
|
+
models << klass if klass.available?
|
|
54
|
+
end
|
|
48
55
|
models << klass if klass.available?
|
|
49
56
|
elsif filename =~ /generic/
|
|
50
57
|
generic_page_parser = filename
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: meta_programming_common
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scott Johnson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-07-
|
|
11
|
+
date: 2022-07-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|