action_kit_rest 0.3.2 → 0.3.3

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: 95167f59f12c0e509c151c8d247b1199f7dfdc1e
4
- data.tar.gz: ea10483ad8e5a5d3aa084d8b6452b0db61a21c68
3
+ metadata.gz: b0bbd2d382da245f55b9e6db51d485ed90bcf764
4
+ data.tar.gz: 02a6d7e429e7b4f1ecfa88dbef18c87304481d20
5
5
  SHA512:
6
- metadata.gz: e30f97aba76236d8aafd81531244673dd75bb80b0f30223b90ae884b16e7d0430492727207a7e05163f3926fc93fa9788dbaeb635c234b029666792188612dcc
7
- data.tar.gz: efd0de3559026af4f3022c254ca04716c9f68edf4bb881b2db15631cd6db4fd3159f2336895a26f3795c5a2b93871dd0701123a38b8737e82141e3dc4d57b11b
6
+ metadata.gz: 13a48eefbd474969f1485c13d9c4387e53271b87ee19826670e00b891c6fc87e4df3e1c375158053e2cad6bb85f3a38c1d5ae57d1fc8ca9a65e039897694f822
7
+ data.tar.gz: d1e96159c8ffea8486af3ea921bbaf52fc6b0ce3e52c7d0c6d08a602b630c6e683f800d3c843cfe06ee3e967c7f69aa5afb11ac56da7c3366d0a0d00a6219ca0
@@ -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: action_kit_rest 0.3.2 ruby lib
5
+ # stub: action_kit_rest 0.3.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "action_kit_rest".freeze
9
- s.version = "0.3.2"
9
+ s.version = "0.3.3"
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, "Diego Marcet".freeze, "Jacinda Moore".freeze]
14
- s.date = "2017-09-05"
14
+ s.date = "2017-09-07"
15
15
  s.description = "Gem for interacting with the ActionKit API".freeze
16
16
  s.email = "systems@controlshiftlabs.com".freeze
17
17
  s.extra_rdoc_files = [
@@ -6,7 +6,7 @@ module ActionKitRest
6
6
  end
7
7
 
8
8
  def get(id)
9
- client.get_request("#{normalized_base_path}#{id}/")
9
+ client.get_request("#{normalized_base_path}#{url_escape(id)}/")
10
10
  end
11
11
 
12
12
  def create(params)
@@ -16,7 +16,7 @@ module ActionKitRest
16
16
  end
17
17
 
18
18
  def update(id, params)
19
- client.put_json_request("#{normalized_base_path}#{id}/", params)
19
+ client.put_json_request("#{normalized_base_path}#{url_escape(id)}/", params)
20
20
  get(id)
21
21
  end
22
22
 
@@ -26,6 +26,10 @@ module ActionKitRest
26
26
 
27
27
  private
28
28
 
29
+ def url_escape(string)
30
+ CGI.escape(string.to_s)
31
+ end
32
+
29
33
  def extract_id_from_response(resp)
30
34
  extract_id_from_location(resp.response.headers["location"])
31
35
  end
@@ -2,7 +2,7 @@ module ActionKitRest
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- PATCH = 2
5
+ PATCH = 3
6
6
  BUILD = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_kit_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Woodhull
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-09-05 00:00:00.000000000 Z
13
+ date: 2017-09-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: vertebrae