tramway-core 4.1.1 → 4.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac7eeed94de14add119fbc165ccb751d66434804820b453d0291c032d5a60fa1
4
- data.tar.gz: d94cc5ae90bc4b0d8f39be2f95ac03b3cfa63ff45ad656edcb33001681d50218
3
+ metadata.gz: 184c883be6f97ec2221a8c5bd73d912a68e9ae2bebe53738ec1dbd3db215d231
4
+ data.tar.gz: 9dc73c594a9576eb720ca94cc5a74c5f657a3c67bafd60f8b8dc840a23c057d7
5
5
  SHA512:
6
- metadata.gz: 32f49b4b39499903f3a9b3f27d2f3310df8ceb1694e1112d5e31a91c88ce7d61660ed64fc4174abb06cad1f48a42ae043ad0157024fb6b6d113bb604a0619105
7
- data.tar.gz: 8bc142f5f9d0f9cd9a8d724ca5656091010defbd578279a05be929da1eca2452324d508266c25981e0fa395dd31fcb0c418ce503b2d30994a6f0b7fb99c842f3
6
+ metadata.gz: e8d2da19e2722c086ad643ea55c1cebae2bff6ffb35cdfb822935fd267671b2e29ea22d51b5739aa4f782f8aeabec447be7fa42f081e700d2907942080194480
7
+ data.tar.gz: 50d41cc9356e53d5136a1172d7586442b7e0765080eb26858c9c1def7386754115b9d9b0a5b968e3202c6123ffed5e6447618f7ef266427be5e2d91ad230d7fc
@@ -10,6 +10,7 @@ class Tramway::Core::ApplicationDecorator
10
10
  include ::Tramway::Core::CopyToClipboardHelper
11
11
  include ::Tramway::Core::Associations::ObjectHelper
12
12
  include ::Tramway::Core::Attributes::ViewHelper
13
+ include ::Tramway::Core::Concerns::TableBuilder
13
14
  include ::Tramway::ClassNameHelpers
14
15
 
15
16
  def initialize(object)
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Tramway::Core::Concerns::TableBuilder
4
+ def table(**options, &block)
5
+ content_tag(:table, class: 'table table-bordered table-striped', **options) do
6
+ yield if block
7
+ end
8
+ end
9
+
10
+ def thead(**options, &block)
11
+ content_tag(:thead, **options) do
12
+ yield if block
13
+ end
14
+ end
15
+
16
+ def th(**options, &block)
17
+ content_tag(:th, **options) do
18
+ yield if block
19
+ end
20
+ end
21
+
22
+ def td(**options, &block)
23
+ content_tag(:td, **options) do
24
+ yield if block
25
+ end
26
+ end
27
+
28
+ def tr(**options, &block)
29
+ content_tag(:tr, **options) do
30
+ yield if block
31
+ end
32
+ end
33
+ end
@@ -23,7 +23,6 @@ class Tramway::Core::ApplicationRecord < ActiveRecord::Base
23
23
  end
24
24
  end
25
25
 
26
-
27
26
  include ::PgSearch::Model
28
27
 
29
28
  def creator
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Core
5
- VERSION = '4.1.1'
5
+ VERSION = '4.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-02-18 00:00:00.000000000 Z
12
+ date: 2022-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: audited
@@ -161,22 +161,22 @@ dependencies:
161
161
  name: mini_magick
162
162
  requirement: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: 4.8.0
167
164
  - - "~>"
168
165
  - !ruby/object:Gem::Version
169
166
  version: '4.8'
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: 4.8.0
170
170
  type: :runtime
171
171
  prerelease: false
172
172
  version_requirements: !ruby/object:Gem::Requirement
173
173
  requirements:
174
- - - ">="
175
- - !ruby/object:Gem::Version
176
- version: 4.8.0
177
174
  - - "~>"
178
175
  - !ruby/object:Gem::Version
179
176
  version: '4.8'
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: 4.8.0
180
180
  - !ruby/object:Gem::Dependency
181
181
  name: pg_search
182
182
  requirement: !ruby/object:Gem::Requirement
@@ -320,6 +320,7 @@ files:
320
320
  - app/decorators/tramway/core/associations/object_helper.rb
321
321
  - app/decorators/tramway/core/attributes/view_helper.rb
322
322
  - app/decorators/tramway/core/concerns/attributes_decorator_helper.rb
323
+ - app/decorators/tramway/core/concerns/table_builder.rb
323
324
  - app/decorators/tramway/core/delegating/class_helper.rb
324
325
  - app/forms/tramway/core/application_form.rb
325
326
  - app/forms/tramway/core/application_forms/association_class_helpers.rb
@@ -413,7 +414,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
413
414
  - !ruby/object:Gem::Version
414
415
  version: '0'
415
416
  requirements: []
416
- rubygems_version: 3.0.3.1
417
+ rubygems_version: 3.1.6
417
418
  signing_key:
418
419
  specification_version: 4
419
420
  summary: Core for all Tramway Rails Engines