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 +4 -4
- data/README.md +1 -1
- data/lib/imageboss/path.rb +3 -1
- data/lib/imageboss/version.rb +1 -1
- data/spec/imageboss/client_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f25a5aa57a05a5d1c97cf5daf9d4a44162120965138ea3d289a6bc54e008b49
|
4
|
+
data.tar.gz: b901876243b47fc70be5f83713ae93a1d08abf782e2892231339a99be684d92b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bc081c0edcdee24346810fe57393df2ee95c72e1ef027ecb2efa27c3d92ef00b07dd7c301f821989db3c90f9c40f829e801a162b5597722310b5ae214390eee
|
7
|
+
data.tar.gz: 0e3d37ace65c6aaa049e9fb98fa8f0ccf064dfc754ff31b87c2cae606b1862260427aa09459237fdbe83e239c085fcae002d1b900ae985c15730ea8173b59d2c
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[](https://imageboss.me)
|
2
2
|
|
3
3
|
# ImageBoss Helper for Ruby
|
4
4
|
[](https://travis-ci.org/imageboss/imageboss-rb) [](https://badge.fury.io/rb/imageboss-rb)
|
data/lib/imageboss/path.rb
CHANGED
@@ -42,7 +42,9 @@ module ImageBoss
|
|
42
42
|
@asset_path.gsub(/^\/?(.+)/, "\\1")
|
43
43
|
].join
|
44
44
|
|
45
|
-
|
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
|
data/lib/imageboss/version.rb
CHANGED
@@ -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=
|
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.
|
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-
|
11
|
+
date: 2020-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|