GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
I changed a lot. Please see the diff.
Of course it's tested.
Note: Class Memory is a bit empty after cleanup your code. I think it's no longer needed.
Add save! to Storage::YAML
bump to 1.0.3
Add access by methods
Add option :creation to AppConfig::setup
Now it's possible to setup with option ":creation => true". An
empty YAML file will be created.
Add feature for automatic write
If option ":save_changes => true" is set, all changes will be saved to
YAML file automatically.
bump to 1.0.4
Refactoring a lot
bump to 2.0.0
Rename option :creation to :create
Update version in Gemfile.lock
Add module Configurable
This module could be included to any class if you want to have access to configurations
bump to 2.0.1
Change capsulation: App::Configurable.force? is private
Tabularize arguments of autoload
Alias config to _config
config will be reloaded if block is given or option is set
should not refresh config if options 'force' is false
Add class Force
Add tests to util/force
Add super call in initialize
Config will reload if options hash changes
bump to 2.0.2
Removes collection for specs
Add mongodb test files to gitignore
Remove force if options changes
Add default values in intialize
Return true if hash has been written in file
Remove useless &block
Refactoring options hash
Add some blocks and add helper load_yaml_of_config
Change setup method for better understanding
New config will be saved if force
Add travis-ci config file
Fix YAML.load_file for ruby 1.9.3p194
Remove ruby 1.8.7 for travis-ci
Remove version of dependency rspec
Add status images of travis-ci and dependencies
Fix status images
Change @@options and @@storage to object variables
Rename method save? to save_changes?; Clarify clear and clear!
Add doc to YAML
Add doc to Memory
Add doc to gitignore
Add method store; fix dup; format will be downcase in save!; dynamic …
…setter (like store)
Add specs to check convert methods and setter
Fix memory storage; fix yield
Fix dynamic setter; initialize with data and options
Add to_json to Hashish
Add specs to check dynamic setter
bump to 2.0.3
Handle ?? in doc