sync_fog 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +71 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/generators/sync_fog/install_generator.rb +9 -0
- data/lib/generators/sync_fog/templates/initializer.rb +60 -0
- data/lib/sync_fog/configuration.rb +75 -0
- data/lib/sync_fog/sync_fog_assets.rb +27 -0
- data/lib/sync_fog/sync_fog_railtie.rb +9 -0
- data/lib/sync_fog/sync_fog_upload.rb +64 -0
- data/lib/sync_fog/version.rb +8 -0
- data/lib/sync_fog.rb +66 -0
- data/lib/tasks/sync_fog.rake +22 -0
- data/sync_fog.gemspec +28 -0
- metadata +151 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 328082eeedeead682bb41bf3774bba91a31bb1a8
|
4
|
+
data.tar.gz: 89c9d199d90cf2259fffbb16715ee3a455eb06f5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 92043f10bae790ff50bbe6616657e256b4512fa77345d7a6395b221cadd25f2f38235ef86d535aaf495508e0be2a0b1935891cc79b4c17fbfb6c3e55632761a8
|
7
|
+
data.tar.gz: 824c5e6d28f6d87b4daab0a8952a8982ea08d9ca2ee243f029fae711a162b9aa3553466850b0a31d614435465885e6bb10cd5d6ec1684ad89fc6027a9b643400
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Benjamin Müller
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
# SyncFog
|
2
|
+
|
3
|
+
SyncFog is a super simple way to upload precompiled (static) assets on a file storage like S3, Rackspace or OpenStack. This is specifically useful if you are deploying to cloud containers like Heroku as you don't want your application containers being responsible for serving static files.
|
4
|
+
|
5
|
+
Once installed, SyncFog updates all changed files on every deploy (rake assets:precomile).
|
6
|
+
|
7
|
+
This gem is an alternative to [asset_sync](https://github.com/AssetSync/asset_sync) as I've had trouble using that with OpenStack (Swift).
|
8
|
+
|
9
|
+
- SyncFog is multi-threaded, so it's kind of fast
|
10
|
+
- SyncFog can be used with any storage supported by the famous [fog gem](https://github.com/fog/fog).
|
11
|
+
- SyncFog is easy to configure (using almost the same attributes as carrierwave!)
|
12
|
+
- SyncFog hooks in automatically on assets:precompile
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
1. Add this line to your application's Gemfile:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem 'sync_fog'
|
20
|
+
```
|
21
|
+
|
22
|
+
1. And then execute:
|
23
|
+
|
24
|
+
```
|
25
|
+
$ bundle
|
26
|
+
```
|
27
|
+
1. Run the generator to build a default config
|
28
|
+
|
29
|
+
```
|
30
|
+
$ rails generate sync_fog:install
|
31
|
+
```
|
32
|
+
1. Checkout and edit the config at ```/config/initializers/sync_fog.rb```
|
33
|
+
|
34
|
+
1. Get the public path of your new asset host
|
35
|
+
|
36
|
+
```
|
37
|
+
$ rake sync_fog:url
|
38
|
+
```
|
39
|
+
1. And use the URL as your asset_host in ```config/environments/production.rb```
|
40
|
+
|
41
|
+
```
|
42
|
+
config.action_controller.asset_host = 'xyz'
|
43
|
+
```
|
44
|
+
|
45
|
+
## Usage
|
46
|
+
|
47
|
+
- Get public URL of the asset container/bucket:
|
48
|
+
|
49
|
+
```
|
50
|
+
$ rake sync_fog:url
|
51
|
+
```
|
52
|
+
- Manually trigger synchronization of assets. This task expects you've precompiled your assets before with ```rake assets:precompile```.
|
53
|
+
|
54
|
+
```
|
55
|
+
$ rake sync_fog:sync
|
56
|
+
```
|
57
|
+
|
58
|
+
## Development
|
59
|
+
|
60
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
61
|
+
|
62
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
63
|
+
|
64
|
+
## Contributing
|
65
|
+
|
66
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ben-ole/sync_fog.
|
67
|
+
|
68
|
+
## License
|
69
|
+
|
70
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
71
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "sync_fog"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
class SyncFog::InstallGenerator < Rails::Generators::Base
|
2
|
+
source_root File.expand_path("../templates", __FILE__)
|
3
|
+
|
4
|
+
desc "This generator creates a fog_sync initializer file with default configuration at config/initializers"
|
5
|
+
def create_initializer_file
|
6
|
+
# initializer "snapshotar.rb", "puts 'this is the beginning'"
|
7
|
+
copy_file 'initializer.rb', File.join('config', 'initializers', 'sync_fog.rb')
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# SyncFog Gem
|
2
|
+
# https://github.com/ben-ole/sync_fog
|
3
|
+
# Benjamin Müller
|
4
|
+
# 2015
|
5
|
+
|
6
|
+
SyncFog.configure do |config|
|
7
|
+
|
8
|
+
##
|
9
|
+
# Basic Fog configuration
|
10
|
+
# see [Fog Docs](http://fog.io/about/provider_documentation.html)
|
11
|
+
# Required to set!
|
12
|
+
#
|
13
|
+
config.fog_credentials = {
|
14
|
+
provider: 'OpenStack',
|
15
|
+
openstack_auth_url: '<auth url>',
|
16
|
+
openstack_username: '<username>',
|
17
|
+
openstack_api_key: '<pw>'
|
18
|
+
}
|
19
|
+
|
20
|
+
##
|
21
|
+
# Bucket/Container to use for syncing.
|
22
|
+
# Note: This container should be only used for assets syncing.
|
23
|
+
# All other files will be removed automatically!
|
24
|
+
# Required to set!
|
25
|
+
#
|
26
|
+
config.fog_directory = "<bucket/container>"
|
27
|
+
|
28
|
+
##
|
29
|
+
# Directory to be synced. This would typically point to public/assets
|
30
|
+
# Required to set!
|
31
|
+
#
|
32
|
+
config.source_dir = "."
|
33
|
+
|
34
|
+
|
35
|
+
# ##
|
36
|
+
# # Metadata attributes to put for each file
|
37
|
+
# # Default is { }
|
38
|
+
# #
|
39
|
+
# config.fog_attributes = { 'Cache-Control' => "public, max-age=#{365.days.to_i}" }
|
40
|
+
|
41
|
+
# ##
|
42
|
+
# # Set this to true if the file names of your assets change
|
43
|
+
# # whenever their content updates (asset digests).
|
44
|
+
# # Default is true
|
45
|
+
# #
|
46
|
+
# config.skip_existing = true
|
47
|
+
|
48
|
+
# ##
|
49
|
+
# # Number of Threads to use simultaniously
|
50
|
+
# # Default is 5
|
51
|
+
# #
|
52
|
+
# config.num_threads = 5
|
53
|
+
|
54
|
+
# ##
|
55
|
+
# # Enable/Disable automatic sync whenever rake assets:precompile runs.
|
56
|
+
# # Default is true
|
57
|
+
# #
|
58
|
+
# config.hook_enabled = true
|
59
|
+
|
60
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# SyncFog Gem
|
2
|
+
# https://github.com/ben-ole/sync_fog
|
3
|
+
# Benjamin Müller
|
4
|
+
# 2015
|
5
|
+
|
6
|
+
module SyncFog
|
7
|
+
|
8
|
+
class Configuration
|
9
|
+
|
10
|
+
##
|
11
|
+
# Basic Fog configuration
|
12
|
+
# see [Fog Docs](http://fog.io/about/provider_documentation.html)
|
13
|
+
# Required to set!
|
14
|
+
#
|
15
|
+
attr_accessor :fog_credentials
|
16
|
+
|
17
|
+
##
|
18
|
+
# Bucket/Container to use for syncing.
|
19
|
+
# Note: This container should be only used for assets syncing.
|
20
|
+
# All other files will be removed automatically!
|
21
|
+
# Required to set!
|
22
|
+
#
|
23
|
+
attr_accessor :fog_directory
|
24
|
+
|
25
|
+
##
|
26
|
+
# Metadata attributes to put for each file
|
27
|
+
# Default is { }
|
28
|
+
#
|
29
|
+
attr_accessor :fog_attributes
|
30
|
+
|
31
|
+
##
|
32
|
+
# Directory to be synced. This would typically point to public/assets
|
33
|
+
# Required to set!
|
34
|
+
#
|
35
|
+
attr_accessor :source_dir
|
36
|
+
|
37
|
+
##
|
38
|
+
# Set this to true if the file names of your assets change
|
39
|
+
# whenever their content updates (asset digests).
|
40
|
+
# Default is true
|
41
|
+
#
|
42
|
+
attr_accessor :skip_existing
|
43
|
+
|
44
|
+
##
|
45
|
+
# Number of Threads to use simultaniously
|
46
|
+
# Default is 5
|
47
|
+
#
|
48
|
+
attr_accessor :num_threads
|
49
|
+
|
50
|
+
|
51
|
+
##
|
52
|
+
# Enable/Disable automatic sync whenever rake assets:precompile runs.
|
53
|
+
# Default is true
|
54
|
+
#
|
55
|
+
attr_accessor :hook_enabled
|
56
|
+
|
57
|
+
|
58
|
+
def initialize #:nodoc:
|
59
|
+
@fog_credentials = { }
|
60
|
+
|
61
|
+
@fog_directory = ""
|
62
|
+
|
63
|
+
@fog_attributes = { }
|
64
|
+
|
65
|
+
@skip_existing = true
|
66
|
+
|
67
|
+
@source_dir = ""
|
68
|
+
|
69
|
+
@num_threads = 5
|
70
|
+
|
71
|
+
@hook_enabled = true
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# SyncFog Gem
|
2
|
+
# https://github.com/ben-ole/sync_fog
|
3
|
+
# Benjamin Müller
|
4
|
+
# 2015
|
5
|
+
|
6
|
+
module SyncFog
|
7
|
+
class SyncFogAssets
|
8
|
+
|
9
|
+
def initialize
|
10
|
+
|
11
|
+
end
|
12
|
+
|
13
|
+
def list(dir=".")
|
14
|
+
|
15
|
+
root_path = Pathname.new File.expand_path('..',dir) # one dir up
|
16
|
+
files = []
|
17
|
+
|
18
|
+
Dir.glob("#{dir}/**/*") do |file|
|
19
|
+
path = Pathname.new file
|
20
|
+
files << path.relative_path_from(root_path) unless %w(. ..).include?(file)
|
21
|
+
end
|
22
|
+
|
23
|
+
files
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# SyncFog Gem
|
2
|
+
# https://github.com/ben-ole/sync_fog
|
3
|
+
# Benjamin Müller
|
4
|
+
# 2015
|
5
|
+
|
6
|
+
require 'fog'
|
7
|
+
require 'parallel'
|
8
|
+
|
9
|
+
module SyncFog
|
10
|
+
class SyncFogUpload
|
11
|
+
|
12
|
+
def initialize(container,config)
|
13
|
+
|
14
|
+
@fog_service = Fog::Storage.new(config)
|
15
|
+
@container = @fog_service.directories.get(container)
|
16
|
+
@skip = SyncFog.configuration.skip_existing
|
17
|
+
@num_threads = SyncFog.configuration.num_threads
|
18
|
+
@meta = SyncFog.configuration.fog_attributes
|
19
|
+
end
|
20
|
+
|
21
|
+
## uploading files
|
22
|
+
def upload(files,dir)
|
23
|
+
|
24
|
+
Parallel.map(files,in_threads: @num_threads) do |source_file|
|
25
|
+
upload_file(source_file,dir)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def upload_file(source_file,dir)
|
30
|
+
path = dir + source_file
|
31
|
+
name = source_file.to_s
|
32
|
+
|
33
|
+
return if File.directory?(path)
|
34
|
+
return if @skip && @container.files.head(name)
|
35
|
+
|
36
|
+
File.open(path) do |data|
|
37
|
+
@container.files.create(key: name, body: data, metadata: @meta)
|
38
|
+
@meta
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
## Removing files
|
43
|
+
def clean_remote(keep_files)
|
44
|
+
keep_files_string = keep_files.map{|f| f.to_s}
|
45
|
+
|
46
|
+
Parallel.map(@container.files,in_threads: @num_threads) do |file|
|
47
|
+
remove_file(file,keep_files_string)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def remove_file(file,keep_files_string)
|
52
|
+
unless keep_files_string.include?(file.key)
|
53
|
+
p "SyncFog: -> removing #{file.key}"
|
54
|
+
file.destroy
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
## infos
|
59
|
+
def public_url
|
60
|
+
@container.public_url
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
end
|
data/lib/sync_fog.rb
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# SyncFog Gem
|
2
|
+
# https://github.com/ben-ole/sync_fog
|
3
|
+
# Benjamin Müller
|
4
|
+
# 2015
|
5
|
+
|
6
|
+
require "sync_fog/version"
|
7
|
+
require "sync_fog/configuration"
|
8
|
+
require "sync_fog/sync_fog_upload"
|
9
|
+
require "sync_fog/sync_fog_assets"
|
10
|
+
require "sync_fog/sync_fog_railtie" if defined?(Rails)
|
11
|
+
|
12
|
+
|
13
|
+
module SyncFog
|
14
|
+
|
15
|
+
def self.configuration
|
16
|
+
@configuration ||= Configuration.new
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.configure
|
20
|
+
yield(configuration) if block_given?
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.sync
|
24
|
+
|
25
|
+
# check if hook is disabled
|
26
|
+
return unless SyncFog.configuration.hook_enabled
|
27
|
+
|
28
|
+
p "SyncFog: -- started syncing"
|
29
|
+
|
30
|
+
container_name = SyncFog.configuration.fog_directory
|
31
|
+
source_dir = SyncFog.configuration.source_dir
|
32
|
+
|
33
|
+
p "SyncFog: -- source directory is: #{source_dir}"
|
34
|
+
|
35
|
+
# check if target container exists
|
36
|
+
fog_uploader = SyncFogUpload.new( container_name, SyncFog.configuration.fog_credentials )
|
37
|
+
|
38
|
+
# list files to upload
|
39
|
+
files = SyncFogAssets.new.list( source_dir )
|
40
|
+
|
41
|
+
p "SyncFog: -- #{files.count} files found"
|
42
|
+
|
43
|
+
# upload files
|
44
|
+
p "SyncFog: -- uploading"
|
45
|
+
root_path = Pathname.new File.expand_path('..',source_dir) # one dir up
|
46
|
+
fog_uploader.upload( files, root_path )
|
47
|
+
|
48
|
+
# delete old files
|
49
|
+
p "SyncFog: -- cleaning up old files"
|
50
|
+
fog_uploader.clean_remote( files )
|
51
|
+
|
52
|
+
# info
|
53
|
+
p "SyncFog: -- public url: #{fog_uploader.public_url}"
|
54
|
+
|
55
|
+
p "SyncFog: -- done"
|
56
|
+
end
|
57
|
+
|
58
|
+
def self.public_url
|
59
|
+
container_name = SyncFog.configuration.fog_directory
|
60
|
+
|
61
|
+
fog_uploader = SyncFogUpload.new( container_name, SyncFog.configuration.fog_credentials )
|
62
|
+
|
63
|
+
p "SyncFog: -- public url: #{fog_uploader.public_url}"
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# SyncFog Gem
|
2
|
+
# https://github.com/ben-ole/sync_fog
|
3
|
+
# Benjamin Müller
|
4
|
+
# 2015
|
5
|
+
namespace :sync_fog do
|
6
|
+
|
7
|
+
desc "sync assets with fog container"
|
8
|
+
task sync: :environment do
|
9
|
+
|
10
|
+
SyncFog.sync
|
11
|
+
end
|
12
|
+
|
13
|
+
desc "get public url of container"
|
14
|
+
task url: :environment do
|
15
|
+
|
16
|
+
SyncFog.public_url
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
Rake::Task["assets:precompile"].enhance [Rake::Task["sync_fog:sync"]]
|
22
|
+
|
data/sync_fog.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'sync_fog/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "sync_fog"
|
8
|
+
spec.version = SyncFog::VERSION
|
9
|
+
spec.authors = ["Benjamin Müller"]
|
10
|
+
spec.email = ["elchbenny@googlemail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Uploads the precompiled assets in public/assets to any fog storage.}
|
13
|
+
spec.description = %q{Uploads the precompiled assets in public/assets to any fog storage.}
|
14
|
+
spec.homepage = "https://github.com/ben-ole/sync_fog"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_development_dependency 'bundler', '~> 1.10', '>= 1.10.6'
|
23
|
+
spec.add_development_dependency 'rake', '~> 10.4', '>= 10.4.2'
|
24
|
+
spec.add_development_dependency 'minitest', '~> 5.8', '>= 5.8.2'
|
25
|
+
|
26
|
+
spec.add_runtime_dependency 'fog', '~> 1.35'
|
27
|
+
spec.add_runtime_dependency 'parallel', '~> 1.6'
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,151 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sync_fog
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Benjamin Müller
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
- - '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.10.6
|
23
|
+
type: :development
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.10'
|
30
|
+
- - '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.10.6
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rake
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ~>
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '10.4'
|
40
|
+
- - '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 10.4.2
|
43
|
+
type: :development
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ~>
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '10.4'
|
50
|
+
- - '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 10.4.2
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: minitest
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ~>
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '5.8'
|
60
|
+
- - '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 5.8.2
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '5.8'
|
70
|
+
- - '>='
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 5.8.2
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: fog
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ~>
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '1.35'
|
80
|
+
type: :runtime
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ~>
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '1.35'
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: parallel
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '1.6'
|
94
|
+
type: :runtime
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ~>
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '1.6'
|
101
|
+
description: Uploads the precompiled assets in public/assets to any fog storage.
|
102
|
+
email:
|
103
|
+
- elchbenny@googlemail.com
|
104
|
+
executables: []
|
105
|
+
extensions: []
|
106
|
+
extra_rdoc_files: []
|
107
|
+
files:
|
108
|
+
- .gitignore
|
109
|
+
- .travis.yml
|
110
|
+
- CODE_OF_CONDUCT.md
|
111
|
+
- Gemfile
|
112
|
+
- LICENSE.txt
|
113
|
+
- README.md
|
114
|
+
- Rakefile
|
115
|
+
- bin/console
|
116
|
+
- bin/setup
|
117
|
+
- lib/generators/sync_fog/install_generator.rb
|
118
|
+
- lib/generators/sync_fog/templates/initializer.rb
|
119
|
+
- lib/sync_fog.rb
|
120
|
+
- lib/sync_fog/configuration.rb
|
121
|
+
- lib/sync_fog/sync_fog_assets.rb
|
122
|
+
- lib/sync_fog/sync_fog_railtie.rb
|
123
|
+
- lib/sync_fog/sync_fog_upload.rb
|
124
|
+
- lib/sync_fog/version.rb
|
125
|
+
- lib/tasks/sync_fog.rake
|
126
|
+
- sync_fog.gemspec
|
127
|
+
homepage: https://github.com/ben-ole/sync_fog
|
128
|
+
licenses:
|
129
|
+
- MIT
|
130
|
+
metadata: {}
|
131
|
+
post_install_message:
|
132
|
+
rdoc_options: []
|
133
|
+
require_paths:
|
134
|
+
- lib
|
135
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - '>='
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
requirements: []
|
146
|
+
rubyforge_project:
|
147
|
+
rubygems_version: 2.4.8
|
148
|
+
signing_key:
|
149
|
+
specification_version: 4
|
150
|
+
summary: Uploads the precompiled assets in public/assets to any fog storage.
|
151
|
+
test_files: []
|