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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b801c866a8b4557e7d7e0c9725493f3fda281eb2
4
- data.tar.gz: f8a7992e587b20075e1a7ba3152a1faa2c83013a
3
+ metadata.gz: 5286603b715ce58863db510df84001b715bcf720
4
+ data.tar.gz: 2c8f00d4444c162a70f0fee3aab19a88a49c6234
5
5
  SHA512:
6
- metadata.gz: d0e01a016506c3e7bd45667076e5b71ca71af99ce522de1f3d337eed7188629fe0df973123af459875a41122bf58ce03844a627c5e48b6d0f50d16bf331d6c0c
7
- data.tar.gz: f3cb5ef9dd3a1e01945b51a4e2474aea5d50a5d08d619824e6c06db887df1fb923b57676773e8633e3b9ee14e09224e7a9d44009adbecbdab99bcf4d3e9fb8da
6
+ metadata.gz: 301fd700c127d01d42f475c7791794778eb866d0255c6173d07064d810f8d98428b83ae8d0877dd95e07fa2351eb76ccf22820383eaffc79293c68baa6e71c06
7
+ data.tar.gz: 50294c5c437846a3b65f5f9869e1f1d1bf000796400b1831d6975d7d3f1be9add24e9ac75d4290084ba909fde790c61c94b5965e986bb4f31926779b698cc191
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
- gem 'php-serialize', '~> 1.1', :require => 'php_serialize'
4
+ gem 'php-serialize', '~> 1.1', require: 'php_serialize'
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, :required => false
14
+ method_option :config_file, required: false
15
15
 
16
16
  desc "console", "Runs an interactive ruby-wpdb console"
17
17
  def console
18
- if options[:config_file]
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