minimal_tags 0.2.8 → 0.2.9
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/lib/minimal_tags/persistence/sequel.rb +1 -1
- data/lib/minimal_tags/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39c498818e8139c42c23bf26a2252487a8be4659
|
4
|
+
data.tar.gz: 53d6f535e77e29af88574a4511f5001a6ad50b13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8275cfa865dd15d797b99aaa8d44ace81f2f4c9b49da9e73d26e0709811badbd25bde45fdfd1c38061487d81eb1290bce73a6f0d7b0c97aaf4f18a7c8287b040
|
7
|
+
data.tar.gz: 1eb458de24dda0d63d37d70e7e7b0cc82b50c1f05dcddb8f0200e996dab39c17cb01447bd74a3c7f5c85f2755a9764902b9fafafdf4bee0a8796f89851283cbd
|
@@ -34,7 +34,7 @@ module MinimalTags
|
|
34
34
|
# Create the scopes for searching tags
|
35
35
|
TAG_SEARCH_TYPES.each do |prefix, operator|
|
36
36
|
TAG_PREFIX_TYPES.each do |method, without_prefix|
|
37
|
-
|
37
|
+
def_dataset_method "#{without_prefix}#{prefix}_#{field_name}" do |tags|
|
38
38
|
normalized_tags = formatter.normalize(tags)
|
39
39
|
normalized_tags = ::Sequel.pg_array(normalized_tags, :text)
|
40
40
|
query = ::Sequel.pg_array_op(field_name).send(operator, normalized_tags)
|
data/lib/minimal_tags/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimal_tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- harrisbaird
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -142,4 +142,3 @@ signing_key:
|
|
142
142
|
specification_version: 4
|
143
143
|
summary: Simple tag fields for ActiveRecord and Mongoid.
|
144
144
|
test_files: []
|
145
|
-
has_rdoc:
|