imageboss-rb 2.1.0 → 2.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: 2accf545dd9b59902fdb8563cdcc357a6c65a9b5027c4c2983880edf76a0bd05
4
- data.tar.gz: 68f3e5ceccbe24a201b0376e3ce290bfa936d9e572f32f0e3e9906b0619baf03
3
+ metadata.gz: 8f25a5aa57a05a5d1c97cf5daf9d4a44162120965138ea3d289a6bc54e008b49
4
+ data.tar.gz: b901876243b47fc70be5f83713ae93a1d08abf782e2892231339a99be684d92b
5
5
  SHA512:
6
- metadata.gz: 101b7a57abdf76727184d1caeaf0df11a338f73a9700284cc08fdb28689377c0a11f2b4a79e2143edbb8f386e7d30285bd0f04c12b06427fb3b7120048a113d6
7
- data.tar.gz: 9c80869ef7ac386926f0fc4d5d9489f5b9f1886c1371f8e276e12acb5117eaef5002a1f5b1d2de09b9618c2baec163f224d5590dbeb97d9abf90fafdac110523
6
+ metadata.gz: 1bc081c0edcdee24346810fe57393df2ee95c72e1ef027ecb2efa27c3d92ef00b07dd7c301f821989db3c90f9c40f829e801a162b5597722310b5ae214390eee
7
+ data.tar.gz: 0e3d37ace65c6aaa049e9fb98fa8f0ccf064dfc754ff31b87c2cae606b1862260427aa09459237fdbe83e239c085fcae002d1b900ae985c15730ea8173b59d2c
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![ImageBoss logo](https://img.imageboss.me/width/180/https://imageboss.me/emails/logo-2@2x.png)](https://imageboss.me)
1
+ [![ImageBoss logo](https://img.imageboss.me/boss-images/width/180/emails/logo-2@2x.png)](https://imageboss.me)
2
2
 
3
3
  # ImageBoss Helper for Ruby
4
4
  [![Build Status](https://travis-ci.org/imageboss/imageboss-rb.svg?branch=master)](https://travis-ci.org/imageboss/imageboss-rb) [![Gem Version](https://badge.fury.io/rb/imageboss-rb.svg)](https://badge.fury.io/rb/imageboss-rb)
@@ -42,7 +42,9 @@ module ImageBoss
42
42
  @asset_path.gsub(/^\/?(.+)/, "\\1")
43
43
  ].join
44
44
 
45
- @secret == false ? parse(recipe) : add_params(parse(recipe), { bossToken: create_token(@asset_path) })
45
+ recipe_url = parse(recipe)
46
+ recipe_path = parse(recipe).gsub(SERVICE_URL, '')
47
+ @secret == false ? recipe_url : add_params(recipe_url, { bossToken: create_token(recipe_path) })
46
48
  end
47
49
 
48
50
  private
@@ -1,3 +1,3 @@
1
1
  module ImageBoss
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
@@ -99,7 +99,7 @@ describe ImageBoss::Client do
99
99
  context 'initialize' do
100
100
  context 'width' do
101
101
  let(:operation_args) { [:width, width: 100 ] }
102
- it { expect(image_url).to eq "#{service}/#{source}/width/100/assets/img01.jpg?existing=oh&bossToken=ff74a46c7228ee4262c39b8d501c488293c5be9d433bb9ca957f32c9c3d844ab" }
102
+ it { expect(image_url).to eq "#{service}/#{source}/width/100/assets/img01.jpg?existing=oh&bossToken=92812e6cffe821d7c30a21b5fbddc8ce095f7607d213e12f30369597a18c5ef0" }
103
103
  end
104
104
  end
105
105
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imageboss-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Escobar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-19 00:00:00.000000000 Z
11
+ date: 2020-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec