wordmove 1.4.0.pre2 → 1.4.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +2 -2
- data/CHANGELOG.md +13 -7
- data/lib/wordmove/assets/dump.php.erb +11 -6
- data/lib/wordmove/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30f0f1c3e597116883ad1c3fdf57619d8913d8dd
|
4
|
+
data.tar.gz: cde49c73138cf4ffe664ec5d2753dbe2828104e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 920eaa8541ab7db044c9dccc69292997a9eb62541856b76866e1b6a4c1959faeaebd4c18a32a67e2dba452b83a9fa2fbb43d153eebe1b11d60dd1b54491c0c44
|
7
|
+
data.tar.gz: c35cb6338b9431d991ae119729a81731e044804f017ded394c2ffe803ae00f7332634cd70569bd478e651a0cf4fd75885eb9df9091a7456879784ca1935c4ef3
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,11 +2,17 @@
|
|
2
2
|
- Implemented compression of sql files before and after transfers
|
3
3
|
- Implemented compression of sql backup files inside wp-content
|
4
4
|
- Implemented support to mu-plugins directory. Thanks connormckelvey
|
5
|
+
- Update `dump.php` library to support database VIEWS
|
6
|
+
|
7
|
+
|
8
|
+
# 1.3.1
|
9
|
+
- Fix typo in dump.php.erb
|
10
|
+
|
5
11
|
# 1.3.0
|
6
|
-
-
|
7
|
-
-
|
8
|
-
-
|
9
|
-
-
|
10
|
-
-
|
11
|
-
-
|
12
|
-
-
|
12
|
+
- Fix UTF-8 encoding issue when `wordmove init` with a wrong .sample file
|
13
|
+
- Fix problem with ftp password and special chars
|
14
|
+
- Fix duplicated wordpress tree in languages folder (ftp only)
|
15
|
+
- Update db import / export php libraries
|
16
|
+
- Add `--version` option
|
17
|
+
- Required ruby version ~> 2.0
|
18
|
+
- Updated test suite with rspec 3.x
|
@@ -37,7 +37,7 @@ class MySQLDump
|
|
37
37
|
* Connects to database.
|
38
38
|
* @param mysqli connection
|
39
39
|
*/
|
40
|
-
public function __construct(mysqli $connection, $charset = 'utf8'
|
40
|
+
public function __construct(mysqli $connection, $charset = 'utf8')
|
41
41
|
{
|
42
42
|
$this->connection = $connection;
|
43
43
|
|
@@ -78,14 +78,20 @@ class MySQLDump
|
|
78
78
|
throw new Exception('Argument must be stream resource.');
|
79
79
|
}
|
80
80
|
|
81
|
-
$tables = array();
|
81
|
+
$tables = $views = array();
|
82
82
|
|
83
|
-
$res = $this->connection->query('SHOW TABLES');
|
83
|
+
$res = $this->connection->query('SHOW FULL TABLES');
|
84
84
|
while ($row = $res->fetch_row()) {
|
85
|
-
$
|
85
|
+
if ($row[1] === 'VIEW') {
|
86
|
+
$views[] = $row[0];
|
87
|
+
} else {
|
88
|
+
$tables[] = $row[0];
|
89
|
+
}
|
86
90
|
}
|
87
91
|
$res->close();
|
88
92
|
|
93
|
+
$tables = array_merge($tables, $views); // views must be last
|
94
|
+
|
89
95
|
$this->connection->query('LOCK TABLES `' . implode('` READ, `', $tables) . '` READ');
|
90
96
|
|
91
97
|
$db = $this->connection->query('SELECT DATABASE()')->fetch_row();
|
@@ -216,8 +222,7 @@ if (!$db_port) {
|
|
216
222
|
$db_user = '<%= escape_php db[:user] %>';
|
217
223
|
$db_password = '<%= escape_php db[:password] %>';
|
218
224
|
$db_name = '<%= escape_php db[:name] %>';
|
219
|
-
$db_charset = '<%= escape_php db[:charset] %>';
|
220
225
|
|
221
226
|
$connection = new mysqli($db_host, $db_user, $db_password, $db_name, $db_port);
|
222
|
-
$dump = new MySQLDump($connection
|
227
|
+
$dump = new MySQLDump($connection);
|
223
228
|
$dump->save('dump.mysql');
|
data/lib/wordmove/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wordmove
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.0.
|
4
|
+
version: 1.4.0.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Verna
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-08-
|
14
|
+
date: 2015-08-30 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: colorize
|