synchronised_migration 1.0.1 → 1.0.2.pre.alpha.1

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
  SHA1:
3
- metadata.gz: 911db30722a3d44c21e5bd6c3645c15406ace054
4
- data.tar.gz: b096f81f1c6e1142978659b3e9ab378ad7dee97c
3
+ metadata.gz: 46137a7221280e53c8a46dffc717f940e94cf02e
4
+ data.tar.gz: bfacb7b23898da580e100d53eb1fbc0d7b641cdc
5
5
  SHA512:
6
- metadata.gz: 2c127ce2206ace2e2a6eb479f3b77228ba080c06f1f490153e7ff6cc1d790f39c756e7adcdcb6a5efaf34b3052390ab5aa03a159b1ce0ec58ca739eb9bd48442
7
- data.tar.gz: 65099d8865ae3b5ae05a6cab934608fb32d0feaa92aa0bd5a93a11cbcfe2171565c3f7952796346008e20e45898d02edcccb7f2a916771fba2937136b13f9e89
6
+ metadata.gz: ee2658296ac508f679c42af3e18031ff860aba20f07f9a7f89342ea710565ff6afa477d42007f73dbd265090c9724d60ba34907e6636aa3cbb00efe5a787faad
7
+ data.tar.gz: fc49da8ca250dd9a5fa0b0769c4c343a60a4cdb95b556bdc7b622b15e4c2df81b2f3286b165c0cdd76ddfd791a3eca3b4b68cbbe89225981694875897dbcf30c
@@ -50,7 +50,7 @@ class SynchronisedMigration::Main
50
50
 
51
51
  def migrate
52
52
  return Kernel.system target_command unless with_clean_env?
53
- Bundler.with_clean_env do
53
+ Bundler.with_original_env do
54
54
  Kernel.system target_command
55
55
  end
56
56
  end
@@ -1,3 +1,3 @@
1
1
  module SynchronisedMigration
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2-alpha.1'
3
3
  end
@@ -27,7 +27,7 @@ describe SynchronisedMigration::Main do
27
27
  method.call *args
28
28
  }
29
29
 
30
- allow(Bundler).to receive(:with_clean_env).and_call_original
30
+ allow(Bundler).to receive(:with_original_env).and_call_original
31
31
 
32
32
  stub_const(
33
33
  'RedisConfig', double(
@@ -47,7 +47,7 @@ describe SynchronisedMigration::Main do
47
47
  expect(redis).to have_received(:get).with('migration-failed')
48
48
  expect(redis).to have_received(:set).with('migration-failed', 1)
49
49
  expect(Kernel).to have_received(:system)
50
- expect(Bundler).not_to have_received(:with_clean_env)
50
+ expect(Bundler).not_to have_received(:with_original_env)
51
51
  expect(redis).to have_received(:del).with('migration-failed')
52
52
  end
53
53
  end
@@ -61,7 +61,7 @@ describe SynchronisedMigration::Main do
61
61
  it 'executes it with a clean Bundler environment' do
62
62
  expect(result).to be_success
63
63
  expect(Kernel).to have_received(:system)
64
- expect(Bundler).to have_received(:with_clean_env)
64
+ expect(Bundler).to have_received(:with_original_env)
65
65
  end
66
66
  end
67
67
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synchronised_migration
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2.pre.alpha.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alvin Yim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-02 00:00:00.000000000 Z
11
+ date: 2017-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redlock
@@ -103,9 +103,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - ">="
106
+ - - ">"
107
107
  - !ruby/object:Gem::Version
108
- version: '0'
108
+ version: 1.3.1
109
109
  requirements: []
110
110
  rubyforge_project:
111
111
  rubygems_version: 2.4.5.2