tomo-plugin-nvm 0.1.0 → 1.1.0

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
  SHA256:
3
- metadata.gz: 057132602164a73e3a455d838272a51cf9b68cc24359a893fd630678b92dca7d
4
- data.tar.gz: c334cbe6963109da02a5e5abed98eba3fcdbebd6e7fae2e166a6a7b65335504c
3
+ metadata.gz: cf4c20177b95f9b6e154de0c6504e3efc47cdaf9a035fe7df707c4edb33c2931
4
+ data.tar.gz: 332fb054030b9933f2b30e97bf1861c8564c09d1a6b641566dbf3ea4e891c73d
5
5
  SHA512:
6
- metadata.gz: f542e37a63471d6807903a704f210efd339478992104a54449f0931b3048ab6b6587bbced4c4107fa238ba8919c66f1bbb3367afb232a3fd38d95d3c9b73ac26
7
- data.tar.gz: ccfcd1847db29268bb70e6f6ede6f7165ce8b08a5ea26f4bba7da349378a99c358466e8f0120dc2f9684c0b06150c6f400d9bc94a175c0966de997685c1f9be9
6
+ metadata.gz: f64595520e0972cf74992f0744808fa625da4894a6ddaaea6bc55fbffa9874cf4411af9d042f4350a6af49e58f5532feb24f0591c3da608096107a95575ba7bc
7
+ data.tar.gz: 13af5be3bceb17f07c162b6dd518832b7d706e86e4ffc1938d041e8d5be6c031b998bb7b8264254cbdcddd948bb27d79cfc87b1fd6c209bd2883c8f69d2a4a6e
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019 Matt Brictson
3
+ Copyright (c) 2021 Matt Brictson
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,15 +1,16 @@
1
1
  # tomo-plugin-nvm
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/tomo-plugin-nvm.svg)](https://rubygems.org/gems/tomo-plugin-nvm)
4
- [![Travis](https://img.shields.io/travis/mattbrictson/tomo-plugin-nvm.svg?label=travis)](https://travis-ci.org/mattbrictson/tomo-plugin-nvm)
5
- [![Circle](https://circleci.com/gh/mattbrictson/tomo-plugin-nvm.svg?style=shield)](https://circleci.com/gh/mattbrictson/tomo-plugin-nvm)
4
+ [![Circle](https://circleci.com/gh/mattbrictson/tomo-plugin-nvm/tree/main.svg?style=shield)](https://app.circleci.com/pipelines/github/mattbrictson/tomo-plugin-nvm?branch=main)
6
5
  [![Code Climate](https://codeclimate.com/github/mattbrictson/tomo-plugin-nvm/badges/gpa.svg)](https://codeclimate.com/github/mattbrictson/tomo-plugin-nvm)
7
6
 
8
- This is a [tomo](https://github.com/mattbrictson/tomo) plugin to manage node and yarn via nvm (instead of using the [nodenv tasks](https://tomo-deploy.com/plugins/nodenv/) that are built into tomo).
7
+ This is a [tomo](https://github.com/mattbrictson/tomo) plugin to manage node and yarn via nvm (instead of using the [nodenv tasks](https://tomo-deploy.com/plugins/nodenv/) that are built into tomo). The `nvm:install` task is a drop-in replacement for tomo’s `nodenv:install` task.
9
8
 
10
9
  ---
11
10
 
12
11
  - [Installation](#installation)
12
+ - [Settings](#settings)
13
+ - [Tasks](#tasks)
13
14
  - [Support](#support)
14
15
  - [License](#license)
15
16
  - [Code of conduct](#code-of-conduct)
@@ -2,15 +2,13 @@ require "tomo"
2
2
  require_relative "nvm/tasks"
3
3
  require_relative "nvm/version"
4
4
 
5
- module Tomo::Plugin
6
- module Nvm
7
- extend Tomo::PluginDSL
5
+ module Tomo::Plugin::Nvm
6
+ extend Tomo::PluginDSL
8
7
 
9
- defaults bashrc_path: ".bashrc",
10
- nvm_version: "0.34.0",
11
- nvm_node_version: nil,
12
- nvm_yarn_version: nil
8
+ defaults bashrc_path: ".bashrc",
9
+ nvm_version: "0.34.0",
10
+ nvm_node_version: nil,
11
+ nvm_yarn_version: nil
13
12
 
14
- tasks Tomo::Plugin::Nvm::Tasks
15
- end
13
+ tasks Tomo::Plugin::Nvm::Tasks
16
14
  end
@@ -16,8 +16,7 @@ module Tomo::Plugin::Nvm
16
16
  require_setting :nvm_version
17
17
 
18
18
  nvm_version = settings[:nvm_version]
19
- install_url = "https://raw.githubusercontent.com/creationix/nvm/"\
20
- "v#{nvm_version}/install.sh"
19
+ install_url = "https://raw.githubusercontent.com/creationix/nvm/v#{nvm_version}/install.sh"
21
20
  remote.run("curl -o- #{install_url.shellescape} | bash")
22
21
  end
23
22
 
@@ -36,9 +35,7 @@ module Tomo::Plugin::Nvm
36
35
  require_setting :nvm_node_version
37
36
  node_version = settings[:nvm_node_version]
38
37
 
39
- unless node_installed?(node_version)
40
- remote.run "nvm", "install", node_version
41
- end
38
+ remote.run "nvm", "install", node_version unless node_installed?(node_version)
42
39
  remote.run "nvm", "alias", "default", node_version
43
40
  end
44
41
 
@@ -1,7 +1,8 @@
1
1
  module Tomo
2
2
  module Plugin
3
- module Nvm
4
- VERSION = "0.1.0".freeze
5
- end
6
3
  end
7
4
  end
5
+
6
+ module Tomo::Plugin::Nvm
7
+ VERSION = "1.1.0".freeze
8
+ end
metadata CHANGED
@@ -1,128 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomo-plugin-nvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-23 00:00:00.000000000 Z
11
+ date: 2021-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tomo
15
15
  requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.0'
41
- - !ruby/object:Gem::Dependency
42
- name: minitest
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '5.11'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '5.11'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest-ci
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '3.4'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
16
  requirements:
66
17
  - - "~>"
67
18
  - !ruby/object:Gem::Version
68
- version: '3.4'
69
- - !ruby/object:Gem::Dependency
70
- name: minitest-reporters
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '1.3'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.3'
83
- - !ruby/object:Gem::Dependency
84
- name: rake
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '12.3'
90
- type: :development
19
+ version: '1.0'
20
+ type: :runtime
91
21
  prerelease: false
92
22
  version_requirements: !ruby/object:Gem::Requirement
93
23
  requirements:
94
24
  - - "~>"
95
25
  - !ruby/object:Gem::Version
96
- version: '12.3'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '='
102
- - !ruby/object:Gem::Version
103
- version: 0.71.0
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '='
109
- - !ruby/object:Gem::Version
110
- version: 0.71.0
111
- - !ruby/object:Gem::Dependency
112
- name: rubocop-performance
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '='
116
- - !ruby/object:Gem::Version
117
- version: 1.4.0
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '='
123
- - !ruby/object:Gem::Version
124
- version: 1.4.0
125
- description:
26
+ version: '1.0'
27
+ description:
126
28
  email:
127
29
  - opensource@mattbrictson.com
128
30
  executables: []
@@ -142,7 +44,7 @@ metadata:
142
44
  changelog_uri: https://github.com/mattbrictson/tomo-plugin-nvm/releases
143
45
  source_code_uri: https://github.com/mattbrictson/tomo-plugin-nvm
144
46
  homepage_uri: https://github.com/mattbrictson/tomo-plugin-nvm
145
- post_install_message:
47
+ post_install_message:
146
48
  rdoc_options: []
147
49
  require_paths:
148
50
  - lib
@@ -150,15 +52,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
52
  requirements:
151
53
  - - ">="
152
54
  - !ruby/object:Gem::Version
153
- version: 2.4.0
55
+ version: 2.6.0
154
56
  required_rubygems_version: !ruby/object:Gem::Requirement
155
57
  requirements:
156
58
  - - ">="
157
59
  - !ruby/object:Gem::Version
158
60
  version: '0'
159
61
  requirements: []
160
- rubygems_version: 3.0.4
161
- signing_key:
62
+ rubygems_version: 3.2.17
63
+ signing_key:
162
64
  specification_version: 4
163
- summary: ''
65
+ summary: A tomo plugin to manage node and yarn via nvm
164
66
  test_files: []