capun 0.0.29 → 0.0.30

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: 0cd373bc4cc5fb6d98468cd811c07ef284cb1b0a
4
- data.tar.gz: 1594a9b865c0d200f84a07c2f90c44fd4af64dab
3
+ metadata.gz: 4baa7ac853298bbe25092a0711f86178c2be77d6
4
+ data.tar.gz: 2a323905899516638368782a88698c7fed381eaf
5
5
  SHA512:
6
- metadata.gz: 3cedbd8ec6ba38e05f1a6a08d9cb5b0cf7c5f7bf57faf97668a2ab9f2de982f54d0c876cc2171aa420f2341c3291a62dd6680a04c6882ee4e587717e77399370
7
- data.tar.gz: a0dc9ae5f97c8f4d53c6df2d0478b53b817a7f13891bee003aec51431a8733a38fd51078409361eb18a5547c2a02dd00c55d5879328de5c0766e41a0fea77a85
6
+ metadata.gz: bac8bab9b399d3b8f4cf1a8eb68c44c6f0e51637f77ec986791b48cc9c8c649d61fcf86134c265e2283011529428eba982e8b5ec067c19c943daa17f39d92b9b
7
+ data.tar.gz: 76fb48ee778f41e39115800837a073518006e46069d6efcb0fb198f2408f9645bce6f6515fde083ec5b7decf9cfbf75b018ef5f4f76c9eac4e504f06ff119b1a
@@ -15,6 +15,8 @@ set :bundle_flags, "--quiet"
15
15
  set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets public/system}
16
16
  set :unicorn_config_path, -> { "#{shared_path}/config/unicorn.config.rb" }
17
17
 
18
+ set :install_rvm_ruby, true
19
+
18
20
  set :uploads, []
19
21
  # Lambdas are used for lazy access to variables set later, in stage file
20
22
  set :std_uploads, [
@@ -48,8 +50,20 @@ set :std_symlinks, [
48
50
  {what: "newrelic.yml", where: '#{release_path}/config/newrelic.yml'}
49
51
  ]
50
52
 
51
- before 'deploy', 'rvm1:install:rvm' # install/update RVM
52
- before 'deploy', 'rvm1:install:ruby' # install Ruby and create gemset
53
+ namespace :predeploy do
54
+ namespace :install do
55
+ desc 'Install RVM & Ruby'
56
+ task :rvm_ruby do
57
+ puts "install_rvm_ruby: #{fetch(:install_rvm_ruby)}"
58
+ if fetch(:install_rvm_ruby)
59
+ invoke 'rvm1:install:rvm' # install/update RVM
60
+ invoke 'rvm1:install:ruby' # install Ruby and create gemset
61
+ end
62
+ end
63
+ end
64
+ end
65
+
66
+ before 'deploy', 'predeploy:install:rvm_ruby'
53
67
 
54
68
  namespace :deploy do
55
69
 
@@ -1,3 +1,3 @@
1
1
  module Capun
2
- VERSION = "0.0.29"
2
+ VERSION = "0.0.30"
3
3
  end
@@ -1,11 +1,11 @@
1
1
 
2
2
  def append_info_to_payload(payload)
3
3
  super
4
- #adding ip-address for payload
4
+ # adding ip-address for payload
5
5
  payload[:ip] = request.headers['HTTP_X_REAL_IP'] || request.remote_ip
6
- #adding agent string for payload
6
+ # adding agent string for payload
7
7
  payload[:agentstring] = request.headers['HTTP_USER_AGENT'] || request.user_agent
8
- #adding user
8
+ # adding user
9
9
  payload[:user] = current_user unless defined? (current_user) || current_user.nil?
10
10
  end
11
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.29
4
+ version: 0.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Zamylin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-07 00:00:00.000000000 Z
11
+ date: 2016-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler