appetizer 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/appetizer.gemspec +2 -3
- data/lib/appetizer/setup.rb +6 -5
- metadata +3 -3
data/appetizer.gemspec
CHANGED
@@ -4,15 +4,14 @@ Gem::Specification.new do |gem|
|
|
4
4
|
gem.authors = ["Audiosocket"]
|
5
5
|
gem.email = ["tech@audiosocket.com"]
|
6
6
|
gem.description = "A lightweight init process for Rack apps."
|
7
|
-
gem.summary = "Provides
|
7
|
+
gem.summary = "Provides Railsy environments and initializers."
|
8
8
|
gem.homepage = "https://github.com/audiosocket/appetizer"
|
9
9
|
|
10
|
-
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
11
10
|
gem.files = `git ls-files`.split("\n")
|
12
11
|
gem.test_files = `git ls-files -- test/*`.split("\n")
|
13
12
|
gem.name = "appetizer"
|
14
13
|
gem.require_paths = ["lib"]
|
15
|
-
gem.version = "0.
|
14
|
+
gem.version = "0.2.0"
|
16
15
|
|
17
16
|
gem.required_ruby_version = ">= 1.9.2"
|
18
17
|
end
|
data/lib/appetizer/setup.rb
CHANGED
@@ -7,6 +7,10 @@ require "logger"
|
|
7
7
|
Encoding.default_external = Encoding::UTF_8
|
8
8
|
Encoding.default_internal = Encoding::UTF_8
|
9
9
|
|
10
|
+
# Make sure tmp exists, a bunch of things may use it.
|
11
|
+
|
12
|
+
FileUtils.mkdir_p "tmp"
|
13
|
+
|
10
14
|
module App
|
11
15
|
extend Appetizer::Events
|
12
16
|
|
@@ -21,9 +25,10 @@ module App
|
|
21
25
|
def self.init!
|
22
26
|
return true if defined?(@initialized) && @initialized
|
23
27
|
|
28
|
+
load "config/init.rb" if File.exists? "config/init.rb"
|
29
|
+
|
24
30
|
fire :initializing
|
25
31
|
|
26
|
-
load "config/init.rb" if File.exists? "config/init.rb"
|
27
32
|
Dir["config/init/**/*.rb"].sort.each { |f| load f }
|
28
33
|
|
29
34
|
# If the app has an app/models directory, autorequire 'em.
|
@@ -79,10 +84,6 @@ def (App.log).write message
|
|
79
84
|
self << message
|
80
85
|
end
|
81
86
|
|
82
|
-
# Make sure tmp exists, a bunch of things may use it.
|
83
|
-
|
84
|
-
FileUtils.mkdir_p "tmp"
|
85
|
-
|
86
87
|
# Load the global env files.
|
87
88
|
|
88
89
|
App.load "config/env.local.rb" if File.exists? "config/env.local.rb"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appetizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-02-10 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: A lightweight init process for Rack apps.
|
15
15
|
email:
|
@@ -60,6 +60,6 @@ rubyforge_project:
|
|
60
60
|
rubygems_version: 1.8.10
|
61
61
|
signing_key:
|
62
62
|
specification_version: 3
|
63
|
-
summary: Provides
|
63
|
+
summary: Provides Railsy environments and initializers.
|
64
64
|
test_files:
|
65
65
|
- test/appetizer/populator_test.rb
|