ruby-wpdb 1.2 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/bin/ruby-wpdb +4 -2
- data/data/query.log +40410 -0
- data/lib/ruby-wpdb/{comments.rb → comment.rb} +2 -6
- data/lib/ruby-wpdb/commentmeta.rb +5 -0
- data/lib/ruby-wpdb/config.rb +52 -21
- data/lib/ruby-wpdb/gravityforms.rb +11 -3
- data/lib/ruby-wpdb/link.rb +16 -0
- data/lib/ruby-wpdb/{options.rb → option.rb} +1 -1
- data/lib/ruby-wpdb/post.rb +66 -0
- data/lib/ruby-wpdb/postmeta.rb +5 -0
- data/lib/ruby-wpdb/term.rb +41 -0
- data/lib/ruby-wpdb/term_relationship.rb +12 -0
- data/lib/ruby-wpdb/term_taxonomy.rb +19 -0
- data/lib/ruby-wpdb/{users.rb → user.rb} +2 -5
- data/lib/ruby-wpdb/usermeta.rb +5 -0
- data/lib/ruby-wpdb/version.rb +1 -1
- data/lib/ruby-wpdb.rb +24 -16
- metadata +103 -24
- data/lib/ruby-wpdb/links.rb +0 -8
- data/lib/ruby-wpdb/posts.rb +0 -67
- data/lib/ruby-wpdb/terms.rb +0 -49
- data/test/comments_test.rb +0 -40
- data/test/config_test.rb +0 -20
- data/test/gravityforms_test.rb +0 -25
- data/test/links_test.rb +0 -28
- data/test/options_test.rb +0 -26
- data/test/posts_test.rb +0 -50
- data/test/readme_test.rb +0 -43
- data/test/terms_test.rb +0 -42
- data/test/test_helper.rb +0 -17
- data/test/users_test.rb +0 -47
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5286603b715ce58863db510df84001b715bcf720
|
4
|
+
data.tar.gz: 2c8f00d4444c162a70f0fee3aab19a88a49c6234
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 301fd700c127d01d42f475c7791794778eb866d0255c6173d07064d810f8d98428b83ae8d0877dd95e07fa2351eb76ccf22820383eaffc79293c68baa6e71c06
|
7
|
+
data.tar.gz: 50294c5c437846a3b65f5f9869e1f1d1bf000796400b1831d6975d7d3f1be9add24e9ac75d4290084ba909fde790c61c94b5965e986bb4f31926779b698cc191
|
data/Gemfile
CHANGED
data/bin/ruby-wpdb
CHANGED
@@ -11,12 +11,14 @@ module WPDB
|
|
11
11
|
class CLI < Thor
|
12
12
|
package_name "ruby-wpdb"
|
13
13
|
|
14
|
-
method_option :config_file, :
|
14
|
+
method_option :config_file, required: false
|
15
15
|
|
16
16
|
desc "console", "Runs an interactive ruby-wpdb console"
|
17
17
|
def console
|
18
|
-
|
18
|
+
begin
|
19
19
|
WPDB.from_config(options[:config_file])
|
20
|
+
rescue WPDB::ConfigFileError
|
21
|
+
puts "I couldn't find a config file, so you'll need to specify one manually."
|
20
22
|
end
|
21
23
|
|
22
24
|
Pry.config.should_load_rc = false
|