item_builder_mwh 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7959404e655216093aa4627d166ee6c18b7651b7c4d92d37b6cd1ce69e8825d
4
- data.tar.gz: 224d6f83a4a52895337aed2680813907d9393f8509242c70475852b638d68f98
3
+ metadata.gz: 70bb99cadad5391a689c70259b05f3f3213ae32d524d1550975a6949a764b70c
4
+ data.tar.gz: 39bf9ce01c2ce41e672c4402f04c1a6b556be61f9f484a0858f6b0acf7be8a4b
5
5
  SHA512:
6
- metadata.gz: 6859bbde6689fe1b762166a2eec5b88a4922bd00a95f8b81912447ab31ebecc57e269e6c33e61edd872b623ebf635b77ee6c852e0c580170b977b71b9caef5c3
7
- data.tar.gz: 4b5006d249a5754af1d80d438cc1a2d1de86518a954ef2d277d81238f029e95435dc2079adad96d84ae4b95e93f0b9d8d804b39b227f70529bd974f80ea0a8b8
6
+ metadata.gz: 66fde495aeed2aec031365e2ef00d3976a9137ef05c4fb29a5989ab15b42157898be6de0bdc69b921ecf3978a0fc4b82847d14117b11b4109d21267328dfa7fc
7
+ data.tar.gz: dc8bae0552c3b7575ce6ffda7970209bf0c687d7dc5ad08938cda7400807a8445180d97002cfc88f9e1c82be1984fdcc4b5a3735411fbe577b586acc3af44785
@@ -26,14 +26,10 @@ module ItemBuilderMwh
26
26
 
27
27
  def reserved_stock
28
28
  RestClient.get("#{order_host}?#{reserved_params}")
29
- rescue RestClient::ExceptionWithResponse => e
30
- e.response
31
29
  end
32
30
 
33
31
  def apigateway_get
34
32
  RestClient.get("#{host}?#{params}")
35
- rescue RestClient::ExceptionWithResponse => e
36
- e.response
37
33
  end
38
34
 
39
35
  def headers
@@ -46,11 +42,7 @@ module ItemBuilderMwh
46
42
  def credential
47
43
  account_id = listing.profile_channel_association_id
48
44
  host = ENV['CREDENTIAL_URL'] || 'user.forstok.com'
49
- begin
50
- RestClient.get("#{host}/credential?account_id=#{account_id}")
51
- rescue RestClient::ExceptionWithResponse => e
52
- e.response
53
- end
45
+ RestClient.get("#{host}/credential?account_id=#{account_id}")
54
46
  end
55
47
 
56
48
  def data
@@ -66,8 +58,6 @@ module ItemBuilderMwh
66
58
 
67
59
  def apigateway_post
68
60
  RestClient.post(url, api_data, headers)
69
- rescue RestClient::ExceptionWithResponse => e
70
- e.response
71
61
  end
72
62
  end
73
63
  end
@@ -30,14 +30,10 @@ module ItemBuilderMwh
30
30
 
31
31
  def reserved_stock
32
32
  RestClient.get("#{order_host}?#{reserved_params}")
33
- rescue RestClient::ExceptionWithResponse => e
34
- e.response
35
33
  end
36
34
 
37
35
  def apigateway_get
38
36
  RestClient.get("#{host}?#{params}")
39
- rescue RestClient::ExceptionWithResponse => e
40
- e.response
41
37
  end
42
38
 
43
39
  def headers
@@ -50,11 +46,7 @@ module ItemBuilderMwh
50
46
  def credential
51
47
  account_id = listing.profile_channel_association_id
52
48
  host = ENV['CREDENTIAL_URL'] || 'user.forstok.com'
53
- begin
54
- RestClient.get("#{host}/credential?account_id=#{account_id}")
55
- rescue RestClient::ExceptionWithResponse => e
56
- e.response
57
- end
49
+ RestClient.get("#{host}/credential?account_id=#{account_id}")
58
50
  end
59
51
 
60
52
  def data
@@ -75,8 +67,6 @@ module ItemBuilderMwh
75
67
 
76
68
  def apigateway_post
77
69
  RestClient.post(url, api_data, headers)
78
- rescue RestClient::ExceptionWithResponse => e
79
- e.response
80
70
  end
81
71
  end
82
72
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ItemBuilderMwh
4
- VERSION = '0.1.8'
4
+ VERSION = '0.1.9'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: item_builder_mwh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ivander
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-01 00:00:00.000000000 Z
11
+ date: 2021-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler