aspen 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7b81d14f098e2f0f6fdeccc1fbd4c405b2c24d2
4
- data.tar.gz: 99c0b80ca9254e9cd31bda64e6a6ac68e11bda0d
3
+ metadata.gz: 65ae2054678e16fcd40454029b696a319f5462d6
4
+ data.tar.gz: 50943a50115ec67a5ccf6f8c2e7a1ab277d42115
5
5
  SHA512:
6
- metadata.gz: 046e140dc73f9d7e465f1d4102365efdcb17e4401eed1e454b1a1a14a10868d9942ba7e994bd90f2b9248203dd7bc7439061d1e07e8dce0a93562ace5f3cc529
7
- data.tar.gz: 028a782c70bd53ad0c0e57ab67aaa9fd33b5c689adc0870d385ec7d2c8bcc240d310743b2a07e956785e11bfa1e01b2bf93ebc0146b2ec3e202cbdcbc413c918
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
@@ -1,4 +1,5 @@
1
1
  TEMPLATE = {
2
+ :config => {:file => ["environment.rb"]},
2
3
  :models => {},
3
4
  :public => {},
4
5
  :views => {},
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
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: