imageboss-rb 2.1.1 → 2.1.2

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: 8f25a5aa57a05a5d1c97cf5daf9d4a44162120965138ea3d289a6bc54e008b49
4
- data.tar.gz: b901876243b47fc70be5f83713ae93a1d08abf782e2892231339a99be684d92b
3
+ metadata.gz: 1cf2c336048cec741e9e6b56ea4e39f78c04967d5f64b27a2d227d7435b5e8dc
4
+ data.tar.gz: e7d6052772952f67a99a830e1df709dc5a6306926acb71bb102dde1f186f4691
5
5
  SHA512:
6
- metadata.gz: 1bc081c0edcdee24346810fe57393df2ee95c72e1ef027ecb2efa27c3d92ef00b07dd7c301f821989db3c90f9c40f829e801a162b5597722310b5ae214390eee
7
- data.tar.gz: 0e3d37ace65c6aaa049e9fb98fa8f0ccf064dfc754ff31b87c2cae606b1862260427aa09459237fdbe83e239c085fcae002d1b900ae985c15730ea8173b59d2c
6
+ metadata.gz: 20de9e0baeb48f6a2ff7bd52e97474ff50a6305a94bf857ca3ba23aee80d5547f09358130fd6a944822a560fff2666ceb814e5f976ccb0cc389c6527f879fa7a
7
+ data.tar.gz: 736104c4374b86f0b0beddc67831a6e9cbe1aa89664b190877f6e24cb863844496f5c6e25e9244ee6ef39ee1997e2ac350e7b5126172219240ed841f9527c330
@@ -73,6 +73,7 @@ module ImageBoss
73
73
  def parse_options(options)
74
74
  opts = []
75
75
  (options || {}).each_key do |k|
76
+ options[k] = k.to_s == "wmk-path" ? CGI.escape(options[k]) : options[k]
76
77
  opts << [k.to_s, options[k] ].join(':')
77
78
  end
78
79
  opts.join(',')
@@ -1,3 +1,3 @@
1
1
  module ImageBoss
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
@@ -41,6 +41,11 @@ describe ImageBoss::Client do
41
41
  it { expect(image_url).to eq "#{service}/#{source}/cover/100x100/animation:true/assets/img01.jpg" }
42
42
  end
43
43
 
44
+ context 'with options #3' do
45
+ let(:operation_args) { [:cover, width: 100, height: 100, options: { "wmk-path": "/my/nice/image.jpg" } ] }
46
+ it { expect(image_url).to eq "#{service}/#{source}/cover/100x100/wmk-path:%2Fmy%2Fnice%2Fimage.jpg/assets/img01.jpg" }
47
+ end
48
+
44
49
  context 'mode' do
45
50
  let(:operation_args) { [:cover, mode: :entropy, width: 100, height: 100 ] }
46
51
  it { expect(image_url).to eq "#{service}/#{source}/cover:entropy/100x100/assets/img01.jpg" }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imageboss-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Escobar