ruby-wpdb 1.0.beta2 → 1.0
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 +4 -4
- data/README.md +14 -1
- data/lib/ruby-wpdb/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e968b56cfd7561798ecb6a758440a0c88f29f54
|
|
4
|
+
data.tar.gz: 97db3eb498ab6302ee76e9803f38739d93b2e5a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 991d84686a479f546efd21dd5fd29627c5c4b756507920bd77312f1f4ae7b6a5dc61e8f07fceba6b2e0ce8a6b7ace767e3260b6d53c9371c91b873e809cd584d
|
|
7
|
+
data.tar.gz: 18bfcd093fa57da937caf0d3a7a2be034bdf85d735fd539836a9bd9a26681844cea791f214a82c8af0ba1375663ba60bef12e35610e8bfc9047776e06df25faf
|
data/README.md
CHANGED
|
@@ -17,7 +17,20 @@ It's a wrapper for the WordPress database, using
|
|
|
17
17
|
[Sequel](http://sequel.rubyforge.org/), that gives you access to the
|
|
18
18
|
WordPress database and all its content via a nice ORM.
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
You can install ruby-wpdb via RubyGems:
|
|
23
|
+
|
|
24
|
+
$ gem install ruby-wpdb
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
[An in-depth tutorial for ruby-wpdb can be found
|
|
29
|
+
here](http://robm.me.uk/ruby/2013/10/24/ruby-wpdb-part-1.html).
|
|
30
|
+
|
|
31
|
+
But, in brief:
|
|
32
|
+
|
|
33
|
+
With ruby-wpdb you can do simple things like get the five most recent posts:
|
|
21
34
|
|
|
22
35
|
WPDB::Post.reverse_order(:post_date).limit(5).all
|
|
23
36
|
|
data/lib/ruby-wpdb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-wpdb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: '1.0'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rob Miller
|
|
@@ -167,9 +167,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
167
167
|
version: '0'
|
|
168
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
requirements:
|
|
170
|
-
- - '
|
|
170
|
+
- - '>='
|
|
171
171
|
- !ruby/object:Gem::Version
|
|
172
|
-
version:
|
|
172
|
+
version: '0'
|
|
173
173
|
requirements: []
|
|
174
174
|
rubyforge_project:
|
|
175
175
|
rubygems_version: 2.0.3
|