squared 0.2.3 → 0.2.4
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/CHANGELOG.md +9 -1
- data/lib/squared/common/format.rb +1 -1
- data/lib/squared/version.rb +1 -1
- data/lib/squared/workspace/project/git.rb +7 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1aedaf9ac684379d28ad4e69449ada34e1e04a1b5241607e29c1142b8ad759d
|
4
|
+
data.tar.gz: 3d13f6d09a48cf2e394ec4497e5c838d69f4eb7cde83df4811059c0e743e029c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16928495ed31d6e0ea9876ff0ce6aef9366e98324a96bceffe99e3d7b60ee0eabc863b8846443947342164166047476d68eab992102dc7143ace991fad3b7575
|
7
|
+
data.tar.gz: 151c60e043f2129f0d84bf04a36531d9131e5a2abcec244311d22e03b23b2b4810b1d24e14663724acf3b25d2a5f3bd166577a294f419a427a0602db9bddabe1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.2.4] - 2025-02-12
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
|
7
|
+
- Git status did not show ignored or untracked files.
|
8
|
+
- Caller locations were not compatible with Ruby 2.4.
|
9
|
+
|
3
10
|
## [0.2.3] - 2025-02-05
|
4
11
|
|
5
12
|
### Fixed
|
@@ -62,7 +69,7 @@
|
|
62
69
|
- Gem install and update non-deprecated options are fully complete.
|
63
70
|
- Pip install options are fully complete.
|
64
71
|
- Node command bump action version was implemented.
|
65
|
-
- Node command add was implemented.
|
72
|
+
- Node command add was implemented.
|
66
73
|
- Python command install can use single character options.
|
67
74
|
- Gem install and pristine options are fully complete.
|
68
75
|
- Gem command outdated was implemented.
|
@@ -176,6 +183,7 @@
|
|
176
183
|
|
177
184
|
- Changelog was created.
|
178
185
|
|
186
|
+
[0.2.4]: https://github.com/anpham6/squared/releases/tag/v0.2.4-ruby
|
179
187
|
[0.2.3]: https://github.com/anpham6/squared/releases/tag/v0.2.3-ruby
|
180
188
|
[0.2.2]: https://github.com/anpham6/squared/releases/tag/v0.2.2-ruby
|
181
189
|
[0.2.1]: https://github.com/anpham6/squared/releases/tag/v0.2.1-ruby
|
@@ -279,7 +279,7 @@ module Squared
|
|
279
279
|
end
|
280
280
|
|
281
281
|
def raise_error(*args, hint: nil, kind: ArgumentError)
|
282
|
-
raise kind, message(*args, hint: hint, empty: true), caller_locations(1)
|
282
|
+
raise kind, message(*args, hint: hint, empty: true), caller_locations(1).map(&:to_s)
|
283
283
|
end
|
284
284
|
end
|
285
285
|
end
|
data/lib/squared/version.rb
CHANGED
@@ -538,7 +538,8 @@ module Squared
|
|
538
538
|
end
|
539
539
|
|
540
540
|
def status(*, sync: invoked_sync?('status'), **)
|
541
|
-
cmd = git_session 'status'
|
541
|
+
cmd = git_session 'status'
|
542
|
+
cmd << (option('long') ? '--long' : '--short')
|
542
543
|
if (val = option('ignore-submodules', ignore: false))
|
543
544
|
cmd << basic_option('ignore-submodules', case val
|
544
545
|
when '0', 'none'
|
@@ -559,8 +560,8 @@ module Squared
|
|
559
560
|
end
|
560
561
|
ret = write_lines(out, banner: banner, sub: if verbose
|
561
562
|
[
|
562
|
-
{ pat: /^(.)([A-Z])(.+)$/, styles: :red, index: 2 },
|
563
|
-
{ pat: /^([A-Z])(.+)$/, styles: :green },
|
563
|
+
{ pat: /^(.)([A-Z?!])(.+)$/, styles: :red, index: 2 },
|
564
|
+
{ pat: /^([A-Z?!])(.+)$/, styles: :green },
|
564
565
|
{ pat: /^(\?\?)(.+)$/, styles: :red },
|
565
566
|
{ pat: /^(## )(.+)(\.{3})(.+)$/,
|
566
567
|
styles: [nil, :green, nil, :red], index: -1 }
|
@@ -721,15 +722,15 @@ module Squared
|
|
721
722
|
origin = nil
|
722
723
|
branch = nil
|
723
724
|
upstream = nil
|
724
|
-
source(git_output('fetch
|
725
|
-
source(git_output('branch
|
725
|
+
source(git_output('fetch --no-tags --quiet'), io: true, banner: false)
|
726
|
+
source(git_output('branch -vv --list'), io: true, banner: false).first.each do |val|
|
726
727
|
next unless (data = /^\*\s(\S+)\s+(\h+)(?:\s\[(.+?)(?=\]\s)\])?\s/.match(val))
|
727
728
|
|
728
729
|
branch = data[1]
|
729
730
|
sha = data[2]
|
730
731
|
if !data[3]
|
731
732
|
unless (origin = option('repository', prefix: 'git', ignore: false))
|
732
|
-
out = source(git_output('log
|
733
|
+
out = source(git_output('log -n1 --format=%h%d'), io: true, stdout: true, banner: false).first
|
733
734
|
if (data = /^#{sha} \(HEAD -> #{Regexp.escape(branch)}, (.+?)\)$/.match(out))
|
734
735
|
split_escape(data[1]).each do |val|
|
735
736
|
next unless val.end_with?("/#{branch}")
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squared
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- An Pham
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-02-
|
10
|
+
date: 2025-02-13 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
|
-
rubygems_version: 3.6.
|
109
|
+
rubygems_version: 3.6.2
|
110
110
|
specification_version: 4
|
111
111
|
summary: Rake task generator for managing multi-language workspaces.
|
112
112
|
test_files: []
|