minimal_tags 0.2.8 → 0.2.9

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
  SHA1:
3
- metadata.gz: 3f0f6f7becf98b488d84976b205a1739a70c2e09
4
- data.tar.gz: cacd5d97b9a8ae2e406463f1fcff5bda78f11a33
3
+ metadata.gz: 39c498818e8139c42c23bf26a2252487a8be4659
4
+ data.tar.gz: 53d6f535e77e29af88574a4511f5001a6ad50b13
5
5
  SHA512:
6
- metadata.gz: 5943435e6b81751c688ae7f4efc0591a0424381972cd1a62d711df933a331a18a0b35661e0e55bd7970f04ccc8284ff56ddef1332a7a579710ba537dcea154f8
7
- data.tar.gz: 9ee352fd719c34ebb7f2e6dc67d452957e1e0129725dad0e13535f7826aac47077498fe084a5483e0117f1a1b22414e12216851375642188e370dcc4043933b1
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
- define_singleton_method "#{without_prefix}#{prefix}_#{field_name}" do |tags|
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)
@@ -1,3 +1,3 @@
1
1
  module MinimalTags
2
- VERSION = '0.2.8'
2
+ VERSION = '0.2.9'
3
3
  end
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.8
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-07-29 00:00:00.000000000 Z
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: