wordmove 1.2.0 → 1.3.0.pre

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: 60ff5cc828eb2578676cbb8b3d9d32806eabbd16
4
- data.tar.gz: 3c183cd2e044f6e3658c1715761117e72bd005bf
3
+ metadata.gz: d26990c0bb52ba522491e8d0182afaaac81ad6eb
4
+ data.tar.gz: 82d5fd3f0d26b7f6fb6c0b679ba7ae66c9e70724
5
5
  SHA512:
6
- metadata.gz: 95c2773c42c25bfbf78a75e3f187b0290a20a2c9869d2b319a21015552243ba3dc6e565296e7aa21bd9422badffc8ada4a5be6fedae6b4a96fc92d192c517885
7
- data.tar.gz: 3dff2fd6bc8b94a3f46c0f26f0fe728edfacd635a4ab4da2780b40a1de13a6eaa87b1a9dcd646322172e8480cc13e46ad485f85cdfba885a72734404eb82f549
6
+ metadata.gz: 875222b7857bc520c702c2648b41904690f819e70afbebbfe3ab6fcee8dfed8d8e2b3a5c087c664859d0add86f1d5770209359fa005e04cfa82a78c5ba1bf057
7
+ data.tar.gz: f8c3f3cdf68a9b64f7dd359b20c81a394eb9a50862bf85fb102aafae65f9dc1b67b07c0b9bd5b2ff2222971a7b54d82c0605efb2c093071bcbb726308a04019d
data/README.mdown CHANGED
@@ -59,7 +59,7 @@ local:
59
59
  host: "127.0.0.1"
60
60
 
61
61
  staging:
62
- vhost: "http://remote.com"
62
+ vhost: "http://example.com"
63
63
  wordpress_path: "/var/www/your_site" # use an absolute path here
64
64
 
65
65
  database:
@@ -192,7 +192,7 @@ module Wordmove
192
192
  arguments << "--password=#{options[:password]}" if options[:password].present?
193
193
  arguments << "--default-character-set=#{options[:charset]}" if options[:charset].present?
194
194
  arguments << options[:name]
195
- Escape.shell_command(arguments) + " > #{save_to_path}"
195
+ Escape.shell_command(arguments) + " > \"#{save_to_path}\""
196
196
  end
197
197
 
198
198
  def mysql_import_command(dump_path, options)
@@ -202,7 +202,7 @@ module Wordmove
202
202
  arguments << "--user=#{options[:user]}" if options[:user].present?
203
203
  arguments << "--password=#{options[:password]}" if options[:password].present?
204
204
  arguments << "--database=#{options[:name]}"
205
- Escape.shell_command(arguments) + " < #{dump_path}"
205
+ Escape.shell_command(arguments) + " < \"#{dump_path}\""
206
206
  end
207
207
 
208
208
  def save_local_db(local_dump_path)
@@ -33,7 +33,7 @@ module Wordmove
33
33
  # remove dump remotely
34
34
  remote_delete(remote_dump_path)
35
35
  # and locally
36
- run "rm #{local_dump_path}"
36
+ run "rm \"#{local_dump_path}\""
37
37
  end
38
38
 
39
39
  def pull_db
@@ -50,7 +50,7 @@ module Wordmove
50
50
  run mysql_import_command(local_dump_path, local_options[:database])
51
51
 
52
52
  # and locally
53
- run "rm #{local_dump_path}"
53
+ run "rm \"#{local_dump_path}\""
54
54
  end
55
55
 
56
56
  private
@@ -120,7 +120,7 @@ module Wordmove
120
120
  # run import script
121
121
  import_url = "#{remote_wp_content_dir.url("import.php")}?shared_key=#{one_time_password}&start=1&foffset=0&totalqueries=0&fn=dump.sql"
122
122
  download(import_url, temp_path)
123
- run "rm #{temp_path}"
123
+ run "rm \"#{temp_path}\""
124
124
  # remove script remotely
125
125
  remote_delete(remote_import_script_path)
126
126
  end
@@ -20,21 +20,20 @@ module Wordmove
20
20
  save_local_db(local_dump_path)
21
21
  adapt_sql(local_dump_path, local_options, remote_options)
22
22
  import_remote_dump(local_dump_path)
23
- run "rm #{local_dump_path}"
23
+ run "rm \"#{local_dump_path}\""
24
24
  end
25
25
 
26
26
  def pull_db
27
27
  super
28
28
 
29
29
  local_dump_path = local_wp_content_dir.path("dump.sql")
30
- remote_dump_path = remote_wp_content_dir.path("dump.sql")
31
30
  local_backup_path = local_wp_content_dir.path("local-backup-#{Time.now.to_i}.sql")
32
31
  save_local_db(local_backup_path)
33
32
 
34
33
  download_remote_db(local_dump_path)
35
34
  adapt_sql(local_dump_path, remote_options, local_options)
36
35
  run mysql_import_command(local_dump_path, local_options[:database])
37
- run "rm #{local_dump_path}"
36
+ run "rm \"#{local_dump_path}\""
38
37
  end
39
38
 
40
39
  private
@@ -9,7 +9,7 @@ local:
9
9
  host: "<%= database.host %>"
10
10
 
11
11
  staging:
12
- vhost: "http://remote.com"
12
+ vhost: "http://example.com"
13
13
  wordpress_path: "/var/www/your_site" # use an absolute path here
