liquid-nested-sort 0.1.2 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34369c0d821e1d3dd90d10bc53b220bba76474a75a94e4b6e5e310ae28528f56
4
- data.tar.gz: e394c609fd5a08cc078ab749ecbc5024c78fb9c6aa20bf8a99399a6244f03825
3
+ metadata.gz: 3b7b365b45d3e63e108e4c0535d6c55f590609e46d262b3a51167f1e8d1a2f0c
4
+ data.tar.gz: 0c8aac8a9316bf1944345df53a03ca121f376061a9aaff99be1c6bbd0755b269
5
5
  SHA512:
6
- metadata.gz: 121226ef738ef9cef1cf0e77798cc836d55068ba8b0e64986fcf518e179f3edf67cd309c1cc2675c8a120e0fd4e45fbbccb993afd8242e517196d605dc0e945f
7
- data.tar.gz: a21222c2ceb00988546ac926e1a8241f9552bac7c8093fa59e07e91899c952cf623949a2e427612e16c5ceaa2c52960a5c6816dd4482b4e28804139475afc463
6
+ metadata.gz: 17d5bb8b5c562c1708d3f3918cbbb68e8cf3061bbaefac6f121d638c6f23980b277d735ed6d5a432d6fdd2e97f463ba9560a132879d254a1707d3fea7ffb3cec
7
+ data.tar.gz: f453cb01db539de427b2fd6f890a7d4a86a876b8373a443409fca69856aaaa33b4e6d4058910ad504b19f3f46b086a879ec8776c03e19a02acfd6c5c1b32f824
@@ -0,0 +1,56 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ # Ignore Byebug command history file.
17
+ .byebug_history
18
+
19
+ ## Specific to RubyMotion:
20
+ .dat*
21
+ .repl_history
22
+ build/
23
+ *.bridgesupport
24
+ build-iPhoneOS/
25
+ build-iPhoneSimulator/
26
+
27
+ ## Specific to RubyMotion (use of CocoaPods):
28
+ #
29
+ # We recommend against adding the Pods directory to your .gitignore. However
30
+ # you should judge for yourself, the pros and cons are mentioned at:
31
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
32
+ #
33
+ # vendor/Pods/
34
+
35
+ ## Documentation cache and generated files:
36
+ /.yardoc/
37
+ /_yardoc/
38
+ /doc/
39
+ /rdoc/
40
+
41
+ ## Environment normalization:
42
+ /.bundle/
43
+ /vendor/bundle
44
+ /lib/bundler/man/
45
+
46
+ # for a library or gem, you might want to ignore these files since the code is
47
+ # intended to run in multiple environments; otherwise, check them in:
48
+ # Gemfile.lock
49
+ # .ruby-version
50
+ # .ruby-gemset
51
+
52
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
53
+ .rvmrc
54
+
55
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
+ # .rubocop-https?--*
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --require spec_helper
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ gem 'rspec', '~> 3.9'
@@ -0,0 +1,34 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ liquid-nested-sort (0.1.0)
5
+ liquid (>= 4.0, < 5.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ diff-lcs (1.4.4)
11
+ liquid (4.0.3)
12
+ rspec (3.9.0)
13
+ rspec-core (~> 3.9.0)
14
+ rspec-expectations (~> 3.9.0)
15
+ rspec-mocks (~> 3.9.0)
16
+ rspec-core (3.9.2)
17
+ rspec-support (~> 3.9.3)
18
+ rspec-expectations (3.9.2)
19
+ diff-lcs (>= 1.2.0, < 2.0)
20
+ rspec-support (~> 3.9.0)
21
+ rspec-mocks (3.9.1)
22
+ diff-lcs (>= 1.2.0, < 2.0)
23
+ rspec-support (~> 3.9.0)
24
+ rspec-support (3.9.3)
25
+
26
+ PLATFORMS
27
+ ruby
28
+
29
+ DEPENDENCIES
30
+ liquid-nested-sort!
31
+ rspec (~> 3.9)
32
+
33
+ BUNDLED WITH
34
+ 2.1.4
data/LICENSE ADDED
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2020, Fabio Bonelli
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,28 @@
1
+ # liquid-nested-sort
2
+
3
+ [![Gem Version](https://img.shields.io/gem/v/liquid-nested-sort.svg)](https://rubygems.org/gems/liquid-nested-sort)
4
+
5
+ `nested_sort` and `nested_sort_natural`, sort and sort_natural-like filters
6
+ with nested fields support for Liquid.
7
+
8
+ ## Installation
9
+
10
+ In the Gemfile
11
+
12
+ ```ruby
13
+ gem 'liquid-nested-sort'
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ ```liquid
19
+ {{ places | nested_sort "address.street" }}
20
+ ```
21
+
22
+ ```liquid
23
+ {{ places | nested_sort_natural "address.street" }}
24
+ ```
25
+
26
+ ## Thanks
27
+
28
+ This is mostly based on @untra's work (https://github.com/untra).
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'liquid-nested-sort'
5
+ s.version = '0.1.3'
6
+ s.date = '2020-09-03'
7
+
8
+ s.author = 'Fabio Bonelli'
9
+ s.email = 'fb@fabiobonelli.it'
10
+ s.license = 'BSD-3-Clause'
11
+ s.homepage = 'https://github.com/bfabio/liquid-nested-sort'
12
+
13
+ s.summary = 'sort and sort_natural filters with nested fields support for Liquid'
14
+ s.description =
15
+ "Liquid's sort and sort_natural don't support nested fields out of the box." \
16
+ 'This gems provides nested_sort and nester_sort_natural.'
17
+
18
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(spec)/!) }
19
+ s.require_paths = ['lib']
20
+
21
+ s.add_runtime_dependency('liquid', ['>= 4.0', '< 5.0'])
22
+ s.required_ruby_version = '~> 2.4'
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid-nested-sort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabio Bonelli
@@ -37,8 +37,15 @@ executables: []
37
37
  extensions: []
38
38
  extra_rdoc_files: []
39
39
  files:
40
+ - ".gitignore"
41
+ - ".rspec"
42
+ - Gemfile
43
+ - Gemfile.lock
44
+ - LICENSE
45
+ - README.md
40
46
  - lib/liquid_nested_sort.rb
41
47
  - lib/nested_filters.rb
48
+ - liquid-nested-sort.gemspec
42
49
  homepage: https://github.com/bfabio/liquid-nested-sort
43
50
  licenses:
44
51
  - BSD-3-Clause