squared 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/squared/common/format.rb +1 -1
- data/lib/squared/common/shell.rb +1 -1
- data/lib/squared/version.rb +1 -1
- data/lib/squared/workspace/project/base.rb +1 -1
- data/lib/squared/workspace/project/git.rb +8 -8
- data/lib/squared/workspace/project/node.rb +1 -1
- data/lib/squared/workspace/project/python.rb +4 -3
- data/lib/squared/workspace/project/ruby.rb +4 -4
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11c047668befa13733be4f81fbac270909c72be73754f70b464e804c11f8204e
|
4
|
+
data.tar.gz: fac920aa92d55210e48c2f780ea366b58f0c9ed870d524b5bf19eeeeb2628ab1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78b3346cbf690fa4ce9a36431eaad0ffb24d464a46700810c19f6938b5e020c94c1ede8709f61e448f75443f3b8c9df8a00877e380e81beb7ce37732dc244289
|
7
|
+
data.tar.gz: ee6b18f73590b38fa91a2f73852cbc6ccc467255bed2c5c540731d565dc43e15b1b6c103866003979518ef416fcb450beb5c58f5f1ad1c20119437d5f795aa84
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.1.3] - 2024-01-02
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
|
7
|
+
- Output lines from IO were missing theme styling.
|
8
|
+
- Node did not apply build options when stored as Array.
|
9
|
+
- Git commit push did not send origin and branch.
|
10
|
+
|
3
11
|
## [0.1.2] - 2024-12-23
|
4
12
|
|
5
13
|
### Added
|
@@ -71,6 +79,7 @@
|
|
71
79
|
|
72
80
|
- Changelog was created.
|
73
81
|
|
82
|
+
[0.1.3]: https://github.com/anpham6/squared/releases/tag/v0.1.3-ruby
|
74
83
|
[0.1.2]: https://github.com/anpham6/squared/releases/tag/v0.1.2-ruby
|
75
84
|
[0.1.1]: https://github.com/anpham6/squared/releases/tag/v0.1.1-ruby
|
76
85
|
[0.1.0]: https://github.com/anpham6/squared/releases/tag/v0.1.0-ruby
|
@@ -170,7 +170,7 @@ module Squared
|
|
170
170
|
args = args.map(&:to_s)
|
171
171
|
if args.size > 1
|
172
172
|
title = log_title(level, color: false)
|
173
|
-
sub = { pat:
|
173
|
+
sub = { pat: /^(#{title})(.+)$/, styles: __get__(:theme)[:logger][log_sym(level)] } if color
|
174
174
|
emphasize(args, title: title + (subject ? " #{subject}" : ''), sub: sub)
|
175
175
|
else
|
176
176
|
msg = [log_title(level, color: color)]
|
data/lib/squared/common/shell.rb
CHANGED
data/lib/squared/version.rb
CHANGED
@@ -261,8 +261,8 @@ module Squared
|
|
261
261
|
append_pull opts, OPT_PULL, flag
|
262
262
|
sub = if verbose
|
263
263
|
[
|
264
|
-
{ pat:
|
265
|
-
{ pat:
|
264
|
+
{ pat: /^(.+)(\|\s+\d+\s+)([^-]*)(-+)(.*)$/, styles: :red, index: 4 },
|
265
|
+
{ pat: /^(.+)(\|\s+\d+\s+)(\++)(-*)(.*)$/, styles: :green, index: 3 }
|
266
266
|
]
|
267
267
|
end
|
268
268
|
source(sync: sync, sub: sub, **threadargs)
|
@@ -315,10 +315,10 @@ module Squared
|
|
315
315
|
end
|
316
316
|
ret = write_lines(out, banner: banner, sub: if verbose
|
317
317
|
[
|
318
|
-
{ pat:
|
319
|
-
{ pat:
|
320
|
-
{ pat:
|
321
|
-
{ pat:
|
318
|
+
{ pat: /^(.)([A-Z])(.+)$/, styles: :red, index: 2 },
|
319
|
+
{ pat: /^([A-Z])(.+)$/, styles: :green },
|
320
|
+
{ pat: /^(\?\?)(.+)$/, styles: :red },
|
321
|
+
{ pat: /^(## )(.+)(\.{3})(.+)$/,
|
322
322
|
styles: [nil, :green, nil, :red], index: -1 }
|
323
323
|
]
|
324
324
|
end)
|
@@ -514,7 +514,7 @@ module Squared
|
|
514
514
|
end
|
515
515
|
a << pathspec
|
516
516
|
b << '--force' if amend
|
517
|
-
b <<
|
517
|
+
b << origin << branch
|
518
518
|
puts if pass
|
519
519
|
source a.join(' ')
|
520
520
|
source cmd
|
@@ -624,7 +624,7 @@ module Squared
|
|
624
624
|
styles = theme.fetch(:banner, []).reject { |s| s.to_s.end_with?('!') }
|
625
625
|
styles << :bold if styles.size <= 1
|
626
626
|
puts print_footer("#{size} #{size == 1 ? type.sub(/s\z/, '') : type}",
|
627
|
-
sub: {
|
627
|
+
sub: { pat: /\A(\d+)(.+)\z/, styles: styles })
|
628
628
|
else
|
629
629
|
puts empty_status("No #{type} were #{action}", 'grep', grep)
|
630
630
|
end
|
@@ -122,7 +122,7 @@ module Squared
|
|
122
122
|
cmd << (type == 1 ? '-r requirements.txt' : '.')
|
123
123
|
run(sync: sync)
|
124
124
|
when 3
|
125
|
-
run_s(
|
125
|
+
run_s('python setup.py install', sync: sync)
|
126
126
|
end
|
127
127
|
end
|
128
128
|
end
|
@@ -164,13 +164,14 @@ module Squared
|
|
164
164
|
|
165
165
|
def append_pip(opts = [], list = [])
|
166
166
|
opts.each do |opt|
|
167
|
-
|
167
|
+
data = nil
|
168
|
+
next unless list.include?(opt) || OPT_GENERAL.include?(opt) || (data = opt.match(/^verbose|(v+)$/))
|
168
169
|
|
169
170
|
@session << case opt
|
170
171
|
when 'venv'
|
171
172
|
'--require-virtualenv'
|
172
173
|
else
|
173
|
-
(
|
174
|
+
(data && data[1] ? "-#{data[1]}" : "--#{opt}")
|
174
175
|
end
|
175
176
|
end
|
176
177
|
val = nil
|
@@ -7,9 +7,9 @@ module Squared
|
|
7
7
|
VAR_SET = %i[version autodetect].freeze
|
8
8
|
GEMFILE = %w[Gemfile Gemfile.lock gem.deps.rb Isolate].freeze
|
9
9
|
RUBY_DIR = (GEMFILE + Rake::Application::DEFAULT_RAKEFILES + ['README.rdoc']).freeze
|
10
|
-
OPT_INSTALL = %w[no-cache
|
11
|
-
OPT_UPDATE = %w[redownload local strict
|
12
|
-
OPT_OUTDATED = %w[
|
10
|
+
OPT_INSTALL = %w[system frozen no-cache no-prune].freeze
|
11
|
+
OPT_UPDATE = %w[all redownload conservative local strict group=s].freeze
|
12
|
+
OPT_OUTDATED = %w[pre only-explicit local strict group=s].freeze
|
13
13
|
private_constant :VAR_SET, :GEMFILE, :RUBY_DIR, :OPT_INSTALL, :OPT_UPDATE, :OPT_OUTDATED
|
14
14
|
|
15
15
|
class << self
|
@@ -178,7 +178,7 @@ module Squared
|
|
178
178
|
gem_session 'install'
|
179
179
|
append_value opts
|
180
180
|
when :with, :without
|
181
|
-
|
181
|
+
bundle_session 'install'
|
182
182
|
append_repeat flag, opts
|
183
183
|
when :redownload, :local, :'prefer-local'
|
184
184
|
cmd = bundle_session 'install', "--#{flag}"
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squared
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- An Pham
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rake
|
@@ -93,7 +92,6 @@ metadata:
|
|
93
92
|
homepage_uri: https://github.com/anpham6/squared
|
94
93
|
source_code_uri: https://github.com/anpham6/squared
|
95
94
|
documentation_uri: https://squared.readthedocs.io
|
96
|
-
post_install_message:
|
97
95
|
rdoc_options: []
|
98
96
|
require_paths:
|
99
97
|
- lib
|
@@ -108,8 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
106
|
- !ruby/object:Gem::Version
|
109
107
|
version: '0'
|
110
108
|
requirements: []
|
111
|
-
rubygems_version: 3.
|
112
|
-
signing_key:
|
109
|
+
rubygems_version: 3.6.2
|
113
110
|
specification_version: 4
|
114
111
|
summary: Rake task generator for managing multi-language workspaces.
|
115
112
|
test_files: []
|