mutant 0.10.34 → 0.10.35
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/lib/mutant/cli/command/environment/irb.rb +21 -0
- data/lib/mutant/cli/command/root.rb +1 -1
- data/lib/mutant/version.rb +1 -1
- data/lib/mutant.rb +2 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b90188339d2ae50f1bc48723f56dc2740b6932a99cd8aae263543734aa66c494
|
4
|
+
data.tar.gz: dcd1e40f9dc9b37467ec067142da4f2c1c6351191de235b2a88237c16b6b936c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 323cc89a39fb5163c7778d5a9ae7e989e207c974436207803d91118c502e17219b47514573d24d2e9003043bb170744110e68c9fa8dc2201236566d1a2f701c7
|
7
|
+
data.tar.gz: 4f27f289f727c157237f65a15241b8adce8f91027894690994908eb698895a4c81f57344138e7c1a010454aee06776a41460f1ed37a4f164871b58e71291c1ca
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Mutant
|
4
|
+
module CLI
|
5
|
+
class Command
|
6
|
+
class Environment
|
7
|
+
class IRB < self
|
8
|
+
NAME = 'irb'
|
9
|
+
SHORT_DESCRIPTION = 'Run irb with mutant environment loaded'
|
10
|
+
SUBCOMMANDS = EMPTY_ARRAY
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def action
|
15
|
+
bootstrap.fmap { TOPLEVEL_BINDING.irb }
|
16
|
+
end
|
17
|
+
end # IRB
|
18
|
+
end # Environment
|
19
|
+
end # Command
|
20
|
+
end # CLI
|
21
|
+
end # Mutant
|
@@ -4,7 +4,7 @@ module Mutant
|
|
4
4
|
module CLI
|
5
5
|
class Command
|
6
6
|
class Environment < self
|
7
|
-
SUBCOMMANDS = [Environment::Subject, Environment::Show, Environment::Test].freeze
|
7
|
+
SUBCOMMANDS = [Environment::Subject, Environment::Show, Environment::IRB, Environment::Test].freeze
|
8
8
|
end # Environment
|
9
9
|
|
10
10
|
class Root < self
|
data/lib/mutant/version.rb
CHANGED
data/lib/mutant.rb
CHANGED
@@ -4,6 +4,7 @@ require 'diff/lcs'
|
|
4
4
|
require 'diff/lcs/hunk'
|
5
5
|
require 'digest/sha1'
|
6
6
|
require 'etc'
|
7
|
+
require 'irb'
|
7
8
|
require 'json'
|
8
9
|
require 'open3'
|
9
10
|
require 'optparse'
|
@@ -194,6 +195,7 @@ require 'mutant/cli'
|
|
194
195
|
require 'mutant/cli/command'
|
195
196
|
require 'mutant/cli/command/subscription'
|
196
197
|
require 'mutant/cli/command/environment'
|
198
|
+
require 'mutant/cli/command/environment/irb'
|
197
199
|
require 'mutant/cli/command/environment/run'
|
198
200
|
require 'mutant/cli/command/environment/show'
|
199
201
|
require 'mutant/cli/command/environment/subject'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mutant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diff-lcs
|
@@ -180,6 +180,7 @@ files:
|
|
180
180
|
- lib/mutant/cli.rb
|
181
181
|
- lib/mutant/cli/command.rb
|
182
182
|
- lib/mutant/cli/command/environment.rb
|
183
|
+
- lib/mutant/cli/command/environment/irb.rb
|
183
184
|
- lib/mutant/cli/command/environment/run.rb
|
184
185
|
- lib/mutant/cli/command/environment/show.rb
|
185
186
|
- lib/mutant/cli/command/environment/subject.rb
|
@@ -360,7 +361,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
360
361
|
requirements:
|
361
362
|
- - ">="
|
362
363
|
- !ruby/object:Gem::Version
|
363
|
-
version: '2.
|
364
|
+
version: '2.6'
|
364
365
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
365
366
|
requirements:
|
366
367
|
- - ">="
|