cloudimage 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c02d5fa30289aa70eb6b0d94e13f31130e5c1918ffb18d45197bb0b62cda26de
4
- data.tar.gz: ce5da501f8200577f7c9003dba581b59f88628c99a03d54fa662ed0f336737fd
3
+ metadata.gz: 4367d92586decc3e9c65338418bad7a9b6b741501de236f72d421a44713ec9e1
4
+ data.tar.gz: e5003ebd0e1b125007b395dfbe2c04256f52cec0d452428fa82fb154ed75eb56
5
5
  SHA512:
6
- metadata.gz: f698aefba14fee30249e29e431cf53d1e25440c97c08731ac4c050ba0bc58a95eeeac93143301fdd7cc31d7e96a4cdedac653aa832b61adf2f8c2a7681748d52
7
- data.tar.gz: 3a58f037be0329dfbdfd4c1b0d0a71848caaf7d9c42fc1e9425d5f4c43015b81ee60cec29ef84cbf3318a6c195af851d82ab042d12166e7e98ae16bacff5bf2b
6
+ metadata.gz: 4d614cd97790eec3443da301aae5b12fa733018e08934b5a5bc41604179537a36573bb44997bcbd9ef6677e678874fc81a4a73a6e55e87727233a84af1f9892d
7
+ data.tar.gz: 9adeccc55a9d1a3b3368a84657ac9954243e1eefa1fc5e0fb253385bb57d08cc0e1d75f68805cdfde7352a0bcdcefea533a8606b11960402dbe7f55127543f26
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.6.0](https://github.com/scaleflex/cloudimage-rb/tree/v0.6.0) (2020-08-16)
4
+
5
+ [Full Changelog](https://github.com/scaleflex/cloudimage-rb/compare/v0.5.0...v0.6.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Add srcset generation [\#27](https://github.com/scaleflex/cloudimage-rb/pull/27) ([janklimo](https://github.com/janklimo))
10
+ - Add default alias [\#26](https://github.com/scaleflex/cloudimage-rb/pull/26) ([janklimo](https://github.com/janklimo))
11
+ - Configurable API version URL component [\#25](https://github.com/scaleflex/cloudimage-rb/pull/25) ([janklimo](https://github.com/janklimo))
12
+
3
13
  ## [v0.5.0](https://github.com/scaleflex/cloudimage-rb/tree/v0.5.0) (2020-08-02)
4
14
 
5
15
  [Full Changelog](https://github.com/scaleflex/cloudimage-rb/compare/v0.4.0...v0.5.0)
data/README.md CHANGED
@@ -293,6 +293,7 @@ are expected to adhere to the [code of conduct][code-of-conduct].
293
293
  Among others, `cloudimage` is used to power the following apps:
294
294
 
295
295
  - [Robin PRO][robin-pro] - Fast, beautiful, mobile-friendly image galleries for Shopify stores.
296
+ - [Spotlightify][spotlightify] - Turning the spotlight on the best Shopify stores.
296
297
 
297
298
  Using this gem in your app? Let us know in [this issue](https://github.com/scaleflex/cloudimage-rb/issues/8)
298
299
  so that we can feature it.
@@ -303,4 +304,5 @@ so that we can feature it.
303
304
  [invalidation-docs]: https://docs.cloudimage.io/go/cloudimage-documentation-v7/en/caching-acceleration/invalidation-api
304
305
  [responsive-images]: https://docs.cloudimage.io/go/cloudimage-documentation-v7/en/responsive-images
305
306
  [robin-pro]: https://apps.shopify.com/robin-pro-image-gallery
307
+ [spotlightify]: https://www.spotlightify.com/
306
308
  [url-prefix]: https://docs.cloudimage.io/go/cloudimage-documentation-v7/en/domains-urls/origin-url-prefix
@@ -63,10 +63,13 @@ module Cloudimage
63
63
  end
64
64
 
65
65
  def apply_aliases(path)
66
- config[:aliases][default_alias] = ''
66
+ # path and aliases can be frozen
67
+ aliases = config[:aliases].dup
68
+
69
+ aliases[default_alias] = ''
67
70
 
68
71
  path.dup.tap do |input|
69
- config[:aliases].each do |source, target|
72
+ aliases.each do |source, target|
70
73
  input.sub!(source, target)
71
74
  end
72
75
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudimage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Klimo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-16 00:00:00.000000000 Z
11
+ date: 2020-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable