wp-api 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,170 @@
1
+ {
2
+ "ID": 1,
3
+ "title": "First post",
4
+ "status": "publish",
5
+ "type": "post",
6
+ "author": {
7
+ "ID": 2,
8
+ "username": "test",
9
+ "name": "Test Testerson",
10
+ "first_name": "Test",
11
+ "last_name": "Testerson",
12
+ "nickname": "test",
13
+ "slug": "test",
14
+ "URL": "",
15
+ "avatar": "http:\/\/0.gravatar.com\/avatar\/55502f40dc8b7c769880b10874abc9d0?s=96",
16
+ "description": "",
17
+ "registered": "2014-09-17T17:06:50+00:00",
18
+ "meta": {
19
+ "links": {
20
+ "self": "http:\/\/wp.example.com\/wp-json\/users\/2",
21
+ "archives": "http:\/\/wp.example.com\/wp-json\/users\/2\/posts"
22
+ }
23
+ }
24
+ },
25
+ "content": "<p>This is a fox.</p><p><img src=\"http://i.imgur.com/3cTkRwm.gif\" /></p>\n",
26
+ "parent": 0,
27
+ "link": "http:\/\/wp.example.com\/what-does-the-fox-say\/",
28
+ "date": "2014-08-27T21:16:57+00:00",
29
+ "modified": "2014-08-27T21:16:57+00:00",
30
+ "format": "standard",
31
+ "slug": "what-does-the-fox-say",
32
+ "guid": "http:\/\/wp.example.com\/?p=1",
33
+ "excerpt": "<p>This is a fox.</p>\n",
34
+ "menu_order": 0,
35
+ "comment_status": "open",
36
+ "ping_status": "closed",
37
+ "sticky": true,
38
+ "date_tz": "UTC",
39
+ "date_gmt": "2014-08-27T21:16:57+00:00",
40
+ "modified_tz": "UTC",
41
+ "modified_gmt": "2014-08-27T21:16:57+00:00",
42
+ "meta": {
43
+ "links": {
44
+ "self": "http:\/\/wp.example.com\/wp-json\/posts\/1",
45
+ "author": "http:\/\/wp.example.com\/wp-json\/users\/2",
46
+ "collection": "http:\/\/wp.example.com\/wp-json\/posts",
47
+ "replies": "http:\/\/wp.example.com\/wp-json\/posts\/1\/comments",
48
+ "version-history": "http:\/\/wp.example.com\/wp-json\/posts\/1\/revisions"
49
+ }
50
+ },
51
+ "featured_image": {
52
+ "ID": 1,
53
+ "title": "cover",
54
+ "status": "inherit",
55
+ "type": "attachment",
56
+ "author": {
57
+ "ID": 1,
58
+ "username": "admin",
59
+ "name": "admin",
60
+ "first_name": "",
61
+ "last_name": "",
62
+ "nickname": "admin",
63
+ "slug": "admin",
64
+ "URL": "",
65
+ "avatar": "http:\/\/1.gravatar.com\/avatar\/fbbf698a470d3ece718ec58380668c6b?s=96",
66
+ "description": "",
67
+ "registered": "2014-09-17T16:57:26+00:00",
68
+ "meta": {
69
+ "links": {
70
+ "self": "http:\/\/wp.example.com\/wp-json\/users\/1",
71
+ "archives": "http:\/\/wp.example.com\/wp-json\/users\/1\/posts"
72
+ }
73
+ }
74
+ },
75
+ "content": "<p class=\"attachment\"><a href='http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover.jpg'><img width=\"300\" height=\"300\" src=\"http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover-300x300.jpg\" class=\"attachment-medium\" alt=\"Fox\" \/><\/a><\/p>\n",
76
+ "parent": 0,
77
+ "link": "http:\/\/wp.example.com\/?attachment_id=1",
78
+ "date": "2014-08-23T16:47:02+00:00",
79
+ "modified": "2014-08-23T16:47:02+00:00",
80
+ "format": "standard",
81
+ "slug": "cover-18",
82
+ "guid": "http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover.jpg",
83
+ "excerpt": "<p>Fox</p>\n",
84
+ "menu_order": 0,
85
+ "comment_status": "open",
86
+ "ping_status": "closed",
87
+ "sticky": false,
88
+ "date_tz": "UTC",
89
+ "date_gmt": "2014-08-23T16:47:02+00:00",
90
+ "modified_tz": "UTC",
91
+ "modified_gmt": "2014-08-23T16:47:02+00:00",
92
+ "meta": {
93
+ "links": {
94
+ "self": "http:\/\/wp.example.com\/wp-json\/media\/1",
95
+ "author": "http:\/\/wp.example.com\/wp-json\/users\/1",
96
+ "collection": "http:\/\/wp.example.com\/wp-json\/media",
97
+ "replies": "http:\/\/wp.example.com\/wp-json\/media\/1\/comments",
98
+ "version-history": "http:\/\/wp.example.com\/wp-json\/media\/1\/revisions"
99
+ }
100
+ },
101
+ "terms": [],
102
+ "source": "http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover.jpg",
103
+ "is_image": true,
104
+ "attachment_meta": {
105
+ "width": 700,
106
+ "height": 700,
107
+ "file": "2014\/08\/cover.jpg",
108
+ "sizes": {
109
+ "thumbnail": {
110
+ "file": "cover-150x150.jpg",
111
+ "width": 150,
112
+ "height": 150,
113
+ "mime-type": "image\/jpeg",
114
+ "url": "http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover-150x150.jpg"
115
+ },
116
+ "medium": {
117
+ "file": "cover-300x300.jpg",
118
+ "width": 300,
119
+ "height": 300,
120
+ "mime-type": "image\/jpeg",
121
+ "url": "http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover-300x300.jpg"
122
+ },
123
+ "post-thumbnail": {
124
+ "file": "cover-672x372.jpg",
125
+ "width": 672,
126
+ "height": 372,
127
+ "mime-type": "image\/jpeg",
128
+ "url": "http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover-672x372.jpg"
129
+ },
130
+ "twentyfourteen-full-width": {
131
+ "file": "cover-700x576.jpg",
132
+ "width": 700,
133
+ "height": 576,
134
+ "mime-type": "image\/jpeg",
135
+ "url": "http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover-700x576.jpg"
136
+ }
137
+ },
138
+ "image_meta": {
139
+ "aperture": 0,
140
+ "credit": "",
141
+ "camera": "",
142
+ "caption": "",
143
+ "created_timestamp": 0,
144
+ "copyright": "",
145
+ "focal_length": 0,
146
+ "iso": 0,
147
+ "shutter_speed": 0,
148
+ "title": "",
149
+ "orientation": 1
150
+ }
151
+ }
152
+ },
153
+ "terms": {
154
+ "post_tag": [{
155
+ "ID": 1,
156
+ "name": "animals",
157
+ "slug": "animals",
158
+ "description": "",
159
+ "parent": null,
160
+ "count": 1,
161
+ "link": "http:\/\/wp.example.com\/tag\/animals\/",
162
+ "meta": {
163
+ "links": {
164
+ "collection": "http:\/\/wp.example.com\/wp-json\/taxonomies\/post_tag\/terms",
165
+ "self": "http:\/\/wp.example.com\/wp-json\/taxonomies\/post_tag\/terms\/1"
166
+ }
167
+ }
168
+ }]
169
+ }
170
+ }
@@ -0,0 +1,170 @@
1
+ {
2
+ "ID": 2,
3
+ "title": "Second post",
4
+ "status": "publish",
5
+ "type": "post",
6
+ "author": {
7
+ "ID": 3,
8
+ "username": "other",
9
+ "name": "Other Author",
10
+ "first_name": "Other",
11
+ "last_name": "Author",
12
+ "nickname": "other",
13
+ "slug": "other-author",
14
+ "URL": "",
15
+ "avatar": "http:\/\/0.gravatar.com\/avatar\/55502f40dc8b7c769880b10874abc9d0?s=96",
16
+ "description": "",
17
+ "registered": "2014-09-17T17:06:50+00:00",
18
+ "meta": {
19
+ "links": {
20
+ "self": "http:\/\/wp.example.com\/wp-json\/users\/3",
21
+ "archives": "http:\/\/wp.example.com\/wp-json\/users\/3\/posts"
22
+ }
23
+ }
24
+ },
25
+ "content": "<p>This is a car.</p><p><img src=\"http://i.imgur.com/i6DYBd6.gif\" /></p>\n",
26
+ "parent": 0,
27
+ "link": "http:\/\/wp.example.com\/car-hit-by-green-shell\/",
28
+ "date": "2014-08-27T21:16:57+00:00",
29
+ "modified": "2014-08-27T21:16:57+00:00",
30
+ "format": "standard",
31
+ "slug": "car-hit-by-green-shell",
32
+ "guid": "http:\/\/wp.example.com\/?p=2",
33
+ "excerpt": "<p>This is a car.</p>\n",
34
+ "menu_order": 0,
35
+ "comment_status": "open",
36
+ "ping_status": "closed",
37
+ "sticky": false,
38
+ "date_tz": "UTC",
39
+ "date_gmt": "2014-08-27T21:16:57+00:00",
40
+ "modified_tz": "UTC",
41
+ "modified_gmt": "2014-08-27T21:16:57+00:00",
42
+ "meta": {
43
+ "links": {
44
+ "self": "http:\/\/wp.example.com\/wp-json\/posts\/1",
45
+ "author": "http:\/\/wp.example.com\/wp-json\/users\/2",
46
+ "collection": "http:\/\/wp.example.com\/wp-json\/posts",
47
+ "replies": "http:\/\/wp.example.com\/wp-json\/posts\/1\/comments",
48
+ "version-history": "http:\/\/wp.example.com\/wp-json\/posts\/1\/revisions"
49
+ }
50
+ },
51
+ "featured_image": {
52
+ "ID": 1,
53
+ "title": "cover",
54
+ "status": "inherit",
55
+ "type": "attachment",
56
+ "author": {
57
+ "ID": 1,
58
+ "username": "admin",
59
+ "name": "admin",
60
+ "first_name": "",
61
+ "last_name": "",
62
+ "nickname": "admin",
63
+ "slug": "admin",
64
+ "URL": "",
65
+ "avatar": "http:\/\/1.gravatar.com\/avatar\/fbbf698a470d3ece718ec58380668c6b?s=96",
66
+ "description": "",
67
+ "registered": "2014-09-17T16:57:26+00:00",
68
+ "meta": {
69
+ "links": {
70
+ "self": "http:\/\/wp.example.com\/wp-json\/users\/2",
71
+ "archives": "http:\/\/wp.example.com\/wp-json\/users\/2\/posts"
72
+ }
73
+ }
74
+ },
75
+ "content": "<p class=\"attachment\"><a href='http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover.jpg'><img width=\"300\" height=\"300\" src=\"http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover-300x300.jpg\" class=\"attachment-medium\" alt=\"Fox\" \/><\/a><\/p>\n",
76
+ "parent": 0,
77
+ "link": "http:\/\/wp.example.com\/?attachment_id=1",
78
+ "date": "2014-08-23T16:47:02+00:00",
79
+ "modified": "2014-08-23T16:47:02+00:00",
80
+ "format": "standard",
81
+ "slug": "cover-18",
82
+ "guid": "http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover.jpg",
83
+ "excerpt": "<p>Fox</p>\n",
84
+ "menu_order": 0,
85
+ "comment_status": "open",
86
+ "ping_status": "closed",
87
+ "sticky": false,
88
+ "date_tz": "UTC",
89
+ "date_gmt": "2014-08-23T16:47:02+00:00",
90
+ "modified_tz": "UTC",
91
+ "modified_gmt": "2014-08-23T16:47:02+00:00",
92
+ "meta": {
93
+ "links": {
94
+ "self": "http:\/\/wp.example.com\/wp-json\/media\/1",
95
+ "author": "http:\/\/wp.example.com\/wp-json\/users\/1",
96
+ "collection": "http:\/\/wp.example.com\/wp-json\/media",
97
+ "replies": "http:\/\/wp.example.com\/wp-json\/media\/1\/comments",
98
+ "version-history": "http:\/\/wp.example.com\/wp-json\/media\/1\/revisions"
99
+ }
100
+ },
101
+ "terms": [],
102
+ "source": "http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover.jpg",
103
+ "is_image": true,
104
+ "attachment_meta": {
105
+ "width": 700,
106
+ "height": 700,
107
+ "file": "2014\/08\/cover.jpg",
108
+ "sizes": {
109
+ "thumbnail": {
110
+ "file": "cover-150x150.jpg",
111
+ "width": 150,
112
+ "height": 150,
113
+ "mime-type": "image\/jpeg",
114
+ "url": "http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover-150x150.jpg"
115
+ },
116
+ "medium": {
117
+ "file": "cover-300x300.jpg",
118
+ "width": 300,
119
+ "height": 300,
120
+ "mime-type": "image\/jpeg",
121
+ "url": "http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover-300x300.jpg"
122
+ },
123
+ "post-thumbnail": {
124
+ "file": "cover-672x372.jpg",
125
+ "width": 672,
126
+ "height": 372,
127
+ "mime-type": "image\/jpeg",
128
+ "url": "http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover-672x372.jpg"
129
+ },
130
+ "twentyfourteen-full-width": {
131
+ "file": "cover-700x576.jpg",
132
+ "width": 700,
133
+ "height": 576,
134
+ "mime-type": "image\/jpeg",
135
+ "url": "http:\/\/wp.example.com\/wp-content\/uploads\/2014\/08\/cover-700x576.jpg"
136
+ }
137
+ },
138
+ "image_meta": {
139
+ "aperture": 0,
140
+ "credit": "",
141
+ "camera": "",
142
+ "caption": "",
143
+ "created_timestamp": 0,
144
+ "copyright": "",
145
+ "focal_length": 0,
146
+ "iso": 0,
147
+ "shutter_speed": 0,
148
+ "title": "",
149
+ "orientation": 1
150
+ }
151
+ }
152
+ },
153
+ "terms": {
154
+ "post_tag": [{
155
+ "ID": 2,
156
+ "name": "cars",
157
+ "slug": "cars",
158
+ "description": "",
159
+ "parent": null,
160
+ "count": 1,
161
+ "link": "http:\/\/wp.example.com\/tag\/cars\/",
162
+ "meta": {
163
+ "links": {
164
+ "collection": "http:\/\/wp.example.com\/wp-json\/taxonomies\/post_tag\/terms",
165
+ "self": "http:\/\/wp.example.com\/wp-json\/taxonomies\/post_tag\/terms\/2"
166
+ }
167
+ }
168
+ }]
169
+ }
170
+ }
@@ -0,0 +1,5 @@
1
+ module FilesHelper
2
+ def support_file(name)
3
+ File.new(File.expand_path("spec/files/#{name}"), 'r')
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module JSONHelper
2
+ def parse_json(file_or_string)
3
+ Yajl::Parser.new.parse(file_or_string)
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module WordpressHelper
2
+ def wp_host
3
+ @mock_server.host
4
+ end
5
+ end
@@ -0,0 +1,22 @@
1
+ require 'bundler/setup'
2
+ Bundler.setup
3
+
4
+ $LOAD_PATH << File.dirname(__FILE__) + "/../"
5
+
6
+ require 'wp/api'
7
+
8
+ require 'spec/helpers/files_helper'
9
+ require 'spec/helpers/wordpress_helper'
10
+ require 'spec/helpers/json_helper'
11
+ require 'spec/support/mock_wordpress_server'
12
+
13
+ RSpec.configure do |config|
14
+ # some (optional) config here
15
+ config.before do |example|
16
+ @mock_server ||= MockWordpressServer.new
17
+ end
18
+
19
+ config.include FilesHelper
20
+ config.include JSONHelper
21
+ config.include WordpressHelper
22
+ end
@@ -0,0 +1,21 @@
1
+ require 'fakeweb'
2
+
3
+ class MockWordpressServer
4
+ include FilesHelper
5
+
6
+ attr_reader :host
7
+
8
+ def initialize(host: 'wp.example.com')
9
+ @host = host
10
+
11
+ register_all
12
+ end
13
+
14
+ protected
15
+
16
+ def register_all
17
+ FakeWeb.register_uri(:get, "http://#{host}/wp-json/posts", :body => support_file("posts.json"))
18
+ FakeWeb.register_uri(:get, "http://#{host}/wp-json/posts/1", :body => support_file("posts/1.json"))
19
+ FakeWeb.register_uri(:get, "http://#{host}/wp-json/posts/2", :body => support_file("posts/2.json"))
20
+ end
21
+ end
data/wp-api.gemspec ADDED
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'wp/api/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "wp-api"
8
+ spec.version = WP::API::VERSION
9
+ spec.authors = ["Colin Young"]
10
+ spec.email = ["me@colinyoung.com"]
11
+ spec.summary = %q{Easily access Wordpress blogs that have the new, RESTful WP API plugin installed.}
12
+ spec.description = %q{Makes it incredibly easy and semantic to access Wordpress blogs that have the new, RESTful WP API plugin installed.}
13
+ spec.homepage = "https://github.com/colinyoung/wp-api"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency 'httparty', '~> 0.13.1'
22
+ spec.add_dependency 'yajl-ruby', '~> 1.2.1'
23
+ spec.add_dependency 'activesupport'
24
+ spec.add_dependency 'addressable'
25
+
26
+ spec.add_development_dependency "bundler", "~> 1.6"
27
+ spec.add_development_dependency "rake"
28
+ spec.add_development_dependency "rspec", "~> 3.1.0"
29
+ spec.add_development_dependency "fakeweb", "~> 1.3.0"
30
+ spec.add_development_dependency "pry"
31
+ end
metadata ADDED
@@ -0,0 +1,205 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wp-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Colin Young
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-09-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.13.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.13.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: yajl-ruby
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.2.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.2.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: activesupport
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: addressable
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.6'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.6'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 3.1.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 3.1.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: fakeweb
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 1.3.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 1.3.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: Makes it incredibly easy and semantic to access Wordpress blogs that
140
+ have the new, RESTful WP API plugin installed.
141
+ email:
142
+ - me@colinyoung.com
143
+ executables: []
144
+ extensions: []
145
+ extra_rdoc_files: []
146
+ files:
147
+ - ".gitignore"
148
+ - ".rspec"
149
+ - Gemfile
150
+ - LICENSE.txt
151
+ - README.md
152
+ - Rakefile
153
+ - lib/wp/api.rb
154
+ - lib/wp/api/client.rb
155
+ - lib/wp/api/endpoints.rb
156
+ - lib/wp/api/resource.rb
157
+ - lib/wp/api/resources/author.rb
158
+ - lib/wp/api/resources/post.rb
159
+ - lib/wp/api/version.rb
160
+ - spec/endpoints/post_spec.rb
161
+ - spec/endpoints/posts_spec.rb
162
+ - spec/files/posts.json
163
+ - spec/files/posts/1.json
164
+ - spec/files/posts/2.json
165
+ - spec/helpers/files_helper.rb
166
+ - spec/helpers/json_helper.rb
167
+ - spec/helpers/wordpress_helper.rb
168
+ - spec/spec_helper.rb
169
+ - spec/support/mock_wordpress_server.rb
170
+ - wp-api.gemspec
171
+ homepage: https://github.com/colinyoung/wp-api
172
+ licenses:
173
+ - MIT
174
+ metadata: {}
175
+ post_install_message:
176
+ rdoc_options: []
177
+ require_paths:
178
+ - lib
179
+ required_ruby_version: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - ">="
182
+ - !ruby/object:Gem::Version
183
+ version: '0'
184
+ required_rubygems_version: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
189
+ requirements: []
190
+ rubyforge_project:
191
+ rubygems_version: 2.2.2
192
+ signing_key:
193
+ specification_version: 4
194
+ summary: Easily access Wordpress blogs that have the new, RESTful WP API plugin installed.
195
+ test_files:
196
+ - spec/endpoints/post_spec.rb
197
+ - spec/endpoints/posts_spec.rb
198
+ - spec/files/posts.json
199
+ - spec/files/posts/1.json
200
+ - spec/files/posts/2.json
201
+ - spec/helpers/files_helper.rb
202
+ - spec/helpers/json_helper.rb
203
+ - spec/helpers/wordpress_helper.rb
204
+ - spec/spec_helper.rb
205
+ - spec/support/mock_wordpress_server.rb