docker_rails_proxy 0.0.9 → 0.0.10

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
  SHA1:
3
- metadata.gz: f86131cf495894e579eaa487945c67dd2c62c06d
4
- data.tar.gz: 2f1ea0e82dc79ad2b15b486fc8162e71617c3e09
3
+ metadata.gz: 482f5b31d3f9c713c16a356a03b922cc8af3c101
4
+ data.tar.gz: d0a88b59450098afa2c61bef41c5b70941d51976
5
5
  SHA512:
6
- metadata.gz: 4a17dafc9cbc02fbd025a7a504b481921e5314f33b36d3408c3e53eddf69b25800fd944f4f04965ada62f61f766cac064c9f52f7f3b653bd58483f2baa62558b
7
- data.tar.gz: fd0ffec4967c8ebf43286ec3f0f69a1cde7d95e0ec900d60d08770884adb0036b3456f0bbe7f13bed85e350829928e539b7c387b0788bfa4f3e22c1de772f7b9
6
+ metadata.gz: bf4f656786e8e4b7cfbac98bc66a7f2afa1deb8cef534df99f5c79aa1c7c338f4f9b63a3485ad123076d8fceab0726ba298b74e41401ce411b212c8de4023c83
7
+ data.tar.gz: 402d732079a1723be4ccbdcd199dc6f23c71a234b38b97e963b0aa6d98f9b1e1e9a46f2e0bd93ba1c820888874a7ba8c51c5a7ef6964114ab7da7877fb496f52
@@ -1,9 +1,25 @@
1
1
  module DockerRailsProxy
2
2
  module Rsync
3
- def self.included(base)
4
- base.extend(ClassMethods)
3
+ class << self
4
+ attr_accessor :exclusions
5
+
6
+ def included(base)
7
+ base.extend(ClassMethods)
8
+ end
5
9
  end
6
10
 
11
+ self.exclusions = %w[
12
+ tmp/backups
13
+ tmp/cache
14
+ tmp/letter_opener
15
+ tmp/pids
16
+ tmp/sockets
17
+ tmp/sessions
18
+ coverage
19
+ log
20
+ .git*
21
+ ]
22
+
7
23
  module ClassMethods
8
24
  end
9
25
 
@@ -66,15 +82,7 @@ module DockerRailsProxy
66
82
  def sync_app(source:, target:)
67
83
  system <<-EOS
68
84
  rsync -avqP --no-owner --no-group \
69
- --exclude 'tmp/backups' \
70
- --exclude 'tmp/cache' \
71
- --exclude 'tmp/letter_opener' \
72
- --exclude 'tmp/pids' \
73
- --exclude 'tmp/sockets' \
74
- --exclude 'tmp/sessions' \
75
- --exclude 'coverage' \
76
- --exclude 'log' \
77
- --exclude '.git*' \
85
+ #{Rsync.exclusions.map{ |e| "--exclude '#{e}'" }.join(' '.freeze)} \
78
86
  --force \
79
87
  --delete \
80
88
  #{source} #{target}
@@ -1,9 +1,9 @@
1
- class Fixnum
2
- def present?
3
- true
4
- end
1
+ #1.class.class_eval do
2
+ #def present?
3
+ #true
4
+ #end
5
5
 
6
- def blank?
7
- false
8
- end
9
- end
6
+ #def blank?
7
+ #false
8
+ #end
9
+ #end
@@ -1,3 +1,3 @@
1
1
  module DockerRailsProxy
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker_rails_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jairo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-06-23 00:00:00.000000000 Z
12
+ date: 2017-11-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Configures docker-compose and provides rails command helpers
15
15
  email:
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  version: '0'
73
73
  requirements: []
74
74
  rubyforge_project:
75
- rubygems_version: 2.5.1
75
+ rubygems_version: 2.6.14
76
76
  signing_key:
77
77
  specification_version: 4
78
78
  summary: docker, docker-compose and rails wrapper