pg_tags_on 0.1.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -2
- data/LICENSE.txt +1 -1
- data/README.md +30 -22
- data/lib/pg_tags_on/active_record/base.rb +1 -1
- data/lib/pg_tags_on/repositories/array_jsonb_repository.rb +47 -24
- data/lib/pg_tags_on/repositories/array_repository.rb +31 -18
- data/lib/pg_tags_on/repositories/base_repository.rb +39 -4
- data/lib/pg_tags_on/validations/validator.rb +4 -4
- data/lib/pg_tags_on/version.rb +1 -1
- metadata +21 -137
- data/.gitignore +0 -11
- data/.rspec +0 -3
- data/.rubocop.yml +0 -9
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -6
- data/Gemfile.lock +0 -91
- data/Rakefile +0 -16
- data/bin/console +0 -16
- data/bin/setup +0 -8
- data/pg_tags_on.gemspec +0 -38
- data/spec/array_integers/records_spec.rb +0 -47
- data/spec/array_integers/tag_ops_spec.rb +0 -65
- data/spec/array_integers/taggings_spec.rb +0 -27
- data/spec/array_integers/tags_spec.rb +0 -53
- data/spec/array_jsonb/records_spec.rb +0 -89
- data/spec/array_jsonb/tag_ops_spec.rb +0 -115
- data/spec/array_jsonb/taggings_spec.rb +0 -27
- data/spec/array_jsonb/tags_spec.rb +0 -41
- data/spec/array_strings/records_spec.rb +0 -61
- data/spec/array_strings/tag_ops_spec.rb +0 -65
- data/spec/array_strings/taggings_spec.rb +0 -27
- data/spec/array_strings/tags_spec.rb +0 -54
- data/spec/config/database.yml +0 -6
- data/spec/configuration_spec.rb +0 -48
- data/spec/helpers/database_helpers.rb +0 -46
- data/spec/spec_helper.rb +0 -39
- data/spec/support/factory.rb +0 -47
- data/spec/tags_query_spec.rb +0 -31
- data/spec/validator_spec.rb +0 -40
- data/tasks/benchmark.rake +0 -58
data/lib/pg_tags_on/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_tags_on
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Catalin Marinescu
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -38,34 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '6.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '2.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '2.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: faker
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2.10'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '2.10'
|
69
41
|
- !ruby/object:Gem::Dependency
|
70
42
|
name: pg
|
71
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,20 +52,6 @@ dependencies:
|
|
80
52
|
- - "~>"
|
81
53
|
- !ruby/object:Gem::Version
|
82
54
|
version: '1.2'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: pry
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0.12'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0.12'
|
97
55
|
- !ruby/object:Gem::Dependency
|
98
56
|
name: rake
|
99
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,56 +80,21 @@ dependencies:
|
|
122
80
|
- - "~>"
|
123
81
|
- !ruby/object:Gem::Version
|
124
82
|
version: '3.9'
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0.80'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0.80'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: simplecov
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0.18'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0.18'
|
153
|
-
description: A gem that makes working with tags stored in a Postgresql column easy.Support
|
154
|
-
for array of string, integer and jsonb values.
|
83
|
+
description: |-
|
84
|
+
A gem that makes working with tags stored in a Postgresql column easy.
|
85
|
+
Support for array of string, integer and jsonb values.
|
155
86
|
email:
|
156
|
-
-
|
157
|
-
executables:
|
158
|
-
- console
|
159
|
-
- setup
|
87
|
+
- cata.marinesq@gmail.com
|
88
|
+
executables: []
|
160
89
|
extensions: []
|
161
|
-
extra_rdoc_files:
|
90
|
+
extra_rdoc_files:
|
91
|
+
- README.md
|
92
|
+
- CHANGELOG.md
|
93
|
+
- LICENSE.txt
|
162
94
|
files:
|
163
|
-
- ".gitignore"
|
164
|
-
- ".rspec"
|
165
|
-
- ".rubocop.yml"
|
166
95
|
- CHANGELOG.md
|
167
|
-
- CODE_OF_CONDUCT.md
|
168
|
-
- Gemfile
|
169
|
-
- Gemfile.lock
|
170
96
|
- LICENSE.txt
|
171
97
|
- README.md
|
172
|
-
- Rakefile
|
173
|
-
- bin/console
|
174
|
-
- bin/setup
|
175
98
|
- lib/pg_tags_on.rb
|
176
99
|
- lib/pg_tags_on/active_record/arel.rb
|
177
100
|
- lib/pg_tags_on/active_record/base.rb
|
@@ -191,35 +114,15 @@ files:
|
|
191
114
|
- lib/pg_tags_on/tags_query.rb
|
192
115
|
- lib/pg_tags_on/validations/validator.rb
|
193
116
|
- lib/pg_tags_on/version.rb
|
194
|
-
- pg_tags_on.gemspec
|
195
|
-
- spec/array_integers/records_spec.rb
|
196
|
-
- spec/array_integers/tag_ops_spec.rb
|
197
|
-
- spec/array_integers/taggings_spec.rb
|
198
|
-
- spec/array_integers/tags_spec.rb
|
199
|
-
- spec/array_jsonb/records_spec.rb
|
200
|
-
- spec/array_jsonb/tag_ops_spec.rb
|
201
|
-
- spec/array_jsonb/taggings_spec.rb
|
202
|
-
- spec/array_jsonb/tags_spec.rb
|
203
|
-
- spec/array_strings/records_spec.rb
|
204
|
-
- spec/array_strings/tag_ops_spec.rb
|
205
|
-
- spec/array_strings/taggings_spec.rb
|
206
|
-
- spec/array_strings/tags_spec.rb
|
207
|
-
- spec/config/database.yml
|
208
|
-
- spec/configuration_spec.rb
|
209
|
-
- spec/helpers/database_helpers.rb
|
210
|
-
- spec/spec_helper.rb
|
211
|
-
- spec/support/factory.rb
|
212
|
-
- spec/tags_query_spec.rb
|
213
|
-
- spec/validator_spec.rb
|
214
|
-
- tasks/benchmark.rake
|
215
117
|
homepage: http://github.com/cata-m/pg_tags_on
|
216
118
|
licenses:
|
217
119
|
- MIT
|
218
120
|
metadata:
|
121
|
+
bug_tracker_uri: https://github.com/cata-m/pg_tags_on/issues
|
122
|
+
changelog_uri: https://github.com/cata-m/pg_tags_on/blob/master/CHANGELOG.md
|
219
123
|
homepage_uri: http://github.com/cata-m/pg_tags_on
|
220
|
-
source_code_uri:
|
221
|
-
|
222
|
-
post_install_message:
|
124
|
+
source_code_uri: https://github.com/cata-m/pg_tags_on
|
125
|
+
post_install_message:
|
223
126
|
rdoc_options: []
|
224
127
|
require_paths:
|
225
128
|
- lib
|
@@ -227,34 +130,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
227
130
|
requirements:
|
228
131
|
- - ">="
|
229
132
|
- !ruby/object:Gem::Version
|
230
|
-
version:
|
133
|
+
version: 2.3.0
|
231
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
135
|
requirements:
|
233
136
|
- - ">="
|
234
137
|
- !ruby/object:Gem::Version
|
235
138
|
version: '0'
|
236
139
|
requirements: []
|
237
|
-
rubygems_version: 3.0.
|
238
|
-
signing_key:
|
140
|
+
rubygems_version: 3.0.9
|
141
|
+
signing_key:
|
239
142
|
specification_version: 4
|
240
|
-
summary:
|
241
|
-
test_files:
|
242
|
-
- spec/array_integers/records_spec.rb
|
243
|
-
- spec/array_integers/tag_ops_spec.rb
|
244
|
-
- spec/array_integers/taggings_spec.rb
|
245
|
-
- spec/array_integers/tags_spec.rb
|
246
|
-
- spec/array_jsonb/records_spec.rb
|
247
|
-
- spec/array_jsonb/tag_ops_spec.rb
|
248
|
-
- spec/array_jsonb/taggings_spec.rb
|
249
|
-
- spec/array_jsonb/tags_spec.rb
|
250
|
-
- spec/array_strings/records_spec.rb
|
251
|
-
- spec/array_strings/tag_ops_spec.rb
|
252
|
-
- spec/array_strings/taggings_spec.rb
|
253
|
-
- spec/array_strings/tags_spec.rb
|
254
|
-
- spec/config/database.yml
|
255
|
-
- spec/configuration_spec.rb
|
256
|
-
- spec/helpers/database_helpers.rb
|
257
|
-
- spec/spec_helper.rb
|
258
|
-
- spec/support/factory.rb
|
259
|
-
- spec/tags_query_spec.rb
|
260
|
-
- spec/validator_spec.rb
|
143
|
+
summary: Query and manage tags stored in a Postgresql column.
|
144
|
+
test_files: []
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at catalin.marinescu@gmail.com. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,91 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
pg_tags_on (0.1.0)
|
5
|
-
activerecord (~> 6.0)
|
6
|
-
activesupport (~> 6.0)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
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)
|
17
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
-
i18n (>= 0.7, < 2)
|
19
|
-
minitest (~> 5.1)
|
20
|
-
tzinfo (~> 1.1)
|
21
|
-
zeitwerk (~> 2.2)
|
22
|
-
ast (2.4.0)
|
23
|
-
coderay (1.1.2)
|
24
|
-
concurrent-ruby (1.1.5)
|
25
|
-
diff-lcs (1.3)
|
26
|
-
docile (1.3.2)
|
27
|
-
faker (2.10.2)
|
28
|
-
i18n (>= 1.6, < 2)
|
29
|
-
i18n (1.7.0)
|
30
|
-
concurrent-ruby (~> 1.0)
|
31
|
-
jaro_winkler (1.5.4)
|
32
|
-
method_source (0.9.2)
|
33
|
-
minitest (5.13.0)
|
34
|
-
parallel (1.19.1)
|
35
|
-
parser (2.7.0.2)
|
36
|
-
ast (~> 2.4.0)
|
37
|
-
pg (1.2.2)
|
38
|
-
pry (0.12.2)
|
39
|
-
coderay (~> 1.1.0)
|
40
|
-
method_source (~> 0.9.0)
|
41
|
-
rainbow (3.0.0)
|
42
|
-
rake (13.0.1)
|
43
|
-
rexml (3.2.4)
|
44
|
-
rspec (3.9.0)
|
45
|
-
rspec-core (~> 3.9.0)
|
46
|
-
rspec-expectations (~> 3.9.0)
|
47
|
-
rspec-mocks (~> 3.9.0)
|
48
|
-
rspec-core (3.9.0)
|
49
|
-
rspec-support (~> 3.9.0)
|
50
|
-
rspec-expectations (3.9.0)
|
51
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
52
|
-
rspec-support (~> 3.9.0)
|
53
|
-
rspec-mocks (3.9.0)
|
54
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
55
|
-
rspec-support (~> 3.9.0)
|
56
|
-
rspec-support (3.9.0)
|
57
|
-
rubocop (0.80.0)
|
58
|
-
jaro_winkler (~> 1.5.1)
|
59
|
-
parallel (~> 1.10)
|
60
|
-
parser (>= 2.7.0.1)
|
61
|
-
rainbow (>= 2.2.2, < 4.0)
|
62
|
-
rexml
|
63
|
-
ruby-progressbar (~> 1.7)
|
64
|
-
unicode-display_width (>= 1.4.0, < 1.7)
|
65
|
-
ruby-progressbar (1.10.1)
|
66
|
-
simplecov (0.18.2)
|
67
|
-
docile (~> 1.1)
|
68
|
-
simplecov-html (~> 0.11)
|
69
|
-
simplecov-html (0.12.1)
|
70
|
-
thread_safe (0.3.6)
|
71
|
-
tzinfo (1.2.5)
|
72
|
-
thread_safe (~> 0.1)
|
73
|
-
unicode-display_width (1.6.1)
|
74
|
-
zeitwerk (2.2.1)
|
75
|
-
|
76
|
-
PLATFORMS
|
77
|
-
ruby
|
78
|
-
|
79
|
-
DEPENDENCIES
|
80
|
-
bundler (~> 2.0)
|
81
|
-
faker (~> 2.10)
|
82
|
-
pg (~> 1.2)
|
83
|
-
pg_tags_on!
|
84
|
-
pry (~> 0.12)
|
85
|
-
rake (~> 13.0)
|
86
|
-
rspec (~> 3.9)
|
87
|
-
rubocop (~> 0.80)
|
88
|
-
simplecov (~> 0.18)
|
89
|
-
|
90
|
-
BUNDLED WITH
|
91
|
-
2.1.4
|
data/Rakefile
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
$LOAD_PATH.unshift File.dirname(__FILE__)
|
4
|
-
|
5
|
-
require 'active_record'
|
6
|
-
require 'active_support/all'
|
7
|
-
require 'faker'
|
8
|
-
require './lib/pg_tags_on'
|
9
|
-
|
10
|
-
Dir['tasks/**/*.rake'].each { |rake| load rake }
|
11
|
-
|
12
|
-
require 'bundler/gem_tasks'
|
13
|
-
Bundler::GemHelper.install_tasks
|
14
|
-
|
15
|
-
require 'rspec/core/rake_task'
|
16
|
-
RSpec::Core::RakeTask.new(:spec)
|