appfuel 0.5.4 → 0.5.5

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: c666c08d318ae6f0c3f37565e28d53c599b5a13d
4
- data.tar.gz: 99c1283b2377043c0c756bc788c7e059d3daf8a3
3
+ metadata.gz: 93f75527f2efb11ba86b5a1ba554a7ff615860aa
4
+ data.tar.gz: 1f8153c9013eb34048113c566859df6d4acab187
5
5
  SHA512:
6
- metadata.gz: 12c863e5fafdd593134c0f07e7c225d30ce1d7ea086da11237c9c85124fb9afa729152f67d098649aa6d8ca3438a41fc12d6681f8ff1f45677d2233a782421d2
7
- data.tar.gz: fd78a0db23db3e93788d807c33f882f60164ac152778088248d3b2cd49ad0e2a420ec085178f1d0ab1873ab20a9819ed2a6ec991339d55fac829a7b881c3ec86
6
+ metadata.gz: 2eb1cab65a0b9e2b62866bf9637a3f24329c4f69aaef5e886343af2978d69a3b37656685c0889ca6cc3146064b3069786880c4995e57d1e58fdcf15b538417fc
7
+ data.tar.gz: 3260090ac3d39fee5ec28739a113836e5cb6738b059f8b690e044fd5bfdac658c0f8498bb0f4e25460e2ec8574aa358db10bdba51a62216022a4864279fac190
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. (Pending ap
5
5
 
6
6
 
7
7
  # Releases
8
+ ## [[0.5.5]] (https://github.com/rsb/appfuel/releases/tag/0.5.5) 2017-07-11
9
+ ### Fixed
10
+ - Fixed web_api error handling, re-raised exception incorrectly
11
+
8
12
  ## [[0.5.4]] (https://github.com/rsb/appfuel/releases/tag/0.5.4) 2017-07-11
9
13
  ### Fixed
10
14
  - Fixed error key usage in response handler
@@ -71,9 +71,7 @@ module Appfuel
71
71
  response = json(response.body)
72
72
  end
73
73
  rescue => err
74
- msg = "[#{http_url}] #{err.message}"
75
- err.message = msg
76
- raise err
74
+ raise err.exception("[#{http_url}] #{err.message}")
77
75
  end
78
76
 
79
77
  response
@@ -1,3 +1,3 @@
1
1
  module Appfuel
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  end
data/lib/appfuel.rb CHANGED
@@ -119,12 +119,15 @@ module Appfuel
119
119
 
120
120
  def setup_container_dependencies(namespace_key, container)
121
121
  container.namespace(namespace_key) do
122
- register('initializers', ThreadSafe::Array.new)
123
- register('validators', {})
124
- register('repositories', {})
125
- register('validator_pipes', {})
126
- register('domain_builders', {})
127
- register('presenters', {})
122
+ unless key?("initializers")
123
+ register('initializers', ThreadSafe::Array.new)
124
+ end
125
+
126
+ register('validators', {}) unless key?('validators')
127
+ register('repositories', {}) unless key?('repositories')
128
+ register('validator_pipes', {}) unless key?('validator_pipes')
129
+ register('domain_builders', {}) unless key?('domain_builders')
130
+ register('presenters', {}) unless key?('presenters')
128
131
  end
129
132
  container
130
133
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appfuel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Scott-Buccleuch