nationbuilder-rb 1.4.1 → 1.4.2
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 +4 -4
- data/.travis.yml +2 -0
- data/README.md +2 -2
- data/VERSION +1 -1
- data/lib/api_spec/lib/api_spec/specs/paths.rb +30 -0
- data/lib/api_spec/lib/api_spec.rb +1 -0
- data/lib/api_spec/spec.json +34 -0
- data/nationbuilder-rb.gemspec +4 -3
- data/spec/lib/nationbuilder/client_spec.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f207d4f509cbc36e42737a93ad6a77095e8109ea
|
4
|
+
data.tar.gz: 3301afd318850bce5617015c3de92eb2b98d5270
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 695381ef8b8e60e84cbc5e0157bd0890cb0a6fccf2c84ce21a8dd573c0f9a015cdb5d330b240aafcaa1b1669ea1b169b1e60323791b17efafd999716171f7609
|
7
|
+
data.tar.gz: f0cc6fae637d752735a934824868f30f13f707dfb77e2fb11678df563ffc6072254062d812244547e91a8e06d8150e7bbdfbe9e5c55ae14eb0b161096f5a2d2f
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# nationbuilder-rb
|
2
2
|
|
3
|
-
[](https://travis-ci.org/nationbuilder/nationbuilder-rb)
|
3
|
+
[](https://travis-ci.org/nationbuilder/nationbuilder-rb) [](https://badge.fury.io/rb/nationbuilder-rb)
|
4
4
|
|
5
5
|
A Ruby client for the NationBuilder API.
|
6
6
|
|
@@ -130,4 +130,4 @@ the appropriate updates to the
|
|
130
130
|
[api_spec](https://github.com/nationbuilder/api_spec) repository. Once
|
131
131
|
the changes have been merged to api_spec's master branch, run the
|
132
132
|
`update_subtree.sh` script in the root directory of this project to
|
133
|
-
copy over the changes.
|
133
|
+
copy over the changes.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.2
|
@@ -0,0 +1,30 @@
|
|
1
|
+
class ApiSpec::Spec
|
2
|
+
|
3
|
+
endpoint 'Paths' do |paths|
|
4
|
+
|
5
|
+
paths.method('Index') do |method|
|
6
|
+
method.synopsis = 'Returns a list of paths and path steps'
|
7
|
+
method.http_method = 'GET'
|
8
|
+
method.uri = '/paths'
|
9
|
+
|
10
|
+
method.parameter('__token') do |p|
|
11
|
+
p.required = 'N'
|
12
|
+
p.type = 'string'
|
13
|
+
p.description = 'pagination token'
|
14
|
+
end
|
15
|
+
|
16
|
+
method.parameter('__nonce') do |p|
|
17
|
+
p.required = 'N'
|
18
|
+
p.type = 'string'
|
19
|
+
p.description = 'pagination nonce'
|
20
|
+
end
|
21
|
+
|
22
|
+
method.parameter('limit') do |p|
|
23
|
+
p.required = 'N'
|
24
|
+
p.default = '10'
|
25
|
+
p.type = 'int'
|
26
|
+
p.description = 'maximum number of results to return'
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/lib/api_spec/spec.json
CHANGED
@@ -1728,6 +1728,40 @@
|
|
1728
1728
|
}
|
1729
1729
|
]
|
1730
1730
|
},
|
1731
|
+
{
|
1732
|
+
"name": "Paths",
|
1733
|
+
"methods": [
|
1734
|
+
{
|
1735
|
+
"MethodName": "Index",
|
1736
|
+
"Synopsis": "Returns a list of paths and path steps",
|
1737
|
+
"HTTPMethod": "GET",
|
1738
|
+
"URI": "/paths",
|
1739
|
+
"parameters": [
|
1740
|
+
{
|
1741
|
+
"Name": "__token",
|
1742
|
+
"Required": "N",
|
1743
|
+
"Default": null,
|
1744
|
+
"Type": "string",
|
1745
|
+
"Description": "pagination token"
|
1746
|
+
},
|
1747
|
+
{
|
1748
|
+
"Name": "__nonce",
|
1749
|
+
"Required": "N",
|
1750
|
+
"Default": null,
|
1751
|
+
"Type": "string",
|
1752
|
+
"Description": "pagination nonce"
|
1753
|
+
},
|
1754
|
+
{
|
1755
|
+
"Name": "limit",
|
1756
|
+
"Required": "N",
|
1757
|
+
"Default": "10",
|
1758
|
+
"Type": "int",
|
1759
|
+
"Description": "maximum number of results to return"
|
1760
|
+
}
|
1761
|
+
]
|
1762
|
+
}
|
1763
|
+
]
|
1764
|
+
},
|
1731
1765
|
{
|
1732
1766
|
"name": "People",
|
1733
1767
|
"methods": [
|
data/nationbuilder-rb.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
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.4.
|
5
|
+
# stub: nationbuilder-rb 1.4.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "nationbuilder-rb"
|
9
|
-
s.version = "1.4.
|
9
|
+
s.version = "1.4.2"
|
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 = "2016-
|
14
|
+
s.date = "2016-09-05"
|
15
15
|
s.description = "A Ruby client to the NationBuilder API"
|
16
16
|
s.email = "schmitt@nationbuilder.com"
|
17
17
|
s.executables = ["nbdoc"]
|
@@ -55,6 +55,7 @@ Gem::Specification.new do |s|
|
|
55
55
|
"lib/api_spec/lib/api_spec/specs/lists.rb",
|
56
56
|
"lib/api_spec/lib/api_spec/specs/memberships.rb",
|
57
57
|
"lib/api_spec/lib/api_spec/specs/page_attachments.rb",
|
58
|
+
"lib/api_spec/lib/api_spec/specs/paths.rb",
|
58
59
|
"lib/api_spec/lib/api_spec/specs/people.rb",
|
59
60
|
"lib/api_spec/lib/api_spec/specs/people_tags.rb",
|
60
61
|
"lib/api_spec/lib/api_spec/specs/precincts.rb",
|
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.4.
|
4
|
+
version: 1.4.2
|
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: 2016-
|
12
|
+
date: 2016-09-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httpclient
|
@@ -139,6 +139,7 @@ files:
|
|
139
139
|
- lib/api_spec/lib/api_spec/specs/lists.rb
|
140
140
|
- lib/api_spec/lib/api_spec/specs/memberships.rb
|
141
141
|
- lib/api_spec/lib/api_spec/specs/page_attachments.rb
|
142
|
+
- lib/api_spec/lib/api_spec/specs/paths.rb
|
142
143
|
- lib/api_spec/lib/api_spec/specs/people.rb
|
143
144
|
- lib/api_spec/lib/api_spec/specs/people_tags.rb
|
144
145
|
- lib/api_spec/lib/api_spec/specs/precincts.rb
|