nimbu-api 0.4.2 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72c7ea15acaf58e80c0e95ec23a83b6c79a379a909acd2685a04cad3aa4745d5
4
- data.tar.gz: 06fbc38d78cb6f8af4dfea3c95dca449b4260eb3f59be9df5c4571cc2dae6c23
3
+ metadata.gz: c90781f56e3b58c95a49e9ab8f5ac7e57750c64491347f041991481d113e7c82
4
+ data.tar.gz: 3f0f1ea716b65f7bbf23dfcee37e2d9856772cc5ae8fa663f43dd6df0ac69f74
5
5
  SHA512:
6
- metadata.gz: 9ceba89fd1f407ad764d61449cfdf17e4909578ecb444889065316236f7f1e7b269dc1333cf8ce49379c951d5dc7e4308614b47ff083c8c3275fe34760e330fa
7
- data.tar.gz: 8ccb95a44f6e651dcaf4505dba3e45f280df7bcce356b64a9f3916af00a9a56bffdaf48d4947720957a40eb1ba9d3495d8afaad611452126826327b42a637284
6
+ metadata.gz: 16347208b44ab18209d19064a8be29289694c4b367db628be23874291beec515650b720ed31c17d5de6d1b328307b21317400b0feb57564c33695d9c462d030f
7
+ data.tar.gz: c524519ab7e32ff73fc2cdc83c31a42a1f4216beb83bc44ab2341a4f8b05cbf183c71d6f59aa73ebb2828ec4726c271bc457f182b3f30d3a991c176a6f697682
@@ -6,12 +6,13 @@ module Nimbu
6
6
 
7
7
  def create(*args)
8
8
  arguments(args, :required => [:theme_id])
9
-
10
9
  forced = arguments.params.delete("force")
11
- query_params = {}
12
- query_params = {force: forced} unless forced.nil?
13
10
 
14
- post_request("/themes/#{theme_id}/assets", arguments.params, {:with_attachments => true, :params => query_params})
11
+ if !forced.nil?
12
+ post_request("/themes/#{theme_id}/assets?force=true", arguments.params, :with_attachments => true)
13
+ else
14
+ post_request("/themes/#{theme_id}/assets", arguments.params, :with_attachments => true)
15
+ end
15
16
  end
16
17
 
17
18
  def delete(*args)
@@ -61,8 +61,8 @@ module Nimbu
61
61
  request.body = extract_data_from_params(params) unless params.empty?
62
62
  end
63
63
  else
64
- request.path = path
65
64
  request.body = params
65
+ request.url(path)
66
66
  end
67
67
  end
68
68
  Response::Wrapper.new(response, self).auto_paginate
@@ -1,5 +1,5 @@
1
1
  module Nimbu
2
2
  module API
3
- VERSION = "0.4.2"
3
+ VERSION = "0.4.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nimbu-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Dedene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-30 00:00:00.000000000 Z
11
+ date: 2019-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie