lhc 4.0.1 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lhc.rb +5 -2
  3. data/lib/lhc/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d691a658bfda417751651e5898bb0418b3957329
4
- data.tar.gz: b69d9b689e3fa82ee19612db202e8250a8a79884
3
+ metadata.gz: a045e9c4ec6bd59f9113d07c47ab443e950d0351
4
+ data.tar.gz: f9f7eeab4930f67f6ad781ff6e90a7a42cb00b7b
5
5
  SHA512:
6
- metadata.gz: 3e303ce3c2dba5ef933f30bddf45793cc703047789752bc8e56352bb940f5630bd0e6fe283a4c2c9e9888e9fc3a23b560692454b14f712e3c5f7572eecf98474
7
- data.tar.gz: 179e0691d55b40582036c92722bfb870b8936556a90465279e8e5d95d4145a8b1ccc0ae359b4f87956ac2a4004aed60adcec318d6ff777139c5339bfe99c2351
6
+ metadata.gz: 456aee147439c9b397742524744f29883a51cf1fcd834c1397b855416655313e30ba430cef40e766b99111c778f846fe632272422e33dbe3fda023092684c232
7
+ data.tar.gz: 729fd32780eeb613feaeabf884a262ffd83899fe77bfd0e1846355e35ed2431b88753107f48a5a3792bea603cd88ee1a6d2b5d4c65cfc63242fbff9ef2c40d6e
data/lib/lhc.rb CHANGED
@@ -16,6 +16,9 @@ end
16
16
 
17
17
  Gem.find_files('lhc/**/*.rb')
18
18
  .sort
19
- .each do |path|
20
- require path if defined?(Rails) || !File.basename(path).include?('railtie.rb')
19
+ .reject do |path|
20
+ (!defined?(Rails) && File.basename(path).include?('railtie.rb')) || # don't require railtie if Rails is not around
21
+ path.match(%r{\/test\/.*_helper}) # don't require test helper (as we ask people to explicitly require if needed)
22
+ end.each do |path|
23
+ require path
21
24
  end
@@ -1,3 +1,3 @@
1
1
  module LHC
2
- VERSION ||= "4.0.1"
2
+ VERSION ||= "4.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhc
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://github.com/local-ch/lhc/contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-10 00:00:00.000000000 Z
11
+ date: 2017-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus