nationbuilder-rb 0.1.0 → 0.3.0
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/VERSION +1 -1
- data/lib/nationbuilder/api_spec.json +49 -12
- data/nationbuilder-rb.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb1b1bd2bb38bc5c2e723c4ebbe8d39645d2f926
|
|
4
|
+
data.tar.gz: 5bb0a29225916a392587d6349ba85d6a64ff1424
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1b7c796f47afde3f3e48505ff9847e58481cc456ef85132e6bfd8185b6fbb87216a8823ba16b69406a8f993ed19ddf9c539fe6810bd190ad20e8b93765829d0
|
|
7
|
+
data.tar.gz: 503a612707e17067a33a7232828240ad178890f7291e7945a1a6aed61f7de993044bc065a23b10c038084afc077bb03e677e8c9ca95d72f7111f3022388844a8
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.3.0
|
|
@@ -1058,18 +1058,11 @@
|
|
|
1058
1058
|
"URI": "/imports",
|
|
1059
1059
|
"parameters": [
|
|
1060
1060
|
{
|
|
1061
|
-
"Name": "
|
|
1062
|
-
"Required": "Y",
|
|
1063
|
-
"Default": null,
|
|
1064
|
-
"Type": "string",
|
|
1065
|
-
"Description": "either \"voter_file\" or \"voting_history\""
|
|
1066
|
-
},
|
|
1067
|
-
{
|
|
1068
|
-
"Name": "file",
|
|
1061
|
+
"Name": "body",
|
|
1069
1062
|
"Required": "Y",
|
|
1070
1063
|
"Default": null,
|
|
1071
|
-
"Type": "
|
|
1072
|
-
"Description": "
|
|
1064
|
+
"Type": "json",
|
|
1065
|
+
"Description": "JSON representation of the import"
|
|
1073
1066
|
}
|
|
1074
1067
|
]
|
|
1075
1068
|
}
|
|
@@ -1182,7 +1175,51 @@
|
|
|
1182
1175
|
]
|
|
1183
1176
|
},
|
|
1184
1177
|
{
|
|
1185
|
-
"MethodName": "
|
|
1178
|
+
"MethodName": "Add people",
|
|
1179
|
+
"Synopsis": "Adds people to a list",
|
|
1180
|
+
"HTTPMethod": "POST",
|
|
1181
|
+
"URI": "/lists/:list_id/people",
|
|
1182
|
+
"parameters": [
|
|
1183
|
+
{
|
|
1184
|
+
"Name": "list_id",
|
|
1185
|
+
"Required": "Y",
|
|
1186
|
+
"Default": null,
|
|
1187
|
+
"Type": "int",
|
|
1188
|
+
"Description": "The ID of the list"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"Name": "body",
|
|
1192
|
+
"Required": "Y",
|
|
1193
|
+
"Default": null,
|
|
1194
|
+
"Type": "json",
|
|
1195
|
+
"Description": "A JSON hash containing the people to add to the list"
|
|
1196
|
+
}
|
|
1197
|
+
]
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"MethodName": "Destroy people",
|
|
1201
|
+
"Synopsis": "Removes people from a list",
|
|
1202
|
+
"HTTPMethod": "DELETE",
|
|
1203
|
+
"URI": "/lists/:list_id/people",
|
|
1204
|
+
"parameters": [
|
|
1205
|
+
{
|
|
1206
|
+
"Name": "list_id",
|
|
1207
|
+
"Required": "Y",
|
|
1208
|
+
"Default": null,
|
|
1209
|
+
"Type": "int",
|
|
1210
|
+
"Description": "The ID of the list"
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
"Name": "body",
|
|
1214
|
+
"Required": "Y",
|
|
1215
|
+
"Default": null,
|
|
1216
|
+
"Type": "json",
|
|
1217
|
+
"Description": "A JSON hash containing the people to remove from the list"
|
|
1218
|
+
}
|
|
1219
|
+
]
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"MethodName": "Listing Create (deprecated)",
|
|
1186
1223
|
"Synopsis": "Adds a person to a list",
|
|
1187
1224
|
"HTTPMethod": "POST",
|
|
1188
1225
|
"URI": "/lists/:list_id/listings",
|
|
@@ -1204,7 +1241,7 @@
|
|
|
1204
1241
|
]
|
|
1205
1242
|
},
|
|
1206
1243
|
{
|
|
1207
|
-
"MethodName": "Listing Deletion",
|
|
1244
|
+
"MethodName": "Listing Deletion (deprecated)",
|
|
1208
1245
|
"Synopsis": "Drops a person from a list",
|
|
1209
1246
|
"HTTPMethod": "DELETE",
|
|
1210
1247
|
"URI": "/lists/:list_id/listings/:person_id",
|
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 0.
|
|
5
|
+
# stub: nationbuilder-rb 0.3.0 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "nationbuilder-rb"
|
|
9
|
-
s.version = "0.
|
|
9
|
+
s.version = "0.3.0"
|
|
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"]
|
|
14
|
-
s.date = "2014-
|
|
14
|
+
s.date = "2014-08-18"
|
|
15
15
|
s.description = "A Ruby client to the NationBuilder API"
|
|
16
16
|
s.email = "david@nationbuilder.com"
|
|
17
17
|
s.executables = ["nbdoc"]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nationbuilder-rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Huie
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-08-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httpclient
|