tomo 0.18.0 → 0.19.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24569b9d203580630d124df5ed6d5f42c4c5c8a8d7c2c9e6c2844abb662f03fb
4
- data.tar.gz: f154292556548e3dab819e4fdd3e57395f4ebd0fef3ad17cf291689ea848aee8
3
+ metadata.gz: dea99ca41c14a499cb207ebe78d56e4fef232ecc026f89f32bac7fa19182a6f1
4
+ data.tar.gz: acc54d6083bf3eff212bd7f8dbb8932efed2b43b0cc8be9698725ac042faf1c7
5
5
  SHA512:
6
- metadata.gz: 4e6ded002068ec55394a73e0799e5c1d0f4ae68b1c549cfe438f7ff665d003d9a9d102f3b10cb8515e47013117f38a076c373c9f74cb21735524887be6a21c65
7
- data.tar.gz: ab85142a4744db02d8a0e5be818175e292531dfaef14626c35e9c0e9dc36793330e5c44b9e12cf3769c36c1b0087f5571a89f5c5ec010defcef9561b64ec57b8
6
+ metadata.gz: 50daaad3e0e79ce97e4e85a9a2d64b565ca8da508adb2723e24b0f95f3244f8b6c1f63482e4ae4d7cffa530445b20e82c42e5fa48d9e12c2a55350d7753e3eda
7
+ data.tar.gz: 2ba01c52b8a3e98f61b89cd6c7985e2bbcb28b6619b096bccb133adc593f3d626f32a4813ef2c842c7104aafb731a1e43a5389d038f46bff718f3cc6bdd28d33
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/tomo.svg)](https://rubygems.org/gems/tomo)
4
4
  [![Travis](https://img.shields.io/travis/mattbrictson/tomo.svg?label=travis)](https://travis-ci.org/mattbrictson/tomo)
5
- [![Circle](https://circleci.com/gh/mattbrictson/tomo.svg?style=shield)](https://circleci.com/gh/mattbrictson/tomo)
5
+ [![Circle](https://circleci.com/gh/mattbrictson/tomo.svg?style=shield)](https://app.circleci.com/pipelines/github/mattbrictson/tomo?branch=master)
6
6
  [![Code Climate](https://codeclimate.com/github/mattbrictson/tomo/badges/gpa.svg)](https://codeclimate.com/github/mattbrictson/tomo)
7
7
 
8
8
  Tomo is a friendly command-line tool for deploying Rails apps. It is a new alternative to Capistrano, Mina, and Shipit that aims for simplicity and developer happiness.
@@ -10,7 +10,6 @@ module Tomo
10
10
 
11
11
  include CLI::CommonOptions
12
12
 
13
- # rubocop:disable Metrics/AbcSize
14
13
  def banner
15
14
  <<~BANNER
16
15
  Usage: #{green('tomo')} #{yellow('COMMAND [options]')}
@@ -37,7 +36,6 @@ module Tomo
37
36
  #{blue('https://tomo-deploy.com/')}
38
37
  BANNER
39
38
  end
40
- # rubocop:enable Metrics/AbcSize
41
39
 
42
40
  def call(*args, options)
43
41
  # The bare `tomo` command (i.e. without `--help` or `--version`) doesn't
@@ -50,8 +50,6 @@ module Tomo
50
50
  HINT
51
51
  end
52
52
 
53
- # rubocop:disable Metrics/AbcSize
54
- # rubocop:disable Metrics/MethodLength
55
53
  def highlighted_lines
56
54
  first = [1, error_line_no - 1].max
57
55
  last = [dsl_lines.length, error_line_no + 1].min
@@ -68,8 +66,6 @@ module Tomo
68
66
  end
69
67
  end
70
68
  end
71
- # rubocop:enable Metrics/AbcSize
72
- # rubocop:enable Metrics/MethodLength
73
69
  end
74
70
  end
75
71
  end
@@ -30,7 +30,6 @@ module Tomo::Plugin::Bundler
30
30
 
31
31
  def upgrade_bundler
32
32
  needed_bundler_ver = version_setting || extract_bundler_ver_from_lockfile
33
- return if needed_bundler_ver.nil?
34
33
 
35
34
  remote.run(
36
35
  "gem", "install", "bundler",
@@ -61,7 +60,13 @@ module Tomo::Plugin::Bundler
61
60
  "tail", "-n", "10", paths.release.join("Gemfile.lock"),
62
61
  raise_on_error: false
63
62
  )
64
- lockfile_tail[/BUNDLED WITH\n (\S+)$/, 1]
63
+ version = lockfile_tail[/BUNDLED WITH\n (\S+)$/, 1]
64
+ return version if version
65
+
66
+ die <<~REASON
67
+ Could not guess bundler version from Gemfile.lock.
68
+ Use the :bundler_version setting to specify the version of bundler to install.
69
+ REASON
65
70
  end
66
71
  end
67
72
  end
@@ -6,7 +6,6 @@ module Tomo::Plugin::Core
6
6
  RELEASE_REGEXP = /\d{14}/.freeze
7
7
  private_constant :RELEASE_REGEXP
8
8
 
9
- # rubocop:disable Metrics/AbcSize
10
9
  def setup_directories
11
10
  dirs = [
12
11
  paths.deploy_to,
@@ -18,7 +17,6 @@ module Tomo::Plugin::Core
18
17
 
19
18
  remote.mkdir_p(*dirs)
20
19
  end
21
- # rubocop:enable Metrics/AbcSize
22
20
 
23
21
  def symlink_shared
24
22
  return if linked_dirs.empty? && linked_files.empty?
@@ -83,7 +81,6 @@ module Tomo::Plugin::Core
83
81
  settings[:linked_files] || []
84
82
  end
85
83
 
86
- # rubocop:disable Metrics/AbcSize
87
84
  def shared_directories
88
85
  result = linked_dirs.map { |name| paths.shared.join(name) }
89
86
  linked_files.each do |name|
@@ -91,7 +88,6 @@ module Tomo::Plugin::Core
91
88
  end
92
89
  result.map(&:to_s).uniq - [paths.shared.to_s]
93
90
  end
94
- # rubocop:enable Metrics/AbcSize
95
91
 
96
92
  def symlink_shared_files
97
93
  return if linked_files.empty?
@@ -14,7 +14,6 @@ module Tomo::Plugin::Env
14
14
  modify_bashrc
15
15
  end
16
16
 
17
- # rubocop:disable Metrics/MethodLength
18
17
  def update
19
18
  return if settings[:env_vars].empty?
20
19
 
@@ -30,7 +29,6 @@ module Tomo::Plugin::Env
30
29
  end
31
30
  end
32
31
  end
33
- # rubocop:enable Metrics/MethodLength
34
32
 
35
33
  def set
36
34
  return if settings[:run_args].empty?
@@ -15,7 +15,6 @@ module Tomo::Plugin::Git
15
15
  end
16
16
  end
17
17
 
18
- # rubocop:disable Metrics/MethodLength
19
18
  def create_release
20
19
  remote.chdir(paths.git_repo) do
21
20
  remote.git("remote update --prune")
@@ -32,7 +31,6 @@ module Tomo::Plugin::Git
32
31
  )
33
32
  end
34
33
  end
35
- # rubocop:enable Metrics/MethodLength
36
34
  # rubocop:enable Metrics/AbcSize
37
35
 
38
36
  private
@@ -9,7 +9,7 @@ module Tomo
9
9
  end
10
10
 
11
11
  def success?
12
- status == true || status == 0 # rubocop:disable Style/NumericPredicate
12
+ status == true || status == 0
13
13
  end
14
14
  end
15
15
  end
data/lib/tomo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tomo
2
- VERSION = "0.18.0".freeze
2
+ VERSION = "0.19.0".freeze
3
3
  end
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: 0.18.0
4
+ version: 0.19.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: 2020-01-23 00:00:00.000000000 Z
11
+ date: 2020-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,28 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 0.79.0
117
+ version: 0.81.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: 0.79.0
124
+ version: 0.81.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop-minitest
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 0.5.1
131
+ version: 0.8.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 0.5.1
138
+ version: 0.8.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop-performance
141
141
  requirement: !ruby/object:Gem::Requirement