14
14
 
15
15
  database:
@@ -23,6 +23,7 @@ staging:
23
23
  - ".git/"
24
24
  - ".gitignore"
25
25
  - ".sass-cache/"
26
+ - "node_modules/"
26
27
  - "bin/"
27
28
  - "tmp/*"
28
29
  - "Gemfile*"
@@ -1,4 +1,3 @@
1
1
  module Wordmove
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0.pre"
3
3
  end
4
-
@@ -23,7 +23,7 @@ describe Wordmove::Generators::Movefile do
23
23
  end
24
24
 
25
25
  it 'creates a Movefile' do
26
- expect(File.exists?(movefile)).to be_true
26
+ expect(File.exists?(movefile)).to be true
27
27
  end
28
28
 
29
29
  it 'fills local wordpress_path using shell path' do
@@ -7,7 +7,7 @@ local:
7
7
  password: "password"
8
8
  host: "host"
9
9
  remote:
10
- vhost: "http://remote.com"
10
+ vhost: "http://example.com"
11
11
  wordpress_path: "/var/www/your_site"
12
12
  database:
13
13
  name: "database_name"
data/wordmove.gemspec CHANGED
@@ -2,8 +2,8 @@
2
2
  require File.expand_path('../lib/wordmove/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
- gem.authors = ["Stefano Verna", "Ju Liu"]
6
- gem.email = ["stefano.verna@welaika.com", "ju.liu@welaika.com"]
5
+ gem.authors = ["Stefano Verna", "Ju Liu", "weLaika"]
6
+ gem.email = ["stefano.verna@welaika.com", "ju.liu@welaika.com", "info@welaika.com"]
7
7
  gem.description = %q{Wordmove deploys your WordPress websites at the speed of light.}
8
8
  gem.summary = %q{Wordmove, Capistrano for Wordpress}
9
9
  gem.homepage = "https://github.com/welaika/wordmove"
@@ -21,10 +21,10 @@ Gem::Specification.new do |gem|
21
21
  gem.add_dependency "thor"
22
22
  gem.add_dependency "activesupport"
23
23
  gem.add_dependency "i18n"
24
- gem.add_dependency "photocopier", "~> 0.0.10"
24
+ gem.add_dependency "photocopier", ">= 1.0.0.pre2"
25
25
  gem.add_dependency "escape"
26
26
 
27
- gem.add_development_dependency "rspec"
27
+ gem.add_development_dependency "rspec", '< 3'
28
28
 
29
29
  gem.post_install_message = <<-EOF
30
30
 
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordmove
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  - Ju Liu
9
+ - weLaika
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-04-24 00:00:00.000000000 Z
13
+ date: 2015-07-03 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: colored
@@ -85,16 +86,16 @@ dependencies:
85
86
  name: photocopier
86
87
  requirement: !ruby/object:Gem::Requirement
87
88
  requirements:
88
- - - "~>"
89
+ - - ">="
89
90
  - !ruby/object:Gem::Version
90
- version: 0.0.10
91
+ version: 1.0.0.pre2
91
92
  type: :runtime
92
93
  prerelease: false
93
94
  version_requirements: !ruby/object:Gem::Requirement
94
95
  requirements:
95
- - - "~>"
96
+ - - ">="
96
97
  - !ruby/object:Gem::Version
97
- version: 0.0.10
98
+ version: 1.0.0.pre2
98
99
  - !ruby/object:Gem::Dependency
99
100
  name: escape
100
101
  requirement: !ruby/object:Gem::Requirement
@@ -113,20 +114,21 @@ dependencies:
113
114
  name: rspec
114
115
  requirement: !ruby/object:Gem::Requirement
115
116
  requirements:
116
- - - ">="
117
+ - - "<"
117
118
  - !ruby/object:Gem::Version
118
- version: '0'
119
+ version: '3'
119
120
  type: :development
120
121
  prerelease: false
121
122
  version_requirements: !ruby/object:Gem::Requirement
122
123
  requirements:
123
- - - ">="
124
+ - - "<"
124
125
  - !ruby/object:Gem::Version
125
- version: '0'
126
+ version: '3'
126
127
  description: Wordmove deploys your WordPress websites at the speed of light.
127
128
  email:
128
129
  - stefano.verna@welaika.com
129
130
  - ju.liu@welaika.com
131
+ - info@welaika.com
130
132
  executables:
131
133
  - wordmove
132
134
  extensions: []
@@ -188,14 +190,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
188
190
  version: '0'
189
191
  required_rubygems_version: !ruby/object:Gem::Requirement
190
192
  requirements:
191
- - - ">="
193
+ - - ">"
192
194
  - !ruby/object:Gem::Version
193
- version: '0'
195
+ version: 1.3.1
194
196
  requirements: []
195
197
  rubyforge_project:
196
198
  rubygems_version: 2.2.2
197
199
  signing_key:
198
200
  specification_version: 4
199
201
  summary: Wordmove, Capistrano for Wordpress
200
- test_files: []
201
- has_rdoc:
202
+ test_files:
203
+ - spec/deployer/base_spec.rb
204
+ - spec/features/movefile_spec.rb
205
+ - spec/fixtures/Movefile
206
+ - spec/fixtures/wp-config.php
207
+ - spec/spec_helper.rb
208
+ - spec/sql_adapter_spec.rb