capistrano-nodenv 1.0.0 → 1.0.1

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: aec274bb18a78c7dcaa8f2e08fb9e807293f7b32
4
- data.tar.gz: 09aa30e24538e95eb5cbfa99f8d528a687026998
3
+ metadata.gz: 6940e86d200e7cdec4790366d51dec1ceb3dd934
4
+ data.tar.gz: de053395285dd621071dba387f9fc7ab342c12e2
5
5
  SHA512:
6
- metadata.gz: a62d08c6a5f918ca5230dc70fee6a01c1d982c524b2b578be267e0bcbbe25d6128c08d3d78d84b2cda3bcbcfc8575f200fa63a586319a322c2b178fe7179c898
7
- data.tar.gz: e3db5fc126f8f4abc96c897b7fa55749773fd196002ad87a6c44f5e88f617eb746cbc8e7cb63199af2000827c68c4c8106e75e4a839e6cac8d3d641a7912646d
6
+ metadata.gz: 1fe08b1d16709aa81de3d08c697460d815e222fd773982da12f4f4b9b8614fe2ea3ed539284f44c2c0cb9af9934da5b7460547c6fd776ac9e61cc31e2a5efa1b
7
+ data.tar.gz: b39f735cce56ecbccf4f5f05f2a1bceda4597972e05725e935e212c1685fa6439168bcbe9b03514c8d0d372e0e88e4f9c81822123d6ed342bff1dad6d7508188
data/README.md CHANGED
@@ -1,11 +1,12 @@
1
- # Capistrano::nodenv
1
+ # Capistrano::nodenv [![Gem Version](https://badge.fury.io/rb/capistrano-nodenv.png)](http://badge.fury.io/rb/capistrano-nodenv)
2
2
 
3
3
  ## Installation
4
4
 
5
5
  Add this line to your application's Gemfile:
6
-
7
- gem 'capistrano', '~> 3.1'
8
- gem 'capistrano-nodenv', '~> 1.0'
6
+ ```ruby
7
+ gem 'capistrano', '~> 3.1'
8
+ gem 'capistrano-nodenv', '~> 1.0'
9
+ ```
9
10
 
10
11
  And then execute:
11
12
 
@@ -14,18 +15,24 @@ And then execute:
14
15
 
15
16
  ## Usage
16
17
 
17
- # Capfile
18
+ ```ruby
19
+ # Capfile
18
20
 
19
- require 'capistrano/nodenv'
21
+ require 'capistrano/nodenv'
20
22
 
21
- set :nodenv_type, :user # or :system, depends on your nodenv setup
22
- set :nodenv_node, '0.10.3'
23
- set :nodenv_prefix, "NODENV_ROOT=#{fetch(:nodenv_path)} NODENV_VERSION=#{fetch(:nodenv_ruby)} #{fetch(:nodenv_path)}/bin/nodenv exec"
24
- set :nodenv_map_bins, %w{node npm}
25
- set :nodenv_roles, :all # default value
23
+ set :nodenv_type, :user # or :system, depends on your nodenv setup
24
+ set :nodenv_node, '0.10.3'
25
+ set :nodenv_prefix, "NODENV_ROOT=#{fetch(:nodenv_path)} NODENV_VERSION=#{fetch(:nodenv_node)} #{fetch(:nodenv_path)}/bin/nodenv exec"
26
+ set :nodenv_map_bins, %w{node npm}
27
+ set :nodenv_roles, :all # default value
28
+ ```
26
29
 
27
30
  If your nodenv is located in some custom path, you can use `nodenv_custom_path` to set it.
28
31
 
32
+ ## Thanks
33
+
34
+ Thanks to [capistrano/rbenv constributors](https://github.com/capistrano/rbenv/graphs/contributors) becasue I just modified that gem to work with nodenv
35
+
29
36
  ## Contributing
30
37
 
31
38
  1. Fork it
@@ -33,3 +40,16 @@ If your nodenv is located in some custom path, you can use `nodenv_custom_path`
33
40
  3. Commit your changes (`git commit -am 'Add some feature'`)
34
41
  4. Push to the branch (`git push origin my-new-feature`)
35
42
  5. Create new Pull Request
43
+
44
+ ## Credits
45
+
46
+ Thank you [contributors](https://github.com/platanus/guides/graphs/contributors)!
47
+
48
+ <img src="http://platan.us/gravatar_with_text.png" alt="Platanus" width="250"/>
49
+
50
+ capistrano-nodenv is maintained by [platanus](http://platan.us).
51
+
52
+ ## License
53
+
54
+ Guides is © 2014 platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.
55
+
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "capistrano-nodenv"
7
- gem.version = '1.0.0'
7
+ gem.version = '1.0.1'
8
8
  gem.authors = ["Juan Ignacio Donoso"]
9
9
  gem.email = ["jidonoso@gmail.com"]
10
10
  gem.description = %q{nodenv integration for Capistrano}
@@ -7,7 +7,7 @@ namespace :nodenv do
7
7
  exit 1
8
8
  end
9
9
 
10
- if test "[ ! -d #{fetch(:nodenv_node_dir)} ]"
10
+ unless test "[ -d #{fetch(:nodenv_node_dir)} ]"
11
11
  error "nodenv: #{nodenv_node} is not installed or not found in #{fetch(:nodenv_node_dir)}"
12
12
  exit 1
13
13
  end
@@ -15,7 +15,7 @@ namespace :nodenv do
15
15
  end
16
16
 
17
17
  task :map_bins do
18
- SSHKit.config.default_env.merge!({ nodenv_root: fetch(:nodenv_path), nodenv_version: fetch(:nodenv_ruby) })
18
+ SSHKit.config.default_env.merge!({ nodenv_root: fetch(:nodenv_path), nodenv_version: fetch(:nodenv_node) })
19
19
  nodenv_prefix = fetch(:nodenv_prefix, proc { "#{fetch(:nodenv_path)}/bin/nodenv exec" })
20
20
  SSHKit.config.command_map[:nodenv] = "#{fetch(:nodenv_path)}/bin/nodenv"
21
21
 
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-nodenv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Ignacio Donoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-19 00:00:00.000000000 Z
11
+ date: 2015-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sshkit
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  description: nodenv integration for Capistrano
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - ".gitignore"
48
+ - .gitignore
49
49
  - CHANGELOG.md
50
50
  - Gemfile
51
51
  - README.md
@@ -63,17 +63,17 @@ require_paths:
63
63
  - lib
64
64
  required_ruby_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ">="
71
+ - - '>='
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.0.14
76
+ rubygems_version: 2.4.6
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: nodenv integration for Capistrano