app 0.9.0 → 0.9.1
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.
- data/README.rdoc +12 -3
- data/lib/app.rb +0 -2
- metadata +12 -5
data/README.rdoc
CHANGED
@@ -23,6 +23,11 @@ Rails environment.
|
|
23
23
|
|
24
24
|
# config/app.rb
|
25
25
|
class App < Configurable
|
26
|
+
# Settings in config/app/* take precedence over those specified here.
|
27
|
+
config.name = Rails::Application.instance.class.parent.name
|
28
|
+
|
29
|
+
# config.key = "value"
|
30
|
+
|
26
31
|
config.javascript_expansions = {
|
27
32
|
:prototype => "prototype"
|
28
33
|
:scriptaculous => %w(effects dragdrop controls)
|
@@ -34,6 +39,10 @@ Need to update those sources for production?
|
|
34
39
|
|
35
40
|
# config/app/production.rb
|
36
41
|
App.configure do
|
42
|
+
# Settings specified here will take precedence over those in config/app.rb
|
43
|
+
|
44
|
+
# config.key = "value"
|
45
|
+
|
37
46
|
ajax_lib_base = "http://ajax.googleapis.com/ajax/libs"
|
38
47
|
|
39
48
|
config.javascript_expansions.update({
|
@@ -46,11 +55,11 @@ Need to update those sources for production?
|
|
46
55
|
=== Ruby
|
47
56
|
|
48
57
|
App can be used in any Ruby application. Just bundle (see "Rails", above, less
|
49
|
-
the
|
58
|
+
the <tt>rails g</tt>) or install the gem.
|
50
59
|
|
51
60
|
Make sure "app" is required in your environment, and define a class from there.
|
52
61
|
|
53
|
-
class
|
62
|
+
class MySite < Configurable
|
54
63
|
config.launched_at = Time.now.utc
|
55
64
|
end
|
56
65
|
|
@@ -73,7 +82,7 @@ that YAML supports most easily, you could have stored complex Ruby objects:
|
|
73
82
|
Pathname, Proc, or anything else.
|
74
83
|
|
75
84
|
class App < Configurable
|
76
|
-
config.config_path = Rails.root.join
|
85
|
+
config.config_path = Rails.root.join "config"
|
77
86
|
config.uptime = Proc.new { (Time.now.utc - App.launched_at).seconds }
|
78
87
|
config.asset_host = ActiveSupport::StringInquirer.new "amazon"
|
79
88
|
end
|
data/lib/app.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 9
|
8
|
+
- 1
|
9
|
+
version: 0.9.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Stephen Celis
|
@@ -9,7 +14,7 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-04-20 00:00:00 -05:00
|
13
18
|
default_executable:
|
14
19
|
dependencies: []
|
15
20
|
|
@@ -44,18 +49,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
49
|
requirements:
|
45
50
|
- - ">="
|
46
51
|
- !ruby/object:Gem::Version
|
52
|
+
segments:
|
53
|
+
- 0
|
47
54
|
version: "0"
|
48
|
-
version:
|
49
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
56
|
requirements:
|
51
57
|
- - ">="
|
52
58
|
- !ruby/object:Gem::Version
|
59
|
+
segments:
|
60
|
+
- 0
|
53
61
|
version: "0"
|
54
|
-
version:
|
55
62
|
requirements: []
|
56
63
|
|
57
64
|
rubyforge_project:
|
58
|
-
rubygems_version: 1.3.
|
65
|
+
rubygems_version: 1.3.6
|
59
66
|
signing_key:
|
60
67
|
specification_version: 3
|
61
68
|
summary: Application configuration.
|