nationbuilder-rb 1.3.7 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/api_spec/lib/api_spec/specs/blog_posts.rb +27 -3
- data/lib/api_spec/spec.json +32 -3
- data/nationbuilder-rb.gemspec +4 -5
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc4a8a915d14084c637fba915ca87488c5451bc1
|
4
|
+
data.tar.gz: 7d8ad5cc34ee218020b57739120f35d4c1c8c31c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7be244c2eb76452d17e2c0d86f99ae5d1f579ab2d85c49c392e11cacfa03b23911b3988ae209e0938e9771d38f147245744651bae599fa0a892c33510b6e3c75
|
7
|
+
data.tar.gz: 52d10f5a3161c818832a7ca780b0be1f7e911684c8353ea37ba59f5bf5488f46eb32b1560edc152bfc2226d0a7aef0db5265af31cf0db5f85dd4ebc9cde0de34
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.9
|
@@ -60,7 +60,31 @@ class ApiSpec::Spec
|
|
60
60
|
p.required = 'N'
|
61
61
|
p.default = '1'
|
62
62
|
p.type = 'int'
|
63
|
-
p.description = 'the external id of the post'
|
63
|
+
p.description = 'the external id of the blog post'
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
bp.method('Show') do |m|
|
68
|
+
m.synopsis = 'Show the details of a blog post'
|
69
|
+
m.http_method = 'GET'
|
70
|
+
m.uri = '/sites/:site_slug/pages/blogs/:blog_id/posts/:blog_post_id'
|
71
|
+
|
72
|
+
m.parameter('site_slug') do |p|
|
73
|
+
p.required = 'Y'
|
74
|
+
p.type = 'string'
|
75
|
+
p.description = 'the site holding the blog'
|
76
|
+
end
|
77
|
+
|
78
|
+
m.parameter('blog_id') do |p|
|
79
|
+
p.required = 'Y'
|
80
|
+
p.type = 'int'
|
81
|
+
p.description = 'the ID of the blog'
|
82
|
+
end
|
83
|
+
|
84
|
+
m.parameter('blog_post_id') do |p|
|
85
|
+
p.required = 'Y'
|
86
|
+
p.type = 'int'
|
87
|
+
p.description = 'the ID of the blog post'
|
64
88
|
end
|
65
89
|
end
|
66
90
|
|
@@ -109,7 +133,7 @@ class ApiSpec::Spec
|
|
109
133
|
m.parameter('blog_post_id') do |p|
|
110
134
|
p.required = 'Y'
|
111
135
|
p.type = 'int'
|
112
|
-
p.description = 'the ID of the blog'
|
136
|
+
p.description = 'the ID of the blog post'
|
113
137
|
end
|
114
138
|
|
115
139
|
m.parameter('body') do |p|
|
@@ -140,7 +164,7 @@ class ApiSpec::Spec
|
|
140
164
|
m.parameter('blog_post_id') do |p|
|
141
165
|
p.required = 'Y'
|
142
166
|
p.type = 'int'
|
143
|
-
p.description = 'the ID of the blog'
|
167
|
+
p.description = 'the ID of the blog post'
|
144
168
|
end
|
145
169
|
end
|
146
170
|
end
|
data/lib/api_spec/spec.json
CHANGED
@@ -185,7 +185,36 @@
|
|
185
185
|
"Required": "N",
|
186
186
|
"Default": "1",
|
187
187
|
"Type": "int",
|
188
|
-
"Description": "the external id of the post"
|
188
|
+
"Description": "the external id of the blog post"
|
189
|
+
}
|
190
|
+
]
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"MethodName": "Show",
|
194
|
+
"Synopsis": "Show the details of a blog post",
|
195
|
+
"HTTPMethod": "GET",
|
196
|
+
"URI": "/sites/:site_slug/pages/blogs/:blog_id/posts/:blog_post_id",
|
197
|
+
"parameters": [
|
198
|
+
{
|
199
|
+
"Name": "site_slug",
|
200
|
+
"Required": "Y",
|
201
|
+
"Default": null,
|
202
|
+
"Type": "string",
|
203
|
+
"Description": "the site holding the blog"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"Name": "blog_id",
|
207
|
+
"Required": "Y",
|
208
|
+
"Default": null,
|
209
|
+
"Type": "int",
|
210
|
+
"Description": "the ID of the blog"
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"Name": "blog_post_id",
|
214
|
+
"Required": "Y",
|
215
|
+
"Default": null,
|
216
|
+
"Type": "int",
|
217
|
+
"Description": "the ID of the blog post"
|
189
218
|
}
|
190
219
|
]
|
191
220
|
},
|
@@ -243,7 +272,7 @@
|
|
243
272
|
"Required": "Y",
|
244
273
|
"Default": null,
|
245
274
|
"Type": "int",
|
246
|
-
"Description": "the ID of the blog"
|
275
|
+
"Description": "the ID of the blog post"
|
247
276
|
},
|
248
277
|
{
|
249
278
|
"Name": "body",
|
@@ -279,7 +308,7 @@
|
|
279
308
|
"Required": "Y",
|
280
309
|
"Default": null,
|
281
310
|
"Type": "int",
|
282
|
-
"Description": "the ID of the blog"
|
311
|
+
"Description": "the ID of the blog post"
|
283
312
|
}
|
284
313
|
]
|
285
314
|
}
|
data/nationbuilder-rb.gemspec
CHANGED
@@ -2,21 +2,20 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: nationbuilder-rb 1.3.
|
5
|
+
# stub: nationbuilder-rb 1.3.9 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "nationbuilder-rb"
|
9
|
-
s.version = "1.3.
|
9
|
+
s.version = "1.3.9"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["David Huie", "Alexandre Schmitt"]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2016-02-06"
|
15
15
|
s.description = "A Ruby client to the NationBuilder API"
|
16
16
|
s.email = "schmitt@nationbuilder.com"
|
17
17
|
s.executables = ["nbdoc"]
|
18
18
|
s.extra_rdoc_files = [
|
19
|
-
"CHANGELOG.md",
|
20
19
|
"LICENSE.txt",
|
21
20
|
"README.md"
|
22
21
|
]
|
@@ -87,7 +86,7 @@ Gem::Specification.new do |s|
|
|
87
86
|
]
|
88
87
|
s.homepage = "http://github.com/nationbuilder/nationbuilder-rb"
|
89
88
|
s.licenses = ["MIT"]
|
90
|
-
s.rubygems_version = "2.4.
|
89
|
+
s.rubygems_version = "2.4.6"
|
91
90
|
s.summary = "A Ruby client to the NationBuilder API"
|
92
91
|
|
93
92
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nationbuilder-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Huie
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-02-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httpclient
|
@@ -101,7 +101,6 @@ executables:
|
|
101
101
|
- nbdoc
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files:
|
104
|
-
- CHANGELOG.md
|
105
104
|
- LICENSE.txt
|
106
105
|
- README.md
|
107
106
|
files:
|
@@ -188,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
187
|
version: '0'
|
189
188
|
requirements: []
|
190
189
|
rubyforge_project:
|
191
|
-
rubygems_version: 2.4.
|
190
|
+
rubygems_version: 2.4.6
|
192
191
|
signing_key:
|
193
192
|
specification_version: 4
|
194
193
|
summary: A Ruby client to the NationBuilder API
|