codekindly-utils 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +1 -0
- data/lib/code_kindly/utils/active_record.rb +6 -1
- data/lib/code_kindly/utils/version.rb +1 -1
- 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: 66bfc5007f1481efb81df951825a894eeea677a9be0cb892d3ff1084ea4895d7
|
4
|
+
data.tar.gz: '08a6d8b94228746e24f780ee0978c6d5612e3a3e2f50259fe6c1231b4209ccdb'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69678e451b1855eb39a26f7e97e164a6a743f8f52e6042f7e489cf869e11bc0fe72251fb74114137f71f22eab399a0af80594e34de7642a742e0d0c9e16b338a
|
7
|
+
data.tar.gz: 06a70f8e0e06c0ec924c5fa76a14488fe9fc8af763211f13ea57de7e7d6a35e645c2c287e73b2325f9f54fe246e6cc9eab1b297802b309f7ec64ccd8531ac883
|
data/CONTRIBUTING.md
CHANGED
@@ -11,6 +11,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/jlw/co
|
|
11
11
|
To run tests against all supported Ruby versions and all supported major dependency versions:
|
12
12
|
|
13
13
|
```Shell
|
14
|
+
./all_rubies bundle
|
14
15
|
./all_rubies appraisal-install
|
15
16
|
./all_rubies appraisal-spec
|
16
17
|
```
|
@@ -74,7 +74,12 @@ module CodeKindly
|
|
74
74
|
def find_classes
|
75
75
|
if RAILS.try(:env).try(:development?)
|
76
76
|
model_files = RAILS.root.join('app', 'models').to_s + '/**/*.rb'
|
77
|
-
::Dir.glob(model_files)
|
77
|
+
::Dir.glob(model_files) do |f|
|
78
|
+
klass = ::File.basename(f, '.rb').classify
|
79
|
+
next if Kernel.const_defined? klass
|
80
|
+
|
81
|
+
require f
|
82
|
+
end
|
78
83
|
end
|
79
84
|
ObjectSpace.each_object(Class).select do |klass|
|
80
85
|
application_active_record_class?(klass)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codekindly-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Weathers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|