lib/staticpress/configuration.rb in staticpress-0.1.1 vs lib/staticpress/configuration.rb in staticpress-0.1.2
- old
+ new
@@ -3,9 +3,10 @@
require 'staticpress'
require 'staticpress/js_object'
module Staticpress
# IDEA look into configatron https://github.com/markbates/configatron
+ # FIXME this class is hard to test
class Configuration < JSObject
def save
(Staticpress.blog_path + 'config.yml').open('w') do |f|
custom_values = self - self.class.default
YAML.dump(custom_values.to_hash, f)