soar_customer 0.1.1 → 0.1.2

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: cc8edf00c002b718889813e8cfb5c79495309763
4
- data.tar.gz: 608a6ec226a44946c3af77670eba608e03a4b4cd
3
+ metadata.gz: 49c08c11ee685f01058436be76df7090f9811288
4
+ data.tar.gz: ecec2167fba61231ae9495dbdfee7c7330a5b56a
5
5
  SHA512:
6
- metadata.gz: 7414a5e86b162d227b9ee195230e7895c7b1cc5bf848df5bc0b101f09fa35f6b296b5bb1117ea024f08724deef8157040196b83242031167465772f60be89356
7
- data.tar.gz: f721463bc60c045b845eaaee8d230e811a373932cffff7a89aa1871d481d04ee8c562d16d1009bb2ca7d9eb32455a3e338152df7847d47e1cd9e0e4b94932350
6
+ metadata.gz: bb9387561f71300b282678f4b7f4ff43bc71db5b8f024a8e49ae75d237379f92a8d5ddef177e16d5cd8cfd0e76a4dc990b32252eeef5235bc6e71de1069272d0
7
+ data.tar.gz: 301fdfe1ce672c56d97e666944227eeaa8843caf70ad7eb05948a3653f25b39d7d7da6c9e5f83c38f5abb71779a205b0f845990b752264f7bc695e70c6cdecd9
data/README.md CHANGED
@@ -39,6 +39,11 @@ The fake service can be found in spec/mock_hapi/
39
39
 
40
40
  ## Usage
41
41
 
42
+ #### Before use the following configuration details will need to be injected
43
+ 1. username - forms part of credentials
44
+ 2. password - forms part of credentials
45
+ 3. server_url - the hetzner api service URL you intend this provider to use
46
+
42
47
  ## License
43
48
 
44
49
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -1,3 +1,3 @@
1
1
  module SoarCustomer
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/soar_customer.rb CHANGED
@@ -38,6 +38,13 @@ module SoarCustomer
38
38
  validate_credentials(credentials)
39
39
  remember_credentials(credentials)
40
40
  end
41
+
42
+ # Bootstrapping the application via configuration
43
+ def bootstrap(configuration)
44
+ @configuration = configuration
45
+ validate_configuration(@configuration)
46
+ remember_configuration(@configuration)
47
+ end
41
48
 
42
49
  # Used to create a profile through HAPI
43
50
  # @return [String] Returns body of message (JSON string) from HAPI response
@@ -52,14 +59,6 @@ module SoarCustomer
52
59
  end
53
60
 
54
61
  protected
55
-
56
- # Bootstrapping the application via configuration
57
- def bootstrap(configuration)
58
- @configuration = configuration
59
- validate_configuration(@configuration)
60
- remember_configuration(@configuration)
61
- end
62
-
63
62
  # Generic Method for Posting to HAPI
64
63
  # @param endpoint [String] used for what resource to access on HAPI
65
64
  # @param data [JSON] customer details
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_customer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - daneb
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  version: '0'
205
205
  requirements: []
206
206
  rubyforge_project:
207
- rubygems_version: 2.4.5
207
+ rubygems_version: 2.5.1
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: Data provider to customer data. Internal use