auto_autoloader 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: c8c070a7a3224ad1980b4c5960d050d4ed175c1b
4
- data.tar.gz: 5af7c1e35387f1687b5845a59acbb4d25adbbbe8
3
+ metadata.gz: 9bf316981d2e4571d31620beccf8d3643260810a
4
+ data.tar.gz: 845556a3c89d60c29c9c5959e1fb81c5930c3ed8
5
5
  SHA512:
6
- metadata.gz: 54fb20d7fc28e205494613ab40e939c5ddeeb38901074471f3fed1453fd1398b63603cd713c592dbf288c7299249d30f8310f50e0ce57b9cbaf8bcd83f40d3a7
7
- data.tar.gz: 401773eb5640505d80f71feeb1b71c4999bfa1e58ce3d6cb5065eb2c33680bceef75d04210621dd836f414961d44fa2e25b1f0c1b01dc12985b9faf454ef9d31
6
+ metadata.gz: cae2084858f94f1cb81b3505dae46f0e76bbba89ceb0af3615d6991c1ab4ebc2d492d357f37ca7256892cbb4ba59f8cc6d2d60a45079f34f8a9a984a03b64747
7
+ data.tar.gz: 0ac5750036dec686e362fc484a0580ca2134477aae25462a12056bb851e0c65fc37d307601c75565c928804953eadd60a9d6307057d6e585a111cb51c3a2e517
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: auto_autoloader 0.0.4 ruby lib
5
+ # stub: auto_autoloader 0.0.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "auto_autoloader"
9
- s.version = "0.0.4"
9
+ s.version = "0.0.5"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["kaspernj"]
14
- s.date = "2016-01-13"
14
+ s.date = "2016-07-24"
15
15
  s.description = "Autoload constants in natural subfolders from the original class in Ruby with a single line of code."
16
16
  s.email = "k@spernj.org"
17
17
  s.extra_rdoc_files = [
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  ]
40
40
  s.homepage = "http://github.com/kaspernj/auto_autoloader"
41
41
  s.licenses = ["MIT"]
42
- s.rubygems_version = "2.4.0"
42
+ s.rubygems_version = "2.2.2"
43
43
  s.summary = "Autoload constants in natural subfolders from the original class in Ruby with a single line of code."
44
44
 
45
45
  if s.respond_to? :specification_version then
@@ -1,3 +1,5 @@
1
+ require "string-cases"
2
+
1
3
  class AutoAutoloader
2
4
  def self.autoload_sub_classes(base, path)
3
5
  loader = ::AutoAutoloader.new(base: base, path: path)
@@ -34,9 +36,7 @@ class AutoAutoloader
34
36
 
35
37
  @base.autoload(const_camel_case, "#{dir_path}/#{file}")
36
38
  end
37
- # rubocop:disable Lint/HandleExceptions
38
- rescue Errno::ENOENT
39
- # rubocop:enable Lint/HandleExceptions
39
+ rescue Errno::ENOENT # rubocop:disable Lint/HandleExceptions
40
40
  # The directory doesn't exist. Don't autoload it.
41
41
  end
42
42
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_autoloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-13 00:00:00.000000000 Z
11
+ date: 2016-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: string-cases
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.4.0
157
+ rubygems_version: 2.2.2
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Autoload constants in natural subfolders from the original class in Ruby