ff-tbl-macros 2.0.0 → 2.0.1

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: 683c3f02309ce122e5841382c567d6033af6174969c8cbd5690abbc058e0ab9e
4
- data.tar.gz: 74939c7eee9dd5410d4bba6a9fce3d5762b306ab1a171866d495a74bbcaabfaf
3
+ metadata.gz: 85cfc86c605d10943cd0b90f68a3bcbc6665e7d66895862352c899d6b9b9a78d
4
+ data.tar.gz: 47b25e98f0cea82e20cce41539796456dac69f54c4b80d1cc8b84e4c82da3524
5
5
  SHA512:
6
- metadata.gz: f5dc808dc25712ecd9fadbdff7f0f08a897955ebab9ddbf3f499aac54160f56ae2d657253b305c51c89d05ac755af040505af16cb41f0ebcbe85292b2fb282a7
7
- data.tar.gz: eaba1884dd96f8038cdd75bb8c374d52bf236fbebc00ea58bbc95266be96d71d42e77109e23db07e224d6262a4112c517cf81c07a9239340af30252172679e64
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
@@ -12,6 +12,7 @@ group :development, :test do
12
12
  gem 'rspec'
13
13
  gem 'rspec-activemodel-mocks'
14
14
  gem 'rubocop'
15
+ gem 'rubocop-performance'
15
16
  gem 'simplecov'
16
17
  gem 'trailblazer'
17
18
  gem 'warden'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ff-tbl-macros (2.0.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`
@@ -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
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Macros
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -4,6 +4,7 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
4
4
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
5
5
 
6
6
  %w[
7
+ pagy
7
8
  recursive-open-struct
8
9
  reform
9
10
  rspec/active_model/mocks
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.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-04-24 00:00:00.000000000 Z
11
+ date: 2019-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport