wpdb 0.0.2 → 0.0.3
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 +10 -27
- data/lib/wpdb/version.rb +1 -1
- data/wpdb.gemspec +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: c8bd628611a7c320a37ff9fe9cf520ab8e7ce7d0
|
|
4
|
+
data.tar.gz: 83c63ae4d845aef8cbf211c664d54d338698b9f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8bcfad9e5d0e7e6878ea0195dfca4b922e4561068666f1d6cc4c05144d144479328f76c33fcb31d58fd1379ebfa9b2df1995e9fc44ba8d65cbeb716896bf0236
|
|
7
|
+
data.tar.gz: f9dad422c3faac31c7a751bade7cd156009c4176e180722e9cd6ae8ed08fd9e3732d4a06d443e752888ee77764455d595ac8be63310cd37a10244152e0c983bc
|
data/README.md
CHANGED
|
@@ -1,29 +1,12 @@
|
|
|
1
1
|
# Wpdb
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
$ bundle
|
|
14
|
-
|
|
15
|
-
Or install it yourself as:
|
|
16
|
-
|
|
17
|
-
$ gem install wpdb
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
TODO: Write usage instructions here
|
|
22
|
-
|
|
23
|
-
## Contributing
|
|
24
|
-
|
|
25
|
-
1. Fork it
|
|
26
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
27
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
28
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
|
29
|
-
5. Create new Pull Request
|
|
3
|
+
An Active Record wrapper for the Wordpress Database
|
|
4
|
+
|
|
5
|
+
```ruby
|
|
6
|
+
wp_post = WpPost.posts.last
|
|
7
|
+
puts wp_post.attributes
|
|
8
|
+
puts wp_post.comments
|
|
9
|
+
puts wp_post.wp_comments.map(&:attributes)
|
|
10
|
+
puts wp_post.categories
|
|
11
|
+
puts wp_post.tags
|
|
12
|
+
```
|
data/lib/wpdb/version.rb
CHANGED
data/wpdb.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ["inbox@seanbehan.com"]
|
|
11
11
|
spec.description = %q{Wrapper for Wordpress DB}
|
|
12
12
|
spec.summary = %q{Active Record for the Wordpress DB}
|
|
13
|
-
spec.homepage = ""
|
|
13
|
+
spec.homepage = "https://github.com/seanbehan/wpdb"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wpdb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Behan
|
|
@@ -67,7 +67,7 @@ files:
|
|
|
67
67
|
- lib/wpdb.rb
|
|
68
68
|
- lib/wpdb/version.rb
|
|
69
69
|
- wpdb.gemspec
|
|
70
|
-
homepage:
|
|
70
|
+
homepage: https://github.com/seanbehan/wpdb
|
|
71
71
|
licenses:
|
|
72
72
|
- MIT
|
|
73
73
|
metadata: {}
|