ff-tbl-macros 2.0.0 → 2.0.1
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 +6 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +4 -1
- data/README.md +4 -0
- data/lib/macros/search/query.rb +2 -2
- data/lib/macros/version.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- 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: 85cfc86c605d10943cd0b90f68a3bcbc6665e7d66895862352c899d6b9b9a78d
|
|
4
|
+
data.tar.gz: 47b25e98f0cea82e20cce41539796456dac69f54c4b80d1cc8b84e4c82da3524
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 248ba8ec756b1198b3fb1e190a86fe4490fa6490beb55a9dddfc4b6765b1ecb717273e4dab262134badcabd8f861b2862e0200270df800eb6f0a00a4667b2050
|
|
7
|
+
data.tar.gz: 17e08c9ac95a49da3d73b7889b4e01a4766042b622691a3247a27a3d84cbaf7e66fceb530e95b5e20482e0469d0f56acf1b861164bf29f78745f2f3b01135a52
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
|
+
### Added
|
|
5
|
+
- add gem [rubocop-performance](https://github.com/rubocop-hq/rubocop-performance) to satisfy future Rubocop deprecations.
|
|
6
|
+
|
|
7
|
+
## [2.0.1] - 2019-05-16
|
|
8
|
+
### Fixed
|
|
9
|
+
- Remove require pagy gem from Search macro class
|
|
4
10
|
|
|
5
11
|
## [2.0.0] - 2019-04-24
|
|
6
12
|
### Changed
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ff-tbl-macros (2.0.
|
|
4
|
+
ff-tbl-macros (2.0.1)
|
|
5
5
|
activesupport (>= 5.2)
|
|
6
6
|
require_all (~> 2.0)
|
|
7
7
|
trailblazer (>= 2.0)
|
|
@@ -77,6 +77,8 @@ GEM
|
|
|
77
77
|
rainbow (>= 2.2.2, < 4.0)
|
|
78
78
|
ruby-progressbar (~> 1.7)
|
|
79
79
|
unicode-display_width (>= 1.4.0, < 1.6)
|
|
80
|
+
rubocop-performance (1.1.0)
|
|
81
|
+
rubocop (>= 0.67.0)
|
|
80
82
|
ruby-progressbar (1.10.0)
|
|
81
83
|
simplecov (0.16.1)
|
|
82
84
|
docile (~> 1.1)
|
|
@@ -111,6 +113,7 @@ DEPENDENCIES
|
|
|
111
113
|
rspec
|
|
112
114
|
rspec-activemodel-mocks
|
|
113
115
|
rubocop
|
|
116
|
+
rubocop-performance
|
|
114
117
|
simplecov
|
|
115
118
|
trailblazer
|
|
116
119
|
warden
|
data/README.md
CHANGED
|
@@ -35,6 +35,8 @@ class User::Delete < Trailblazer::Operation
|
|
|
35
35
|
end
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
*Warning! Rarely some macros may require some gem(s) to be included. Find respective macro down in this file in Macros Types section.*
|
|
39
|
+
|
|
38
40
|
# Contributing
|
|
39
41
|
|
|
40
42
|
Use the provided dockerized development environment. For more information check the [CONTRIBUTING](CONTRIBUTING.md) file.
|
|
@@ -94,6 +96,8 @@ There are several types of macros organized in namespaces.
|
|
|
94
96
|
|
|
95
97
|
- `Macros::Search::Query`
|
|
96
98
|
|
|
99
|
+
*Warning ! If you want to use Macros::Search::Query you have to include [pagy](https://github.com/ddnexus/pagy) gem into ypur Gemfile*
|
|
100
|
+
|
|
97
101
|
### Verify Params Macros
|
|
98
102
|
|
|
99
103
|
- `Macros::VeriryParams::Date`
|
data/lib/macros/search/query.rb
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'pagy'
|
|
3
|
+
require 'pagy' if Gem.loaded_specs.has_key?('pagy')
|
|
4
4
|
|
|
5
5
|
module Macros
|
|
6
6
|
class Search
|
|
7
7
|
class Query < Macros::Base
|
|
8
|
-
include Pagy::Backend
|
|
8
|
+
include Pagy::Backend if defined?(Pagy)
|
|
9
9
|
|
|
10
10
|
# @return [Macros::Search::Results] step macro instance
|
|
11
11
|
#
|
data/lib/macros/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ff-tbl-macros
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Artur Szwed, Claudio Perez Gamayo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-05-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|