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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1e0ca8f0c779cfd72c4c90a54a026563bf4558241c84210111b4d2c1a8cc064
4
- data.tar.gz: 2f38daf630fdf766564b439f692afd847c3646ae694b7b32ca7c1f7b768aa49c
3
+ metadata.gz: 66bfc5007f1481efb81df951825a894eeea677a9be0cb892d3ff1084ea4895d7
4
+ data.tar.gz: '08a6d8b94228746e24f780ee0978c6d5612e3a3e2f50259fe6c1231b4209ccdb'
5
5
  SHA512:
6
- metadata.gz: 3fa0d46a81f85cde2611f2746ab0c10168c46464a52fd62a056080ba90f2330546032f3ffb3586cb2e2e399d835d5841af05fb1bb1fbf2ce8f0289802e6a8eb1
7
- data.tar.gz: d7b32548c6063a1ffe97d09f45abb2701348b5c11110fca2856044693977244e46d2845e2c68c396737330feebd9e558b16ad2a84a703a9e8badeb75e683f324
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) { |f| require f }
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module CodeKindly
4
4
  module Utils
5
- VERSION = '0.0.9'.freeze
5
+ VERSION = '0.0.10'.freeze
6
6
  end
7
7
  end
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.9
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: 2018-10-01 00:00:00.000000000 Z
11
+ date: 2019-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline