nazar 1.3.2 → 1.3.3
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/.github/workflows/main.yml +4 -4
- data/lib/nazar/formatter/active_record_collection.rb +1 -1
- data/lib/nazar/horizontal_table.rb +1 -1
- data/lib/nazar/renderer.rb +1 -1
- data/lib/nazar/version.rb +1 -1
- data/nazar.gemspec +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 916ecbf49c830301a0307e48d14ce73efcc51b357ad7d295a9da9202f00458f6
|
4
|
+
data.tar.gz: 127c129f152ca7f2b0cf95fbaf5fbac74c0b446eb8e790c6f20c5b9541633f19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51da03b04ef8d8b23ba3a021d96bd59bf5e8c3c87ae07ae0a5424aa6b72d0fa2d3ce9678af7a7e0e2004fbefbb0e0392797ea40f86d651a89bc889c24723febf
|
7
|
+
data.tar.gz: fedbdeeb5a0051efcd66ae0709bc25e6d4cc098206054a5c0a2477ab57afcfa5f0bd9498353bf50f794865a08d0e0ab126caf9da42bf81de9c095deb9f742bcc
|
data/.github/workflows/main.yml
CHANGED
@@ -12,7 +12,7 @@ jobs:
|
|
12
12
|
- uses: actions/checkout@v2
|
13
13
|
- uses: ruby/setup-ruby@v1
|
14
14
|
with:
|
15
|
-
ruby-version:
|
15
|
+
ruby-version: 3.3.4
|
16
16
|
bundler-cache: true
|
17
17
|
|
18
18
|
- name: Bundle
|
@@ -23,7 +23,7 @@ jobs:
|
|
23
23
|
- uses: actions/checkout@v2
|
24
24
|
- uses: ruby/setup-ruby@v1
|
25
25
|
with:
|
26
|
-
ruby-version:
|
26
|
+
ruby-version: 3.3.4
|
27
27
|
bundler-cache: true
|
28
28
|
- run: bundle exec rubocop --format simple
|
29
29
|
specs:
|
@@ -32,11 +32,11 @@ jobs:
|
|
32
32
|
- uses: actions/checkout@v2
|
33
33
|
- uses: ruby/setup-ruby@v1
|
34
34
|
with:
|
35
|
-
ruby-version:
|
35
|
+
ruby-version: 3.3.4
|
36
36
|
bundler-cache: true
|
37
37
|
- name: Specs
|
38
38
|
uses: paambaati/codeclimate-action@v2.7.5
|
39
39
|
env:
|
40
40
|
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
|
41
41
|
with:
|
42
|
-
coverageCommand: bundle exec rspec
|
42
|
+
coverageCommand: bundle exec rspec
|
@@ -15,7 +15,7 @@ module Nazar
|
|
15
15
|
@klass = collection.first&.class
|
16
16
|
end
|
17
17
|
|
18
|
-
def self.valid?(data)
|
18
|
+
def self.valid?(data) # rubocop:disable Metrics/CyclomaticComplexity
|
19
19
|
return false if data.is_a?(::Struct) || (defined?(OpenStruct) && data.is_a?(OpenStruct))
|
20
20
|
|
21
21
|
data.is_a?(ActiveRecord::Associations::CollectionProxy) ||
|
@@ -13,7 +13,7 @@ module Nazar
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def options
|
16
|
-
{ border: { separator: :each_row }, multiline: true, resize: resize }.tap do |hash|
|
16
|
+
{ border: { separator: :each_row }, multiline: true, resize: resize, padding: [0, 1, 0, 1] }.tap do |hash|
|
17
17
|
hash[:width] = Nazar.config.table.max_width if Nazar.config.table.max_width
|
18
18
|
end
|
19
19
|
end
|
data/lib/nazar/renderer.rb
CHANGED
data/lib/nazar/version.rb
CHANGED
data/nazar.gemspec
CHANGED
@@ -31,9 +31,9 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
|
31
31
|
spec.add_development_dependency 'simplecov', '~> 0.20'
|
32
32
|
spec.add_development_dependency 'sqlite3', '~> 1.0'
|
33
33
|
|
34
|
-
spec.
|
35
|
-
spec.
|
36
|
-
spec.
|
37
|
-
spec.
|
38
|
-
spec.
|
34
|
+
spec.add_dependency 'dry-configurable', '~> 1.2'
|
35
|
+
spec.add_dependency 'pastel', '~> 0.8'
|
36
|
+
spec.add_dependency 'tty-pager', '~> 0.14'
|
37
|
+
spec.add_dependency 'tty-screen', '~> 0.8'
|
38
|
+
spec.add_dependency 'tty-table', '~> 0.12'
|
39
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nazar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michał Krzyżanowski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08
|
11
|
+
date: 2024-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|