atacama 0.1.5 → 0.1.6

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: 962e473a80996947e194283a65b1a31ca998d448
4
- data.tar.gz: 7df566c68e5e900c7f05fca2743c6c945d410e16
3
+ metadata.gz: 5cf86d5c337258aa67e7c9f25dfe42a0bc82a913
4
+ data.tar.gz: a1f304895a629d1c13c9455536e853acd1e5371e
5
5
  SHA512:
6
- metadata.gz: b13dfd1450db5916e15e44baac9d38b1e64659cfefc8098d2a92628b6b2f10e89eae2303027ebc048898dfa8f39232691d2a741cc8835fe8d3c5dbdf7d08ca34
7
- data.tar.gz: a8d26a7ca84b95564092d282839024411bf2cd97d9943288c22f02f67c7000cf8d379a828fef81f08e62a99337a60294c97516b55df29993c8db0b35a132ea65
6
+ metadata.gz: 78d72f1ee206d6b4f253531eef2ec3e1a4ad93c572fdbde98887ba74267542e269ef9c534a9d1fc2853a5ffe9148242002583aa0bca863d61d0a3a12b7ec6e1b
7
+ data.tar.gz: 5f2b0f9530c7b675930af229cd5577ffdf24c6addc3443c7db277fb1b0a3a3731ec7d95c7f1f509fce8aa7eac92d3cab5479ea46a517fdc66080264b43226fbb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atacama (0.1.5)
4
+ atacama (0.1.6)
5
5
  dry-types (~> 0.13.2)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
+ *Under Development*
1
2
 
3
+ This project is under active development, so be prepared for APIs to just break until we get to a
4
+ more stable version number.
2
5
 
3
6
  # Atacama
4
7
 
@@ -50,8 +50,8 @@ module Atacama
50
50
  define_method("#{name}?") { !!@context[name] }
51
51
  end
52
52
 
53
- def call(context = {})
54
- new(context: context).call.tap do |result|
53
+ def call(context = {}, &block)
54
+ new(context: context).call(&block).tap do |result|
55
55
  validate_return(result)
56
56
  end
57
57
  end
@@ -104,9 +104,11 @@ module Atacama
104
104
  end
105
105
 
106
106
  def return_value
107
- @return_value ||
108
- (self.class.return_option && context[self.class.return_option]) ||
109
- nil
107
+ @return_value || return_value_from_option || nil
108
+ end
109
+
110
+ def return_value_from_option
111
+ self.class.return_option && context[self.class.return_option]
110
112
  end
111
113
  end
112
114
  end
@@ -1,3 +1,3 @@
1
1
  module Atacama
2
- VERSION = '0.1.5'.freeze
2
+ VERSION = '0.1.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atacama
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Johnston