mj 1.2.0 → 1.2.2

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: 719a1dd98c88afa768cf64e3f898ef95535a2b11a1322bad42dd3adaa31cd378
4
- data.tar.gz: 17980273bfabcf5b9b2378f7e0687de5c3fd2b4df412caa101ace15aab3ce266
3
+ metadata.gz: 8245d05f4922356252289cc3b99761b12df7fde1bf437c03e137090af4f21e9d
4
+ data.tar.gz: 01ed21b96b9b13514f2f5f2d2786fc572c9e898a645980d6dcfdf32808ba31cb
5
5
  SHA512:
6
- metadata.gz: 652fb4a8eb141689c29acfffb70666f1a17ca3acad33a888cd5e86ce2728def89959f3543cebd36e3587cd4227fc7166c7f677657ed9b20ee6b445b4f904fd8e
7
- data.tar.gz: 1c9027cbde6e702272eee45edbbf5ad06392e527b32ff37454155541c455d5127a7013308dc38db414b78f4ef8b5d7ecd6c578f9d22b066ddfcb1c140d521f73
6
+ metadata.gz: 80c01158bf45553c5bfd7169be4a55ca19bc13d304c1524127b636390f4ef4197fd765b5bd4cca2ab89e3e90fbfbb42fb62a9b1cd174f97d54a4e7a58cd11c72
7
+ data.tar.gz: 7b5a8e6dfeab353533d614618421f8dfc729f2186c96c5978297d43e359b737a7089deb72e2d1028e478c3358785985e52bbeaa38fc27ea797933f7caabd8b9e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mj (1.2.0)
4
+ mj (1.2.2)
5
5
  colorize
6
6
  koine-rest_client
7
7
  mj-hash_utils
@@ -42,6 +42,9 @@ module Mj
42
42
  def add_integration_test(file, candidates, type)
43
43
  path = file.without_prefix("app/controllers").without_suffix(".rb").trim_slashes
44
44
  add_candidate("#{type}/integration/#{path}_#{type}.rb", "integration_#{type}", to: candidates)
45
+
46
+ path = file.without_prefix("app/controllers").without_suffix(".rb").trim_slashes
47
+ add_candidate("#{type}/integration/controllers/#{path}_#{type}.rb", "integration_#{type}", to: candidates)
45
48
  end
46
49
 
47
50
  def add_request_test(file, candidates, type)
@@ -68,6 +71,7 @@ module Mj
68
71
  end
69
72
 
70
73
  controller_path = file.sub("test/integration", "app/controllers")
74
+ .sub("spec/integration/controllers", "app/controllers")
71
75
  .sub("spec/integration", "app/controllers")
72
76
  .sub("spec/controllers", "app/controllers")
73
77
  .sub("test/controllers", "app/controllers")
@@ -100,7 +100,9 @@ module Mj
100
100
  return true
101
101
  end
102
102
 
103
- if command.from_commiters.map(&:downcase).include?(branch.last_commiter_email.downcase)
103
+ email = branch.last_commiter_email
104
+
105
+ if email && command.from_commiters.map(&:downcase).include?(email)
104
106
  return true
105
107
  end
106
108
 
@@ -32,11 +32,11 @@ module Mj
32
32
  aliases: :c
33
33
  option :after_date,
34
34
  type: :string,
35
- banner: "Formatted date YYY-MM-DD",
35
+ banner: "Formatted date YYYY-MM-DD",
36
36
  aliases: :a
37
37
  option :before_date,
38
38
  type: :string,
39
- banner: "Formatted date YYY-MM-DD",
39
+ banner: "Formatted date YYYY-MM-DD",
40
40
  aliases: :b
41
41
  option :from_pull_requestors,
42
42
  type: :string,
data/lib/mj/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mj
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Jacobus
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-12-08 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: colorize
@@ -163,7 +162,6 @@ metadata:
163
162
  source_code_uri: https://github.com/mjacobus/mj
164
163
  changelog_uri: https://github.com/mjacobus/mj/blob/main/CHANGELOG.md
165
164
  rubygems_mfa_required: 'true'
166
- post_install_message:
167
165
  rdoc_options: []
168
166
  require_paths:
169
167
  - lib
@@ -178,8 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
176
  - !ruby/object:Gem::Version
179
177
  version: '0'
180
178
  requirements: []
181
- rubygems_version: 3.5.14
182
- signing_key:
179
+ rubygems_version: 3.6.7
183
180
  specification_version: 4
184
181
  summary: My personal CLI
185
182
  test_files: []