lib/voucher.rb in voucher-0.2.1 vs lib/voucher.rb in voucher-0.3.0
- old
+ new
@@ -7,14 +7,15 @@
require 'murky'
require 'pry'
require 'voucher/version'
require 'voucher/config'
+require 'voucher/metrics'
require 'voucher/errors'
require 'voucher/model/election'
require 'voucher/model/segment'
-require 'voucher/election_contract'
+require 'voucher/chain_contract'
require 'voucher/segments_reader'
require 'voucher/segments_builder'
require 'voucher/segments_parser'
require 'voucher/validator'
@@ -22,14 +23,14 @@
class << self
attr_writer :config
end
def self.config
- @config ||= Config.new
+ @config ||= Config
end
def self.reset
- @config = Config.new
+ @config = Config
end
def self.configure(options = {})
return yield(config) if block_given?