namo.rb 0.32.1 → 0.32.2
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/CHANGELOG +11 -0
- data/README.md +1 -1
- data/lib/Namo/VERSION.rb +1 -1
- data/test/namo_command_test.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2cdcd36cc0d3b94a3d75d935ec816993f2b11946b53934f93225ec24f38b9567
|
|
4
|
+
data.tar.gz: 3f6359e0309eadfe76a206e4324918567b3b097704dba6a502d1e20eacd36e6f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8218b30ec72a118656fcadd27af5a9213b2785d62642712a7c5bcc5cddc4195c01983a0477326a582d4657fe7f1c3b3a4842534121407d53a2183de41b661f58
|
|
7
|
+
data.tar.gz: 2ed7ed7d9ca94c3cba1c878c56c4319cad59c04e2d1d7f50f82e78174bbc2cb3c8a826098d3e3fb509b7584b8efba2471b942b145390b1d6c0d868b5545ce866
|
data/CHANGELOG
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 20260828
|
|
4
|
+
|
|
5
|
+
0.32.2: ~ install.sh: the one command ends with namo runnable from anywhere.
|
|
6
|
+
|
|
7
|
+
1. ~ install.sh: + add_to_path, + gem_bin_directory, + shell_configuration_file. gem puts the command in a directory which is on the PATH on some machines and not on others — Homebrew's ruby puts it somewhere which is not — so the run ended by naming the directory and stopping. It now offers to add it to the shell's configuration file, and adds it to the PATH of the run itself so that `namo setup` happens rather than being left as a further instruction.
|
|
8
|
+
2. ~ install.sh: the file is chosen by the login shell rather than by which file exists, a stock macOS account running zsh and possibly carrying a .bashrc which nothing reads. The directory comes from gem's own EXECUTABLE DIRECTORY rather than from gemdir with bin appended.
|
|
9
|
+
3. ~ install.sh: writing to a shell configuration outlives an uninstall, so it is asked for as Homebrew is — -y answers in advance, no terminal answers no, and a refusal prints the line to add by hand.
|
|
10
|
+
4. ~ install.sh: + apt-get, dnf, pacman and zypper alongside Homebrew and MacPorts, so the script reaches a Ruby on Linux rather than offering to install Homebrew on a machine which has apt. + install_with_sudo, every package manager but Homebrew installing as root, so the password is asked for by name rather than arriving unannounced.
|
|
11
|
+
5. ~ Namo::VERSION: /0.32.1/0.32.2/
|
|
12
|
+
|
|
13
|
+
|
|
3
14
|
## 20260828
|
|
4
15
|
|
|
5
16
|
0.32.1: ~ install.sh: it runs the same piped from curl as from a clone, and forces no package manager; ~ README.md: + the one-line install.
|
data/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Or in your Gemfile:
|
|
|
18
18
|
gem 'namo'
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Or from nothing at all — Ruby, the gem, and the gems its scripts want, each step skipped where it is already there. Where Ruby is missing,
|
|
21
|
+
Or from nothing at all — Ruby, the gem, and the gems its scripts want, each step skipped where it is already there. Where Ruby is missing, whichever package manager is already installed supplies it — Homebrew, MacPorts, apt, dnf, pacman or zypper; where none is, you are asked before Homebrew is installed; `-y` answers yes in advance, and a machine with nobody at the keyboard is taken to have said no. Where the gem's own directory is not on the PATH, it offers to add it to your shell's configuration, so that a new shell has `namo` in it:
|
|
22
22
|
|
|
23
23
|
```
|
|
24
24
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/thoran/namo/master/install.sh)"
|
data/lib/Namo/VERSION.rb
CHANGED
data/test/namo_command_test.rb
CHANGED
|
@@ -48,7 +48,9 @@ describe 'bin/namo' do
|
|
|
48
48
|
body = File.read(File.join(root, 'install.sh'))
|
|
49
49
|
_(body).must_match(/install_ruby/)
|
|
50
50
|
_(body).must_match(/install_namo/)
|
|
51
|
-
|
|
51
|
+
%w{brew port apt-get dnf pacman zypper}.each do |manager|
|
|
52
|
+
_(body).must_match(/command -v #{manager}/)
|
|
53
|
+
end
|
|
52
54
|
_(body).must_match(/ruby_routes/)
|
|
53
55
|
_(body).must_match(/namo setup/)
|
|
54
56
|
_(body).wont_match(/SCRIPT_DIR/)
|