wordpress-client 0.0.5 → 0.0.6
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.
- data/lib/wordpress/api/comments.rb +1 -1
- data/lib/wordpress/api/posts.rb +1 -1
- data/lib/wordpress/api/tests.rb +2 -2
- data/lib/wordpress/version.rb +1 -1
- metadata +2 -2
@@ -6,7 +6,7 @@ module Wordpress
|
|
6
6
|
include Wordpress::API::Utils
|
7
7
|
|
8
8
|
def get_comments(site, params = {})
|
9
|
-
validate_params! params, [:context, :type, :status], :
|
9
|
+
validate_params! params, [:context, :type, :status], :search
|
10
10
|
object_from_response Wordpress::CommentArray, "/sites/#{site}/comments", :get, :query => params
|
11
11
|
end
|
12
12
|
|
data/lib/wordpress/api/posts.rb
CHANGED
@@ -6,7 +6,7 @@ module Wordpress
|
|
6
6
|
include Wordpress::API::Utils
|
7
7
|
|
8
8
|
def get_posts(site, params = {})
|
9
|
-
validate_params! params, [:context, :tag, :category, :type, :status, :sticky, :author, :search, :meta_key, :meta_value], :
|
9
|
+
validate_params! params, [:context, :tag, :category, :type, :status, :sticky, :author, :search, :meta_key, :meta_value], :search
|
10
10
|
object_from_response Wordpress::PostArray, "/sites/#{site}/posts", :get, :query => params
|
11
11
|
end
|
12
12
|
|
data/lib/wordpress/api/tests.rb
CHANGED
@@ -6,12 +6,12 @@ module Wordpress
|
|
6
6
|
include Wordpress::API::Utils
|
7
7
|
|
8
8
|
def get_test(id, options = {})
|
9
|
-
validate_options! options, [:id, :default_string, :default_int, :boolean_whitelist_defaults_to_false, :boolean_whitelist_defaults_to_true, :string_whitelist_defaults_to_foo, :url, :datetime], :
|
9
|
+
validate_options! options, [:id, :default_string, :default_int, :boolean_whitelist_defaults_to_false, :boolean_whitelist_defaults_to_true, :string_whitelist_defaults_to_foo, :url, :datetime], :test
|
10
10
|
object_from_response Wordpress::Test, "/test/#{id}", :get, options
|
11
11
|
end
|
12
12
|
|
13
13
|
def post_test(id, options = {})
|
14
|
-
validate_options! options, [:id, :default_string, :default_int, :boolean_whitelist_defaults_to_false, :boolean_whitelist_defaults_to_true, :string_whitelist_defaults_to_foo, :url, :datetime], :
|
14
|
+
validate_options! options, [:id, :default_string, :default_int, :boolean_whitelist_defaults_to_false, :boolean_whitelist_defaults_to_true, :string_whitelist_defaults_to_foo, :url, :datetime], :test
|
15
15
|
object_from_response Wordpress::Test, "/test/#{id}", :post, options
|
16
16
|
end
|
17
17
|
end
|
data/lib/wordpress/version.rb
CHANGED
@@ -2,7 +2,7 @@ module Wordpress
|
|
2
2
|
class Version
|
3
3
|
MAJOR = 0 unless defined? Wordpress::Version::MAJOR
|
4
4
|
MINOR = 0 unless defined? Wordpress::Version::MINOR
|
5
|
-
PATCH =
|
5
|
+
PATCH = 6 unless defined? Wordpress::Version::PATCH
|
6
6
|
PRE = nil unless defined? Wordpress::Version::PRE
|
7
7
|
|
8
8
|
class << self
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wordpress-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: curb
|