nation_builder 0.0.13 → 0.0.14

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: 25e0b4c18cbdd3d11d1864be214b148239174bf4
4
- data.tar.gz: a2d3d92444675969ed3ac20df264bb161f1aa8f0
3
+ metadata.gz: 6b8da9be94e7e7728f0bfdb23845e5d4970c9ccb
4
+ data.tar.gz: 9bd2afe1fe8f687ec78a6b2f0eb290d801db34a6
5
5
  SHA512:
6
- metadata.gz: 3c9ac4a580ad47ce00259b97774da67bc686aed5245eb9b9e619571cd69545cfdef53d17226567ef7cd31063cd5ad42e4b7941bd74d57be95e44490587ac5fb8
7
- data.tar.gz: e194f687bf3b7fce973e7a81f8a7ce6f625f85c31e22a78eb1f6a8ef54fbfd70ac3f812b1ce501a97093cfba7f8288d4d5ca7e4902f2ac30f5f830a21c328e41
6
+ metadata.gz: 6ed4bcaa9b7502ec43e2ad3d734cac413ea9ff1f5d33dec9170f9d89f35384253a97508dec3b30116d073a497b95a21feeca53a82d2057deb7d55ae08d9a350f
7
+ data.tar.gz: 2d6da84fdc35e08f8a86766e19a33b815981bda0c1ce7e4458c78e30283216c002d4278c48f9b7929691c355317007ebf79921522adfb9da766729cb95c9a4f5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.13
1
+ 0.0.14
@@ -2,7 +2,7 @@ module NationBuilder
2
2
  module Actions
3
3
  module Show
4
4
  def show(person_id)
5
- JSON.parse(client.get("#{base_path}/#{person_id}").response.env[:body])
5
+ JSON.parse(client.get("#{base_path}/#{CGI.escape(person_id)}").response.env[:body])
6
6
  end
7
7
  end
8
8
  end
@@ -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)}", body: body).response.env[:body])
8
8
  end
9
9
 
10
10
  end
@@ -8,9 +8,9 @@ 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
16
  if e.response.parsed['code'] == 'no_matches'
@@ -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)}/taggings"
92
92
  end
93
- end
93
+ end
94
94
  end
@@ -7,7 +7,7 @@ module NationBuilder
7
7
  end
8
8
 
9
9
  def people(tag)
10
- JSON.parse(client.get(base_path + '/' + tag).response.env[:body])
10
+ JSON.parse(client.get("#{base_path}/#{CGI.escape(tag)}").response.env[:body])
11
11
  end
12
12
  end
13
13
  end
@@ -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.13 ruby lib
5
+ # stub: nation_builder 0.0.14 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "nation_builder".freeze
9
- s.version = "0.0.13"
9
+ s.version = "0.0.14"
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 = "2017-08-21"
14
+ s.date = "2017-09-07"
15
15
  s.description = "Ruby wrapper for NationBuilder API".freeze
16
16
  s.email = "nathan@controlshiftlabs.com".freeze
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nation_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Woodhull
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-08-21 00:00:00.000000000 Z
12
+ date: 2017-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2