nationbuilder-rb 1.6.0 → 1.6.1
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/lib/api_spec/lib/api_spec/specs/donations.rb +40 -0
- data/lib/api_spec/spec.json +50 -0
- data/lib/nationbuilder/version.rb +1 -1
- data/nationbuilder-rb.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d90522e1da3706355c4384564ce4d013e5157c9
|
|
4
|
+
data.tar.gz: 9b90174d74c34961e5c0182723c69f18c189be11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74c9fe8815fbbe6b6c249701953995a5af9f82f3db7cde9fa925acea0d197d225f749518507523a7bd3aaebe226e6619db80e7c88bcf246ddb3340d7f01d707a
|
|
7
|
+
data.tar.gz: 8058d962e097dc7a4353ca00bcdbc4fe7a7a58bf8cdb7422f97f0dbaa565c1694ac90f442f5dc3e9b2a494e631284b611f3a73bcbf1f51ea2ebbef3c29dcfbe0
|
|
@@ -27,6 +27,46 @@ class ApiSpec::Spec
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
donation.method('Search') do |method|
|
|
31
|
+
method.synopsis = 'Search for donations with provided attributes'
|
|
32
|
+
method.http_method = 'GET'
|
|
33
|
+
method.uri = '/donations/search'
|
|
34
|
+
|
|
35
|
+
method.parameter('created_since') do |p|
|
|
36
|
+
p.required = 'N'
|
|
37
|
+
p.type = 'string'
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
method.parameter('succeeded_since') do |p|
|
|
41
|
+
p.required = 'N'
|
|
42
|
+
p.type = 'string'
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
method.parameter('failed_since') do |p|
|
|
46
|
+
p.required = 'N'
|
|
47
|
+
p.type = 'string'
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
method.parameter('__token') do |p|
|
|
51
|
+
p.required = 'N'
|
|
52
|
+
p.type = 'string'
|
|
53
|
+
p.description = 'pagination token'
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
method.parameter('__nonce') do |p|
|
|
57
|
+
p.required = 'N'
|
|
58
|
+
p.type = 'string'
|
|
59
|
+
p.description = 'pagination nonce'
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
method.parameter('limit') do |p|
|
|
63
|
+
p.required = 'N'
|
|
64
|
+
p.default = '10'
|
|
65
|
+
p.type = 'int'
|
|
66
|
+
p.description = 'maximum number of results to return'
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
30
70
|
donation.method('Create') do |method|
|
|
31
71
|
method.synopsis = 'Creates a donation with the provided data'
|
|
32
72
|
method.http_method = 'POST'
|
data/lib/api_spec/spec.json
CHANGED
|
@@ -799,6 +799,56 @@
|
|
|
799
799
|
}
|
|
800
800
|
]
|
|
801
801
|
},
|
|
802
|
+
{
|
|
803
|
+
"MethodName": "Search",
|
|
804
|
+
"Synopsis": "Search for donations with provided attributes",
|
|
805
|
+
"HTTPMethod": "GET",
|
|
806
|
+
"URI": "/donations/search",
|
|
807
|
+
"parameters": [
|
|
808
|
+
{
|
|
809
|
+
"Name": "created_since",
|
|
810
|
+
"Required": "N",
|
|
811
|
+
"Default": null,
|
|
812
|
+
"Type": "string",
|
|
813
|
+
"Description": null
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"Name": "succeeded_since",
|
|
817
|
+
"Required": "N",
|
|
818
|
+
"Default": null,
|
|
819
|
+
"Type": "string",
|
|
820
|
+
"Description": null
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"Name": "failed_since",
|
|
824
|
+
"Required": "N",
|
|
825
|
+
"Default": null,
|
|
826
|
+
"Type": "string",
|
|
827
|
+
"Description": null
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"Name": "__token",
|
|
831
|
+
"Required": "N",
|
|
832
|
+
"Default": null,
|
|
833
|
+
"Type": "string",
|
|
834
|
+
"Description": "pagination token"
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"Name": "__nonce",
|
|
838
|
+
"Required": "N",
|
|
839
|
+
"Default": null,
|
|
840
|
+
"Type": "string",
|
|
841
|
+
"Description": "pagination nonce"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"Name": "limit",
|
|
845
|
+
"Required": "N",
|
|
846
|
+
"Default": "10",
|
|
847
|
+
"Type": "int",
|
|
848
|
+
"Description": "maximum number of results to return"
|
|
849
|
+
}
|
|
850
|
+
]
|
|
851
|
+
},
|
|
802
852
|
{
|
|
803
853
|
"MethodName": "Create",
|
|
804
854
|
"Synopsis": "Creates a donation with the provided data",
|
data/nationbuilder-rb.gemspec
CHANGED
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.require_paths = ["lib"]
|
|
9
9
|
s.authors = ["David Huie", "Alexandre Schmitt"]
|
|
10
|
-
s.date = "2017-
|
|
10
|
+
s.date = "2017-11-22"
|
|
11
11
|
s.description = "A Ruby client to the NationBuilder API"
|
|
12
12
|
s.email = "schmitt@nationbuilder.com"
|
|
13
13
|
s.executables = ["nbdoc"]
|
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.6.
|
|
4
|
+
version: 1.6.1
|
|
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: 2017-
|
|
12
|
+
date: 2017-11-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: httpclient
|
|
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
188
188
|
version: '0'
|
|
189
189
|
requirements: []
|
|
190
190
|
rubyforge_project:
|
|
191
|
-
rubygems_version: 2.6.
|
|
191
|
+
rubygems_version: 2.6.12
|
|
192
192
|
signing_key:
|
|
193
193
|
specification_version: 4
|
|
194
194
|
summary: A Ruby client to the NationBuilder API
|