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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f0936398cff5a48ce166357b32b7651e1888022174574362e01df5cc67398c8
4
- data.tar.gz: ec1f987cfdc277d86a49e627211417eac5079f0752051ccd5f0098d0d8720dc1
3
+ metadata.gz: 8e07aa3ae27c40f5e27f7de8d1e3b49de3fa1b4f42d07ff93e433fab5ea0371c
4
+ data.tar.gz: 20759a2632ceac78d6a01e07315d1fb908e0a687c948d65a2dd3720ca80cf672
5
5
  SHA512:
6
- metadata.gz: 119fb705a85a1159054639eeddcaa556716250621ae11970df584b3e859569c1aec9484df4b7cf25caab83be8126c57b3ff768d0bfcd8f4c397aaf0d8c920bce
7
- data.tar.gz: 71339e0544d2b7224810cb8a8fc0296cf0b94ed5119108905cbe5ecb721093bf621a72bb3225c48e1766ac0676440f0c4b62272f79b30a9141bacf4cfda237e6
6
+ metadata.gz: 316879c9f54c6fe0e3e03f37e667866ea61f028ea4b6200ad1429c1d1c3d0eee50b279e58e20348c9478f7c07d6b287552dac3ece35c15319e9990713967eb37
7
+ data.tar.gz: 69ed036607abf827de934fe9d1f29e9e1cfd891fe7f084f6b838fca7f9274b5ca300b81dd656ac5b2368ffee041919ab862dff6357a572a4c8a6608988199120
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MetaProgrammingCommon
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
@@ -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.3
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-08 00:00:00.000000000 Z
11
+ date: 2022-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport