app_box 0.2.2 → 0.2.4
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 → README.md} +35 -5
- data/VERSION +1 -1
- data/app_box.gemspec +3 -3
- metadata +12 -12
data/{README.rdoc → README.md}
RENAMED
@@ -1,14 +1,45 @@
|
|
1
|
-
|
1
|
+
# app_box
|
2
2
|
|
3
3
|
The last rails application configuration manager you'll ever need. app_box provides a simple and
|
4
4
|
yet very powerful structure to configure glonal settings for any Rails application.
|
5
5
|
|
6
|
-
|
6
|
+
## Usage
|
7
|
+
|
8
|
+
### Configuration
|
9
|
+
|
10
|
+
This is where your configurations goes, consider the following sample box file
|
11
|
+
|
12
|
+
default:
|
13
|
+
foo: bar
|
14
|
+
development:
|
15
|
+
services:
|
16
|
+
twitter:
|
17
|
+
msgs:
|
18
|
+
hello: ya man
|
19
|
+
key: '456'
|
20
|
+
secret: '789'
|
21
|
+
|
22
|
+
### Initializer
|
23
|
+
|
24
|
+
Create an initializer under config/initializers ex(app_box.rb) and then add the following line
|
25
|
+
|
26
|
+
# this is a sample code for a Rails 3
|
27
|
+
# application
|
28
|
+
AppBox.init Rails.env, Rails.root
|
29
|
+
|
30
|
+
Now you can access the above configurations like this
|
31
|
+
|
32
|
+
AppBox.foo # returns bar
|
33
|
+
AppBox.services.twitter.key # returns 456
|
34
|
+
|
35
|
+
Cool, isn't it :) ?
|
36
|
+
|
37
|
+
## TODO
|
7
38
|
* Write units tests
|
8
39
|
* Add support to any rack based application
|
9
40
|
* Refactor the code and write documentation
|
10
41
|
|
11
|
-
|
42
|
+
## Contributing to app_box
|
12
43
|
|
13
44
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
14
45
|
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
@@ -18,8 +49,7 @@ yet very powerful structure to configure glonal settings for any Rails applicati
|
|
18
49
|
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
19
50
|
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
20
51
|
|
21
|
-
|
52
|
+
## Copyright
|
22
53
|
|
23
54
|
Copyright (c) 2011 Ahmed El.Hussaini. See LICENSE.txt for
|
24
55
|
further details.
|
25
|
-
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/app_box.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "app_box"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ahmed El.Hussaini"]
|
@@ -14,13 +14,13 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.email = "aelhussaini@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
|
-
"README.
|
17
|
+
"README.md"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
"Gemfile",
|
22
22
|
"LICENSE.txt",
|
23
|
-
"README.
|
23
|
+
"README.md",
|
24
24
|
"Rakefile",
|
25
25
|
"VERSION",
|
26
26
|
"app_box.gemspec",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_box
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-10-15 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: shoulda
|
16
|
-
requirement: &
|
16
|
+
requirement: &25272060 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *25272060
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
|
-
requirement: &
|
27
|
+
requirement: &25201020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.0.0
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *25201020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: jeweler
|
38
|
-
requirement: &
|
38
|
+
requirement: &25199400 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.6.4
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *25199400
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rcov
|
49
|
-
requirement: &
|
49
|
+
requirement: &25198860 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *25198860
|
58
58
|
description: app_box provides a simple and yet very powerful structure to configure
|
59
59
|
glonal settings for any Rails application.
|
60
60
|
email: aelhussaini@gmail.com
|
@@ -62,12 +62,12 @@ executables: []
|
|
62
62
|
extensions: []
|
63
63
|
extra_rdoc_files:
|
64
64
|
- LICENSE.txt
|
65
|
-
- README.
|
65
|
+
- README.md
|
66
66
|
files:
|
67
67
|
- .document
|
68
68
|
- Gemfile
|
69
69
|
- LICENSE.txt
|
70
|
-
- README.
|
70
|
+
- README.md
|
71
71
|
- Rakefile
|
72
72
|
- VERSION
|
73
73
|
- app_box.gemspec
|
@@ -89,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
segments:
|
91
91
|
- 0
|
92
|
-
hash: -
|
92
|
+
hash: -130237912366914045
|
93
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|