tramway-core 1.9.2.1 → 1.9.3

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: 3a4bb4a6f9cc0bfed8028ad18f96fccb924d3a54fa64bfd69e3d6986a2b5eefc
4
- data.tar.gz: 942e8ce33a47e17b63e7f051c10fd7989c326e4dfa6939d45d5d418e1f416cf5
3
+ metadata.gz: 115e191e6c355770d6f1dd91d5a9d4fa31823fab89ed9db9946f56b4508919b4
4
+ data.tar.gz: c0cbd8a6be14c53ec2e65492b9d6331af3a8cc6c296a56704e54505d37da957b
5
5
  SHA512:
6
- metadata.gz: 7ab8fe694f4e88992a49fcb0931e87484fdd009c4de5f19d5faf553ea4bdde6c0660046ddb5eed6f65b0992bfa71c46e3fca91f0c41eec21e63b966c08f6719e
7
- data.tar.gz: 790cafa3a38bc5ea9fd1435bd77e334225b0d7bff8ee4ba974906399b8f3068925739719199e44ef1ed5e34fbc599240ba0aa351392c2afe23c5f8493809e28a
6
+ metadata.gz: 8264ee7c935e72f2af86ed2fbbeafdc87c41e0985354b83b7e987c6686bb5139f88513fb339cd596d676fe7eae66710c8c2ac08ced4db08e20b62bdf7fae8f4f
7
+ data.tar.gz: 164d2e92b82d2a5e538aa78f77ab7261f8df370dff252737860044952fa18ca892d8860059b6a99435b598b4c9ea65055bb2eeb5df2a49054791e396656c5b48
@@ -9,6 +9,7 @@ class Tramway::Core::ApplicationDecoratedCollection < Array
9
9
  end
10
10
 
11
11
  delegate :total_pages, to: :original_array
12
+ delegate :total_count, to: :original_array
12
13
  delegate :current_page, to: :original_array
13
14
  delegate :limit_value, to: :original_array
14
15
  end
@@ -20,6 +20,8 @@ module Tramway
20
20
 
21
21
  scope :active, -> { where state: :active }
22
22
 
23
+ include PgSearch
24
+
23
25
  # FIXME detect inhertited locales
24
26
  class << self
25
27
  def human_attribute_name(attribute_name, *args)
@@ -9,3 +9,7 @@ ru:
9
9
  actions:
10
10
  create: Создать
11
11
  update: Редактировать
12
+ search: Искать
13
+ reset: Сбросить
14
+ scope:
15
+ found: Найденные
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Core
3
- VERSION = '1.9.2.1'
3
+ VERSION = '1.9.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.2.1
4
+ version: 1.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-16 00:00:00.000000000 Z
11
+ date: 2019-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: reform-rails
@@ -248,6 +248,20 @@ dependencies:
248
248
  - - ">="
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: pg_search
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :runtime
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
251
265
  - !ruby/object:Gem::Dependency
252
266
  name: rspec-rails
253
267
  requirement: !ruby/object:Gem::Requirement