mina-data_sync 1.1.0 → 1.2.0

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: 73113d75dcc06e2ed520c41c9eec7ead5f81997a9e2cc8cbbc303e7028303edd
4
- data.tar.gz: 03705d30c25c7fa53e7f0cd86b117e1b26e961197385dc0293000cc2d2f7b8f9
3
+ metadata.gz: d4bf733f36cdde5fa5318baf14bc18a34d22426e62d8c08cf8dfad699a61d197
4
+ data.tar.gz: e59bec5f2a1a42342f5a7ab1038c679868295ad49940bf011548869c7e7fe30f
5
5
  SHA512:
6
- metadata.gz: e175c1eee90f8f4130da6bdc702b74ac650cf5d8fbcfca808bd045eb2b5fbf1b2829e290a4a0b3cd230f80bb30ad83aa982da83b89c59c40822da53e0a555d3e
7
- data.tar.gz: 06d9dac2dcb74fae366872f5a2dd1c7cf2a4c2eb915717791329e3c26c4709038a38bbb7968ecd3e8436e1d53f152c842b38424dcb0157b9f8d4b06a4dd86d27
6
+ metadata.gz: fad6613e245ae0ccbef9f6ec37b3f1f7eecdd45c7fd24c2096e2965614b205c3b7d5a6c436c9edd4643c945044a384385dfcd382b866aa738371192e696f2515
7
+ data.tar.gz: 62d627f7cd4184734445c3c16b97efd71231001b1cea9e2abe85c01a87a8e5461810c66a1946f859050a942ec196163b349eaab13608d88a0772c0f69e3df3ab
@@ -41,7 +41,7 @@ def dump_restore(rails_root, backup_path, mode: :dump, backend: :local)
41
41
  command %{cd #{rails_root}}
42
42
  command DATA_SYNC.to_s
43
43
  command %{mkdir -p #{backup_path}}
44
- command %{CONFIG=$(RAILS_ENV=#{backend == :local ? 'development' : fetch(:rails_env)} bundle exec rails runner "puts ActiveRecord::Base.connection.instance_variable_get(:@config).to_json")}
44
+ command %{CONFIG=$(RAILS_ENV=#{backend == :local ? 'development' : fetch(:rails_env)} bundle exec rails runner "puts ActiveRecord::Base.connection.instance_variable_get(:@config).to_json" | tail -1)}
45
45
  comment %{$(data_sync "#{mode}" "#{backup_path}/#{fetch(:backup_file)}" "$CONFIG")}
46
46
  command %{eval $(data_sync "#{mode}" "#{backup_path}/#{fetch(:backup_file)}" "$CONFIG")}
47
47
  end
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module DataSync
3
- VERSION = '1.1.0'.freeze
3
+ VERSION = '1.2.0'.freeze
4
4
  end
5
5
  end
@@ -18,9 +18,9 @@ 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_development_dependency "bundler", "~> 1.7"
22
- spec.add_development_dependency "rake", "~> 10.0"
23
- spec.add_development_dependency "pry", "~> 0"
21
+ spec.add_development_dependency "bundler"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "pry"
24
24
 
25
25
  spec.add_dependency 'mina', '~> 1.0'
26
26
  spec.add_dependency 'tty-prompt', '~> 0.4'
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-data_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-20 00:00:00.000000000 Z
11
+ date: 2022-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
19
+ version: '0'
20
20
  type: :development
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.7'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubygems_version: 3.0.3
123
+ rubygems_version: 3.3.19
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Summary