Ruby/WordPress
Access your WordPress database with Ruby.
Installation
Add this line to your application's Gemfile:
gem 'ruby-wordpress', :require => 'wordpress'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruby-wordpress
Usage
require 'wordpress'
wp = WordPress.new
Initialization options
A symbol hash.
See the mysql2 connection options.
Additional options:
:wordpress_prefix
(default: 'wp_')
Changelog
0.0.1
- Initial public release
- Basic SQL functions (WordPress::Base)
wp_options
accessor
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request