rexer 0.9.0 → 0.9.1

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: 8718806ffc0a827890d574a6396e88904059b58b5087b6ac09740da7bd39be42
4
- data.tar.gz: b651388f82e418b597bbdf59016bf5a392b86593a462db1248eee5e6c101239f
3
+ metadata.gz: 1db7d4adf66ad78aae372f512810ade8001893feadc4233da362ad2bffaa5f58
4
+ data.tar.gz: a5b03b4d24061a734c2525b1b6251c8e905c4055b7ab7c7fc42a8c6edb5ad13c
5
5
  SHA512:
6
- metadata.gz: ba24fbdc765bc378b6fd024c9e9215db5476c40cb77890da0468343374d79049d2bbb18d2a216377c71d4cc42d77a221c75493f3783f553521b29b27c8a1641d
7
- data.tar.gz: fde4958f98ae92922e07a16b8b0564897a7449ab8f16b5102c9ca77389614290a7e5c59128af436843e028783094ba017af9ef59b4fd99250ca494f00845dff5
6
+ metadata.gz: cb41f315f2e2881f08a6e8831df01809ac9a36b10734289201d430bdf9bba91d13fe02fc64e7c730e4a268442cadfbe5bba1e1057f0f0967f41e250fb3e5b9d7
7
+ data.tar.gz: 806b8384297143c5d1e27b44a2a79106203b87133c41233e85c05510da0e590b9bd81b9cd96b6199bab09c2f4a45d1aa28e1174b4894146b7fcbf87afbe3098d
@@ -39,14 +39,14 @@ module Rexer
39
39
  return unless needs_db_migration?
40
40
 
41
41
  envs = {"NAME" => name.to_s}.merge(extra_envs)
42
- cmds = cmd("bundle", "exec", "rake", Rexer.verbosity.debug? ? nil : "-q", "redmine:plugins:migrate")
42
+ cmds = build_cmd("bundle", "exec", "rake", Rexer.verbosity.debug? ? nil : "-q", "redmine:plugins:migrate", envs:)
43
43
 
44
- broadcast(:processing, "Execute #{cmds} with #{envs}")
44
+ broadcast(:processing, "Execute #{cmds}")
45
45
 
46
46
  if Rexer.verbosity.debug?
47
- system(envs, cmds, exception: true)
47
+ system(cmds, exception: true)
48
48
  else
49
- _, error, status = Open3.capture3(envs, cmds)
49
+ _, error, status = Open3.capture3(cmds)
50
50
  raise error unless status.success?
51
51
  end
52
52
  end
@@ -55,8 +55,9 @@ module Rexer
55
55
  @source ||= Source.from_definition(definition.source)
56
56
  end
57
57
 
58
- def cmd(*command)
59
- [Rexer.config.command_prefix, *command].compact.join(" ")
58
+ def build_cmd(*command, envs: {})
59
+ envs_str = envs.map { [_1, _2].join("=") }
60
+ [Rexer.config.command_prefix, *command, *envs_str].compact.join(" ")
60
61
  end
61
62
  end
62
63
 
@@ -86,7 +87,7 @@ module Rexer
86
87
  def run_bundle_install
87
88
  return unless plugin_dir.join("Gemfile").exist?
88
89
 
89
- cmds = cmd("bundle", "install", Rexer.verbosity.debug? ? nil : "--quiet")
90
+ cmds = build_cmd("bundle", "install", Rexer.verbosity.debug? ? nil : "--quiet")
90
91
 
91
92
  broadcast(:processing, "Execute #{cmds}")
92
93
 
data/lib/rexer/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rexer
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katsuya Hidaka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-01 00:00:00.000000000 Z
11
+ date: 2024-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor