neeto-translate-cli 0.2.9 → 0.2.10

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: 69664999355e94a492f7b2143f475555d5d34f74952be53360b636d08eacdd11
4
- data.tar.gz: e662a70a78a0aa498611279feb5179bcb76e219c10d17678c4b365c6f68836bf
3
+ metadata.gz: aa22aafd84257f4fa8d4e00ccf6f334c28a3e392bc38d69f10084c56a4052110
4
+ data.tar.gz: 3675d04113ee53f2780901e5c997c5a7e1894d347eb6de34f82f0f3fac5f1175
5
5
  SHA512:
6
- metadata.gz: 9b0196c1e6a1afaa03af7689c547f8cfd00000b25d085f4e3ac708c517f39f977fb4159ea381fb25a7fbb0ac2c0ec878beedd89e40fc4acfb020ec094e4a7033
7
- data.tar.gz: 225d4a6721608b13f41d86680080f916807d6cd08d52cf5d776b2696ebfb75d8900e3395374f8b913a497046f84f0296009421277d1a8e9e151fcd4ec3dab923
6
+ metadata.gz: 179fa29d565045d79403d6a29439158232625c7b5f03539d3a1af57c9867fe25cee68be14ffd738cb9ef1584ab4c22fd5eda5a1e7a0e50f1c0d656112ffa34e3
7
+ data.tar.gz: 9e67cfa18e53493d644d3e82b0464cce9f2c89bbe9372e9ee986b960d916e1aafb1258111d2afc4baa64af9b4aad687fb1cd8cb19e17b375287539cecbdae5fb
@@ -35,7 +35,36 @@ module NeetoTranslateCli
35
35
  private
36
36
 
37
37
  def git_commit_id
38
- `git log --grep="[neeto-translate]" --fixed-strings -n 1 --pretty=format:"%H"`.strip
38
+ puts "DEBUG: Current working directory: #{Dir.pwd}"
39
+ puts "DEBUG: Git repository root: #{`git rev-parse --show-toplevel`.strip}"
40
+ puts "DEBUG: Current branch: #{`git branch --show-current`.strip}"
41
+ puts "DEBUG: Recent commits:"
42
+ puts `git log --oneline -5`
43
+ puts "DEBUG: Searching for commits with '[neeto-translate]' in message..."
44
+
45
+ # Try different variations of the grep pattern
46
+ puts "DEBUG: Trying exact match:"
47
+ result1 = `git log --grep="[neeto-translate]" --fixed-strings -n 1 --pretty=format:"%H"`.strip
48
+ puts "DEBUG: Result 1 (exact): '#{result1}'"
49
+
50
+ puts "DEBUG: Trying without fixed-strings:"
51
+ result2 = `git log --grep="neeto-translate" -n 1 --pretty=format:"%H"`.strip
52
+ puts "DEBUG: Result 2 (without fixed-strings): '#{result2}'"
53
+
54
+ puts "DEBUG: Trying with case insensitive:"
55
+ result3 = `git log --grep="neeto-translate" -i -n 1 --pretty=format:"%H"`.strip
56
+ puts "DEBUG: Result 3 (case insensitive): '#{result3}'"
57
+
58
+ puts "DEBUG: All commits with 'neeto' in message:"
59
+ puts `git log --grep="neeto" --oneline`
60
+
61
+ puts "DEBUG: All commits with 'translate' in message:"
62
+ puts `git log --grep="translate" --oneline`
63
+
64
+ # Return the first non-empty result
65
+ final_result = result1.empty? ? (result2.empty? ? result3 : result2) : result1
66
+ puts "DEBUG: Final commit id: '#{final_result}'"
67
+ final_result
39
68
  end
40
69
 
41
70
  def find_updated_keys(commit_id)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NeetoTranslateCli
4
- VERSION = "0.2.9"
4
+ VERSION = "0.2.10"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neeto-translate-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abhay V Ashokan