capistrano-db-sync 0.0.14 → 0.0.15

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
- SHA1:
3
- metadata.gz: 7a795956c9a560caa468f69525d691341dd4f672
4
- data.tar.gz: 62c6af9bba2a68319e468af30f10da95a6965421
2
+ SHA256:
3
+ metadata.gz: 8d6b3c0a475036081cec3bd80e93bf91b34b8a48ae41498a589a1644f59da62b
4
+ data.tar.gz: 85a7286745a761d5cee22e0079c162415a040675feacb585cb12815a4d04c850
5
5
  SHA512:
6
- metadata.gz: 895f9357d7d3729d97428ec98e35f47a1d0bcee45721b5a72dd4b7823fc38e8fa143a08aa1eadb4a4ae8a400f1b594caa26f89f793df66257a3f749a3ad3ebdc
7
- data.tar.gz: 3c98422b7f183422df21f346193742a3441c608d5858b9795b08be0fcb724f0f20a090560abed79977c9821dbca14e9a2abfb2fe825487a024f0a07ed325b39a
6
+ metadata.gz: 5dc0fa8a84352622af8d8964529043376656b43022a03bb78012dade20210edb778d5aa23fcedfa8f103817cddf469d2bcd0064a18625f544c8cdc1f5b60fa73
7
+ data.tar.gz: 1324c570c5fd9f397261be69a12cebb43243cc394aa08a430566e3e21f0e3e5584884670933b9f8fb3c5e8d0d0a4ae59786424d4e9bb6e9ea22bb7e8eeb443c1
data/README.md CHANGED
@@ -37,4 +37,11 @@ db:sync:local_to_remote # Synchronize your remote database using local datab
37
37
 
38
38
  ```
39
39
  cap production db:sync:remote_to_local
40
+ ```
41
+
42
+
43
+ ## Livraison
44
+
45
+ ```
46
+ gem build capistrano-db-sync.gemspec
40
47
  ```
@@ -4,12 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'capistrano-db-sync'
7
- spec.version = '0.0.14'
8
- spec.date = Date.today.to_s
9
- spec.summary = "Capistrano synchronization databases task"
10
- spec.description = "Capistrano synchronization task for syncing databases between the local development environment and different multi_stage environments"
7
+ spec.version = '0.0.15'
11
8
  spec.authors = ["Albuisson Stéphane"]
12
9
  spec.email = 'stephane.albuisson@gmail.com'
10
+
11
+ spec.summary = "Capistrano synchronization databases task"
12
+ spec.description = "Capistrano synchronization task for syncing databases between the local development environment and different multi_stage environments"
13
13
  spec.files = `git ls-files`.split("\n")
14
14
  spec.homepage = 'http://www.stephane-albuisson.com'
15
15
  spec.license = 'MIT'
@@ -21,6 +21,11 @@ namespace :db do
21
21
  username, password, database, host = database_config('development')
22
22
  system "mysqldump -u #{username} --password=#{password} #{database} > #{filename}"
23
23
 
24
+ # On remplace l'url locale par l'url distante
25
+ text = File.read(filename)
26
+ content = text.gsub(/#{fetch(:local_url)}/, fetch(:remote_url))
27
+ File.open(filename, "w") { |file| file << content }
28
+
24
29
  # Export du fichier SQL
25
30
  upload! filename, "#{shared_path}/sync/#{filename}"
26
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-db-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Albuisson Stéphane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-22 00:00:00.000000000 Z
11
+ date: 2018-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  version: '0'
61
61
  requirements: []
62
62
  rubyforge_project:
63
- rubygems_version: 2.6.13
63
+ rubygems_version: 2.7.6
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: Capistrano synchronization databases task