cfn-bridge 0.0.6 → 0.0.7

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
  SHA1:
3
- metadata.gz: 280b19ea15f98e64ee6802b9393c848174ee84aa
4
- data.tar.gz: f7ace3f96cfa6d81aba82ff82590c4de4e0437a0
3
+ metadata.gz: a073228b2c1399e982837dbb1b1ee79a10723436
4
+ data.tar.gz: 76ab8925cab041a8186460ff15ad9357062f1345
5
5
  SHA512:
6
- metadata.gz: 8f5f9172cf3431d7d72d44a17f08da4950ce3eb6920dccd09c457d5096ca56650e611c5ceeab7fb35dd591f32c5f45efab2f450337576f3485f13a7a0542ecdd
7
- data.tar.gz: 98904baa461538f20bb34af35afcb79080c2c9e854df09158d11a77b14f5406ef1fd9551c0e4e10937008799a8c99f45b3722364d1128f43a459e2984a6377d3
6
+ metadata.gz: 70e6d5f12ca2051496680564a11e60ae3554f6173ab5662084d11ec995c293f943b648fed9542b1ef5015832e325a911f20ae620f4471765efcd400a7a86d76b
7
+ data.tar.gz: 72ad8a7893e480315042698b28688e09b709d86b30d8665677e0077da9e70f17b6c2c420846ce6dfee07433f133871157548eea14e85f2412e3bed8025bbeba8
data/cfn-bridge.gemspec CHANGED
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency 'aws-sdk', '~> 1.50.0'
28
28
  spec.add_dependency 'faraday', '~> 0.9.0'
29
29
  spec.add_dependency 'faraday_middleware', '~> 0.9.1'
30
+ spec.add_dependency 'faraday_curl', '~> 0.0.2'
30
31
  spec.add_dependency 'thor', '~> 0.19.1'
31
32
  spec.add_dependency 'typhoeus', '~> 0.6.9'
32
33
  spec.add_dependency 'rollbar', '~> 1.0.0'
@@ -13,6 +13,7 @@ module CloudFormation
13
13
  def put(url, data)
14
14
  connection = Faraday.new do |f|
15
15
  f.request :json
16
+ f.request :curl, Util::LOGGER , :info
16
17
  f.request :retry, max: 2, interval: 0.05, interval_randomness: 0.5, backoff_factor: 2
17
18
 
18
19
  f.response :raise_error
@@ -70,16 +70,11 @@ module CloudFormation
70
70
  FIELDS::STATUS => RESULTS::FAILED,
71
71
  )
72
72
 
73
- logger.error("Failing request #{request_url} - #{response.inspect}")
74
-
75
73
  HttpBridge.put(request_url, response)
76
74
  end
77
75
 
78
76
  def succeed!(response)
79
77
  actual_response = build_response(response || {})
80
-
81
- logger.info("Succeeding request #{request_url} - #{actual_response.inspect}")
82
-
83
78
  HttpBridge.put(request_url, actual_response)
84
79
  end
85
80
 
@@ -1,5 +1,5 @@
1
1
  module CloudFormation
2
2
  module Bridge
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn-bridge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maurício Linhares
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.9.1
125
+ - !ruby/object:Gem::Dependency
126
+ name: faraday_curl
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.0.2
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.0.2
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: thor
127
141
  requirement: !ruby/object:Gem::Requirement