nation_builder 0.0.13 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +14 -0
- data/.ruby-version +1 -1
- data/Gemfile +6 -6
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/nation_builder/actions/show.rb +1 -1
- data/lib/nation_builder/actions/update.rb +1 -1
- data/lib/nation_builder/people.rb +5 -5
- data/lib/nation_builder/tags.rb +1 -1
- data/nation_builder.gemspec +20 -30
- metadata +39 -23
- data/.travis.yml +0 -3
- data/Gemfile.lock +0 -108
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 07fd0a233e1526e42a0621fc6fa9a7c600b29b9cc58ebb3f84085bda025cdac0
|
4
|
+
data.tar.gz: b392078a4d90d55c4c528a1620e1747c712b725ddc9c10fdb3b94db69b10a50f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bb0ec7c33aa705cf5c599e606b1f1524e9d291a0acde188e264246733fe5b0912e594a701733fa2e34d3a500b70e4f3849c7fd20e05c2c4e3949d1a957f4b16
|
7
|
+
data.tar.gz: 308d1c69d87ee6c45b93598f061532c4949a88800225bddce582f4131f42fbef822618242d8f3e2506964a906f1fb5dbffc9af1ed3eb95b30adb727443d93b36
|
@@ -0,0 +1,14 @@
|
|
1
|
+
name: CI
|
2
|
+
on: [push]
|
3
|
+
|
4
|
+
jobs:
|
5
|
+
test:
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
steps:
|
8
|
+
- uses: actions/checkout@v2
|
9
|
+
- uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
|
10
|
+
with:
|
11
|
+
ruby-version: 2.7
|
12
|
+
bundler-cache: true
|
13
|
+
- run: bundle install
|
14
|
+
- run: bundle exec rspec
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.4
|
data/Gemfile
CHANGED
@@ -2,13 +2,13 @@ source 'http://rubygems.org'
|
|
2
2
|
|
3
3
|
# NationBuilder puts error messages in a different location.
|
4
4
|
gem 'oauth2', git: 'https://github.com/controlshift/oauth2.git'
|
5
|
-
gem 'json'
|
5
|
+
gem 'json', '~> 2.1'
|
6
6
|
gem 'activesupport', '>3.0.0'
|
7
7
|
|
8
8
|
group :development do
|
9
|
-
gem 'webmock'
|
10
|
-
gem 'byebug'
|
11
|
-
gem 'rspec'
|
12
|
-
gem 'bundler'
|
13
|
-
gem
|
9
|
+
gem 'webmock', '~> 3.0', '>= 3.0.1'
|
10
|
+
gem 'byebug', '~> 9.0', '>= 9.0.6'
|
11
|
+
gem 'rspec', '~> 3.6'
|
12
|
+
gem 'bundler', '>= 0'
|
13
|
+
gem 'juwelier', '~> 2.4', '>= 2.4.7'
|
14
14
|
end
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ client.tags.list # all tags.
|
|
19
19
|
|
20
20
|
The current gem is minimalist -- but we'd welcome pull requests with additional functionality!
|
21
21
|
|
22
|
-
[![
|
22
|
+
[![CI Status](https://github.com/controlshift/nation_builder/actions/workflows/ci.yml/badge.svg)](https://github.com/controlshift/nation_builder/actions/workflows/ci.yml)
|
23
23
|
|
24
24
|
### Copyright
|
25
25
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.17
|
@@ -4,7 +4,7 @@ module NationBuilder
|
|
4
4
|
|
5
5
|
def update id, params
|
6
6
|
body = JSON.generate(params)
|
7
|
-
JSON.parse(client.put("#{base_path}/#{id}", body: body).response.env[:body])
|
7
|
+
JSON.parse(client.put("#{base_path}/#{CGI.escape(id.to_s)}", body: body).response.env[:body])
|
8
8
|
end
|
9
9
|
|
10
10
|
end
|
@@ -8,12 +8,12 @@ module NationBuilder
|
|
8
8
|
def controller_name
|
9
9
|
'people'
|
10
10
|
end
|
11
|
-
|
11
|
+
|
12
12
|
def match(params)
|
13
|
-
begin
|
13
|
+
begin
|
14
14
|
JSON.parse(client.get("#{base_path}/match", params: params).response.env[:body])
|
15
15
|
rescue OAuth2::Error => e
|
16
|
-
if e.response.parsed['code'] == 'no_matches'
|
16
|
+
if e.response.parsed && e.response.parsed['code'] == 'no_matches'
|
17
17
|
return nil
|
18
18
|
else
|
19
19
|
raise e
|
@@ -88,7 +88,7 @@ module NationBuilder
|
|
88
88
|
private
|
89
89
|
|
90
90
|
def taggings_path(person_id)
|
91
|
-
"#{base_path}/#{person_id}/taggings"
|
91
|
+
"#{base_path}/#{CGI.escape(person_id.to_s)}/taggings"
|
92
92
|
end
|
93
|
-
end
|
93
|
+
end
|
94
94
|
end
|
data/lib/nation_builder/tags.rb
CHANGED
data/nation_builder.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: nation_builder 0.0.
|
5
|
+
# stub: nation_builder 0.0.17 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "nation_builder".freeze
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.17"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Nathan Woodhull".freeze, "Dan Schneiderman".freeze]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2021-09-27"
|
15
15
|
s.description = "Ruby wrapper for NationBuilder API".freeze
|
16
16
|
s.email = "nathan@controlshiftlabs.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -20,12 +20,11 @@ Gem::Specification.new do |s|
|
|
20
20
|
]
|
21
21
|
s.files = [
|
22
22
|
".document",
|
23
|
+
".github/workflows/ci.yml",
|
23
24
|
".rspec",
|
24
25
|
".ruby-gemset",
|
25
26
|
".ruby-version",
|
26
|
-
".travis.yml",
|
27
27
|
"Gemfile",
|
28
|
-
"Gemfile.lock",
|
29
28
|
"LICENSE.txt",
|
30
29
|
"README.md",
|
31
30
|
"Rakefile",
|
@@ -51,40 +50,31 @@ Gem::Specification.new do |s|
|
|
51
50
|
]
|
52
51
|
s.homepage = "http://github.com/controlshift/nation_builder".freeze
|
53
52
|
s.licenses = ["MIT".freeze]
|
54
|
-
s.rubygems_version = "
|
53
|
+
s.rubygems_version = "3.1.6".freeze
|
55
54
|
s.summary = "NationBuilder API wrapper".freeze
|
56
55
|
|
57
56
|
if s.respond_to? :specification_version then
|
58
57
|
s.specification_version = 4
|
58
|
+
end
|
59
59
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
else
|
70
|
-
s.add_dependency(%q<oauth2>.freeze, [">= 0"])
|
71
|
-
s.add_dependency(%q<json>.freeze, [">= 0"])
|
72
|
-
s.add_dependency(%q<activesupport>.freeze, ["> 3.0.0"])
|
73
|
-
s.add_dependency(%q<webmock>.freeze, [">= 0"])
|
74
|
-
s.add_dependency(%q<byebug>.freeze, [">= 0"])
|
75
|
-
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
76
|
-
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
77
|
-
s.add_dependency(%q<juwelier>.freeze, [">= 0"])
|
78
|
-
end
|
60
|
+
if s.respond_to? :add_runtime_dependency then
|
61
|
+
s.add_runtime_dependency(%q<oauth2>.freeze, [">= 0"])
|
62
|
+
s.add_runtime_dependency(%q<json>.freeze, ["~> 2.1"])
|
63
|
+
s.add_runtime_dependency(%q<activesupport>.freeze, ["> 3.0.0"])
|
64
|
+
s.add_development_dependency(%q<webmock>.freeze, ["~> 3.0", ">= 3.0.1"])
|
65
|
+
s.add_development_dependency(%q<byebug>.freeze, ["~> 9.0", ">= 9.0.6"])
|
66
|
+
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.6"])
|
67
|
+
s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
|
68
|
+
s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.4", ">= 2.4.7"])
|
79
69
|
else
|
80
70
|
s.add_dependency(%q<oauth2>.freeze, [">= 0"])
|
81
|
-
s.add_dependency(%q<json>.freeze, ["
|
71
|
+
s.add_dependency(%q<json>.freeze, ["~> 2.1"])
|
82
72
|
s.add_dependency(%q<activesupport>.freeze, ["> 3.0.0"])
|
83
|
-
s.add_dependency(%q<webmock>.freeze, [">= 0"])
|
84
|
-
s.add_dependency(%q<byebug>.freeze, [">= 0"])
|
85
|
-
s.add_dependency(%q<rspec>.freeze, ["
|
73
|
+
s.add_dependency(%q<webmock>.freeze, ["~> 3.0", ">= 3.0.1"])
|
74
|
+
s.add_dependency(%q<byebug>.freeze, ["~> 9.0", ">= 9.0.6"])
|
75
|
+
s.add_dependency(%q<rspec>.freeze, ["~> 3.6"])
|
86
76
|
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
87
|
-
s.add_dependency(%q<juwelier>.freeze, [">=
|
77
|
+
s.add_dependency(%q<juwelier>.freeze, ["~> 2.4", ">= 2.4.7"])
|
88
78
|
end
|
89
79
|
end
|
90
80
|
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nation_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Woodhull
|
8
8
|
- Dan Schneiderman
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-09-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth2
|
@@ -29,16 +29,16 @@ dependencies:
|
|
29
29
|
name: json
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '2.1'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '2.1'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: activesupport
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -57,44 +57,56 @@ dependencies:
|
|
57
57
|
name: webmock
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3.0'
|
60
63
|
- - ">="
|
61
64
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
65
|
+
version: 3.0.1
|
63
66
|
type: :development
|
64
67
|
prerelease: false
|
65
68
|
version_requirements: !ruby/object:Gem::Requirement
|
66
69
|
requirements:
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '3.0'
|
67
73
|
- - ">="
|
68
74
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
75
|
+
version: 3.0.1
|
70
76
|
- !ruby/object:Gem::Dependency
|
71
77
|
name: byebug
|
72
78
|
requirement: !ruby/object:Gem::Requirement
|
73
79
|
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '9.0'
|
74
83
|
- - ">="
|
75
84
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
85
|
+
version: 9.0.6
|
77
86
|
type: :development
|
78
87
|
prerelease: false
|
79
88
|
version_requirements: !ruby/object:Gem::Requirement
|
80
89
|
requirements:
|
90
|
+
- - "~>"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '9.0'
|
81
93
|
- - ">="
|
82
94
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
95
|
+
version: 9.0.6
|
84
96
|
- !ruby/object:Gem::Dependency
|
85
97
|
name: rspec
|
86
98
|
requirement: !ruby/object:Gem::Requirement
|
87
99
|
requirements:
|
88
|
-
- - "
|
100
|
+
- - "~>"
|
89
101
|
- !ruby/object:Gem::Version
|
90
|
-
version: '
|
102
|
+
version: '3.6'
|
91
103
|
type: :development
|
92
104
|
prerelease: false
|
93
105
|
version_requirements: !ruby/object:Gem::Requirement
|
94
106
|
requirements:
|
95
|
-
- - "
|
107
|
+
- - "~>"
|
96
108
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
109
|
+
version: '3.6'
|
98
110
|
- !ruby/object:Gem::Dependency
|
99
111
|
name: bundler
|
100
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,16 +125,22 @@ dependencies:
|
|
113
125
|
name: juwelier
|
114
126
|
requirement: !ruby/object:Gem::Requirement
|
115
127
|
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '2.4'
|
116
131
|
- - ">="
|
117
132
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
133
|
+
version: 2.4.7
|
119
134
|
type: :development
|
120
135
|
prerelease: false
|
121
136
|
version_requirements: !ruby/object:Gem::Requirement
|
122
137
|
requirements:
|
138
|
+
- - "~>"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '2.4'
|
123
141
|
- - ">="
|
124
142
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
143
|
+
version: 2.4.7
|
126
144
|
description: Ruby wrapper for NationBuilder API
|
127
145
|
email: nathan@controlshiftlabs.com
|
128
146
|
executables: []
|
@@ -132,12 +150,11 @@ extra_rdoc_files:
|
|
132
150
|
- README.md
|
133
151
|
files:
|
134
152
|
- ".document"
|
153
|
+
- ".github/workflows/ci.yml"
|
135
154
|
- ".rspec"
|
136
155
|
- ".ruby-gemset"
|
137
156
|
- ".ruby-version"
|
138
|
-
- ".travis.yml"
|
139
157
|
- Gemfile
|
140
|
-
- Gemfile.lock
|
141
158
|
- LICENSE.txt
|
142
159
|
- README.md
|
143
160
|
- Rakefile
|
@@ -164,7 +181,7 @@ homepage: http://github.com/controlshift/nation_builder
|
|
164
181
|
licenses:
|
165
182
|
- MIT
|
166
183
|
metadata: {}
|
167
|
-
post_install_message:
|
184
|
+
post_install_message:
|
168
185
|
rdoc_options: []
|
169
186
|
require_paths:
|
170
187
|
- lib
|
@@ -179,9 +196,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
196
|
- !ruby/object:Gem::Version
|
180
197
|
version: '0'
|
181
198
|
requirements: []
|
182
|
-
|
183
|
-
|
184
|
-
signing_key:
|
199
|
+
rubygems_version: 3.1.6
|
200
|
+
signing_key:
|
185
201
|
specification_version: 4
|
186
202
|
summary: NationBuilder API wrapper
|
187
203
|
test_files: []
|
data/.travis.yml
DELETED
data/Gemfile.lock
DELETED
@@ -1,108 +0,0 @@
|
|
1
|
-
GIT
|
2
|
-
remote: https://github.com/controlshift/oauth2.git
|
3
|
-
revision: 1dbcdd2bff439cfab188220accc02b39c6bae5ba
|
4
|
-
specs:
|
5
|
-
oauth2 (1.3.0)
|
6
|
-
faraday (>= 0.8, < 0.11)
|
7
|
-
jwt (~> 1.0)
|
8
|
-
multi_json (~> 1.3)
|
9
|
-
multi_xml (~> 0.5)
|
10
|
-
rack (>= 1.2, < 3)
|
11
|
-
|
12
|
-
GEM
|
13
|
-
remote: http://rubygems.org/
|
14
|
-
specs:
|
15
|
-
activesupport (5.1.2)
|
16
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
-
i18n (~> 0.7)
|
18
|
-
minitest (~> 5.1)
|
19
|
-
tzinfo (~> 1.1)
|
20
|
-
addressable (2.4.0)
|
21
|
-
builder (3.2.3)
|
22
|
-
byebug (9.0.6)
|
23
|
-
concurrent-ruby (1.0.5)
|
24
|
-
crack (0.4.3)
|
25
|
-
safe_yaml (~> 1.0.0)
|
26
|
-
descendants_tracker (0.0.4)
|
27
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
28
|
-
diff-lcs (1.3)
|
29
|
-
faraday (0.9.2)
|
30
|
-
multipart-post (>= 1.2, < 3)
|
31
|
-
git (1.3.0)
|
32
|
-
github_api (0.17.0)
|
33
|
-
addressable (~> 2.4.0)
|
34
|
-
descendants_tracker (~> 0.0.4)
|
35
|
-
faraday (~> 0.8, < 0.10)
|
36
|
-
hashie (>= 3.4)
|
37
|
-
mime-types (>= 1.16, < 3.0)
|
38
|
-
oauth2 (~> 1.0)
|
39
|
-
hashdiff (0.3.4)
|
40
|
-
hashie (3.5.6)
|
41
|
-
highline (1.7.8)
|
42
|
-
i18n (0.8.6)
|
43
|
-
json (2.1.0)
|
44
|
-
juwelier (2.4.7)
|
45
|
-
builder
|
46
|
-
bundler
|
47
|
-
git
|
48
|
-
github_api
|
49
|
-
highline
|
50
|
-
kamelcase (~> 0)
|
51
|
-
nokogiri
|
52
|
-
psych
|
53
|
-
rake
|
54
|
-
rdoc
|
55
|
-
semver2
|
56
|
-
jwt (1.5.6)
|
57
|
-
kamelcase (0.0.1)
|
58
|
-
semver2 (~> 3)
|
59
|
-
mime-types (2.99.3)
|
60
|
-
mini_portile2 (2.2.0)
|
61
|
-
minitest (5.10.2)
|
62
|
-
multi_json (1.12.1)
|
63
|
-
multi_xml (0.6.0)
|
64
|
-
multipart-post (2.0.0)
|
65
|
-
nokogiri (1.8.0)
|
66
|
-
mini_portile2 (~> 2.2.0)
|
67
|
-
psych (2.2.4)
|
68
|
-
rack (2.0.3)
|
69
|
-
rake (12.0.0)
|
70
|
-
rdoc (5.1.0)
|
71
|
-
rspec (3.6.0)
|
72
|
-
rspec-core (~> 3.6.0)
|
73
|
-
rspec-expectations (~> 3.6.0)
|
74
|
-
rspec-mocks (~> 3.6.0)
|
75
|
-
rspec-core (3.6.0)
|
76
|
-
rspec-support (~> 3.6.0)
|
77
|
-
rspec-expectations (3.6.0)
|
78
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
79
|
-
rspec-support (~> 3.6.0)
|
80
|
-
rspec-mocks (3.6.0)
|
81
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
82
|
-
rspec-support (~> 3.6.0)
|
83
|
-
rspec-support (3.6.0)
|
84
|
-
safe_yaml (1.0.4)
|
85
|
-
semver2 (3.4.2)
|
86
|
-
thread_safe (0.3.6)
|
87
|
-
tzinfo (1.2.3)
|
88
|
-
thread_safe (~> 0.1)
|
89
|
-
webmock (3.0.1)
|
90
|
-
addressable (>= 2.3.6)
|
91
|
-
crack (>= 0.3.2)
|
92
|
-
hashdiff
|
93
|
-
|
94
|
-
PLATFORMS
|
95
|
-
ruby
|
96
|
-
|
97
|
-
DEPENDENCIES
|
98
|
-
activesupport (> 3.0.0)
|
99
|
-
bundler
|
100
|
-
byebug
|
101
|
-
json
|
102
|
-
juwelier
|
103
|
-
oauth2!
|
104
|
-
rspec
|
105
|
-
webmock
|
106
|
-
|
107
|
-
BUNDLED WITH
|
108
|
-
1.15.2
|