wordpress_client 0.0.1 → 2.0.1
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 +5 -5
- data/.circleci/config.yml +30 -0
- data/.codeclimate.yml +23 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +147 -90
- data/.yardopts +1 -0
- data/Changelog.md +16 -0
- data/Gemfile +6 -1
- data/README.md +48 -14
- data/Rakefile +37 -0
- data/lib/wordpress_client/category.rb +2 -0
- data/lib/wordpress_client/client.rb +235 -79
- data/lib/wordpress_client/connection.rb +10 -10
- data/lib/wordpress_client/errors.rb +41 -6
- data/lib/wordpress_client/media.rb +49 -1
- data/lib/wordpress_client/media_parser.rb +3 -0
- data/lib/wordpress_client/paginated_collection.rb +61 -4
- data/lib/wordpress_client/post.rb +63 -16
- data/lib/wordpress_client/post_parser.rb +12 -39
- data/lib/wordpress_client/rest_parser.rb +4 -0
- data/lib/wordpress_client/tag.rb +2 -0
- data/lib/wordpress_client/term.rb +30 -0
- data/lib/wordpress_client/version.rb +5 -1
- data/lib/wordpress_client.rb +21 -5
- data/spec/client_spec.rb +17 -181
- data/spec/connection_spec.rb +15 -14
- data/spec/docker/Dockerfile +35 -10
- data/spec/docker/README.md +53 -16
- data/spec/docker/dbdump.sql.gz +0 -0
- data/spec/docker/restore-dbdump.sh +2 -2
- data/spec/docker/yum.repos.d/CentOS-Base.repo +25 -0
- data/spec/fixtures/image-media.json +1 -1
- data/spec/fixtures/post-with-metadata.json +99 -1
- data/spec/fixtures/simple-post.json +324 -1
- data/spec/integration/attachments_crud_spec.rb +1 -1
- data/spec/integration/posts_crud_spec.rb +1 -1
- data/spec/integration/posts_finding_spec.rb +0 -69
- data/spec/integration/posts_metadata_spec.rb +11 -11
- data/spec/integration/posts_with_attachments_spec.rb +20 -6
- data/spec/media_spec.rb +14 -0
- data/spec/post_spec.rb +5 -31
- data/spec/spec_helper.rb +1 -0
- data/spec/support/docker_runner.rb +33 -13
- data/spec/support/wordpress_server.rb +112 -74
- data/wordpress_client.gemspec +17 -17
- metadata +43 -31
- data/.hound.yml +0 -2
- data/.ruby-version +0 -1
- data/circle.yml +0 -3
- data/lib/wordpress_client/replace_metadata.rb +0 -81
- data/lib/wordpress_client/replace_terms.rb +0 -62
- data/spec/fixtures/post-with-forbidden-metadata.json +0 -1
- data/spec/integration/category_assignment_spec.rb +0 -29
- data/spec/integration/tag_assignment_spec.rb +0 -29
- data/spec/replace_metadata_spec.rb +0 -56
- data/spec/replace_terms_spec.rb +0 -51
data/spec/post_spec.rb
CHANGED
@@ -33,8 +33,8 @@ module WordpressClient
|
|
33
33
|
|
34
34
|
expect(post.categories).to eq [
|
35
35
|
Category.new(
|
36
|
-
id: 1, name_html: "Uncategorized", slug: "uncategorized"
|
37
|
-
)
|
36
|
+
id: 1, name_html: "Uncategorized", slug: "uncategorized",
|
37
|
+
),
|
38
38
|
]
|
39
39
|
|
40
40
|
expect(post.category_ids).to eq [1]
|
@@ -45,7 +45,7 @@ module WordpressClient
|
|
45
45
|
|
46
46
|
expect(post.tags).to eq [
|
47
47
|
Tag.new(
|
48
|
-
id: 2, name_html: "
|
48
|
+
id: 2, name_html: "winamp", slug: "winamp",
|
49
49
|
)
|
50
50
|
]
|
51
51
|
|
@@ -54,10 +54,8 @@ module WordpressClient
|
|
54
54
|
|
55
55
|
it "can have a Media as featured image" do
|
56
56
|
media = instance_double(Media, id: 12)
|
57
|
-
post = Post.new(
|
58
|
-
|
59
|
-
expect(post.featured_image).to eq media
|
60
|
-
expect(post.featured_image_id).to eq 12
|
57
|
+
post = Post.new(featured_media: media)
|
58
|
+
expect(post.featured_media).to eq media
|
61
59
|
end
|
62
60
|
|
63
61
|
describe "dates" do
|
@@ -86,29 +84,5 @@ module WordpressClient
|
|
86
84
|
end
|
87
85
|
end
|
88
86
|
|
89
|
-
describe "metadata" do
|
90
|
-
it "is parsed into a hash" do
|
91
|
-
post = Post.parse(json_fixture("post-with-metadata.json"))
|
92
|
-
expect(post.meta).to eq "foo" => "bar"
|
93
|
-
end
|
94
|
-
|
95
|
-
it "raises UnauthorizedError when post it is forbidden" do
|
96
|
-
expect {
|
97
|
-
Post.parse(json_fixture("post-with-forbidden-metadata.json"))
|
98
|
-
}.to raise_error(UnauthorizedError)
|
99
|
-
end
|
100
|
-
|
101
|
-
it "keeps track of the ID of each metadata key" do
|
102
|
-
post = Post.parse(json_fixture("post-with-metadata.json"))
|
103
|
-
expect(post.meta_id_for("foo")).to eq 2
|
104
|
-
end
|
105
|
-
|
106
|
-
it "raises ArgumentError when asked for the meta ID of a meta key not present" do
|
107
|
-
post = Post.parse(json_fixture("post-with-metadata.json"))
|
108
|
-
expect {
|
109
|
-
post.meta_id_for("clearly unreal")
|
110
|
-
}.to raise_error(ArgumentError, /clearly unreal/)
|
111
|
-
end
|
112
|
-
end
|
113
87
|
end
|
114
88
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -9,11 +9,15 @@ module DockerRunner
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def image_exists?(name)
|
12
|
-
|
12
|
+
name, tag = name.split(":", 2)
|
13
|
+
matcher = "^#{name} "
|
14
|
+
matcher << "[[:space:]]*#{tag}" if tag
|
15
|
+
|
16
|
+
system("docker images | grep -q #{matcher.shellescape}")
|
13
17
|
end
|
14
18
|
|
15
19
|
def build_image(name, path: Dir.pwd)
|
16
|
-
system("
|
20
|
+
system("docker build -t #{name.shellescape} #{path.shellescape}")
|
17
21
|
end
|
18
22
|
|
19
23
|
def run_container(name, port:, environment: {})
|
@@ -25,25 +29,41 @@ module DockerRunner
|
|
25
29
|
docker run \
|
26
30
|
-dit -p #{port.to_i}:80 \
|
27
31
|
#{environment_flags.join(" ")} \
|
28
|
-
#{name.shellescape}
|
32
|
+
#{name.shellescape} \
|
33
|
+
2>&1
|
29
34
|
`
|
30
35
|
if $?.success?
|
31
36
|
output.chomp
|
32
37
|
else
|
33
|
-
fail "Failed to start container. Maybe it's already running? Output
|
38
|
+
fail "Failed to start container. Maybe it's already running? Output:\n#{output}"
|
34
39
|
end
|
35
40
|
end
|
36
41
|
|
37
|
-
def
|
38
|
-
output = `docker kill #{id.shellescape}
|
42
|
+
def kill_container(id)
|
43
|
+
output = `docker kill #{id.shellescape} 2>&1`
|
44
|
+
raise_on_failure(
|
45
|
+
action: "kill",
|
46
|
+
id: id,
|
47
|
+
exit_status: $?,
|
48
|
+
output: output,
|
49
|
+
)
|
50
|
+
end
|
51
|
+
|
52
|
+
def remove_container(id)
|
53
|
+
output = `docker rm #{id.shellescape} 2>&1`
|
54
|
+
raise_on_failure(
|
55
|
+
action: "remove",
|
56
|
+
id: id,
|
57
|
+
exit_status: $?,
|
58
|
+
output: output,
|
59
|
+
)
|
60
|
+
end
|
39
61
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
raise message
|
46
|
-
end
|
62
|
+
private
|
63
|
+
def raise_on_failure(action:, exit_status:, output:, id:)
|
64
|
+
unless exit_status.success?
|
65
|
+
message = "Could not #{action} docker image #{id}. Output was:\n#{output}.\n"
|
66
|
+
raise message
|
47
67
|
end
|
48
68
|
end
|
49
69
|
end
|
@@ -1,103 +1,141 @@
|
|
1
1
|
require_relative "docker_runner"
|
2
2
|
|
3
|
-
|
4
|
-
include Singleton
|
3
|
+
# rubocop:disable Rails/TimeZone
|
5
4
|
|
6
|
-
|
5
|
+
module WordpressServer
|
6
|
+
def self.instance
|
7
|
+
if (ENV["CI"] || "").strip.size > 0
|
8
|
+
CIStrategy.instance
|
9
|
+
else
|
10
|
+
DockerStrategy.instance
|
11
|
+
end
|
12
|
+
end
|
7
13
|
|
8
|
-
|
9
|
-
|
10
|
-
|
14
|
+
class DockerStrategy
|
15
|
+
include Singleton
|
16
|
+
attr_reader :container_id, :port, :host
|
11
17
|
|
12
|
-
|
13
|
-
|
14
|
-
|
18
|
+
def initialize
|
19
|
+
@host = docker_host
|
20
|
+
@port = 8181
|
15
21
|
|
16
|
-
|
17
|
-
|
18
|
-
|
22
|
+
start_docker_container
|
23
|
+
at_exit { purge_container }
|
24
|
+
end
|
19
25
|
|
20
|
-
|
21
|
-
|
26
|
+
def url
|
27
|
+
"http://#{host_with_port}/wp-json"
|
28
|
+
end
|
22
29
|
|
23
|
-
|
24
|
-
|
30
|
+
# Defined in the dbdump in spec/docker/dbdump.sql.gz
|
31
|
+
def username() "test" end
|
25
32
|
|
26
|
-
|
27
|
-
|
28
|
-
"#{host}:#{port}"
|
29
|
-
end
|
33
|
+
# Defined in the dbdump in spec/docker/dbdump.sql.gz
|
34
|
+
def password() "test" end
|
30
35
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
"
|
36
|
+
private
|
37
|
+
DOCKER_IMAGE_NAME = "hemnet/wordpress_client_test:dev".freeze
|
38
|
+
|
39
|
+
def host_with_port
|
40
|
+
"#{host}:#{port}"
|
36
41
|
end
|
37
|
-
end
|
38
42
|
|
39
|
-
|
40
|
-
|
41
|
-
|
43
|
+
def docker_host
|
44
|
+
if ENV['DOCKER_HOST']
|
45
|
+
URI.parse(ENV['DOCKER_HOST']).host
|
46
|
+
else
|
47
|
+
"localhost"
|
48
|
+
end
|
49
|
+
end
|
42
50
|
|
43
|
-
|
44
|
-
|
51
|
+
def start_docker_container
|
52
|
+
fail_if_docker_missing
|
53
|
+
build_container_if_missing
|
54
|
+
|
55
|
+
@container_id = start_container
|
56
|
+
@running = true
|
45
57
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
58
|
+
begin
|
59
|
+
wait_for_container_to_start
|
60
|
+
rescue => error
|
61
|
+
puts "Could not start container: #{error}. Cleaning up."
|
62
|
+
purge_container
|
63
|
+
raise error
|
64
|
+
end
|
51
65
|
end
|
52
|
-
end
|
53
66
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
67
|
+
def fail_if_docker_missing
|
68
|
+
unless DockerRunner.docker_installed?
|
69
|
+
STDERR.puts(
|
70
|
+
"It does not look like you have docker installed. " \
|
71
|
+
"Please install docker so you can run integration tests.",
|
72
|
+
)
|
73
|
+
fail "No docker installed"
|
74
|
+
end
|
61
75
|
end
|
62
|
-
end
|
63
76
|
|
64
|
-
|
65
|
-
|
66
|
-
|
77
|
+
def build_container_if_missing
|
78
|
+
unless DockerRunner.image_exists?(DOCKER_IMAGE_NAME)
|
79
|
+
DockerRunner.build_image(DOCKER_IMAGE_NAME, path: "spec/docker")
|
80
|
+
end
|
67
81
|
end
|
68
|
-
end
|
69
82
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
83
|
+
def start_container
|
84
|
+
DockerRunner.run_container(
|
85
|
+
DOCKER_IMAGE_NAME,
|
86
|
+
port: port,
|
87
|
+
environment: {wordpress_host: host_with_port},
|
88
|
+
)
|
89
|
+
end
|
77
90
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
91
|
+
def purge_container
|
92
|
+
if @running
|
93
|
+
DockerRunner.kill_container(container_id)
|
94
|
+
@running = false
|
95
|
+
|
96
|
+
# CircleCI does not allow `docker rm`.
|
97
|
+
unless ENV["CIRCLECI"]
|
98
|
+
DockerRunner.remove_container(container_id)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
def wait_for_container_to_start
|
104
|
+
# Try to connect to the webserver in a loop until we successfully connect,
|
105
|
+
# the container process dies, or the timeout is reached.
|
106
|
+
timeout = 10
|
107
|
+
start = Time.now
|
108
|
+
|
109
|
+
loop do
|
110
|
+
fail "Timed out while waiting for the container to start" if Time.now - start > timeout
|
111
|
+
|
112
|
+
begin
|
113
|
+
response = Faraday.get(url)
|
114
|
+
fail response.body if response.status == 500
|
115
|
+
return if response.status == 200
|
116
|
+
rescue Faraday::ConnectionFailed
|
117
|
+
# Server not yet started. Just wait it out...
|
118
|
+
end
|
119
|
+
sleep 0.5
|
120
|
+
end
|
82
121
|
end
|
83
122
|
end
|
84
123
|
|
85
|
-
|
86
|
-
|
87
|
-
# the container process dies, or the timeout is reached.
|
88
|
-
timeout = 60
|
89
|
-
start = Time.now
|
124
|
+
class CIStrategy
|
125
|
+
include Singleton
|
90
126
|
|
91
|
-
|
92
|
-
|
127
|
+
def url
|
128
|
+
"http://wordpress/wp-json"
|
129
|
+
end
|
93
130
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
131
|
+
# Defined in the dbdump in spec/docker/dbdump.sql.gz
|
132
|
+
def username
|
133
|
+
"test"
|
134
|
+
end
|
135
|
+
|
136
|
+
# Defined in the dbdump in spec/docker/dbdump.sql.gz
|
137
|
+
def password
|
138
|
+
"test"
|
101
139
|
end
|
102
140
|
end
|
103
141
|
end
|
data/wordpress_client.gemspec
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
lib = File.expand_path('../lib', __FILE__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
require 'wordpress_client/version'
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.version
|
9
|
-
spec.authors
|
10
|
-
spec.email
|
11
|
-
spec.summary
|
12
|
-
spec.description
|
13
|
-
spec.homepage
|
14
|
-
spec.license
|
6
|
+
spec.name = "wordpress_client"
|
7
|
+
spec.version = WordpressClient::VERSION
|
8
|
+
spec.authors = ["Magnus Bergmark", "Rebecca Meritz", "Hans Maaherra"]
|
9
|
+
spec.email = ["magnus.bergmark@gmail.com", "rebecca@meritz.com", "hans.maaherra@gmail.com"]
|
10
|
+
spec.summary = "A simple client to the Wordpress API."
|
11
|
+
spec.description = "A simple client to the Wordpress API."
|
12
|
+
spec.homepage = ""
|
13
|
+
spec.license = "MIT"
|
15
14
|
|
16
|
-
spec.files
|
17
|
-
spec.executables
|
18
|
-
spec.test_files
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
18
|
spec.require_paths = ["lib"]
|
20
19
|
|
21
|
-
spec.add_dependency "faraday", "
|
20
|
+
spec.add_dependency "faraday", [">= 0.9", "< 2"]
|
22
21
|
|
23
|
-
spec.add_development_dependency "bundler", "~>
|
24
|
-
spec.add_development_dependency "rake", "~>
|
25
|
-
spec.add_development_dependency "rspec", "~> 3.
|
26
|
-
spec.add_development_dependency "webmock", "~>
|
22
|
+
spec.add_development_dependency "bundler", "~> 2.2"
|
23
|
+
spec.add_development_dependency "rake", "~> 12.0"
|
24
|
+
spec.add_development_dependency "rspec", "~> 3.7"
|
25
|
+
spec.add_development_dependency "webmock", "~> 3.3"
|
26
|
+
spec.add_development_dependency "yard", "~> 0.9"
|
27
27
|
end
|
metadata
CHANGED
@@ -1,60 +1,81 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wordpress_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Magnus Bergmark
|
8
8
|
- Rebecca Meritz
|
9
|
-
|
9
|
+
- Hans Maaherra
|
10
|
+
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2021-10-29 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: faraday
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
17
18
|
requirements:
|
18
|
-
- - "
|
19
|
+
- - ">="
|
19
20
|
- !ruby/object:Gem::Version
|
20
21
|
version: '0.9'
|
22
|
+
- - "<"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '2'
|
21
25
|
type: :runtime
|
22
26
|
prerelease: false
|
23
27
|
version_requirements: !ruby/object:Gem::Requirement
|
24
28
|
requirements:
|
25
|
-
- - "
|
29
|
+
- - ">="
|
26
30
|
- !ruby/object:Gem::Version
|
27
31
|
version: '0.9'
|
32
|
+
- - "<"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '2'
|
28
35
|
- !ruby/object:Gem::Dependency
|
29
36
|
name: bundler
|
30
37
|
requirement: !ruby/object:Gem::Requirement
|
31
38
|
requirements:
|
32
39
|
- - "~>"
|
33
40
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
41
|
+
version: '2.2'
|
35
42
|
type: :development
|
36
43
|
prerelease: false
|
37
44
|
version_requirements: !ruby/object:Gem::Requirement
|
38
45
|
requirements:
|
39
46
|
- - "~>"
|
40
47
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
48
|
+
version: '2.2'
|
42
49
|
- !ruby/object:Gem::Dependency
|
43
50
|
name: rake
|
44
51
|
requirement: !ruby/object:Gem::Requirement
|
45
52
|
requirements:
|
46
53
|
- - "~>"
|
47
54
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
55
|
+
version: '12.0'
|
49
56
|
type: :development
|
50
57
|
prerelease: false
|
51
58
|
version_requirements: !ruby/object:Gem::Requirement
|
52
59
|
requirements:
|
53
60
|
- - "~>"
|
54
61
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
62
|
+
version: '12.0'
|
56
63
|
- !ruby/object:Gem::Dependency
|
57
64
|
name: rspec
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.7'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '3.7'
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: webmock
|
58
79
|
requirement: !ruby/object:Gem::Requirement
|
59
80
|
requirements:
|
60
81
|
- - "~>"
|
@@ -68,37 +89,39 @@ dependencies:
|
|
68
89
|
- !ruby/object:Gem::Version
|
69
90
|
version: '3.3'
|
70
91
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
92
|
+
name: yard
|
72
93
|
requirement: !ruby/object:Gem::Requirement
|
73
94
|
requirements:
|
74
95
|
- - "~>"
|
75
96
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
97
|
+
version: '0.9'
|
77
98
|
type: :development
|
78
99
|
prerelease: false
|
79
100
|
version_requirements: !ruby/object:Gem::Requirement
|
80
101
|
requirements:
|
81
102
|
- - "~>"
|
82
103
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
104
|
+
version: '0.9'
|
84
105
|
description: A simple client to the Wordpress API.
|
85
106
|
email:
|
86
107
|
- magnus.bergmark@gmail.com
|
87
108
|
- rebecca@meritz.com
|
109
|
+
- hans.maaherra@gmail.com
|
88
110
|
executables: []
|
89
111
|
extensions: []
|
90
112
|
extra_rdoc_files: []
|
91
113
|
files:
|
114
|
+
- ".circleci/config.yml"
|
115
|
+
- ".codeclimate.yml"
|
92
116
|
- ".gitignore"
|
93
|
-
- ".hound.yml"
|
94
117
|
- ".rubocop.yml"
|
95
|
-
- ".
|
118
|
+
- ".yardopts"
|
119
|
+
- Changelog.md
|
96
120
|
- Gemfile
|
97
121
|
- Guardfile
|
98
122
|
- LICENSE
|
99
123
|
- README.md
|
100
124
|
- Rakefile
|
101
|
-
- circle.yml
|
102
125
|
- lib/wordpress_client.rb
|
103
126
|
- lib/wordpress_client/category.rb
|
104
127
|
- lib/wordpress_client/client.rb
|
@@ -109,8 +132,6 @@ files:
|
|
109
132
|
- lib/wordpress_client/paginated_collection.rb
|
110
133
|
- lib/wordpress_client/post.rb
|
111
134
|
- lib/wordpress_client/post_parser.rb
|
112
|
-
- lib/wordpress_client/replace_metadata.rb
|
113
|
-
- lib/wordpress_client/replace_terms.rb
|
114
135
|
- lib/wordpress_client/rest_parser.rb
|
115
136
|
- lib/wordpress_client/tag.rb
|
116
137
|
- lib/wordpress_client/term.rb
|
@@ -123,10 +144,10 @@ files:
|
|
123
144
|
- spec/docker/dbdump.sql.gz
|
124
145
|
- spec/docker/htaccess
|
125
146
|
- spec/docker/restore-dbdump.sh
|
147
|
+
- spec/docker/yum.repos.d/CentOS-Base.repo
|
126
148
|
- spec/fixtures/category.json
|
127
149
|
- spec/fixtures/image-media.json
|
128
150
|
- spec/fixtures/invalid-post-id.json
|
129
|
-
- spec/fixtures/post-with-forbidden-metadata.json
|
130
151
|
- spec/fixtures/post-with-metadata.json
|
131
152
|
- spec/fixtures/simple-post.json
|
132
153
|
- spec/fixtures/tag.json
|
@@ -134,18 +155,14 @@ files:
|
|
134
155
|
- spec/fixtures/validation-error.json
|
135
156
|
- spec/integration/attachments_crud_spec.rb
|
136
157
|
- spec/integration/categories_spec.rb
|
137
|
-
- spec/integration/category_assignment_spec.rb
|
138
158
|
- spec/integration/posts_crud_spec.rb
|
139
159
|
- spec/integration/posts_finding_spec.rb
|
140
160
|
- spec/integration/posts_metadata_spec.rb
|
141
161
|
- spec/integration/posts_with_attachments_spec.rb
|
142
|
-
- spec/integration/tag_assignment_spec.rb
|
143
162
|
- spec/integration/tags_spec.rb
|
144
163
|
- spec/media_spec.rb
|
145
164
|
- spec/paginated_collection_spec.rb
|
146
165
|
- spec/post_spec.rb
|
147
|
-
- spec/replace_metadata_spec.rb
|
148
|
-
- spec/replace_terms_spec.rb
|
149
166
|
- spec/shared_examples/term_examples.rb
|
150
167
|
- spec/spec_helper.rb
|
151
168
|
- spec/support/docker_runner.rb
|
@@ -158,7 +175,7 @@ homepage: ''
|
|
158
175
|
licenses:
|
159
176
|
- MIT
|
160
177
|
metadata: {}
|
161
|
-
post_install_message:
|
178
|
+
post_install_message:
|
162
179
|
rdoc_options: []
|
163
180
|
require_paths:
|
164
181
|
- lib
|
@@ -173,9 +190,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
190
|
- !ruby/object:Gem::Version
|
174
191
|
version: '0'
|
175
192
|
requirements: []
|
176
|
-
|
177
|
-
|
178
|
-
signing_key:
|
193
|
+
rubygems_version: 3.0.3
|
194
|
+
signing_key:
|
179
195
|
specification_version: 4
|
180
196
|
summary: A simple client to the Wordpress API.
|
181
197
|
test_files:
|
@@ -187,10 +203,10 @@ test_files:
|
|
187
203
|
- spec/docker/dbdump.sql.gz
|
188
204
|
- spec/docker/htaccess
|
189
205
|
- spec/docker/restore-dbdump.sh
|
206
|
+
- spec/docker/yum.repos.d/CentOS-Base.repo
|
190
207
|
- spec/fixtures/category.json
|
191
208
|
- spec/fixtures/image-media.json
|
192
209
|
- spec/fixtures/invalid-post-id.json
|
193
|
-
- spec/fixtures/post-with-forbidden-metadata.json
|
194
210
|
- spec/fixtures/post-with-metadata.json
|
195
211
|
- spec/fixtures/simple-post.json
|
196
212
|
- spec/fixtures/tag.json
|
@@ -198,18 +214,14 @@ test_files:
|
|
198
214
|
- spec/fixtures/validation-error.json
|
199
215
|
- spec/integration/attachments_crud_spec.rb
|
200
216
|
- spec/integration/categories_spec.rb
|
201
|
-
- spec/integration/category_assignment_spec.rb
|
202
217
|
- spec/integration/posts_crud_spec.rb
|
203
218
|
- spec/integration/posts_finding_spec.rb
|
204
219
|
- spec/integration/posts_metadata_spec.rb
|
205
220
|
- spec/integration/posts_with_attachments_spec.rb
|
206
|
-
- spec/integration/tag_assignment_spec.rb
|
207
221
|
- spec/integration/tags_spec.rb
|
208
222
|
- spec/media_spec.rb
|
209
223
|
- spec/paginated_collection_spec.rb
|
210
224
|
- spec/post_spec.rb
|
211
|
-
- spec/replace_metadata_spec.rb
|
212
|
-
- spec/replace_terms_spec.rb
|
213
225
|
- spec/shared_examples/term_examples.rb
|
214
226
|
- spec/spec_helper.rb
|
215
227
|
- spec/support/docker_runner.rb
|
data/.hound.yml
DELETED
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ruby-2.2.2
|
data/circle.yml
DELETED