capun 0.0.29 → 0.0.30
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 +4 -4
- data/lib/capun/setup.rb +16 -2
- data/lib/capun/version.rb +1 -1
- data/lib/generators/capun/templates/append_info.excerpt +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4baa7ac853298bbe25092a0711f86178c2be77d6
|
4
|
+
data.tar.gz: 2a323905899516638368782a88698c7fed381eaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bac8bab9b399d3b8f4cf1a8eb68c44c6f0e51637f77ec986791b48cc9c8c649d61fcf86134c265e2283011529428eba982e8b5ec067c19c943daa17f39d92b9b
|
7
|
+
data.tar.gz: 76fb48ee778f41e39115800837a073518006e46069d6efcb0fb198f2408f9645bce6f6515fde083ec5b7decf9cfbf75b018ef5f4f76c9eac4e504f06ff119b1a
|
data/lib/capun/setup.rb
CHANGED
@@ -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
|
-
|
52
|
-
|
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
|
|
data/lib/capun/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2016-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|