auto_autoloader 0.0.0 → 0.0.1

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: 91459201994a488dd2ca0206e645c831841c260e
4
- data.tar.gz: 8b1005753de40f38d028df479000ca2aa36da303
3
+ metadata.gz: 23a7863f796dd2d4e7fbe80e4213716523a96304
4
+ data.tar.gz: 8db05b5d76a989407acadb404951995dfc86ce9a
5
5
  SHA512:
6
- metadata.gz: 2310dac883ecea107d9ae20357a49f3b9bac171acd9cd0bc156a42fdc62304977ecd6c9cdecd533c39e75d31a3a6f3061d7da35434a026d0cfde32bca78810f8
7
- data.tar.gz: 645f2cbaea057d4127ceb0db16d6543aca4e6b98055b81929ceab12215bf59240db2767b117f5ce894df79849deaf0d702d69fa91004ab4cfaf0e2c337e3594a
6
+ metadata.gz: 117b336e2683e9202dd4b42a4f7fcfd0710209c9f896a84220950d8c92bf374a44bb47f33654f0c8cdac4289620ab182b585155e0863b7bf7b2dcf40f76062a8
7
+ data.tar.gz: b36d77e1ae057e65795b77988505c16b120953282654be66e0cac9b4775aa0b87caf266e3650495ac5304f526a4a9a93fa841078e211bc0069d2b8cf4f41e280
@@ -1,9 +1,26 @@
1
- = auto_autoloader
1
+ [![Build Status](https://img.shields.io/shippable/568908111895ca4474673ec5.svg)](https://app.shippable.com/projects/568908111895ca4474673ec5/builds/latest)
2
2
 
3
- Description goes here.
3
+ # auto_autoloader
4
+
5
+ ## Install
6
+
7
+ ```ruby
8
+ gem "auto_autoloader"
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ File: "lib/my_class.rb"
14
+ ```ruby
15
+ class MyClass
16
+ AutoAutoloader.autoload_sub_classes(self, __FILE__)
17
+ end
18
+ ```
19
+
20
+ It will now try to autoload "MyClass:SubClass" in the following path: "lib/my_class/sub_class.rb".
21
+
22
+ ## Contributing to auto_autoloader
4
23
 
5
- == Contributing to auto_autoloader
6
-
7
24
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
25
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
26
  * Fork the project.
@@ -12,7 +29,7 @@ Description goes here.
12
29
  * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
30
  * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
31
 
15
- == Copyright
32
+ ## Copyright
16
33
 
17
34
  Copyright (c) 2016 kaspernj. See LICENSE.txt for
18
35
  further details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -2,11 +2,11 @@
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.0 ruby lib
5
+ # stub: auto_autoloader 0.0.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "auto_autoloader"
9
- s.version = "0.0.0"
9
+ s.version = "0.0.1"
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"]
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.email = "k@spernj.org"
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
19
- "README.rdoc"
19
+ "README.md"
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
@@ -25,11 +25,12 @@ Gem::Specification.new do |s|
25
25
  "Gemfile",
26
26
  "Gemfile.lock",
27
27
  "LICENSE.txt",
28
- "README.rdoc",
28
+ "README.md",
29
29
  "Rakefile",
30
30
  "VERSION",
31
31
  "auto_autoloader.gemspec",
32
32
  "lib/auto_autoloader.rb",
33
+ "shippable.yml",
33
34
  "spec/auto_autoloader_spec.rb",
34
35
  "spec/spec_helper.rb",
35
36
  "spec/test_class.rb",
@@ -3,7 +3,7 @@ class AutoAutoloader
3
3
  base.extend AutoAutoloader::ClassMethods
4
4
 
5
5
  base.class_eval do
6
- @autoload_path = path
6
+ @autoload_path = File.dirname(path)
7
7
  end
8
8
  end
9
9
 
data/shippable.yml ADDED
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ cache: bundler
3
+ archive: true
4
+ rvm:
5
+ - ruby-1.9.3
6
+ - ruby-2.1.2
7
+ - jruby-1.7.13
8
+ script:
9
+ - bundle exec rspec
10
+ - rubocop
11
+ notifications:
12
+ email: false
data/spec/test_class.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class TestClass
2
- AutoAutoloader.autoload_sub_classes(self, __dir__)
2
+ AutoAutoloader.autoload_sub_classes(self, __FILE__)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_autoloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj
@@ -115,7 +115,7 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files:
117
117
  - LICENSE.txt
118
- - README.rdoc
118
+ - README.md
119
119
  files:
120
120
  - ".document"
121
121
  - ".rspec"
@@ -123,11 +123,12 @@ files:
123
123
  - Gemfile
124
124
  - Gemfile.lock
125
125
  - LICENSE.txt
126
- - README.rdoc
126
+ - README.md
127
127
  - Rakefile
128
128
  - VERSION
129
129
  - auto_autoloader.gemspec
130
130
  - lib/auto_autoloader.rb
131
+ - shippable.yml
131
132
  - spec/auto_autoloader_spec.rb
132
133
  - spec/spec_helper.rb
133
134
  - spec/test_class.rb