sugarfree-config 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +4 -1
- data/lib/sugarfree-config/config.rb +1 -1
- data/lib/sugarfree-config/version.rb +1 -1
- data/sugarfree-config.gemspec +4 -2
- metadata +50 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 266387da8245e874411360bf25da04b65a6bc48f
|
4
|
+
data.tar.gz: 413db4b360d5acac9a1741d240b64ee58c45ed9f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5c25f09d67088cd5312156d2542cd8de6524403412f29fcb4c474e279b96660ea80246697945d06c09f7f8f228dbf18584802ed171b7f45dd81e6cf570d1c9fb
|
7
|
+
data.tar.gz: b60f20d4d75fb037cd6f4b5e59b6b88915eeab51fb610d8c009f87d383f3204c93b2346533183ef229a48bc3861412a07851aad3f3bdec33804e32d3451b0a73
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sugarfree-config (2.0.
|
4
|
+
sugarfree-config (2.0.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: http://rubygems.org/
|
@@ -10,6 +10,7 @@ GEM
|
|
10
10
|
metaclass (0.0.1)
|
11
11
|
mocha (0.10.0)
|
12
12
|
metaclass (~> 0.0.1)
|
13
|
+
rake (10.3.2)
|
13
14
|
turn (0.8.2)
|
14
15
|
ansi (>= 1.2.2)
|
15
16
|
|
@@ -17,6 +18,8 @@ PLATFORMS
|
|
17
18
|
ruby
|
18
19
|
|
19
20
|
DEPENDENCIES
|
21
|
+
bundler
|
20
22
|
mocha
|
23
|
+
rake
|
21
24
|
sugarfree-config!
|
22
25
|
turn
|
@@ -45,7 +45,7 @@ module SugarfreeConfig
|
|
45
45
|
# Fetch the config from the file
|
46
46
|
#
|
47
47
|
def fetch_config
|
48
|
-
Rails.logger.debug "Loading #{@file}::#{@env}" if Object.const_defined?('Rails')
|
48
|
+
Rails.logger.debug "Loading #{@file}::#{@env}" if Object.const_defined?('Rails') && Rails.logger.present?
|
49
49
|
YAML::load_file(@file)[@env.to_s]
|
50
50
|
end
|
51
51
|
|
data/sugarfree-config.gemspec
CHANGED
@@ -16,6 +16,8 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
|
-
s.add_development_dependency
|
20
|
-
s.add_development_dependency
|
19
|
+
s.add_development_dependency 'bundler'
|
20
|
+
s.add_development_dependency 'rake'
|
21
|
+
s.add_development_dependency 'mocha'
|
22
|
+
s.add_development_dependency 'turn'
|
21
23
|
end
|
metadata
CHANGED
@@ -1,38 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sugarfree-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- David Barral
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-10-21 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
14
41
|
- !ruby/object:Gem::Dependency
|
15
42
|
name: mocha
|
16
|
-
requirement:
|
17
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
18
44
|
requirements:
|
19
|
-
- -
|
45
|
+
- - ">="
|
20
46
|
- !ruby/object:Gem::Version
|
21
47
|
version: '0'
|
22
48
|
type: :development
|
23
49
|
prerelease: false
|
24
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
25
55
|
- !ruby/object:Gem::Dependency
|
26
56
|
name: turn
|
27
|
-
requirement:
|
28
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
29
58
|
requirements:
|
30
|
-
- -
|
59
|
+
- - ">="
|
31
60
|
- !ruby/object:Gem::Version
|
32
61
|
version: '0'
|
33
62
|
type: :development
|
34
63
|
prerelease: false
|
35
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
36
69
|
description: Access to per Rails environment configuration stored in a YAML file
|
37
70
|
email:
|
38
71
|
- contact@davidbarral.com
|
@@ -40,7 +73,7 @@ executables: []
|
|
40
73
|
extensions: []
|
41
74
|
extra_rdoc_files: []
|
42
75
|
files:
|
43
|
-
- .gitignore
|
76
|
+
- ".gitignore"
|
44
77
|
- Gemfile
|
45
78
|
- Gemfile.lock
|
46
79
|
- LICENSE
|
@@ -58,26 +91,25 @@ files:
|
|
58
91
|
- sugarfree-config.gemspec
|
59
92
|
homepage: http://github.com/davidbarral/sugarfree-config
|
60
93
|
licenses: []
|
94
|
+
metadata: {}
|
61
95
|
post_install_message:
|
62
96
|
rdoc_options: []
|
63
97
|
require_paths:
|
64
98
|
- lib
|
65
99
|
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
100
|
requirements:
|
68
|
-
- -
|
101
|
+
- - ">="
|
69
102
|
- !ruby/object:Gem::Version
|
70
103
|
version: '0'
|
71
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
105
|
requirements:
|
74
|
-
- -
|
106
|
+
- - ">="
|
75
107
|
- !ruby/object:Gem::Version
|
76
108
|
version: '0'
|
77
109
|
requirements: []
|
78
110
|
rubyforge_project:
|
79
|
-
rubygems_version:
|
111
|
+
rubygems_version: 2.2.2
|
80
112
|
signing_key:
|
81
|
-
specification_version:
|
113
|
+
specification_version: 4
|
82
114
|
summary: Configuration handling the easy way
|
83
115
|
test_files: []
|