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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dca19cd9859e9a5e67c278060c8dc663b1bf6b3b
4
- data.tar.gz: 3f9fedd786e4ddb981619ea3dfe1e23d73f8bd89
3
+ metadata.gz: decf8b9107d0fca3b6c06dbc959d1c6a7858168a
4
+ data.tar.gz: 5221b9de339122d4bc66b208447befa5a81fc9a9
5
5
  SHA512:
6
- metadata.gz: fcee7f4e9079a81f7c534eaf0395f5ee77dfec3a47c0e6ce1450cd844a85cf8339bdca68abfbff3e379bf55274efc83a9b25db353ff97557e455c0ac809e87fb
7
- data.tar.gz: fe5266fd5d9fcef88297db06ebc7808f12f657bd1809a0cc78015429dcb8647ac30da1f0526c3ca44fc54caa5a575271f327abc60c3aa9c7524cf994e2bfaa70
6
+ metadata.gz: 961f21fe44e0610067e04484fda918afd295bbce650ae56481b5a3e2682cee1438047597c9ecb8a8702a66bdc012039144510d7ee9a80aa9eec5453048ca5788
7
+ data.tar.gz: 9c52f25ddfe2435ede1f1d2278cbcb8149582af43cd57af00bfede335e80785ece4433fcadb183051008b549c29e91cdd2e1d3f8a74b3ebc3eb042f3f43c22b3
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
1
  --format documentation
2
2
  --color
3
+ --require spec_helper
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Jack Whitis
3
+ Copyright (c) 2015 Southern Made
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/sm_app_config. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
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](http://opensource.org/licenses/MIT).
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
- CONFIG = Configuration.new
8
+ attr_accessor :configuration
9
9
 
10
- def configure configuration_options = {}
11
- CONFIG.merge!(configuration_options)
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
- CONFIG.clear
19
+ configuration.clear
16
20
  end
17
21
 
22
+ def config_file
23
+ configuration.fetch(:path)
24
+ end
18
25
  end
@@ -34,7 +34,7 @@ class AppConfig
34
34
  end
35
35
 
36
36
  def self.config_file
37
- SmAppConfig::CONFIG.fetch(:path)
37
+ SmAppConfig.config_file
38
38
  end
39
39
 
40
40
  end
@@ -1,3 +1,3 @@
1
1
  module SmAppConfig
2
- VERSION = "0.2.2"
2
+ VERSION = "1.0.0"
3
3
  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.2.2
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-10 00:00:00.000000000 Z
12
+ date: 2015-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler