microcon 0.1 → 0.1.1

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: 5490ef93d83e8c638a5500d1304543f44252bdb7
4
- data.tar.gz: 87adab9a51380b2c7ccdd17d52f807bcb2b6c6b1
3
+ metadata.gz: ede9d313005a179b99db769c6f1de828ef39038f
4
+ data.tar.gz: 2d97d0624406abbf7e474eb5fc26a46640f24f06
5
5
  SHA512:
6
- metadata.gz: 45ed93df32e9168ac2b72bdb45477d254ff7b3065659b8e80a96aa499c2504fe6ebfc14003cf55a7c89145098e0fd997c25d203d77b8a10509625b031d36fb99
7
- data.tar.gz: 4c2c37b2ebc80139f7da84b2b26104fa9555f8e2d325e0a8fe77b6bb4279ce65ea3fd6fb2feb925fd03482a3674b3913ef79cc0d4a7d2dabb21afd448eebbee1
6
+ metadata.gz: 0d671264c7f5ec9c506a6f19e8a5b206ca9ddf9f04a3bae1feb2f72098aafbe941e8030d4ac13ac8b1c985d7e374945c8e994d7a4ba9cbe35e90060e3d767cfb
7
+ data.tar.gz: 0e025b110dcef9b8a66273133e0eacc9b5454976300227ddd7a0f9e26bc906ecf697675d5b1ebd9693f039908058c290651e7528606b78392cec528e9ae28eaf
@@ -55,7 +55,7 @@ module Microcon
55
55
  # merge_fn = Dry::Monads::Maybe(-> x,y {x.merge(y)})
56
56
  # merge_fn * memo * obj
57
57
  #binding.pry
58
- memo.bind {|m| obj.fmap {|o| m.merge(o)} }
58
+ memo.bind {|m| obj.fmap {|o| Functions[:deep_merge][m,o] } }
59
59
  end
60
60
  end
61
61
 
@@ -1,4 +1,4 @@
1
- require 'dry-container'
1
+
2
2
  #Core.finalize :base_controller do
3
3
  module Microcon
4
4
  class ResultHandlers
@@ -25,7 +25,7 @@ module Microcon
25
25
  {
26
26
  status: 422,
27
27
  body: {
28
- error: :unprocessable_entity, reason: error.reason
28
+ error: :unprocessable_entity, reason: r.reason
29
29
  }
30
30
  }
31
31
  }
@@ -1,3 +1,3 @@
1
1
  module Microcon
2
- VERSION = '0.1'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: microcon
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Peláez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-12 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-monads