lenddo 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 423edecec23d6701a7405f64e7ce05eefe886530
4
- data.tar.gz: d25a7ed33248ad32b019f50e1bfb7c49b42cbeb9
3
+ metadata.gz: 8f8e293f5314479875663f5d4a921c438b1e2f5a
4
+ data.tar.gz: 248f2ea23a78fb985a71fd8b0043ea273d86aca0
5
5
  SHA512:
6
- metadata.gz: 38e210c85b284aa6e8c4cc613644c2472d16a26322a8a3f6ac09aabf832d4f9cdc2e4efa10ca7e99727c5093df5005659ecb474ae504f1a48c6c303753a36270
7
- data.tar.gz: fe5271bc49cafb42d62485d5f3042572168bcbc1cd2e773c74a9d78a7a83f8c611af95ae2afa43f075be0fbd95d1cd5764340f543d12f76317f46eedc1d62a39
6
+ metadata.gz: f02dceb4e7f200b3b1c5043739648356c488aa008dc79ad1cab9c78f36c3326a790590809cca5e631ac0b93c5c7fdbf31a782b88a91cc97927e99dd642509040
7
+ data.tar.gz: 224dcfa80f573d3c72a5ecbdf734fe7a1cbc833efd69b6dbda7ae729ddaf9caf10ac7e7175297b68a2629995c45c3b44ee9454e890c11062d7430a15e989e26c
data/lib/lenddo.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require "lenddo/configuration"
2
- require "lenddo/exception"
3
2
  require "lenddo/version"
4
3
 
5
4
  module Lenddo
@@ -1,3 +1,5 @@
1
+ require 'lenddo/errors/configuration'
2
+
1
3
  module Lenddo
2
4
  class Configuration
3
5
  attr_accessor :access_key, :secret_key, :score_service, :network_service
@@ -8,5 +10,15 @@ module Lenddo
8
10
  @score_service = "https://scoreservice.lenddo.com"
9
11
  @network_service = "https://networkservice.lenddo.com"
10
12
  end
13
+
14
+ def access_key
15
+ raise Errors::Configuration, "access_key in the configuration is missing!" unless @access_key
16
+ @access_key
17
+ end
18
+
19
+ def secret_key
20
+ raise Errors::Configuration, "secret_key in the configuration is missing!" unless @secret_key
21
+ @secret_key
22
+ end
11
23
  end
12
24
  end
@@ -0,0 +1,5 @@
1
+ module Lenddo
2
+ module Errors
3
+ class Configuration < StandardError; end
4
+ end
5
+ end
@@ -1,5 +1,5 @@
1
1
  module Lenddo
2
2
  def self.version
3
- "1.0.0"
3
+ "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lenddo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - arjay salvadora
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-24 00:00:00.000000000 Z
11
+ date: 2017-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -101,7 +101,7 @@ files:
101
101
  - lib/lenddo.rb
102
102
  - lib/lenddo/authentication.rb
103
103
  - lib/lenddo/configuration.rb
104
- - lib/lenddo/exception.rb
104
+ - lib/lenddo/errors/configuration.rb
105
105
  - lib/lenddo/service_client.rb
106
106
  - lib/lenddo/service_client/score_service.rb
107
107
  - lib/lenddo/version.rb
@@ -1,7 +0,0 @@
1
- module Lenddo
2
- class InvalidArgumentError < StandardError
3
- def initialize(msg)
4
- super
5
- end
6
- end
7
- end