tomo 1.7.0 → 1.8.0
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/README.md +0 -1
- data/lib/tomo/cli/parser.rb +1 -1
- data/lib/tomo/commands/init.rb +1 -12
- data/lib/tomo/error/suggestions.rb +7 -9
- data/lib/tomo/runtime/current.rb +1 -1
- data/lib/tomo/runtime/settings_interpolation.rb +1 -1
- data/lib/tomo/testing/docker_image.rb +1 -3
- data/lib/tomo/testing/systemctl.rb +1 -1
- data/lib/tomo/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 431bd4cb252a935eb41e8b847e503ea681bc5dd633a3106f201758a2e45fffa1
|
4
|
+
data.tar.gz: 1e036f6ac85a2906cb3f7d8e6f39ea2edf434a6bf00d6124a7a9f8ca89d9d555
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b11ac0a2cadff9fe301a56c2f3e9652f7ce4cc25ae9d59c8153ca342fb904510f1cd630cb6fd43565f198d9310e492689c9cb5c2a203b96ee253ea182b1a8f1
|
7
|
+
data.tar.gz: fcc17f36a7ae4555a31176607b3ae0a80e48842ae3473213ab511c25151c46d8b6458999468744d8a725c41ecc1585ad0b9f20b6651da68f31f5c6d4904bf5cb
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Tomo
|
2
2
|
|
3
3
|
[](https://rubygems.org/gems/tomo)
|
4
|
-
[](https://travis-ci.com/github/mattbrictson/tomo)
|
5
4
|
[](https://app.circleci.com/pipelines/github/mattbrictson/tomo?branch=main)
|
6
5
|
[](https://codeclimate.com/github/mattbrictson/tomo)
|
7
6
|
|
data/lib/tomo/cli/parser.rb
CHANGED
data/lib/tomo/commands/init.rb
CHANGED
@@ -95,11 +95,6 @@ module Tomo
|
|
95
95
|
File.exist?(".rubocop.yml")
|
96
96
|
end
|
97
97
|
|
98
|
-
def erb_2_2_or_later?
|
99
|
-
erb_version = Gem::Version.new(ERB.version[/\d[\d.]+/])
|
100
|
-
Gem::Requirement.new(">= 2.2").satisfied_by?(erb_version)
|
101
|
-
end
|
102
|
-
|
103
98
|
# Does a .ruby-version file exist match the executing RUBY_VERSION?
|
104
99
|
def using_ruby_version_file?
|
105
100
|
return false unless File.exist?(".ruby-version")
|
@@ -112,13 +107,7 @@ module Tomo
|
|
112
107
|
def config_rb_template(app)
|
113
108
|
path = File.expand_path("../templates/config.rb.erb", __dir__)
|
114
109
|
template = IO.read(path)
|
115
|
-
|
116
|
-
# TODO: remove once we drop Ruby 2.5 support?
|
117
|
-
if erb_2_2_or_later?
|
118
|
-
ERB.new(template, trim_mode: "-").result(binding)
|
119
|
-
else
|
120
|
-
ERB.new(template, nil, "-").result(binding)
|
121
|
-
end
|
110
|
+
ERB.new(template, trim_mode: "-").result(binding)
|
122
111
|
end
|
123
112
|
end
|
124
113
|
end
|
@@ -11,15 +11,13 @@ module Tomo
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def to_a
|
14
|
-
@_suggestions ||=
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
end
|
22
|
-
end
|
14
|
+
@_suggestions ||= if defined?(DidYouMean::SpellChecker)
|
15
|
+
checker = DidYouMean::SpellChecker.new(dictionary: dictionary)
|
16
|
+
suggestions = checker.correct(word)
|
17
|
+
suggestions || []
|
18
|
+
else
|
19
|
+
[]
|
20
|
+
end
|
23
21
|
end
|
24
22
|
|
25
23
|
def to_console
|
data/lib/tomo/runtime/current.rb
CHANGED
@@ -165,7 +165,7 @@ class Service < Unit
|
|
165
165
|
end
|
166
166
|
|
167
167
|
def parse
|
168
|
-
config =
|
168
|
+
config = spec.scan(/^([^\s=]+)=\s*(\S.*?)\s*$/).to_h
|
169
169
|
working_dir = config["WorkingDirectory"] || File.expand_path("~")
|
170
170
|
executable = config.fetch("ExecStart") do
|
171
171
|
raise "#{name} is missing ExecStart attribute"
|
data/lib/tomo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tomo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brictson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Tomo is a feature-rich deployment tool that contains everything you need
|
14
14
|
to deploy a basic Rails app out of the box. It has an opinionated, production-tested
|
@@ -181,14 +181,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
181
|
requirements:
|
182
182
|
- - ">="
|
183
183
|
- !ruby/object:Gem::Version
|
184
|
-
version: 2.
|
184
|
+
version: 2.6.0
|
185
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
186
|
requirements:
|
187
187
|
- - ">="
|
188
188
|
- !ruby/object:Gem::Version
|
189
189
|
version: '0'
|
190
190
|
requirements: []
|
191
|
-
rubygems_version: 3.2.
|
191
|
+
rubygems_version: 3.2.15
|
192
192
|
signing_key:
|
193
193
|
specification_version: 4
|
194
194
|
summary: A friendly CLI for deploying Rails apps ✨
|