tomo 1.10.0 → 1.11.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: 05ddcb1e5cb7af61721270c94830cd0140881d4fd85ba97078994cafe8edb3ee
4
- data.tar.gz: 6df6ad8b97fd3121b9becaa94682fd5e1c4fe8831903c0aafbfa5d1e91f9075b
3
+ metadata.gz: 2f646a8ad8b9a55a908ead2765b2b48461f279328424ffae5ddd71adbf525099
4
+ data.tar.gz: 07b17c07811315a55e49e8b8e0e5d30f56ff88a618fc8ba8053c147f53fa0289
5
5
  SHA512:
6
- metadata.gz: a618b9ba648758197a7f593b89594f24d75435ddebf624c5e9bacdc573966e41e9161c833e1897610da79d385881f3d8c0f7bad8ac0957c02accfe00d5f757a8
7
- data.tar.gz: 0f007ba2ac69941daca0c619adcaba2b4d97af924781c6fc29cff7a368a2206572f4fc93f1bf2f103accdab694c7427ec2d5d1b87b05277f8853b0c39c75961c
6
+ metadata.gz: 1a28e6dcdf0ae942ade3eccad7d3c4cf2b8bc8ae1b843fb342d6bb15b35dacda4e07447a9d68cc7ccbe401bb3665fc48ac3ad82a1c0cf21c3d38b20151d52581
7
+ data.tar.gz: 7ed26ba43d56e602c8aebc59c29900ac53174c8dbf781cc357a16ad5cf5d7581caadd706d5efb4fc6befc30830dba6c322fb9e1910b3cfbfca5573d9bf962c0c
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 Matt Brictson
3
+ Copyright (c) 2022 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
@@ -3,6 +3,14 @@ require "time"
3
3
 
4
4
  module Tomo::Plugin::Git
5
5
  class Tasks < Tomo::TaskLibrary
6
+ def config
7
+ user_name = settings[:git_user_name] || remote.host.user
8
+ user_email = settings[:git_user_email] || "#{remote.host.user}@example.com"
9
+
10
+ remote.git("config", "--global", "user.name", user_name)
11
+ remote.git("config", "--global", "user.email", user_email)
12
+ end
13
+
6
14
  def clone
7
15
  require_setting :git_url
8
16
 
@@ -12,6 +12,8 @@ module Tomo::Plugin
12
12
  git_exclusions: [],
13
13
  git_env: { GIT_SSH_COMMAND: "ssh -o PasswordAuthentication=no -o StrictHostKeyChecking=no" },
14
14
  git_ref: nil,
15
- git_url: nil
15
+ git_url: nil,
16
+ git_user_name: nil,
17
+ git_user_email: nil
16
18
  end
17
19
  end
@@ -29,7 +29,7 @@ module Tomo
29
29
  private
30
30
 
31
31
  def slice(*keys)
32
- keys.map { |key| [key, fiber_locals[key]] }.to_h
32
+ keys.to_h { |key| [key, fiber_locals[key]] }
33
33
  end
34
34
 
35
35
  def fiber_locals
@@ -10,7 +10,7 @@ module Tomo
10
10
  end
11
11
 
12
12
  def call
13
- hash = settings.keys.map { |name| [name, fetch(name)] }.to_h
13
+ hash = settings.keys.to_h { |name| [name, fetch(name)] }
14
14
  dump_settings(hash) if Tomo.debug?
15
15
  hash
16
16
  end
@@ -49,6 +49,7 @@ set linked_dirs: %w[
49
49
  setup do
50
50
  run "env:setup"
51
51
  run "core:setup_directories"
52
+ run "git:config"
52
53
  run "git:clone"
53
54
  run "git:create_release"
54
55
  run "core:symlink_shared"
data/lib/tomo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tomo
2
- VERSION = "1.10.0".freeze
2
+ VERSION = "1.11.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: 1.10.0
4
+ version: 1.11.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-10-13 00:00:00.000000000 Z
11
+ date: 2022-02-26 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
@@ -173,6 +173,7 @@ metadata:
173
173
  source_code_uri: https://github.com/mattbrictson/tomo
174
174
  homepage_uri: https://github.com/mattbrictson/tomo
175
175
  documentation_uri: https://tomo-deploy.com/
176
+ rubygems_mfa_required: 'true'
176
177
  post_install_message:
177
178
  rdoc_options: []
178
179
  require_paths:
@@ -188,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
189
  - !ruby/object:Gem::Version
189
190
  version: '0'
190
191
  requirements: []
191
- rubygems_version: 3.2.26
192
+ rubygems_version: 3.3.7
192
193
  signing_key:
193
194
  specification_version: 4
194
195
  summary: A friendly CLI for deploying Rails apps ✨