communard 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 352bf22c97e3890af551ec7a892b2fb5854d59a1e9b64a8692d657b1ef29e9c0
4
- data.tar.gz: 4a2a6672ea7184cf7547f4f260fc93cd4b880838499b2780b49826255c5ea231
3
+ metadata.gz: 989a8e575b31d6c8053349676239f409e3d23e01f178ce2caa24148157daf4fc
4
+ data.tar.gz: e8d069b21143e39b893af8e49edbe18b1901df4b75f579444d4a0875483f5a3d
5
5
  SHA512:
6
- metadata.gz: 1d21787984e57eef7bc9031b6d356636cd888c39f9346aa8092949438be8102240ca5d41e4e401a532de3ffc031d5ad172e49afcbb2c509cb17059e9ce0ebf60
7
- data.tar.gz: feb8a84d5f3d1602c8e1a5425840686660baf264a9eb22df2ac50742419470f60530707a7fad6289e4414d9d755fc6a9ac959ec460bf69ce6bc1531dde89531f
6
+ metadata.gz: 120f6bcf332643ec35af7b65b761bca5604071e4b8c1dea1a1e8cca7c1c03f5281bf70e31bb4918999e135787a0829bdbca75a8b16ce322c1752703dce3dee74
7
+ data.tar.gz: feddd683712f6f274f5a838640103f82631347cf6b3aa7b19a4b0187e6163341e67d63f9b59d424e64a3a6874dfc7ee29981008c4b7c2f11d39dffa53b30e37e
@@ -40,7 +40,7 @@ module Communard
40
40
  end
41
41
 
42
42
  def migrate(target: nil)
43
- target = Integer(target) if target
43
+ target = target.to_i if target.to_s.match?(/\A\d+\z/)
44
44
  migrator(target: target, current: nil).run
45
45
  dump_schema if target.nil? && configuration.dump_after_migrating
46
46
  end
@@ -1,5 +1,5 @@
1
1
  module Communard
2
2
 
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
 
5
5
  end
@@ -1,4 +1,4 @@
1
- require "aruba"
1
+ require "aruba/rspec"
2
2
 
3
3
  RSpec.configure do |config|
4
4
  config.disable_monkey_patching!
@@ -7,6 +7,10 @@ RSpec.configure do |config|
7
7
  config.before :each, type: :aruba do
8
8
  restore_env
9
9
  setup_aruba
10
+ if ENV["SHOW_OUTPUT"] == "true"
11
+ aruba.announcer.activate :stdout
12
+ aruba.announcer.activate :stderr
13
+ end
10
14
  end
11
15
 
12
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: communard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - iain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-13 00:00:00.000000000 Z
11
+ date: 2018-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  requirements: []
167
167
  rubyforge_project:
168
- rubygems_version: 2.7.1
168
+ rubygems_version: 2.7.6
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Adds some conventions from ActiveRecord to Sequel.