capistrano-nvm202x 2.2.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +28 -15
- data/capistrano-nvm202x.gemspec +4 -4
- data/lib/capistrano/tasks/nvm.rake +0 -2
- metadata +5 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3c3ed95eafa76cbfd9bb7dffed225276e3e95cb5e502537965a6f342a8a16b4
|
4
|
+
data.tar.gz: f7b3aebe4693e61a3c689f1f655d0b0a5403ea2c432664d72a28b6f8bc75374a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fe0dabcf9519a0bfe83586240c4e832c7e4e8543d9b3326090ec4a3194bb25d997837f3af38347341ef98ee95a056708476dfea2bd4ba7a8c40714f0b7b190b
|
7
|
+
data.tar.gz: 4ae1918e16334996187579a323fc33847539544e5e40268aaabd3608e66cf9f41496424f08e60d16571c3b5e25e5d4c8ab0a3a55312c05010add25282f620533
|
data/LICENSE.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
MIT License (MIT)
|
2
2
|
|
3
3
|
Copyright (c) 2013-2014 Kir Shatrov
|
4
|
-
Copyright (c) 2020 Ivan Stana
|
4
|
+
Copyright (c) 2020-2024 Ivan Stana
|
5
5
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -1,21 +1,30 @@
|
|
1
1
|
# Capistrano::nvm202x
|
2
2
|
|
3
|
-
This gem provides idiomatic nvm support for Capistrano 3.x (and 3.x
|
4
|
-
*only*).
|
3
|
+
This gem provides idiomatic nvm (Node Version Manager) support for Capistrano 3.x (and 3.x *only*).
|
5
4
|
|
6
5
|
## Please Note
|
7
6
|
|
8
|
-
|
7
|
+
**NOTE:** this gem is different from [capistrano-nvm](https://github.com/koenpunt/capistrano-nvm). Not sure why, but `capistrano-nvm` doesn't play with `capistrano-rbenv` which was the reason to create `capistrano-nvm202x`.
|
8
|
+
|
9
|
+
Current limitation: should be required after rbenv or after anything that adds environment variables.
|
10
|
+
|
9
11
|
And also thanks a lot to [capistrano-rbenv](https://github.com/capistrano/rbenv) for the code this repo originates from.
|
10
12
|
|
11
|
-
Note:
|
13
|
+
Note: Node version is not set explicitly as an environment variable, but the existence of version is checked. Otherwise it depends on NVM picking up the correct version. Please use `.rvmrc` to specify version. Options need testing.
|
14
|
+
|
15
|
+
-----------------------------------
|
16
|
+
|
17
|
+
(By original maintainer) Thanks a lot to [@yyuu](https://github.com/yyuu) for merging his gem with official one.
|
12
18
|
|
13
19
|
## Installation
|
14
20
|
|
15
21
|
Add this line to your application's Gemfile:
|
16
22
|
|
17
|
-
|
18
|
-
|
23
|
+
~~~ruby
|
24
|
+
gem 'capistrano', '~> 3.19', require: false
|
25
|
+
gem 'capistrano-rbenv', require: false
|
26
|
+
gem 'capistrano-nvm202x', require: false
|
27
|
+
~~~
|
19
28
|
|
20
29
|
And then execute:
|
21
30
|
|
@@ -24,28 +33,32 @@ And then execute:
|
|
24
33
|
## Usage
|
25
34
|
|
26
35
|
# Capfile
|
27
|
-
require
|
36
|
+
require "capistrano/rbenv"
|
37
|
+
require "capistrano/nvm" # after rbenv
|
28
38
|
|
29
39
|
|
30
40
|
# config/deploy.rb
|
31
|
-
set :nvm_type, :user # or :system,
|
32
|
-
set :nvm_node, '
|
41
|
+
set :nvm_type, :user # or :system, depends on your nvm setup
|
42
|
+
set :nvm_node, 'v20.17.0'
|
33
43
|
|
34
44
|
# in case you want to set nvm version from the file:
|
35
45
|
# set :nvm_node, File.read('.nvmrc').strip
|
36
46
|
|
37
|
-
|
38
|
-
set :
|
39
|
-
set :nvm_roles, :all
|
47
|
+
# optional configuration
|
48
|
+
set :nvm_custom_path, '$HOME/.nvm' # sets custom `nvm_path`
|
49
|
+
set :nvm_roles, :all
|
50
|
+
set :nvm_prefix, "source #{fetch(:nvm_path)}/nvm.sh; " # set default command prefix
|
51
|
+
set :nvm_map_bins, %w{rake gem bundle yarn rails} # commands for which prefix is added
|
52
|
+
|
40
53
|
|
41
54
|
If your nvm is located in some custom path, you can use `nvm_custom_path` to set it.
|
42
55
|
|
43
|
-
### Defining the
|
56
|
+
### Defining the node version
|
44
57
|
|
45
|
-
To set the
|
58
|
+
To set the Node version explicitly, add `:nvm_node` to your Capistrano configuration:
|
46
59
|
|
47
60
|
# config/deploy.rb
|
48
|
-
set :nvm_node, '
|
61
|
+
set :nvm_node, 'v20.17.0'
|
49
62
|
|
50
63
|
Alternatively, allow the remote host's `nvm` to determine the appropriate Node version](https://github.com/nvm-sh/nvm#usage) by omitting `:nvm_node`. This approach is useful if you have a `.nvmrc` file in your project.
|
51
64
|
|
data/capistrano-nvm202x.gemspec
CHANGED
@@ -4,9 +4,9 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "capistrano-nvm202x"
|
7
|
-
gem.version = '
|
8
|
-
gem.authors = ["Ivan Stana"
|
9
|
-
gem.email = ["^_^@myrtana.sk"
|
7
|
+
gem.version = '4.0.0'
|
8
|
+
gem.authors = ["Ivan Stana"]
|
9
|
+
gem.email = ["^_^@myrtana.sk"]
|
10
10
|
gem.description = %q{nvm integration for Capistrano}
|
11
11
|
gem.summary = %q{nvm integration for Capistrano}
|
12
12
|
gem.homepage = "https://github.com/istana/capistrano-nvm202x/"
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
|
|
20
20
|
|
21
21
|
gem.licenses = ["MIT"]
|
22
22
|
|
23
|
-
gem.add_dependency 'capistrano', '~> 3.
|
23
|
+
gem.add_dependency 'capistrano', '~> 3.19'
|
24
24
|
gem.add_dependency 'sshkit', '~> 1.3'
|
25
25
|
|
26
26
|
gem.add_development_dependency 'danger'
|
metadata
CHANGED
@@ -1,16 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-nvm202x
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Stana
|
8
|
-
- Kir Shatrov
|
9
|
-
- Yamashita Yuu
|
10
8
|
autorequire:
|
11
9
|
bindir: bin
|
12
10
|
cert_chain: []
|
13
|
-
date:
|
11
|
+
date: 2024-09-16 00:00:00.000000000 Z
|
14
12
|
dependencies:
|
15
13
|
- !ruby/object:Gem::Dependency
|
16
14
|
name: capistrano
|
@@ -18,14 +16,14 @@ dependencies:
|
|
18
16
|
requirements:
|
19
17
|
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '3.
|
19
|
+
version: '3.19'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
23
|
requirements:
|
26
24
|
- - "~>"
|
27
25
|
- !ruby/object:Gem::Version
|
28
|
-
version: '3.
|
26
|
+
version: '3.19'
|
29
27
|
- !ruby/object:Gem::Dependency
|
30
28
|
name: sshkit
|
31
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -57,8 +55,6 @@ dependencies:
|
|
57
55
|
description: nvm integration for Capistrano
|
58
56
|
email:
|
59
57
|
- "^_^@myrtana.sk"
|
60
|
-
- shatrov@me.com
|
61
|
-
- yamashita@geishatokyo.com
|
62
58
|
executables: []
|
63
59
|
extensions: []
|
64
60
|
extra_rdoc_files: []
|
@@ -97,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
93
|
- !ruby/object:Gem::Version
|
98
94
|
version: '0'
|
99
95
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
96
|
+
rubygems_version: 3.5.11
|
101
97
|
signing_key:
|
102
98
|
specification_version: 4
|
103
99
|
summary: nvm integration for Capistrano
|