wordpress_client 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8051dd7199ef0753644f695391ced1d8f23240d9
4
- data.tar.gz: 86823e7cca14844a3866cdc7610560a9b00d83c9
2
+ SHA256:
3
+ metadata.gz: 164f4faf3691154981a640128736ad8d21e4bf1943be4ceffe19b07d9e386a0e
4
+ data.tar.gz: b04736bae22da05d4dc76695bf06c811e38c22a82a7265bd8102bed7315677b4
5
5
  SHA512:
6
- metadata.gz: 961f98dfcf9534fb21c764acf603fd52958ade9b5acf602594a97ea3384aeb1233d5c420f55ffd6662b763eabcc91f837b0f3a9e3b7163519098b832591dfc5c
7
- data.tar.gz: 2c7635e04d3a907c2a218b9eb3aa140ff9fc682911e0ad615342ff452f049727de41bad413f663fd3f42000edc57b9ce5d0d6a3229bf35c64769859ec30012e0
6
+ metadata.gz: c228109e84f115ec5a2eb8e5e8a316efb24cc1b030118b13a0d6bdea12c66a86d82859ac660564aa630c8d40d7f19d8cb8697e287ed07963d7443ee1a6b408c0
7
+ data.tar.gz: ae29c6b66f3e1722f9524f612f30d8618550c284a5902183d074f029c8904da5efe9bac2d131c09ff1542458c838ef5e2896798c6d7d1a546edec4d9b654d79e
@@ -0,0 +1,30 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ docker:
5
+ - image: circleci/ruby:2.4
6
+ - image: hemnet/wordpress_client_test:latest
7
+ name: wordpress
8
+ environment:
9
+ WORDPRESS_HOST: wordpress
10
+ environment:
11
+ - CI: "true"
12
+ steps:
13
+ - checkout
14
+ - run:
15
+ name: Update Bundler
16
+ command: gem install bundler
17
+ - restore_cache:
18
+ keys:
19
+ - wordpress_client-bundle-{{ checksum "Gemfile" }}-{{ checksum "wordpress_client.gemspec" }}
20
+ - wordpress_client-bundle-
21
+ - run:
22
+ name: Bundle install
23
+ command: bundle check || bundle install --without "guard"
24
+ - save_cache:
25
+ key: wordpress_client-bundle-{{ checksum "Gemfile" }}-{{ checksum "wordpress_client.gemspec" }}
26
+ paths:
27
+ - vendor/bundle
28
+ - run:
29
+ name: RSpec
30
+ command: bundle exec rspec
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ /.ruby-version
1
2
  /.bundle/
2
3
  /.yardoc
3
4
  /Gemfile.lock
data/Changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.0.1
2
+
3
+ * Loosen Faraday version constraint to < 2.
4
+
1
5
  # 2.0.0
2
6
 
3
7
  * Switch from WP REST API plugin to native WP API in Wordpress 4.6+.
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # WordpressClient
2
2
 
3
+ > :warning: **This project is in "maintenance mode" meaning that no patches will be accepted unless security related. We do not recommend using this gem, current users are recommended to migrate to another solution.**
4
+
3
5
  WordpressClient is a very simple client for the Wordpress [REST API][api].
4
6
 
5
- [![Circle CI](https://circleci.com/gh/hemnet/wordpress_client.svg?style=svg)](https://circleci.com/gh/hemnet/wordpress_client) [![Code Climate](https://codeclimate.com/repos/5645938269568041da00cded/badges/5e870b57428f23c1f2ff/gpa.svg)](https://codeclimate.com/repos/5645938269568041da00cded/feed) [![Test Coverage](https://codeclimate.com/repos/5645938269568041da00cded/badges/5e870b57428f23c1f2ff/coverage.svg)](https://codeclimate.com/repos/5645938269568041da00cded/coverage) [![Gem Version](https://badge.fury.io/rb/wordpress_client.svg)](https://badge.fury.io/rb/wordpress_client)[![Dependency Status](https://gemnasium.com/hemnet/wordpress_client.svg)](https://gemnasium.com/hemnet/wordpress_client)
7
+ [![Circle CI](https://circleci.com/gh/hemnet/wordpress_client.svg?style=svg)](https://circleci.com/gh/hemnet/wordpress_client) [![Code Climate](https://codeclimate.com/repos/5645938269568041da00cded/badges/5e870b57428f23c1f2ff/gpa.svg)](https://codeclimate.com/repos/5645938269568041da00cded/feed) [![Gem Version](https://badge.fury.io/rb/wordpress_client.svg)](https://badge.fury.io/rb/wordpress_client)
6
8
 
7
9
  ## Usage
8
10
 
data/Rakefile CHANGED
@@ -20,13 +20,15 @@ namespace :docker do
20
20
  raise "Invalid version string" unless version =~ /\A[\d.]+\z/
21
21
 
22
22
  latest = prompt "Do you want this to be the :latest release? [Y/n]"
23
- latest = (latest.empty? || latest.downcase == "y")
23
+ latest = (latest.empty? || latest.casecmp("y").zero?)
24
24
 
25
25
  sh "docker", "tag", DEV_IMAGE, "#{IMAGE_NAME}:#{version}"
26
- sh "docker", "tag", "-f", DEV_IMAGE, "#{IMAGE_NAME}:latest" if latest
27
-
28
26
  sh "docker", "push", "#{IMAGE_NAME}:#{version}"
29
- sh "docker", "push", "#{IMAGE_NAME}:latest" if latest
27
+
28
+ if latest
29
+ sh "docker", "tag", DEV_IMAGE, "#{IMAGE_NAME}:latest"
30
+ sh "docker", "push", "#{IMAGE_NAME}:latest"
31
+ end
30
32
  end
31
33
  end
32
34
 
@@ -2,7 +2,7 @@ module WordpressClient
2
2
  # Represents a media record in Wordpress.
3
3
  class Media
4
4
  attr_accessor(
5
- :id, :slug, :media_type, :title_html, :description,
5
+ :id, :slug, :media_type, :title_html, :description, :alt_text,
6
6
  :date, :updated_at,
7
7
  :guid, :link, :media_details
8
8
  )
@@ -52,6 +52,7 @@ module WordpressClient
52
52
  slug: nil,
53
53
  media_type: nil,
54
54
  title_html: nil,
55
+ alt_text: nil,
55
56
  description: nil,
56
57
  date: nil,
57
58
  updated_at: nil,
@@ -65,6 +66,7 @@ module WordpressClient
65
66
  @title_html = title_html
66
67
  @date = date
67
68
  @updated_at = updated_at
69
+ @alt_text = alt_text
68
70
  @description = description
69
71
  @guid = guid
70
72
  @link = link
@@ -30,6 +30,7 @@ module WordpressClient
30
30
  media.media_type = data.fetch("media_type")
31
31
  media.slug = data.fetch("slug")
32
32
  media.link = data.fetch("link")
33
+ media.alt_text = data.fetch("alt_text")
33
34
  media.description = data["description"]
34
35
  media.media_details = data["media_details"]
35
36
  end
@@ -57,10 +57,6 @@ module WordpressClient
57
57
  # @see Category
58
58
  # @see Client#update_post
59
59
 
60
- # @!attribute [rw] meta_ids
61
- # @api private
62
- # Backs the {#meta_id_for} method. Used when constructing requests.
63
-
64
60
  # @api private
65
61
  def self.parse(data)
66
62
  PostParser.parse(data)
@@ -3,5 +3,5 @@ module WordpressClient
3
3
  #
4
4
  # @note This only applies if using a released version. A development build
5
5
  # would not correspond to this constant.
6
- VERSION = "2.0.0".freeze
6
+ VERSION = "2.0.1".freeze
7
7
  end
@@ -14,9 +14,16 @@ RUN echo "register_meta('post', 'foo', array('type' => 'integer', 'description'
14
14
  RUN echo "register_meta('post', 'bar', array('type' => 'boolean', 'description' => 'Some kind of boolean', 'single' => true, 'show_in_rest' => true));" >>/var/www/html/wordpress/wp-config.php
15
15
  RUN echo "register_meta('post', 'baz', array('type' => 'string', 'description' => 'Some kind of string', 'single' => true, 'show_in_rest' => true));" >>/var/www/html/wordpress/wp-config.php
16
16
 
17
+ # Resolve broken mirrorfile
18
+ COPY yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo
19
+ RUN yum clean all
20
+
17
21
  # base image only contains American timezones
18
22
  RUN yum install -y tzdata
19
23
 
24
+ RUN yum remove -y php php-common php-cli php-mysql
25
+ RUN yum install -y php56-php php56-php-common php56-php-cli php56-php-mysql
26
+
20
27
  ENV APP_NAME testapp.com
21
28
  ENV APACHE_SVRALIAS www.testapp.com localhost
22
29
  ENV MYSQL_SERVER localhost
@@ -0,0 +1,25 @@
1
+ [base]
2
+ name=CentOS-$releasever - Base
3
+ # mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
4
+ # baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
5
+ baseurl=https://vault.centos.org/6.10/os/$basearch/
6
+ gpgcheck=1
7
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
8
+
9
+ # released updates
10
+ [updates]
11
+ name=CentOS-$releasever - Updates
12
+ # mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
13
+ # baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
14
+ baseurl=https://vault.centos.org/6.10/updates/$basearch/
15
+ gpgcheck=1
16
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
17
+
18
+ # additional packages that may be useful
19
+ [extras]
20
+ name=CentOS-$releasever - Extras
21
+ # mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
22
+ # baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
23
+ baseurl=https://vault.centos.org/6.10/extras/$basearch/
24
+ gpgcheck=1
25
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
@@ -1 +1 @@
1
- {"id":5,"date":"2015-11-17T14:51:26","guid":{"rendered":"http:\/\/example.com\/wp-content\/uploads\/2015\/11\/thoughtful.jpg"},"modified":"2015-11-17T14:51:26","modified_gmt":"2015-11-17T14:51:26","slug":"thoughtful","type":"attachment","link":"http:\/\/example.com\/?attachment_id=5","title":{"rendered":"thoughtful"},"author":1,"comment_status":"open","ping_status":"closed","alt_text":"","caption":"","description":"","media_type":"image","media_details":{"width":600,"height":800,"file":"2015\/11\/thoughtful.jpg","image_meta":{"aperture":0,"credit":"","camera":"","caption":"","created_timestamp":0,"copyright":"\u00a9 JoeDaEskimo - http:\/\/www.redbubble.com\/people\/JoeDaEskim","focal_length":0,"iso":0,"shutter_speed":0,"title":"","orientation":0},"sizes":{}},"post":null,"source_url":"http:\/\/example.com\/wp-content\/uploads\/2015\/11\/thoughtful.jpg","_links":{"self":[{"href":"http:\/\/example.com\/wp-json\/wp\/v2\/media\/5"}],"collection":[{"href":"http:\/\/example.com\/wp-json\/wp\/v2\/media"}],"author":[{"embeddable":true,"href":"http:\/\/example.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/example.com\/wp-json\/wp\/v2\/comments?post_id=5"}]}}
1
+ {"id":5,"date":"2015-11-17T14:51:26","guid":{"rendered":"http:\/\/example.com\/wp-content\/uploads\/2015\/11\/thoughtful.jpg"},"modified":"2015-11-17T14:51:26","modified_gmt":"2015-11-17T14:51:26","slug":"thoughtful","type":"attachment","link":"http:\/\/example.com\/?attachment_id=5","title":{"rendered":"thoughtful"},"author":1,"comment_status":"open","ping_status":"closed","alt_text":"accessibility is cool","caption":"","description":"","media_type":"image","media_details":{"width":600,"height":800,"file":"2015\/11\/thoughtful.jpg","image_meta":{"aperture":0,"credit":"","camera":"","caption":"","created_timestamp":0,"copyright":"\u00a9 JoeDaEskimo - http:\/\/www.redbubble.com\/people\/JoeDaEskim","focal_length":0,"iso":0,"shutter_speed":0,"title":"","orientation":0},"sizes":{}},"post":null,"source_url":"http:\/\/example.com\/wp-content\/uploads\/2015\/11\/thoughtful.jpg","_links":{"self":[{"href":"http:\/\/example.com\/wp-json\/wp\/v2\/media\/5"}],"collection":[{"href":"http:\/\/example.com\/wp-json\/wp\/v2\/media"}],"author":[{"embeddable":true,"href":"http:\/\/example.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/example.com\/wp-json\/wp\/v2\/comments?post_id=5"}]}}
data/spec/media_spec.rb CHANGED
@@ -11,6 +11,7 @@ module WordpressClient
11
11
  expect(media.media_type).to eq "image"
12
12
  expect(media.title_html).to eq "thoughtful"
13
13
  expect(media.slug).to eq "thoughtful"
14
+ expect(media.alt_text).to eq "accessibility is cool"
14
15
  expect(media.description).to eq ""
15
16
 
16
17
  expect(media.guid).to eq "http://example.com/wp-content/uploads/2015/11/thoughtful.jpg"
@@ -29,12 +29,13 @@ module DockerRunner
29
29
  docker run \
30
30
  -dit -p #{port.to_i}:80 \
31
31
  #{environment_flags.join(" ")} \
32
- #{name.shellescape}
32
+ #{name.shellescape} \
33
+ 2>&1
33
34
  `
34
35
  if $?.success?
35
36
  output.chomp
36
37
  else
37
- fail "Failed to start container. Maybe it's already running? Output: #{output}"
38
+ fail "Failed to start container. Maybe it's already running? Output:\n#{output}"
38
39
  end
39
40
  end
40
41
 
@@ -2,112 +2,140 @@ require_relative "docker_runner"
2
2
 
3
3
  # rubocop:disable Rails/TimeZone
4
4
 
5
- class WordpressServer
6
- include Singleton
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
- attr_reader :container_id, :port, :host
14
+ class DockerStrategy
15
+ include Singleton
16
+ attr_reader :container_id, :port, :host
9
17
 
10
- def initialize
11
- @host = docker_host
12
- @port = 8181
18
+ def initialize
19
+ @host = docker_host
20
+ @port = 8181
13
21
 
14
- start_docker_container
15
- at_exit { purge_container }
16
- end
22
+ start_docker_container
23
+ at_exit { purge_container }
24
+ end
17
25
 
18
- def url
19
- "http://#{host_with_port}/wp-json"
20
- end
26
+ def url
27
+ "http://#{host_with_port}/wp-json"
28
+ end
21
29
 
22
- # Defined in the dbdump in spec/docker/dbdump.sql.gz
23
- def username() "test" end
30
+ # Defined in the dbdump in spec/docker/dbdump.sql.gz
31
+ def username() "test" end
24
32
 
25
- # Defined in the dbdump in spec/docker/dbdump.sql.gz
26
- def password() "test" end
33
+ # Defined in the dbdump in spec/docker/dbdump.sql.gz
34
+ def password() "test" end
27
35
 
28
- private
29
- DOCKER_IMAGE_NAME = "hemnet/wordpress_client_test:dev".freeze
36
+ private
37
+ DOCKER_IMAGE_NAME = "hemnet/wordpress_client_test:dev".freeze
30
38
 
31
- def host_with_port
32
- "#{host}:#{port}"
33
- end
39
+ def host_with_port
40
+ "#{host}:#{port}"
41
+ end
34
42
 
35
- def docker_host
36
- if ENV['DOCKER_HOST']
37
- URI.parse(ENV['DOCKER_HOST']).host
38
- else
39
- "localhost"
43
+ def docker_host
44
+ if ENV['DOCKER_HOST']
45
+ URI.parse(ENV['DOCKER_HOST']).host
46
+ else
47
+ "localhost"
48
+ end
40
49
  end
41
- end
42
50
 
43
- def start_docker_container
44
- fail_if_docker_missing
45
- build_container_if_missing
51
+ def start_docker_container
52
+ fail_if_docker_missing
53
+ build_container_if_missing
46
54
 
47
- @container_id = start_container
48
- @running = true
55
+ @container_id = start_container
56
+ @running = true
49
57
 
50
- begin
51
- wait_for_container_to_start
52
- rescue => error
53
- puts "Could not start container: #{error}. Cleaning up."
54
- purge_container
55
- raise error
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
56
65
  end
57
- end
58
66
 
59
- def fail_if_docker_missing
60
- unless DockerRunner.docker_installed?
61
- STDERR.puts(
62
- "It does not look like you have docker installed. " \
63
- "Please install docker so you can run integration tests.",
64
- )
65
- fail "No docker installed"
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
66
75
  end
67
- end
68
76
 
69
- def build_container_if_missing
70
- unless DockerRunner.image_exists?(DOCKER_IMAGE_NAME)
71
- DockerRunner.build_image(DOCKER_IMAGE_NAME, path: "spec/docker")
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
72
81
  end
73
- end
74
82
 
75
- def start_container
76
- DockerRunner.run_container(
77
- DOCKER_IMAGE_NAME,
78
- port: port,
79
- environment: {wordpress_host: host_with_port},
80
- )
81
- end
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
82
90
 
83
- def purge_container
84
- if @running
85
- DockerRunner.kill_container(container_id)
86
- @running = false
91
+ def purge_container
92
+ if @running
93
+ DockerRunner.kill_container(container_id)
94
+ @running = false
87
95
 
88
- # CircleCI does not allow `docker rm`.
89
- unless ENV["CIRCLECI"]
90
- DockerRunner.remove_container(container_id)
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
91
120
  end
92
121
  end
93
122
  end
94
123
 
95
- def wait_for_container_to_start
96
- # Try to connect to the webserver in a loop until we successfully connect,
97
- # the container process dies, or the timeout is reached.
98
- timeout = 10
99
- start = Time.now
124
+ class CIStrategy
125
+ include Singleton
100
126
 
101
- loop do
102
- fail "Timed out while waiting for the container to start" if Time.now - start > timeout
127
+ def url
128
+ "http://wordpress/wp-json"
129
+ end
103
130
 
104
- begin
105
- response = Faraday.get(url)
106
- return if response.status == 200
107
- rescue Faraday::ConnectionFailed
108
- # Server not yet started. Just wait it out...
109
- end
110
- sleep 0.5
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"
111
139
  end
112
140
  end
113
141
  end
@@ -17,11 +17,11 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "faraday", "~> 0.9"
20
+ spec.add_dependency "faraday", [">= 0.9", "< 2"]
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.7"
23
- spec.add_development_dependency "rake", "~> 10.0"
24
- spec.add_development_dependency "rspec", "~> 3.3"
25
- spec.add_development_dependency "webmock", "~> 2.0"
26
- spec.add_development_dependency "yard", "~> 0.8.7"
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,101 +1,107 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordpress_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
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
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-11-08 00:00:00.000000000 Z
13
+ date: 2021-10-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0.9'
22
+ - - "<"
23
+ - !ruby/object:Gem::Version
24
+ version: '2'
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  requirements:
26
- - - "~>"
29
+ - - ">="
27
30
  - !ruby/object:Gem::Version
28
31
  version: '0.9'
32
+ - - "<"
33
+ - !ruby/object:Gem::Version
34
+ version: '2'
29
35
  - !ruby/object:Gem::Dependency
30
36
  name: bundler
31
37
  requirement: !ruby/object:Gem::Requirement
32
38
  requirements:
33
39
  - - "~>"
34
40
  - !ruby/object:Gem::Version
35
- version: '1.7'
41
+ version: '2.2'
36
42
  type: :development
37
43
  prerelease: false
38
44
  version_requirements: !ruby/object:Gem::Requirement
39
45
  requirements:
40
46
  - - "~>"
41
47
  - !ruby/object:Gem::Version
42
- version: '1.7'
48
+ version: '2.2'
43
49
  - !ruby/object:Gem::Dependency
44
50
  name: rake
45
51
  requirement: !ruby/object:Gem::Requirement
46
52
  requirements:
47
53
  - - "~>"
48
54
  - !ruby/object:Gem::Version
49
- version: '10.0'
55
+ version: '12.0'
50
56
  type: :development
51
57
  prerelease: false
52
58
  version_requirements: !ruby/object:Gem::Requirement
53
59
  requirements:
54
60
  - - "~>"
55
61
  - !ruby/object:Gem::Version
56
- version: '10.0'
62
+ version: '12.0'
57
63
  - !ruby/object:Gem::Dependency
58
64
  name: rspec
59
65
  requirement: !ruby/object:Gem::Requirement
60
66
  requirements:
61
67
  - - "~>"
62
68
  - !ruby/object:Gem::Version
63
- version: '3.3'
69
+ version: '3.7'
64
70
  type: :development
65
71
  prerelease: false
66
72
  version_requirements: !ruby/object:Gem::Requirement
67
73
  requirements:
68
74
  - - "~>"
69
75
  - !ruby/object:Gem::Version
70
- version: '3.3'
76
+ version: '3.7'
71
77
  - !ruby/object:Gem::Dependency
72
78
  name: webmock
73
79
  requirement: !ruby/object:Gem::Requirement
74
80
  requirements:
75
81
  - - "~>"
76
82
  - !ruby/object:Gem::Version
77
- version: '2.0'
83
+ version: '3.3'
78
84
  type: :development
79
85
  prerelease: false
80
86
  version_requirements: !ruby/object:Gem::Requirement
81
87
  requirements:
82
88
  - - "~>"
83
89
  - !ruby/object:Gem::Version
84
- version: '2.0'
90
+ version: '3.3'
85
91
  - !ruby/object:Gem::Dependency
86
92
  name: yard
87
93
  requirement: !ruby/object:Gem::Requirement
88
94
  requirements:
89
95
  - - "~>"
90
96
  - !ruby/object:Gem::Version
91
- version: 0.8.7
97
+ version: '0.9'
92
98
  type: :development
93
99
  prerelease: false
94
100
  version_requirements: !ruby/object:Gem::Requirement
95
101
  requirements:
96
102
  - - "~>"
97
103
  - !ruby/object:Gem::Version
98
- version: 0.8.7
104
+ version: '0.9'
99
105
  description: A simple client to the Wordpress API.
100
106
  email:
101
107
  - magnus.bergmark@gmail.com
@@ -105,11 +111,10 @@ executables: []
105
111
  extensions: []
106
112
  extra_rdoc_files: []
107
113
  files:
114
+ - ".circleci/config.yml"
108
115
  - ".codeclimate.yml"
109
116
  - ".gitignore"
110
- - ".hound.yml"
111
117
  - ".rubocop.yml"
112
- - ".ruby-version"
113
118
  - ".yardopts"
114
119
  - Changelog.md
115
120
  - Gemfile
@@ -117,7 +122,6 @@ files:
117
122
  - LICENSE
118
123
  - README.md
119
124
  - Rakefile
120
- - circle.yml
121
125
  - lib/wordpress_client.rb
122
126
  - lib/wordpress_client/category.rb
123
127
  - lib/wordpress_client/client.rb
@@ -140,6 +144,7 @@ files:
140
144
  - spec/docker/dbdump.sql.gz
141
145
  - spec/docker/htaccess
142
146
  - spec/docker/restore-dbdump.sh
147
+ - spec/docker/yum.repos.d/CentOS-Base.repo
143
148
  - spec/fixtures/category.json
144
149
  - spec/fixtures/image-media.json
145
150
  - spec/fixtures/invalid-post-id.json
@@ -170,7 +175,7 @@ homepage: ''
170
175
  licenses:
171
176
  - MIT
172
177
  metadata: {}
173
- post_install_message:
178
+ post_install_message:
174
179
  rdoc_options: []
175
180
  require_paths:
176
181
  - lib
@@ -185,9 +190,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
190
  - !ruby/object:Gem::Version
186
191
  version: '0'
187
192
  requirements: []
188
- rubyforge_project:
189
- rubygems_version: 2.6.13
190
- signing_key:
193
+ rubygems_version: 3.0.3
194
+ signing_key:
191
195
  specification_version: 4
192
196
  summary: A simple client to the Wordpress API.
193
197
  test_files:
@@ -199,6 +203,7 @@ test_files:
199
203
  - spec/docker/dbdump.sql.gz
200
204
  - spec/docker/htaccess
201
205
  - spec/docker/restore-dbdump.sh
206
+ - spec/docker/yum.repos.d/CentOS-Base.repo
202
207
  - spec/fixtures/category.json
203
208
  - spec/fixtures/image-media.json
204
209
  - spec/fixtures/invalid-post-id.json
@@ -224,4 +229,3 @@ test_files:
224
229
  - spec/support/integration_macros.rb
225
230
  - spec/support/wordpress_server.rb
226
231
  - spec/tag_spec.rb
227
- has_rdoc:
data/.hound.yml DELETED
@@ -1,2 +0,0 @@
1
- ruby:
2
- config_file: .rubocop.yml
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- ruby-2.2.2
data/circle.yml DELETED
@@ -1,6 +0,0 @@
1
- machine:
2
- services:
3
- - docker
4
- dependencies:
5
- bundler:
6
- without: [guard]