action_kit_rest 0.3.2 → 0.3.3
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/action_kit_rest.gemspec +3 -3
 - data/lib/action_kit_rest/base.rb +6 -2
 - data/lib/action_kit_rest/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: b0bbd2d382da245f55b9e6db51d485ed90bcf764
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 02a6d7e429e7b4f1ecfa88dbef18c87304481d20
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 13a48eefbd474969f1485c13d9c4387e53271b87ee19826670e00b891c6fc87e4df3e1c375158053e2cad6bb85f3a38c1d5ae57d1fc8ca9a65e039897694f822
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: d1e96159c8ffea8486af3ea921bbaf52fc6b0ce3e52c7d0c6d08a602b630c6e683f800d3c843cfe06ee3e967c7f69aa5afb11ac56da7c3366d0a0d00a6219ca0
         
     | 
    
        data/action_kit_rest.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: action_kit_rest 0.3. 
     | 
| 
      
 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. 
     | 
| 
      
 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- 
     | 
| 
      
 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 = [
         
     | 
    
        data/lib/action_kit_rest/base.rb
    CHANGED
    
    | 
         @@ -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
         
     | 
    
        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. 
     | 
| 
      
 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- 
     | 
| 
      
 13 
     | 
    
         
            +
            date: 2017-09-07 00:00:00.000000000 Z
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies:
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       16 
16 
     | 
    
         
             
              name: vertebrae
         
     |