restruct 0.0.2 → 0.0.3

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: 323a7886178c57fee15bdad49f5741213f0eb240
4
- data.tar.gz: 70061f00219a2599c15bdf3c0ed47bac4a447f15
3
+ metadata.gz: 348743cb28cb1159c9d59162d3f39233424afc66
4
+ data.tar.gz: ec7f662e9b67b0762f0cd5dd7f5314e37cafecca
5
5
  SHA512:
6
- metadata.gz: 6d056c3d518860fe8f0a823a7994406ab592ef4a36b24f31c15539fd144090ab08e56c13d8b90a89f6f21b4da813a75f0a2f584b5679a5cd2cba69edfbf3cdde
7
- data.tar.gz: 06c08f25b4c01df0b510f2a2f0afb460027d6a779424cac5838f4941fc1ef203a6ad6f3cfaf48cc9d8fa3abcd640df4d112656a18a432b1bcb77a07a79e2f592
6
+ metadata.gz: be6d4f14461f91b75265eef5a327709c192f966d26a56dec4ff83ec0c8563a7ad5070653a240c8e96f2c8fb5222d3473d83aae10eee72617c795cc9fb7577cd7
7
+ data.tar.gz: 3543ef892445534d84dee4aca23430a7a7c0804dbeb45c7a681018152715ae14b29e3cefce3fdb71a7416628b95b7f25f628e75ee19cb9a2f55ae95a17b338a8
@@ -5,8 +5,9 @@ module Restruct
5
5
  def execute(redis=nil)
6
6
  redis ||= Restruct.redis
7
7
  multi redis
8
- yield
8
+ result = yield
9
9
  exec redis
10
+ result
10
11
  rescue => ex
11
12
  discard redis
12
13
  raise ex
@@ -1,3 +1,3 @@
1
1
  module Restruct
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'redic', '~> 1.1.1'
21
+ spec.add_dependency 'redic', '~> 1.2.0'
22
22
  spec.add_dependency 'class_config', '~> 0.0.1'
23
23
 
24
24
  spec.add_development_dependency 'bundler', '~> 1.6'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restruct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.1
19
+ version: 1.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.1.1
26
+ version: 1.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: class_config
29
29
  requirement: !ruby/object:Gem::Requirement