pragma-operation 1.3.0 → 1.3.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: 39e11fbcfbe2c2df5eed59358aa1a84a79675083
4
- data.tar.gz: aa39dec0b423e58f84a059a768ef9fa2a525a851
3
+ metadata.gz: ca227f37281d21e255be89ef1e93bf2bdbc4c7bf
4
+ data.tar.gz: 057f44f1a1e1f115da8a9e2222aa2c6e8bffcd31
5
5
  SHA512:
6
- metadata.gz: aa9fc148a5a071c1114a65c263356cf4255af745cc72493d9c46e98e4b5fdf828efd4ed71a527442452d5919b03b69638e8bef8852f43a48e2728c28b1b00f9b
7
- data.tar.gz: f3b7c56270dd51780b29546d94cbef55fbc7bf45a3c2e7c94446530acdad78c812cf81c5aa0f9cf5ed77f495a1fb930350eaaf1284b5a638532f4b4308e67f5a
6
+ metadata.gz: 1d68713b553756dde08450895a2635bb9c186702c1dd738b42f92b97b4886913e71c8f5f2bf3af432f980a23bbb9cddc5145420a11aec6dd3e368214705f5865
7
+ data.tar.gz: 8ccc90fd809212c105385b7e01c785fe3d0cb31f3caedd503478ba857b941aa005c35f497f553b6101eb98e2b9eb0c4853b65526fe06cfcf3b419f71c980fa8d
@@ -35,6 +35,7 @@ module Pragma
35
35
  #
36
36
  # @see #decorator
37
37
  def build_decorator(resource)
38
+ resource = resource.to_a if resource.is_a?(Enumerable)
38
39
  decorator_klass.represent(resource)
39
40
  end
40
41
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Pragma
3
3
  module Operation
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pragma-operation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Desantis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-30 00:00:00.000000000 Z
11
+ date: 2017-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: interactor