nationbuilder-rb 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/README.md +9 -0
- data/VERSION +1 -1
- data/lib/api_spec/.ruby-gemset +1 -0
- data/lib/api_spec/.ruby-version +1 -0
- data/lib/api_spec/Gemfile +3 -0
- data/lib/api_spec/Gemfile.lock +13 -0
- data/lib/api_spec/LICENSE.txt +20 -0
- data/lib/api_spec/README.md +20 -0
- data/lib/api_spec/Rakefile +9 -0
- data/lib/api_spec/lib/api_spec.rb +26 -0
- data/lib/api_spec/lib/api_spec/generator.rb +113 -0
- data/lib/api_spec/lib/api_spec/specs/basic_pages.rb +106 -0
- data/lib/api_spec/lib/api_spec/specs/blog_posts.rb +160 -0
- data/lib/api_spec/lib/api_spec/specs/blogs.rb +128 -0
- data/lib/api_spec/lib/api_spec/specs/calendars.rb +128 -0
- data/lib/api_spec/lib/api_spec/specs/campaign_data.rb +15 -0
- data/lib/api_spec/lib/api_spec/specs/contacts.rb +155 -0
- data/lib/api_spec/lib/api_spec/specs/donations.rb +76 -0
- data/lib/api_spec/lib/api_spec/specs/events.rb +238 -0
- data/lib/api_spec/lib/api_spec/specs/exports.rb +42 -0
- data/lib/api_spec/lib/api_spec/specs/imports.rb +43 -0
- data/lib/api_spec/lib/api_spec/specs/lists.rb +215 -0
- data/lib/api_spec/lib/api_spec/specs/memberships.rb +94 -0
- data/lib/api_spec/lib/api_spec/specs/page_attachments.rb +121 -0
- data/lib/api_spec/lib/api_spec/specs/people.rb +500 -0
- data/lib/api_spec/lib/api_spec/specs/people_tags.rb +63 -0
- data/lib/api_spec/lib/api_spec/specs/precincts.rb +89 -0
- data/lib/api_spec/lib/api_spec/specs/sites.rb +32 -0
- data/lib/api_spec/lib/api_spec/specs/survey_responses.rb +64 -0
- data/lib/api_spec/lib/api_spec/specs/surveys.rb +106 -0
- data/lib/api_spec/lib/api_spec/specs/webhooks.rb +75 -0
- data/lib/{nationbuilder/api_spec.json → api_spec/spec.json} +143 -5
- data/lib/nationbuilder/client.rb +1 -1
- data/nationbuilder-rb.gemspec +35 -5
- data/spec/nationbuilder_client_spec.rb +1 -0
- data/update_subtree.sh +1 -0
- metadata +33 -3
data/lib/nationbuilder/client.rb
CHANGED
@@ -18,7 +18,7 @@ class NationBuilder::Client
|
|
18
18
|
|
19
19
|
def parsed_endpoints
|
20
20
|
NationBuilder::SpecParser
|
21
|
-
.parse(File.join(File.dirname(__FILE__), 'api_spec.json'))
|
21
|
+
.parse(File.join(File.dirname(__FILE__), '..', 'api_spec/spec.json'))
|
22
22
|
end
|
23
23
|
|
24
24
|
class InvalidEndpoint < ArgumentError; end
|
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.3.
|
5
|
+
# stub: nationbuilder-rb 1.3.3 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.3"
|
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 = "2015-
|
14
|
+
s.date = "2015-07-31"
|
15
15
|
s.description = "A Ruby client to the NationBuilder API"
|
16
16
|
s.email = "david@nationbuilder.com"
|
17
17
|
s.executables = ["nbdoc"]
|
@@ -33,8 +33,37 @@ Gem::Specification.new do |s|
|
|
33
33
|
"Rakefile",
|
34
34
|
"VERSION",
|
35
35
|
"bin/nbdoc",
|
36
|
+
"lib/api_spec/.ruby-gemset",
|
37
|
+
"lib/api_spec/.ruby-version",
|
38
|
+
"lib/api_spec/Gemfile",
|
39
|
+
"lib/api_spec/Gemfile.lock",
|
40
|
+
"lib/api_spec/LICENSE.txt",
|
41
|
+
"lib/api_spec/README.md",
|
42
|
+
"lib/api_spec/Rakefile",
|
43
|
+
"lib/api_spec/lib/api_spec.rb",
|
44
|
+
"lib/api_spec/lib/api_spec/generator.rb",
|
45
|
+
"lib/api_spec/lib/api_spec/specs/basic_pages.rb",
|
46
|
+
"lib/api_spec/lib/api_spec/specs/blog_posts.rb",
|
47
|
+
"lib/api_spec/lib/api_spec/specs/blogs.rb",
|
48
|
+
"lib/api_spec/lib/api_spec/specs/calendars.rb",
|
49
|
+
"lib/api_spec/lib/api_spec/specs/campaign_data.rb",
|
50
|
+
"lib/api_spec/lib/api_spec/specs/contacts.rb",
|
51
|
+
"lib/api_spec/lib/api_spec/specs/donations.rb",
|
52
|
+
"lib/api_spec/lib/api_spec/specs/events.rb",
|
53
|
+
"lib/api_spec/lib/api_spec/specs/exports.rb",
|
54
|
+
"lib/api_spec/lib/api_spec/specs/imports.rb",
|
55
|
+
"lib/api_spec/lib/api_spec/specs/lists.rb",
|
56
|
+
"lib/api_spec/lib/api_spec/specs/memberships.rb",
|
57
|
+
"lib/api_spec/lib/api_spec/specs/page_attachments.rb",
|
58
|
+
"lib/api_spec/lib/api_spec/specs/people.rb",
|
59
|
+
"lib/api_spec/lib/api_spec/specs/people_tags.rb",
|
60
|
+
"lib/api_spec/lib/api_spec/specs/precincts.rb",
|
61
|
+
"lib/api_spec/lib/api_spec/specs/sites.rb",
|
62
|
+
"lib/api_spec/lib/api_spec/specs/survey_responses.rb",
|
63
|
+
"lib/api_spec/lib/api_spec/specs/surveys.rb",
|
64
|
+
"lib/api_spec/lib/api_spec/specs/webhooks.rb",
|
65
|
+
"lib/api_spec/spec.json",
|
36
66
|
"lib/nationbuilder.rb",
|
37
|
-
"lib/nationbuilder/api_spec.json",
|
38
67
|
"lib/nationbuilder/client.rb",
|
39
68
|
"lib/nationbuilder/endpoint.rb",
|
40
69
|
"lib/nationbuilder/errors.rb",
|
@@ -52,7 +81,8 @@ Gem::Specification.new do |s|
|
|
52
81
|
"spec/fixtures/parametered_post_with_fire_webhooks_false.yml",
|
53
82
|
"spec/nationbuilder_client_spec.rb",
|
54
83
|
"spec/nationbuilder_paginator_spec.rb",
|
55
|
-
"spec/spec_helper.rb"
|
84
|
+
"spec/spec_helper.rb",
|
85
|
+
"update_subtree.sh"
|
56
86
|
]
|
57
87
|
s.homepage = "http://github.com/nationbuilder/nationbuilder-rb"
|
58
88
|
s.licenses = ["MIT"]
|
data/update_subtree.sh
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
git subtree pull --prefix lib/api_spec git@github.com:nationbuilder/api_spec.git master --squash
|
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: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Huie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -116,8 +116,37 @@ files:
|
|
116
116
|
- Rakefile
|
117
117
|
- VERSION
|
118
118
|
- bin/nbdoc
|
119
|
+
- lib/api_spec/.ruby-gemset
|
120
|
+
- lib/api_spec/.ruby-version
|
121
|
+
- lib/api_spec/Gemfile
|
122
|
+
- lib/api_spec/Gemfile.lock
|
123
|
+
- lib/api_spec/LICENSE.txt
|
124
|
+
- lib/api_spec/README.md
|
125
|
+
- lib/api_spec/Rakefile
|
126
|
+
- lib/api_spec/lib/api_spec.rb
|
127
|
+
- lib/api_spec/lib/api_spec/generator.rb
|
128
|
+
- lib/api_spec/lib/api_spec/specs/basic_pages.rb
|
129
|
+
- lib/api_spec/lib/api_spec/specs/blog_posts.rb
|
130
|
+
- lib/api_spec/lib/api_spec/specs/blogs.rb
|
131
|
+
- lib/api_spec/lib/api_spec/specs/calendars.rb
|
132
|
+
- lib/api_spec/lib/api_spec/specs/campaign_data.rb
|
133
|
+
- lib/api_spec/lib/api_spec/specs/contacts.rb
|
134
|
+
- lib/api_spec/lib/api_spec/specs/donations.rb
|
135
|
+
- lib/api_spec/lib/api_spec/specs/events.rb
|
136
|
+
- lib/api_spec/lib/api_spec/specs/exports.rb
|
137
|
+
- lib/api_spec/lib/api_spec/specs/imports.rb
|
138
|
+
- lib/api_spec/lib/api_spec/specs/lists.rb
|
139
|
+
- lib/api_spec/lib/api_spec/specs/memberships.rb
|
140
|
+
- lib/api_spec/lib/api_spec/specs/page_attachments.rb
|
141
|
+
- lib/api_spec/lib/api_spec/specs/people.rb
|
142
|
+
- lib/api_spec/lib/api_spec/specs/people_tags.rb
|
143
|
+
- lib/api_spec/lib/api_spec/specs/precincts.rb
|
144
|
+
- lib/api_spec/lib/api_spec/specs/sites.rb
|
145
|
+
- lib/api_spec/lib/api_spec/specs/survey_responses.rb
|
146
|
+
- lib/api_spec/lib/api_spec/specs/surveys.rb
|
147
|
+
- lib/api_spec/lib/api_spec/specs/webhooks.rb
|
148
|
+
- lib/api_spec/spec.json
|
119
149
|
- lib/nationbuilder.rb
|
120
|
-
- lib/nationbuilder/api_spec.json
|
121
150
|
- lib/nationbuilder/client.rb
|
122
151
|
- lib/nationbuilder/endpoint.rb
|
123
152
|
- lib/nationbuilder/errors.rb
|
@@ -136,6 +165,7 @@ files:
|
|
136
165
|
- spec/nationbuilder_client_spec.rb
|
137
166
|
- spec/nationbuilder_paginator_spec.rb
|
138
167
|
- spec/spec_helper.rb
|
168
|
+
- update_subtree.sh
|
139
169
|
homepage: http://github.com/nationbuilder/nationbuilder-rb
|
140
170
|
licenses:
|
141
171
|
- MIT
|