jahuty 1.1.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61b5987684f1e89d4348aa5498aec599ef0c2e7b2af7519ac854ea478f824580
4
- data.tar.gz: 60bc127f9dc347dad45886e384b252d2d3db49385cc12debf266429c6c70eace
3
+ metadata.gz: ff13faee32c61d478e8fabba2b5dd1167580ecac2eb1a422fadae594ccd08658
4
+ data.tar.gz: d2c91dce7f2bf07882d7630165369442fc069e2e3bb642e7efb61100e3ac23a6
5
5
  SHA512:
6
- metadata.gz: a1a44d6531dae4b32a3f988e2fdfc1b5c0e28e36823858b47c83fd77a30de09cd73508fbeeb7be1128508fce5d0ec2d6781f5f2e9c5d5b91de14937b886ff686
7
- data.tar.gz: 30de9caa1cb3175938899c698f4ab5d0acf8f526b59a213a5450bb87d9c24e9561a0176de18f69a1625d4d2e44b6037082b47d05e1542672107bceae4eb59145
6
+ metadata.gz: 368bbb9bada206a90887549a7757449ff8d8ac4371ba3004d483f87bfcb088c7cd27ed2597ab09e90250dafdd8ac7e5174d7021f79b03efd305c00bd154d5e79
7
+ data.tar.gz: 8ceda7e751c0c5c6f3fce92e9274545ae02d55afd3f71f8d752ccac440056ed6cdcf7c9129d89cf46015eccb633a6ac28d08c9c9fd2975e306d4075517139024
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 1.1.1 - 2020-03-15
9
+
10
+ - Change snippet parameters to JSON query string parameter (e.g., `params={"foo":"bar"}`) from serialized query string parameter (e.g.,`params[foo]=bar`).
11
+
8
12
  ## 1.1.0 - 2020-03-14
9
13
 
10
14
  - Add snippet parameters.
@@ -9,7 +9,9 @@ module Jahuty
9
9
  end
10
10
 
11
11
  def call(id, params = {})
12
- response = @connection.get("snippets/#{id}", { params: params })
12
+ options = { params: params.to_json } if !params.empty?
13
+
14
+ response = @connection.get("snippets/#{id}", options || {})
13
15
 
14
16
  payload = JSON.parse(response.body, symbolize_names: true)
15
17
 
@@ -1,3 +1,3 @@
1
1
  module Jahuty
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jahuty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Clayton
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-14 00:00:00.000000000 Z
11
+ date: 2020-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday