rumination 0.17 → 0.17.1

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
- SHA1:
3
- metadata.gz: 2bdc6e49ac77219cbf0d227acfe40f1a35438e14
4
- data.tar.gz: 7fc6a5d0565bda2558f3f2ad0e1eb48c4429d1d0
2
+ SHA256:
3
+ metadata.gz: 4f050226355db89e430860a55f3059bea84ea77f3616ec86e68b1ad8b602d82c
4
+ data.tar.gz: 292fd34d4b5c5ddb0531ad4865c322564122b264d4a0bff12943f62171cbaaa9
5
5
  SHA512:
6
- metadata.gz: 1be83fead2054acf0c28c35d130c3354faa3e764ebb0c64efcef812d54fa1159626c079be00f9e7386abb2780d326d247dff532dce9899731fdab6405ddc3fb1
7
- data.tar.gz: b88a3b63347d5c0b41b9dbb802e6a980e6d11158a06c2a17d8c858dd89d2c2ed4f4414f8b9a73ab09293113428c1f06676a05d7b095bacab6e6c56ce8a09ed6b
6
+ metadata.gz: d476b74397faea75a95458d727ee4a3b59944b61403b353b8695c32dc51d3be4419bf3712d3c9f16972c3448cfa3ed124b43e6b62cb1a291a10d73d99c6b96b4
7
+ data.tar.gz: 596a3fed2f4d79c7c985d91f1b746cb7959d05563142a0206797c3a39c6d5b18ee49b1a7651d4ff3eb9be0f9755faa135d4b76181a96201891bc566c99cbaeda
@@ -26,6 +26,7 @@ module DeployTasks
26
26
  namespace :deploy do
27
27
  task :default => %w[
28
28
  setup_docker_env
29
+ copy_nginx_config
29
30
  build_containers
30
31
  shut_down_services
31
32
  refresh_gems_in_development
@@ -37,6 +38,7 @@ module DeployTasks
37
38
 
38
39
  task :bootstrap => %w[
39
40
  setup_docker_env
41
+ copy_nginx_config
40
42
  build_containers
41
43
  shut_down_services
42
44
  refresh_gems_in_development
@@ -57,9 +59,24 @@ module DeployTasks
57
59
  end
58
60
 
59
61
  task :publish_static do
60
- vhost = ENV["VIRTUAL_HOST"]
61
- if vhost && Dir.exists?("./public")
62
- sh "docker-compose run --rm #{app_container_name} rsync -av public/ /var/www/#{vhost}"
62
+ vhosts = ENV["VIRTUAL_HOST"].to_s.split(",")
63
+ if vhosts.any? && Dir.exists?("./public")
64
+ main_vhost = vhosts.shift
65
+ sh "docker-compose run --rm #{app_container_name} rsync -av public/ /var/www/#{main_vhost}"
66
+ vhosts.each do |vhost|
67
+ sh "docker-compose run --rm #{app_container_name} ln -s /var/www/#{main_vhost} /var/www/#{vhost}"
68
+ end
69
+ end
70
+ end
71
+
72
+ task :copy_nginx_config do
73
+ vhosts = ENV["VIRTUAL_HOST"].to_s.split(",")
74
+ if vhosts.any? && File.exists?("./deploy/nginx.conf")
75
+ main_vhost = vhosts.shift
76
+ sh "docker-compose run --rm #{app_container_name} rsync -av deploy/nginx.conf /etc/nginx/vhost.d/#{main_vhost}"
77
+ vhosts.each do |vhost|
78
+ sh "docker-compose run --rm #{app_container_name} ln -s /etc/nginx/vhost.d/#{main_vhost} /etc/nginx/vhost.d/#{vhost}"
79
+ end
63
80
  end
64
81
  end
65
82
 
@@ -1,3 +1,3 @@
1
1
  module Rumination
2
- VERSION = "0.17"
2
+ VERSION = "0.17.1"
3
3
  end
data/lib/rumination.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require "active_support/configurable"
2
2
  require "rumination/railtie" if defined?(Rails)
3
+ require "newrelic_rpm"
3
4
 
4
5
  module Rumination
5
6
  include ActiveSupport::Configurable
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumination
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.17'
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Baguinski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-31 00:00:00.000000000 Z
11
+ date: 2018-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  requirements: []
196
196
  rubyforge_project:
197
- rubygems_version: 2.6.11
197
+ rubygems_version: 2.7.4
198
198
  signing_key:
199
199
  specification_version: 4
200
200
  summary: development utilities