compostr 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE +674 -0
- data/README.md +94 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/compostr.gemspec +32 -0
- data/lib/compostr.rb +60 -0
- data/lib/compostr/custom_field_value.rb +36 -0
- data/lib/compostr/custom_post_type.rb +386 -0
- data/lib/compostr/entity_cache.rb +100 -0
- data/lib/compostr/image_upload.rb +31 -0
- data/lib/compostr/image_uploader.rb +37 -0
- data/lib/compostr/logging.rb +25 -0
- data/lib/compostr/media_library_cache.rb +51 -0
- data/lib/compostr/syncer.rb +88 -0
- data/lib/compostr/version.rb +3 -0
- data/lib/compostr/wp_string.rb +14 -0
- data/vcr_cassettes/syncer_push_dungeonlord.yml +62 -0
- data/vcr_cassettes/wp_failing_post_deletion.yml +61 -0
- data/vcr_cassettes/wp_successful_post_deletion.yml +62 -0
- metadata +166 -0
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://wordpress.mydomain/xmlrpc.php
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '<?xml version="1.0" ?><methodCall><methodName>wp.deletePost</methodName><params><param><value><array><data><value><i4>0</i4></value><value><string>admin</string></value><value><string>buzzword</string></value><value><string>1</string></value></data></array></value></param></params></methodCall>
|
9
|
+
|
10
|
+
'
|
11
|
+
headers:
|
12
|
+
User-Agent:
|
13
|
+
- XMLRPC::Client (Ruby 2.3.1)
|
14
|
+
Content-Type:
|
15
|
+
- text/xml; charset=utf-8
|
16
|
+
Content-Length:
|
17
|
+
- '293'
|
18
|
+
Connection:
|
19
|
+
- keep-alive
|
20
|
+
Accept-Encoding:
|
21
|
+
- identity
|
22
|
+
Accept:
|
23
|
+
- "*/*"
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Date:
|
30
|
+
- Mon, 22 May 2017 14:10:20 GMT
|
31
|
+
Server:
|
32
|
+
- Apache/2.2.14 (Ubuntu)
|
33
|
+
X-Powered-By:
|
34
|
+
- PHP/5.3.2-1ubuntu4.30
|
35
|
+
Connection:
|
36
|
+
- close
|
37
|
+
X-Content-Security-Policy:
|
38
|
+
- allow *
|
39
|
+
Content-Security-Policy:
|
40
|
+
- frame-ancestors 'self'
|
41
|
+
Vary:
|
42
|
+
- Accept-Encoding
|
43
|
+
Content-Length:
|
44
|
+
- '178'
|
45
|
+
Content-Type:
|
46
|
+
- text/xml; charset=UTF-8
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: |
|
50
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
51
|
+
<methodResponse>
|
52
|
+
<params>
|
53
|
+
<param>
|
54
|
+
<value>
|
55
|
+
<boolean>1</boolean>
|
56
|
+
</value>
|
57
|
+
</param>
|
58
|
+
</params>
|
59
|
+
</methodResponse>
|
60
|
+
http_version:
|
61
|
+
recorded_at: Mon, 22 May 2017 14:21:31 GMT
|
62
|
+
recorded_with: VCR 3.0.3
|
metadata
ADDED
@@ -0,0 +1,166 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: compostr
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Felix Wolfsteller
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubypress
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mime-types
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.11'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.11'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: webmock
|
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: vcr
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: One way to ask a wordpress installation about specific custom post type
|
112
|
+
instances and tell it about them.
|
113
|
+
email:
|
114
|
+
- felix.wolfsteller@gmail.com
|
115
|
+
executables: []
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- CODE_OF_CONDUCT.md
|
121
|
+
- Gemfile
|
122
|
+
- LICENSE
|
123
|
+
- README.md
|
124
|
+
- Rakefile
|
125
|
+
- bin/console
|
126
|
+
- bin/setup
|
127
|
+
- compostr.gemspec
|
128
|
+
- lib/compostr.rb
|
129
|
+
- lib/compostr/custom_field_value.rb
|
130
|
+
- lib/compostr/custom_post_type.rb
|
131
|
+
- lib/compostr/entity_cache.rb
|
132
|
+
- lib/compostr/image_upload.rb
|
133
|
+
- lib/compostr/image_uploader.rb
|
134
|
+
- lib/compostr/logging.rb
|
135
|
+
- lib/compostr/media_library_cache.rb
|
136
|
+
- lib/compostr/syncer.rb
|
137
|
+
- lib/compostr/version.rb
|
138
|
+
- lib/compostr/wp_string.rb
|
139
|
+
- vcr_cassettes/syncer_push_dungeonlord.yml
|
140
|
+
- vcr_cassettes/wp_failing_post_deletion.yml
|
141
|
+
- vcr_cassettes/wp_successful_post_deletion.yml
|
142
|
+
homepage: https://github.com/ecovillage/compostr
|
143
|
+
licenses:
|
144
|
+
- GPL-3.0+
|
145
|
+
metadata: {}
|
146
|
+
post_install_message:
|
147
|
+
rdoc_options: []
|
148
|
+
require_paths:
|
149
|
+
- lib
|
150
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - "~>"
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: 2.3.1
|
155
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
requirements: []
|
161
|
+
rubyforge_project:
|
162
|
+
rubygems_version: 2.5.1
|
163
|
+
signing_key:
|
164
|
+
specification_version: 4
|
165
|
+
summary: Ease interaction with Custom Post Types of a Wordpress installation.
|
166
|
+
test_files: []
|