nationbuilder-rb 1.4.1 → 1.4.2

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
2
  SHA1:
3
- metadata.gz: 52b1ca460f4961a2d573337f6a7d390aa8f684a1
4
- data.tar.gz: 8202b954b601ee8e3a7752785879e744e898b021
3
+ metadata.gz: f207d4f509cbc36e42737a93ad6a77095e8109ea
4
+ data.tar.gz: 3301afd318850bce5617015c3de92eb2b98d5270
5
5
  SHA512:
6
- metadata.gz: 5c9963163cb0d0588271b0545a1ed24ea4888a8cd9af1e949f6d527ceae152b3a52a9bed7542ce064764eb72dc14ce506f27efc8b5af50529abdb2bd1678ca54
7
- data.tar.gz: c9a80de774c4c07c4a4ab2e1f5cb3b5e57a5dc95ba1ce884bf7ef6817928b2d1c62bdfbd4fdfd1bc839e78ceb6b8a97ceedae325b209f2608fa2293c6770f755
6
+ metadata.gz: 695381ef8b8e60e84cbc5e0157bd0890cb0a6fccf2c84ce21a8dd573c0f9a015cdb5d330b240aafcaa1b1669ea1b169b1e60323791b17efafd999716171f7609
7
+ data.tar.gz: f0cc6fae637d752735a934824868f30f13f707dfb77e2fb11678df563ffc6072254062d812244547e91a8e06d8150e7bbdfbe9e5c55ae14eb0b161096f5a2d2f
data/.travis.yml CHANGED
@@ -3,5 +3,7 @@ rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
5
  - 2.1.0
6
+ - 2.2.5
7
+ - 2.3.1
6
8
  before_script: bundle install
7
9
  script: bundle exec rake
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # nationbuilder-rb
2
2
 
3
- [![Build Status](https://travis-ci.org/nationbuilder/nationbuilder-rb.svg?branch=master)](https://travis-ci.org/nationbuilder/nationbuilder-rb)
3
+ [![Build Status](https://travis-ci.org/nationbuilder/nationbuilder-rb.svg?branch=master)](https://travis-ci.org/nationbuilder/nationbuilder-rb) [![Gem Version](https://badge.fury.io/rb/nationbuilder-rb.svg)](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
+ 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
@@ -17,6 +17,7 @@ require 'specs/exports'
17
17
  require 'specs/lists'
18
18
  require 'specs/memberships'
19
19
  require 'specs/page_attachments'
20
+ require 'specs/paths'
20
21
  require 'specs/people'
21
22
  require 'specs/people_tags'
22
23
  require 'specs/precincts'
@@ -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": [
@@ -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.1 ruby lib
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.1"
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-03-30"
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",
@@ -27,6 +27,7 @@ describe NationBuilder::Client do
27
27
  :lists,
28
28
  :memberships,
29
29
  :page_attachments,
30
+ :paths,
30
31
  :people,
31
32
  :people_tags,
32
33
  :precincts,
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.1
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-03-30 00:00:00.000000000 Z
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