lib/pipekit.rb in pipekit-0.2.0 vs lib/pipekit.rb in pipekit-1.0.0
- old
+ new
@@ -1,33 +1,26 @@
-require "pipekit/configurable"
+require "pipekit/config"
require "httparty"
require "pipekit/version"
require "pipekit/request"
+require "pipekit/result"
+require "pipekit/response"
require "pipekit/repository"
+require "pipekit/field_repository"
require "pipekit/person"
require "pipekit/deal"
require "pipekit/person_field"
+require "pipekit/deal_field"
require "pipekit/note"
module Pipekit
- include Configurable
# Define a path to Pipedrive config file
#
# Example:
#
# Pipekit.config_file_path = File.join("config", "pipedrive.yml")
- class << self
- attr_writer :config_file_path
-
- def config_file_path
- @config_file_path || raise_config_error
- end
-
- def raise_config_error
- raise ConfigNotSetError, "You need to create a yaml file with your Pipedrive config and set the path to the file using `Pipedrive.config_file_path = 'path/to/file.yml'`"
- end
+ def self.config_file_path=(path)
+ Config.file_path = path
end
-
- ConfigNotSetError = Class.new(Exception)
end