yappconfig 0.2.0 → 0.3.0
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 +7 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +89 -59
- data/VERSION +1 -1
- data/lib/app-config/railtie.rb +1 -2
- data/spec/app-config/rails_spec.rb +4 -2
- data/yappconfig.gemspec +9 -8
- metadata +25 -44
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 86fa071d295ce243988b61331112c2dddf65b94d
|
4
|
+
data.tar.gz: 1019201f688b45269d105374848abb18c7e6f87e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0f3f8bafd5eb07fa07a7aeba04eb06ce8390768b1981e4b36057f06952d6ad7d3e7398d98481c8fbf19c0bbd9e66b49dbedae57d561aa42b15ba22f60d8c677c
|
7
|
+
data.tar.gz: 5b48be30acc6dc5a7305578900689094f0d4b3513cde4f6562b44adabf6dedff43381f4ddd864bc924d9afb68ccf2bcc8bea0571e5bbe9a67fff4e48919fdda0
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,79 +1,104 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
actionmailer (3.2.
|
5
|
-
actionpack (= 3.2.
|
6
|
-
mail (~> 2.
|
7
|
-
actionpack (3.2.
|
8
|
-
activemodel (= 3.2.
|
9
|
-
activesupport (= 3.2.
|
4
|
+
actionmailer (3.2.22)
|
5
|
+
actionpack (= 3.2.22)
|
6
|
+
mail (~> 2.5.4)
|
7
|
+
actionpack (3.2.22)
|
8
|
+
activemodel (= 3.2.22)
|
9
|
+
activesupport (= 3.2.22)
|
10
10
|
builder (~> 3.0.0)
|
11
11
|
erubis (~> 2.7.0)
|
12
|
-
journey (~> 1.0.
|
13
|
-
rack (~> 1.4.
|
12
|
+
journey (~> 1.0.4)
|
13
|
+
rack (~> 1.4.5)
|
14
14
|
rack-cache (~> 1.2)
|
15
15
|
rack-test (~> 0.6.1)
|
16
|
-
sprockets (~> 2.1
|
17
|
-
activemodel (3.2.
|
18
|
-
activesupport (= 3.2.
|
16
|
+
sprockets (~> 2.2.1)
|
17
|
+
activemodel (3.2.22)
|
18
|
+
activesupport (= 3.2.22)
|
19
19
|
builder (~> 3.0.0)
|
20
|
-
activerecord (3.2.
|
21
|
-
activemodel (= 3.2.
|
22
|
-
activesupport (= 3.2.
|
20
|
+
activerecord (3.2.22)
|
21
|
+
activemodel (= 3.2.22)
|
22
|
+
activesupport (= 3.2.22)
|
23
23
|
arel (~> 3.0.2)
|
24
24
|
tzinfo (~> 0.3.29)
|
25
|
-
activeresource (3.2.
|
26
|
-
activemodel (= 3.2.
|
27
|
-
activesupport (= 3.2.
|
28
|
-
activesupport (3.2.
|
29
|
-
i18n (~> 0.6)
|
25
|
+
activeresource (3.2.22)
|
26
|
+
activemodel (= 3.2.22)
|
27
|
+
activesupport (= 3.2.22)
|
28
|
+
activesupport (3.2.22)
|
29
|
+
i18n (~> 0.6, >= 0.6.4)
|
30
30
|
multi_json (~> 1.0)
|
31
|
-
|
32
|
-
|
31
|
+
addressable (2.3.8)
|
32
|
+
arel (3.0.3)
|
33
|
+
builder (3.0.4)
|
33
34
|
diff-lcs (1.1.3)
|
35
|
+
docile (1.1.5)
|
34
36
|
erubis (2.7.0)
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
faraday (0.8.9)
|
38
|
+
multipart-post (~> 1.2.0)
|
39
|
+
git (1.2.9.1)
|
40
|
+
github_api (0.10.1)
|
41
|
+
addressable
|
42
|
+
faraday (~> 0.8.1)
|
43
|
+
hashie (>= 1.2)
|
44
|
+
multi_json (~> 1.4)
|
45
|
+
nokogiri (~> 1.5.2)
|
46
|
+
oauth2
|
47
|
+
hashie (3.4.2)
|
48
|
+
highline (1.7.3)
|
49
|
+
hike (1.2.3)
|
50
|
+
i18n (0.7.0)
|
51
|
+
jeweler (1.8.8)
|
52
|
+
builder
|
40
53
|
bundler (~> 1.0)
|
41
54
|
git (>= 1.2.5)
|
55
|
+
github_api (= 0.10.1)
|
56
|
+
highline (>= 1.6.15)
|
57
|
+
nokogiri (= 1.5.10)
|
42
58
|
rake
|
43
59
|
rdoc
|
44
|
-
journey (1.0.
|
45
|
-
json (1.
|
46
|
-
|
47
|
-
|
60
|
+
journey (1.0.4)
|
61
|
+
json (1.8.3)
|
62
|
+
jwt (1.5.1)
|
63
|
+
mail (2.5.4)
|
48
64
|
mime-types (~> 1.16)
|
49
65
|
treetop (~> 1.4.8)
|
50
|
-
mime-types (1.
|
51
|
-
multi_json (1.2
|
52
|
-
|
53
|
-
|
66
|
+
mime-types (1.25.1)
|
67
|
+
multi_json (1.11.2)
|
68
|
+
multi_xml (0.5.5)
|
69
|
+
multipart-post (1.2.0)
|
70
|
+
nokogiri (1.5.10)
|
71
|
+
oauth2 (1.0.0)
|
72
|
+
faraday (>= 0.8, < 0.10)
|
73
|
+
jwt (~> 1.0)
|
74
|
+
multi_json (~> 1.3)
|
75
|
+
multi_xml (~> 0.5)
|
76
|
+
rack (~> 1.2)
|
77
|
+
polyglot (0.3.5)
|
78
|
+
rack (1.4.7)
|
54
79
|
rack-cache (1.2)
|
55
80
|
rack (>= 0.4)
|
56
|
-
rack-ssl (1.3.
|
81
|
+
rack-ssl (1.3.4)
|
57
82
|
rack
|
58
|
-
rack-test (0.6.
|
83
|
+
rack-test (0.6.3)
|
59
84
|
rack (>= 1.0)
|
60
|
-
rails (3.2.
|
61
|
-
actionmailer (= 3.2.
|
62
|
-
actionpack (= 3.2.
|
63
|
-
activerecord (= 3.2.
|
64
|
-
activeresource (= 3.2.
|
65
|
-
activesupport (= 3.2.
|
85
|
+
rails (3.2.22)
|
86
|
+
actionmailer (= 3.2.22)
|
87
|
+
actionpack (= 3.2.22)
|
88
|
+
activerecord (= 3.2.22)
|
89
|
+
activeresource (= 3.2.22)
|
90
|
+
activesupport (= 3.2.22)
|
66
91
|
bundler (~> 1.0)
|
67
|
-
railties (= 3.2.
|
68
|
-
railties (3.2.
|
69
|
-
actionpack (= 3.2.
|
70
|
-
activesupport (= 3.2.
|
92
|
+
railties (= 3.2.22)
|
93
|
+
railties (3.2.22)
|
94
|
+
actionpack (= 3.2.22)
|
95
|
+
activesupport (= 3.2.22)
|
71
96
|
rack-ssl (~> 1.3.2)
|
72
97
|
rake (>= 0.8.7)
|
73
98
|
rdoc (~> 3.4)
|
74
|
-
thor (
|
75
|
-
rake (
|
76
|
-
rdoc (3.12)
|
99
|
+
thor (>= 0.14.6, < 2.0)
|
100
|
+
rake (10.4.2)
|
101
|
+
rdoc (3.12.2)
|
77
102
|
json (~> 1.4)
|
78
103
|
rspec (2.8.0)
|
79
104
|
rspec-core (~> 2.8.0)
|
@@ -83,20 +108,22 @@ GEM
|
|
83
108
|
rspec-expectations (2.8.0)
|
84
109
|
diff-lcs (~> 1.1.2)
|
85
110
|
rspec-mocks (2.8.0)
|
86
|
-
simplecov (0.
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
111
|
+
simplecov (0.10.0)
|
112
|
+
docile (~> 1.1.0)
|
113
|
+
json (~> 1.8)
|
114
|
+
simplecov-html (~> 0.10.0)
|
115
|
+
simplecov-html (0.10.0)
|
116
|
+
sprockets (2.2.3)
|
91
117
|
hike (~> 1.2)
|
118
|
+
multi_json (~> 1.0)
|
92
119
|
rack (~> 1.0)
|
93
120
|
tilt (~> 1.1, != 1.3.0)
|
94
|
-
thor (0.
|
95
|
-
tilt (1.
|
96
|
-
treetop (1.4.
|
121
|
+
thor (0.19.1)
|
122
|
+
tilt (1.4.1)
|
123
|
+
treetop (1.4.15)
|
97
124
|
polyglot
|
98
125
|
polyglot (>= 0.3.1)
|
99
|
-
tzinfo (0.3.
|
126
|
+
tzinfo (0.3.44)
|
100
127
|
|
101
128
|
PLATFORMS
|
102
129
|
ruby
|
@@ -105,7 +132,10 @@ DEPENDENCIES
|
|
105
132
|
bundler
|
106
133
|
hashie
|
107
134
|
jeweler (~> 1.8.3)
|
108
|
-
rails
|
135
|
+
rails (~> 3.2.3)
|
109
136
|
rdoc (~> 3.12)
|
110
137
|
rspec (~> 2.8.0)
|
111
138
|
simplecov
|
139
|
+
|
140
|
+
BUNDLED WITH
|
141
|
+
1.10.5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/lib/app-config/railtie.rb
CHANGED
@@ -2,8 +2,7 @@ require 'rails'
|
|
2
2
|
|
3
3
|
module AppConfig
|
4
4
|
class Railtie < Rails::Railtie
|
5
|
-
|
6
|
-
initializer "app-config.configure_for_rails" do
|
5
|
+
config.before_configuration do
|
7
6
|
AppConfig.configure do |config|
|
8
7
|
config.config_file = Rails.root.join("config", "config.yml")
|
9
8
|
config.environment = Rails.env
|
@@ -7,8 +7,8 @@ require 'app-config/railtie'
|
|
7
7
|
|
8
8
|
describe "AppConfig with Rails" do
|
9
9
|
|
10
|
-
before
|
11
|
-
|
10
|
+
before do
|
11
|
+
ActiveSupport.run_load_hooks(:before_configuration)
|
12
12
|
end
|
13
13
|
|
14
14
|
it "Should default to the Rails environment" do
|
@@ -27,6 +27,8 @@ describe "AppConfig with Rails" do
|
|
27
27
|
|
28
28
|
it "Doesn't auto-reload if the Rails environment is production" do
|
29
29
|
Rails.env = "production"
|
30
|
+
ActiveSupport.run_load_hooks(:before_configuration)
|
31
|
+
|
30
32
|
AppConfig::Railtie.initializers.map{|i| i.run}
|
31
33
|
AppConfig.configuration.auto_reload.should_not == true
|
32
34
|
end
|
data/yappconfig.gemspec
CHANGED
@@ -2,14 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: yappconfig 0.3.0 ruby lib
|
5
6
|
|
6
7
|
Gem::Specification.new do |s|
|
7
8
|
s.name = "yappconfig"
|
8
|
-
s.version = "0.
|
9
|
+
s.version = "0.3.0"
|
9
10
|
|
10
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib"]
|
11
13
|
s.authors = ["David Somers"]
|
12
|
-
s.date = "
|
14
|
+
s.date = "2015-08-18"
|
13
15
|
s.description = "yappconfig provides your application with a global configuration based on the environment. The configuration is loaded in from YAML. It has sensible defaults for Rails applications"
|
14
16
|
s.email = "jalada@gmail.com"
|
15
17
|
s.extra_rdoc_files = [
|
@@ -89,12 +91,11 @@ Gem::Specification.new do |s|
|
|
89
91
|
]
|
90
92
|
s.homepage = "http://github.com/jalada/yappconfig"
|
91
93
|
s.licenses = ["MIT"]
|
92
|
-
s.
|
93
|
-
s.rubygems_version = "1.8.25"
|
94
|
+
s.rubygems_version = "2.4.8"
|
94
95
|
s.summary = "An application config, best for Rails apps"
|
95
96
|
|
96
97
|
if s.respond_to? :specification_version then
|
97
|
-
s.specification_version =
|
98
|
+
s.specification_version = 4
|
98
99
|
|
99
100
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
100
101
|
s.add_runtime_dependency(%q<hashie>, [">= 0"])
|
@@ -103,7 +104,7 @@ Gem::Specification.new do |s|
|
|
103
104
|
s.add_development_dependency(%q<bundler>, [">= 0"])
|
104
105
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
105
106
|
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
106
|
-
s.add_development_dependency(%q<rails>, ["
|
107
|
+
s.add_development_dependency(%q<rails>, ["~> 3.2.3"])
|
107
108
|
else
|
108
109
|
s.add_dependency(%q<hashie>, [">= 0"])
|
109
110
|
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
@@ -111,7 +112,7 @@ Gem::Specification.new do |s|
|
|
111
112
|
s.add_dependency(%q<bundler>, [">= 0"])
|
112
113
|
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
113
114
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
114
|
-
s.add_dependency(%q<rails>, ["
|
115
|
+
s.add_dependency(%q<rails>, ["~> 3.2.3"])
|
115
116
|
end
|
116
117
|
else
|
117
118
|
s.add_dependency(%q<hashie>, [">= 0"])
|
@@ -120,7 +121,7 @@ Gem::Specification.new do |s|
|
|
120
121
|
s.add_dependency(%q<bundler>, [">= 0"])
|
121
122
|
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
122
123
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
123
|
-
s.add_dependency(%q<rails>, ["
|
124
|
+
s.add_dependency(%q<rails>, ["~> 3.2.3"])
|
124
125
|
end
|
125
126
|
end
|
126
127
|
|
metadata
CHANGED
@@ -1,128 +1,113 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yappconfig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- David Somers
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-08-18 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: hashie
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rspec
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 2.8.0
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 2.8.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rdoc
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '3.12'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '3.12'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: bundler
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ">="
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: jeweler
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- - ~>
|
73
|
+
- - "~>"
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: 1.8.3
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- - ~>
|
80
|
+
- - "~>"
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: 1.8.3
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: simplecov
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - ">="
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - ">="
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: rails
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
|
-
- -
|
101
|
+
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
103
|
+
version: 3.2.3
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
|
-
- -
|
108
|
+
- - "~>"
|
124
109
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
110
|
+
version: 3.2.3
|
126
111
|
description: yappconfig provides your application with a global configuration based
|
127
112
|
on the environment. The configuration is loaded in from YAML. It has sensible defaults
|
128
113
|
for Rails applications
|
@@ -133,8 +118,8 @@ extra_rdoc_files:
|
|
133
118
|
- LICENSE.txt
|
134
119
|
- README.md
|
135
120
|
files:
|
136
|
-
- .document
|
137
|
-
- .rspec
|
121
|
+
- ".document"
|
122
|
+
- ".rspec"
|
138
123
|
- Gemfile
|
139
124
|
- Gemfile.lock
|
140
125
|
- LICENSE.txt
|
@@ -205,29 +190,25 @@ files:
|
|
205
190
|
homepage: http://github.com/jalada/yappconfig
|
206
191
|
licenses:
|
207
192
|
- MIT
|
193
|
+
metadata: {}
|
208
194
|
post_install_message:
|
209
195
|
rdoc_options: []
|
210
196
|
require_paths:
|
211
197
|
- lib
|
212
198
|
required_ruby_version: !ruby/object:Gem::Requirement
|
213
|
-
none: false
|
214
199
|
requirements:
|
215
|
-
- -
|
200
|
+
- - ">="
|
216
201
|
- !ruby/object:Gem::Version
|
217
202
|
version: '0'
|
218
|
-
segments:
|
219
|
-
- 0
|
220
|
-
hash: 3934989820912951542
|
221
203
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
|
-
none: false
|
223
204
|
requirements:
|
224
|
-
- -
|
205
|
+
- - ">="
|
225
206
|
- !ruby/object:Gem::Version
|
226
207
|
version: '0'
|
227
208
|
requirements: []
|
228
209
|
rubyforge_project:
|
229
|
-
rubygems_version:
|
210
|
+
rubygems_version: 2.4.8
|
230
211
|
signing_key:
|
231
|
-
specification_version:
|
212
|
+
specification_version: 4
|
232
213
|
summary: An application config, best for Rails apps
|
233
214
|
test_files: []
|