pg_tags_on 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +10 -10
- data/lib/pg_tags_on/repositories/array_repository.rb +2 -2
- data/lib/pg_tags_on/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcce5c8d438aa1e92aa724d7ba14275a8f8a40e7515c33cb341eb8270a7b9f57
|
4
|
+
data.tar.gz: 7a61cf5537c72678f82692a999c67b0d5392b675bc5db24593b47341b42a9d74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7330d881597fd28e77bd43ea44054eb9d3fe1f88e48afa00e61820d972afcf6255bbbd4bbb3af1b5061ab38adefa379bdf28a2f913456382907cfdaf8b806ed5
|
7
|
+
data.tar.gz: 25cffbb4603b83da2812e890a1b2ccd4d8c5cf4c0293009b6b4d91075ddc592dca8b9706f8ce73f7fcf30b57a1c6e68807da637571edde8fc2e99131c6d079bb
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pg_tags_on (0.1.
|
4
|
+
pg_tags_on (0.1.1)
|
5
5
|
activerecord (~> 6.0)
|
6
6
|
activesupport (~> 6.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activemodel (6.0.1)
|
12
|
-
activesupport (= 6.0.1)
|
13
|
-
activerecord (6.0.1)
|
14
|
-
activemodel (= 6.0.1)
|
15
|
-
activesupport (= 6.0.1)
|
16
|
-
activesupport (6.0.1)
|
11
|
+
activemodel (6.0.2.1)
|
12
|
+
activesupport (= 6.0.2.1)
|
13
|
+
activerecord (6.0.2.1)
|
14
|
+
activemodel (= 6.0.2.1)
|
15
|
+
activesupport (= 6.0.2.1)
|
16
|
+
activesupport (6.0.2.1)
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
18
|
i18n (>= 0.7, < 2)
|
19
19
|
minitest (~> 5.1)
|
@@ -30,7 +30,7 @@ GEM
|
|
30
30
|
concurrent-ruby (~> 1.0)
|
31
31
|
jaro_winkler (1.5.4)
|
32
32
|
method_source (0.9.2)
|
33
|
-
minitest (5.
|
33
|
+
minitest (5.14.0)
|
34
34
|
parallel (1.19.1)
|
35
35
|
parser (2.7.0.2)
|
36
36
|
ast (~> 2.4.0)
|
@@ -68,10 +68,10 @@ GEM
|
|
68
68
|
simplecov-html (~> 0.11)
|
69
69
|
simplecov-html (0.12.1)
|
70
70
|
thread_safe (0.3.6)
|
71
|
-
tzinfo (1.2.
|
71
|
+
tzinfo (1.2.6)
|
72
72
|
thread_safe (~> 0.1)
|
73
73
|
unicode-display_width (1.6.1)
|
74
|
-
zeitwerk (2.2.
|
74
|
+
zeitwerk (2.2.2)
|
75
75
|
|
76
76
|
PLATFORMS
|
77
77
|
ruby
|
@@ -52,13 +52,13 @@ module PgTagsOn
|
|
52
52
|
return true if tag.blank? || new_tag.blank? || tag == new_tag
|
53
53
|
|
54
54
|
klass
|
55
|
-
.where(column_name =>
|
55
|
+
.where(column_name => PgTagsOn.query_class.one(tag))
|
56
56
|
.update_all(column_name => arel_array_replace(arel_column, bind_for(tag), bind_for(new_tag)))
|
57
57
|
end
|
58
58
|
|
59
59
|
def delete(tag)
|
60
60
|
klass
|
61
|
-
.where(column_name =>
|
61
|
+
.where(column_name => PgTagsOn.query_class.one(tag))
|
62
62
|
.update_all(column_name => arel_array_remove(arel_column, bind_for(tag)))
|
63
63
|
end
|
64
64
|
|
data/lib/pg_tags_on/version.rb
CHANGED