asset_sync 2.7.0 → 2.8.0

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: 543b0540bba53d960c7d755b04dafb6dd7a884a3073b2043aa3f2de554a9cffb
4
- data.tar.gz: debe4684fcc49e58fc717971595d3db742266aba20ea418ba6a3331a6652534f
3
+ metadata.gz: 74e4b4e4b5b2bfd4c4cfee260974c10edc2c30f20eaf1e78b81a5a5e2968b301
4
+ data.tar.gz: d85f293b10a8c1112abacfe03f2be361924022456c6de596dedc53bd551553c0
5
5
  SHA512:
6
- metadata.gz: 346531ad9fb1ce2065f5becb4c3283d5f3578ff573c19a254f4895e46a863c03cbacd708aa55d616586d02f37baecc7976a52b5dc05470920bae627b30f18e6a
7
- data.tar.gz: 1a7162d20dd6727c5fa1464782ac68b3f20c4ad9b5204e2ca9eb9f3e5e476599ecacfb81f89a76748fab0e714ed23194515b98f95a0632de2acbb6146bc267cf
6
+ metadata.gz: 017ae2ede9e7ab17ceefd97e4ec5d5d0e397f3836ef0ade762522c8a5282e337c14a268a606e6822b15f60d4be4523c487c6076e410b9fbad37ce6d65c9c5458
7
+ data.tar.gz: b8528e7ecb9489e57cc5e1a8ee6f1982e4b16ddc20e2c4d46ec49e38616924943858f6291e329ff69df0a5775ef0676998f3e738ded7a23d166f5148c0c4fddd
@@ -35,6 +35,10 @@ matrix:
35
35
  # bundler version conflict
36
36
  - rvm: 2.3
37
37
  gemfile: gemfiles/rails_4_2.gemfile
38
+ - rvm: 2.4
39
+ gemfile: gemfiles/rails_4_2.gemfile
40
+ - rvm: 2.5
41
+ gemfile: gemfiles/rails_4_2.gemfile
38
42
  - rvm: jruby
39
43
  gemfile: gemfiles/rails_4_2.gemfile
40
44
  - gemfile: gemfiles/rails_6_0.gemfile
@@ -18,6 +18,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
18
18
  - Nothing
19
19
 
20
20
 
21
+ ## [2.8.0] - 2019-06-17
22
+
23
+ ### Added
24
+
25
+ - Add option `fog_port`
26
+ (https://github.com/AssetSync/asset_sync/pull/385)
27
+
28
+
21
29
  ## [2.7.0] - 2019-03-15
22
30
 
23
31
  ### Added
@@ -118,7 +126,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
118
126
 
119
127
  - Only support mime-type >= 2.99,
120
128
  which is released at the end of 2015
121
- - Only support mactivemodel >= 4.1,
129
+ - Only support activemodel >= 4.1,
122
130
  which is released in 2014
123
131
 
124
132
 
@@ -901,7 +909,8 @@ Changes:
901
909
  * Merge branch 'sinatra'
902
910
 
903
911
 
904
- [Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.7.0...HEAD
912
+ [Unreleased]: https://github.com/AssetSync/asset_sync/compare/v2.8.0...HEAD
913
+ [2.8.0]: https://github.com/AssetSync/asset_sync/compare/v2.7.0...v2.8.0
905
914
  [2.7.0]: https://github.com/AssetSync/asset_sync/compare/v2.6.0...v2.7.0
906
915
  [2.6.0]: https://github.com/AssetSync/asset_sync/compare/v2.5.0...v2.6.0
907
916
  [2.5.0]: https://github.com/AssetSync/asset_sync/compare/v2.4.0...v2.5.0
data/README.md CHANGED
@@ -103,10 +103,10 @@ On **non default S3 bucket region**: If your bucket is set to a region that is n
103
103
 
104
104
  If you wish to have your assets sync to a sub-folder of your bucket instead of into the root add the following to your ``production.rb`` file
105
105
 
106
- ```ruby
106
+ ``` ruby
107
107
  # store assets in a 'folder' instead of bucket root
108
108
  config.assets.prefix = "/production/assets"
109
- ​````
109
+ ```
110
110
 
111
111
  Also, ensure the following are defined (in production.rb or application.rb)
112
112
 
@@ -226,6 +226,9 @@ AssetSync.configure do |config|
226
226
  # Change host option in fog (only if you need to)
227
227
  # config.fog_host = 's3.amazonaws.com'
228
228
  #
229
+ # Change port option in fog (only if you need to)
230
+ # config.fog_port = "9000"
231
+ #
229
232
  # Use http instead of https.
230
233
  # config.fog_scheme = 'http'
231
234
  #
@@ -37,6 +37,7 @@ module AssetSync
37
37
  # Amazon AWS
38
38
  attr_accessor :aws_access_key_id, :aws_secret_access_key, :aws_reduced_redundancy, :aws_iam_roles, :aws_signature_version
39
39
  attr_accessor :fog_host # e.g. 's3.amazonaws.com'
40
+ attr_accessor :fog_port # e.g. '9000'
40
41
  attr_accessor :fog_path_style # e.g. true
41
42
  attr_accessor :fog_scheme # e.g. 'http'
42
43
 
@@ -175,6 +176,7 @@ module AssetSync
175
176
  self.enabled = yml["enabled"] if yml.has_key?('enabled')
176
177
  self.fog_provider = yml["fog_provider"]
177
178
  self.fog_host = yml["fog_host"]
179
+ self.fog_port = yml["fog_port"]
178
180
  self.fog_directory = yml["fog_directory"]
179
181
  self.fog_region = yml["fog_region"]
180
182
  self.fog_public = yml["fog_public"] if yml.has_key?("fog_public")
@@ -238,6 +240,7 @@ module AssetSync
238
240
  })
239
241
  end
240
242
  options.merge!({:host => fog_host}) if fog_host
243
+ options.merge!({:port => fog_port}) if fog_port
241
244
  options.merge!({:scheme => fog_scheme}) if fog_scheme
242
245
  options.merge!({:aws_signature_version => aws_signature_version}) if aws_signature_version
243
246
  options.merge!({:path_style => fog_path_style}) if fog_path_style
@@ -17,6 +17,7 @@ module AssetSync
17
17
  config.fog_directory = ENV['FOG_DIRECTORY'] if ENV.has_key?('FOG_DIRECTORY')
18
18
  config.fog_region = ENV['FOG_REGION'] if ENV.has_key?('FOG_REGION')
19
19
  config.fog_host = ENV['FOG_HOST'] if ENV.has_key?('FOG_HOST')
20
+ config.fog_port = ENV['FOG_PORT'] if ENV.has_key?('FOG_PORT')
20
21
  config.fog_scheme = ENV['FOG_SCHEMA'] if ENV.has_key?('FOG_SCHEMA')
21
22
  config.fog_path_style = ENV['FOG_PATH_STYLE'] if ENV.has_key?('FOG_PATH_STYLE')
22
23
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AssetSync
4
- VERSION = "2.7.0".freeze
4
+ VERSION = "2.8.0".freeze
5
5
  end
@@ -13,6 +13,9 @@ if defined?(AssetSync)
13
13
  # Change host option in fog (only if you need to)
14
14
  # config.fog_host = "s3.amazonaws.com"
15
15
  #
16
+ # Change port option in fog (only if you need to)
17
+ # config.fog_port = "9000"
18
+ #
16
19
  # Use http instead of https. Default should be "https" (at least for fog-aws)
17
20
  # config.fog_scheme = "http"
18
21
  <%- elsif google? -%>
@@ -13,6 +13,9 @@ defaults: &defaults
13
13
  # Change host option in fog (only if you need to)
14
14
  # fog_host: "s3.amazonaws.com"
15
15
  #
16
+ # Change port option in fog (only if you need to)
17
+ # config.fog_port = "9000"
18
+ #
16
19
  # Use http instead of https. Default should be "https" (at least for fog-aws)
17
20
  # fog_scheme: "http"
18
21
  <%- elsif google? -%>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Hamilton
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-03-15 00:00:00.000000000 Z
14
+ date: 2019-06-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: fog-core