sinatra_autoload 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sinatra_autoload/autoload.rb +5 -5
- data/sinatra_autoload.gemspec +56 -0
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
@@ -2,11 +2,11 @@ require 'singleton'
|
|
2
2
|
|
3
3
|
module SinatraAutoload
|
4
4
|
@@root_path = nil
|
5
|
-
|
5
|
+
|
6
6
|
def self.root_path
|
7
7
|
@@root_path
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
def self.root_path=(path)
|
11
11
|
@@root_path = path
|
12
12
|
end
|
@@ -15,9 +15,9 @@ module SinatraAutoload
|
|
15
15
|
return unless args
|
16
16
|
args.each do |file_path|
|
17
17
|
Dir[ File.join( @root_path, file_path, '/**/*.rb') ].each do |file|
|
18
|
-
|
18
|
+
autoload File.basename(file, '.rb').classify.to_sym, file
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
22
|
-
|
23
|
-
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{sinatra_autoload}
|
8
|
+
s.version = "0.0.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Justin Smestad", "Gabe Varela"]
|
12
|
+
s.date = %q{2009-10-30}
|
13
|
+
s.description = %q{Do not load files into memory until they are accessed / needed inside your application.}
|
14
|
+
s.email = %q{justin.smestad@gmail.com}
|
15
|
+
s.executables = ["autospec", "rackup", "rcov", "spec", "yard-graph", "yardoc", "yri"]
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"LICENSE",
|
18
|
+
"README.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".document",
|
22
|
+
".gitignore",
|
23
|
+
"Gemfile",
|
24
|
+
"LICENSE",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"lib/sinatra_autoload.rb",
|
29
|
+
"lib/sinatra_autoload/autoload.rb",
|
30
|
+
"lib/sinatra_autoload/classify.rb",
|
31
|
+
"sinatra_autoload.gemspec",
|
32
|
+
"spec/sinatra_autoload_spec.rb",
|
33
|
+
"spec/spec.opts",
|
34
|
+
"spec/spec_helper.rb"
|
35
|
+
]
|
36
|
+
s.homepage = %q{http://github.com/jsmestad/sinatra_autoload}
|
37
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
38
|
+
s.require_paths = ["lib"]
|
39
|
+
s.rubygems_version = %q{1.3.5}
|
40
|
+
s.summary = %q{Auto loader for required sinatra files.}
|
41
|
+
s.test_files = [
|
42
|
+
"spec/sinatra_autoload_spec.rb",
|
43
|
+
"spec/spec_helper.rb"
|
44
|
+
]
|
45
|
+
|
46
|
+
if s.respond_to? :specification_version then
|
47
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
48
|
+
s.specification_version = 3
|
49
|
+
|
50
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
51
|
+
else
|
52
|
+
end
|
53
|
+
else
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra_autoload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Smestad
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-10-
|
13
|
+
date: 2009-10-30 00:00:00 -06:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|
@@ -40,6 +40,7 @@ files:
|
|
40
40
|
- lib/sinatra_autoload.rb
|
41
41
|
- lib/sinatra_autoload/autoload.rb
|
42
42
|
- lib/sinatra_autoload/classify.rb
|
43
|
+
- sinatra_autoload.gemspec
|
43
44
|
- spec/sinatra_autoload_spec.rb
|
44
45
|
- spec/spec.opts
|
45
46
|
- spec/spec_helper.rb
|