dekiru 0.3.2 → 0.3.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
  SHA256:
3
- metadata.gz: 806c362e73ef549da508408522642036437b75425db706c4a71778e4385a2f50
4
- data.tar.gz: 61ee9f806a3f98ec64fe6a483445f2c0b1d283b4f17603f20aa503a5abdec069
3
+ metadata.gz: 53ac90388f6a6f6d56a8e61897f62c4963e78250731f004f9a8eb21105b20c0d
4
+ data.tar.gz: d6b94ccc5a44ef605c652aa78a28c40ef72da2262f3024471f325da851f65cf7
5
5
  SHA512:
6
- metadata.gz: dd0af03fd78a56207dfb6f4c7f51c28f6935dc2aa063381100c1732986d67cd332180ba847bea0ca185de24c4db018e02387863cb5b6409092c781e13ca9a139
7
- data.tar.gz: c690b539e8052ece4b46ec981760e2c05e91e43df428453181abc03a2f3529082913192d8f7d37f56cf631bbc83f0a2b3f483e61100a596b2ba60b44a1f42e40
6
+ metadata.gz: a367514ad2e6d1f761f9b8f69893b25cbe785596be1ee3c978e9e31842d448cbc77a8ae37888a3306fab83c6d6b122b5898c54e90fd8326708ea2eb7c10a30f2
7
+ data.tar.gz: 2c2f24e2d8419d073563fd46f42da3df0d265c6c92d9de1fc5477c9d75ba6539968672519a00de7d699b56b267cdb10b990106bf68438cff00cca060e9b42286
@@ -12,7 +12,7 @@ module Dekiru
12
12
  @title = title
13
13
  @options = options
14
14
  @stream = @options.fetch(:output, $stdout)
15
- @without_transaction = @options.fetch(:without_transaction, true)
15
+ @without_transaction = @options.fetch(:without_transaction, false)
16
16
  @side_effects = Hash.new do |hash, key|
17
17
  hash[key] = Hash.new(0)
18
18
  end
@@ -122,7 +122,7 @@ module Dekiru
122
122
  end
123
123
 
124
124
  def run(&block)
125
- if @options[:warning_side_effects]
125
+ if @options.fetch(:warning_side_effects, true)
126
126
  warning_side_effects(&block)
127
127
  else
128
128
  instance_eval(&block)
@@ -1,3 +1,3 @@
1
1
  module Dekiru
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dekiru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akihiro Matsumura