asset_sync 2.15.0 → 2.15.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: a42f7c7165955b9d333a17c2c734948699b76dfdc1682c37f3188af87896d72d
4
- data.tar.gz: 7b0cec36a35ace13ceac1aa6e1681c608b3a4ef688ba8870d1d32e9c7d8160b1
3
+ metadata.gz: 3b257792e6446e212ee50bb6913aa3aee7ffad9dec336995580e4f88355386a7
4
+ data.tar.gz: fbddb3142c4a27aa5f0f8f04f32d3addf1719e7df841a23e85f6765ea252146b
5
5
  SHA512:
6
- metadata.gz: 2d6ff1f9c5b9c9fa8dd53ee0000d00d42d9746801e9c5dd10400b8c18ae177c2dfd9f5f749bae52553c79550e71c5940771a069bfbe807af437744a61fc6fe72
7
- data.tar.gz: 565480826f1820bbb8b4438886fa92d6f49369209ddbb0981f5cdb948b03d73ee5bbb4803febef56907d279a434cc819f2877804a7e5135ad28beb412c6a91ac
6
+ metadata.gz: f4a78f501ad9a2e219f9992b97a8b4a4130b13bea18fb7068a5fb47018f51b7b74fa3cfea110ef76d2897df5e19716d19cc594edb540fd95ca6f32a30ba07384
7
+ data.tar.gz: cac00fd92e51292ff02b1428ff81db52350d2cc2cf2101fc08bc1964661a163c7d3f89d240eb0fb6be298b7f8438a18e94f768024699d0146ea54d732c3f8da1
data/CHANGELOG.md CHANGED
@@ -18,6 +18,18 @@ This project adheres to [Semantic Versioning](http://semver.org/).
18
18
  - Nothing
19
19
 
20
20
 
21
+ ## [2.15.1] - 2021-11-22
22
+
23
+ ### Changed
24
+
25
+ - Update dev dependency `fog-azure-rm` to become `gitlab-fog-azure-rm`
26
+
27
+ ### Fixed
28
+
29
+ - Fix YAML config file parsing with Psych v4
30
+ (https://github.com/AssetSync/asset_sync/pull/422)
31
+
32
+
21
33
  ## [2.15.0] - 2021-08-05
22
34
 
23
35
  ### Added
@@ -1026,7 +1038,8 @@ Changes:
1026
1038
  * Merge branch 'sinatra'
1027
1039
 
1028
1040
 
1029
- [Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.15.0...HEAD
1041
+ [Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.15.1...HEAD
1042
+ [2.15.1]: https://github.com/AssetSync/asset_sync/compare/v2.15.0...v2.15.1
1030
1043
  [2.15.0]: https://github.com/AssetSync/asset_sync/compare/v2.14.2...v2.15.0
1031
1044
  [2.14.2]: https://github.com/AssetSync/asset_sync/compare/v2.14.1...v2.14.2
1032
1045
  [2.14.1]: https://github.com/AssetSync/asset_sync/compare/v2.14.0...v2.14.1
data/README.md CHANGED
@@ -35,7 +35,10 @@ Or, to use Azure Blob storage, configure as this.
35
35
 
36
36
  ``` ruby
37
37
  gem "asset_sync"
38
- gem "fog-azure-rm"
38
+ gem "gitlab-fog-azure-rm"
39
+
40
+ # This gem seems unmaintianed
41
+ # gem "fog-azure-rm"
39
42
  ```
40
43
 
41
44
  To use Backblaze B2, insert these.
data/asset_sync.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.add_development_dependency('mime-types', ">= 3.0")
28
28
 
29
29
  s.add_development_dependency "fog-aws"
30
- s.add_development_dependency "fog-azure-rm"
30
+ s.add_development_dependency "gitlab-fog-azure-rm"
31
31
  s.add_development_dependency "fog-backblaze"
32
32
 
33
33
  s.add_development_dependency "uglifier"
@@ -1,3 +1,5 @@
1
+ require "yaml"
2
+
1
3
  module AssetSync
2
4
 
3
5
  class << self
@@ -60,6 +62,14 @@ module AssetSync
60
62
  stdout.puts msg unless config.log_silently?
61
63
  end
62
64
 
65
+ def load_yaml(yaml)
66
+ if YAML.respond_to?(:unsafe_load)
67
+ YAML.unsafe_load(yaml)
68
+ else
69
+ YAML.load(yaml)
70
+ end
71
+ end
72
+
63
73
  def enabled?
64
74
  config.enabled?
65
75
  end
@@ -2,7 +2,6 @@
2
2
 
3
3
  require "active_model"
4
4
  require "erb"
5
- require "yaml"
6
5
 
7
6
  module AssetSync
8
7
  class Config
@@ -184,7 +183,7 @@ module AssetSync
184
183
  end
185
184
 
186
185
  def yml
187
- @yml ||= ::YAML.load(::ERB.new(IO.read(yml_path)).result)[::Rails.env] || {}
186
+ @yml ||= ::AssetSync.load_yaml(::ERB.new(IO.read(yml_path)).result)[::Rails.env] || {}
188
187
  end
189
188
 
190
189
  def yml_path
@@ -117,7 +117,7 @@ module AssetSync
117
117
  return manifest.assets.values.map { |f| File.join(self.config.assets_prefix, f) }
118
118
  elsif File.exist?(self.config.manifest_path)
119
119
  log "Using: Manifest #{self.config.manifest_path}"
120
- yml = YAML.load(IO.read(self.config.manifest_path))
120
+ yml = AssetSync.load_yaml(IO.read(self.config.manifest_path))
121
121
 
122
122
  return yml.map do |original, compiled|
123
123
  # Upload font originals and compiled
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AssetSync
4
- VERSION = "2.15.0"
4
+ VERSION = "2.15.1"
5
5
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.0
4
+ version: 2.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Hamilton
8
8
  - David Rice
9
9
  - Phil McClure
10
10
  - Toby Osbourn
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-08-05 00:00:00.000000000 Z
14
+ date: 2021-11-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: fog-core
@@ -140,7 +140,7 @@ dependencies:
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  - !ruby/object:Gem::Dependency
143
- name: fog-azure-rm
143
+ name: gitlab-fog-azure-rm
144
144
  requirement: !ruby/object:Gem::Requirement
145
145
  requirements:
146
146
  - - ">="
@@ -272,7 +272,7 @@ homepage: https://github.com/rumblelabs/asset_sync
272
272
  licenses:
273
273
  - MIT
274
274
  metadata: {}
275
- post_install_message:
275
+ post_install_message:
276
276
  rdoc_options: []
277
277
  require_paths:
278
278
  - lib
@@ -287,8 +287,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
287
287
  - !ruby/object:Gem::Version
288
288
  version: '0'
289
289
  requirements: []
290
- rubygems_version: 3.2.25
291
- signing_key:
290
+ rubygems_version: 3.2.31
291
+ signing_key:
292
292
  specification_version: 4
293
293
  summary: Synchronises Assets in a Rails 3 application and Amazon S3/Cloudfront and
294
294
  Rackspace Cloudfiles