sm_app_config 0.2.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/LICENSE.txt +1 -1
- data/README.md +9 -2
- data/lib/sm_app_config.rb +11 -4
- data/lib/sm_app_config/app_config.rb +1 -1
- data/lib/sm_app_config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: decf8b9107d0fca3b6c06dbc959d1c6a7858168a
|
4
|
+
data.tar.gz: 5221b9de339122d4bc66b208447befa5a81fc9a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 961f21fe44e0610067e04484fda918afd295bbce650ae56481b5a3e2682cee1438047597c9ecb8a8702a66bdc012039144510d7ee9a80aa9eec5453048ca5788
|
7
|
+
data.tar.gz: 9c52f25ddfe2435ede1f1d2278cbcb8149582af43cd57af00bfede335e80785ece4433fcadb183051008b549c29e91cdd2e1d3f8a74b3ebc3eb042f3f43c22b3
|
data/.rspec
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -64,10 +64,17 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
64
64
|
|
65
65
|
## Contributing
|
66
66
|
|
67
|
-
|
67
|
+
1. Fork it (https://github.com/SouthernMade/sm_app_config/fork)
|
68
|
+
2. Create your feature branch (`git checkout -b feature/my-new-feature`)
|
69
|
+
3. Write tests for your feature, or regression tests highlighting a bug
|
70
|
+
4. Write the feature itself, or fix the bug
|
71
|
+
5. Commit your changes (`git commit -am 'Add some feature'`)
|
72
|
+
6. Push the branch (`git push origin feature/my-new-feature`)
|
73
|
+
7. Create a new Pull Request
|
68
74
|
|
75
|
+
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Code of Conduct](CODE_OF_CONDUCT.md).
|
69
76
|
|
70
77
|
## License
|
71
78
|
|
72
|
-
The gem is available as open source under the terms of the [MIT License](
|
79
|
+
The gem is available as open source under the terms of the [MIT License](LICENSE.txt).
|
73
80
|
|
data/lib/sm_app_config.rb
CHANGED
@@ -5,14 +5,21 @@ require "sm_app_config/app_config"
|
|
5
5
|
module SmAppConfig
|
6
6
|
extend self
|
7
7
|
|
8
|
-
|
8
|
+
attr_accessor :configuration
|
9
9
|
|
10
|
-
def
|
11
|
-
|
10
|
+
def configuration
|
11
|
+
@configuration ||= Configuration.new
|
12
|
+
end
|
13
|
+
|
14
|
+
def configure(configuration_options = {})
|
15
|
+
configuration.merge!(configuration_options)
|
12
16
|
end
|
13
17
|
|
14
18
|
def clear!
|
15
|
-
|
19
|
+
configuration.clear
|
16
20
|
end
|
17
21
|
|
22
|
+
def config_file
|
23
|
+
configuration.fetch(:path)
|
24
|
+
end
|
18
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sm_app_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Whitis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-07-
|
12
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|