aspen 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/templates/sinatra/environment.rb +18 -0
- data/lib/templates/sinatra/template.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65ae2054678e16fcd40454029b696a319f5462d6
|
4
|
+
data.tar.gz: 50943a50115ec67a5ccf6f8c2e7a1ab277d42115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b5d4e50dd35183edc7c8c177904e988127ad87ed90519847ee330dfb8850a465efe9c549ad7b5163d3f7612ff5109dce9d8ab1596be037775b275822f32bcc7
|
7
|
+
data.tar.gz: eb13002e43981383f03155d68c95ad98bb41b33abd62c92615507b83578a4e62bd6bb5b9b9c1d17019a0279ff8d22bcb25703de1541e6cbd6c2b5ce21ccbe91d
|
@@ -0,0 +1,18 @@
|
|
1
|
+
RootFolder = File.expand_path(File.dirname(__FILE__)).gsub('/config', '')
|
2
|
+
|
3
|
+
def get_reqs(current_dir)
|
4
|
+
Dir.foreach(current_dir) do |file|
|
5
|
+
next if file.start_with?('.') || file.start_with?('environment.rb') || file.end_with?('spec.rb') # add additional filters here for files you don't want included
|
6
|
+
if File.directory?(current_dir + '/' + file)
|
7
|
+
next if file.start_with?('templates')
|
8
|
+
get_reqs(current_dir+ '/' + file)
|
9
|
+
else
|
10
|
+
require_relative (current_dir + '/' + file) if file.end_with?('.rb')
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
Dir.foreach(RootFolder) do |file|
|
16
|
+
next if file.start_with?('.')
|
17
|
+
get_reqs(RootFolder + '/' + file) if File.directory?(RootFolder + '/' + file)
|
18
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Logan Hasson
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- lib/templates/hello/template.rb
|
74
74
|
- lib/templates/sinatra/app.rb
|
75
75
|
- lib/templates/sinatra/config.ru
|
76
|
+
- lib/templates/sinatra/environment.rb
|
76
77
|
- lib/templates/sinatra/template.rb
|
77
78
|
homepage: http://rubygems.org/gems/aspen
|
78
79
|
licenses:
|