baza_models 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -0
- data/Gemfile +12 -12
- data/Gemfile.lock +108 -97
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/baza_models.gemspec +44 -43
- data/lib/baza_models/helpers/ransacker_helper.rb +2 -2
- data/lib/baza_models/query.rb +4 -4
- data/lib/baza_models/ransacker/relationship_scanner.rb +1 -1
- data/peak_flow.yml +3 -0
- data/spec/factories/organization.rb +2 -2
- data/spec/factories/user.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +41 -41
- data/shippable.yml +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1b85dd648cc5d0b9bfa6ba4f5ec3dd4c2538eb698dbdcdf235d22d3565d2819d
|
4
|
+
data.tar.gz: c99d6805bd05efd1903e5eeb23d0bceecc3b9c57c62d04ba727153b0a9463640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a49bc042ac2866a09a48caedde95dbf269da107199a72a214e386040a1fe4f05d0fd286b56e48e74a7be2e614f2611cbcde32d5fa57061c522c859dbbb2fb71
|
7
|
+
data.tar.gz: 04ad6a6b2486242fada1a94f2b78c9a91a03c6b9be50968579131a5dbce5f3a0662757a8c43c33e9b2eba2e1123f236607ea5219f8da53d9ec07ca3d27cdf2ee
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.7
|
data/Gemfile
CHANGED
@@ -3,22 +3,22 @@ source "http://rubygems.org"
|
|
3
3
|
# Example:
|
4
4
|
# gem "activesupport", ">= 2.3.5"
|
5
5
|
|
6
|
-
gem "array_enumerator"
|
7
|
-
gem "auto_autoloader"
|
8
|
-
gem "baza", "
|
9
|
-
gem "html_gen",
|
10
|
-
gem "simple_delegate"
|
11
|
-
gem "string-cases"
|
6
|
+
gem "array_enumerator"
|
7
|
+
gem "auto_autoloader"
|
8
|
+
gem "baza", git: "https://github.com/kaspernj/baza.git"
|
9
|
+
gem "html_gen", require: false
|
10
|
+
gem "simple_delegate"
|
11
|
+
gem "string-cases"
|
12
12
|
|
13
13
|
group :development, :test do
|
14
14
|
gem "best_practice_project", require: false, github: "kaspernj/best_practice_project"
|
15
|
-
gem "bundler"
|
16
|
-
gem "
|
15
|
+
gem "bundler"
|
16
|
+
gem "factory_bot"
|
17
17
|
gem "jdbc-sqlite3", platform: :jruby
|
18
|
-
gem "
|
18
|
+
gem "juwelier"
|
19
19
|
gem "orm_adapter", require: false
|
20
|
-
gem "rdoc"
|
21
|
-
gem "rspec"
|
22
|
-
gem "rubocop",
|
20
|
+
gem "rdoc"
|
21
|
+
gem "rspec"
|
22
|
+
gem "rubocop", require: false
|
23
23
|
gem "sqlite3", platform: :ruby
|
24
24
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,150 +1,161 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git://github.com/kaspernj/best_practice_project.git
|
3
|
-
revision:
|
3
|
+
revision: cf3a8e27b173540118278331a58177c5a8d857cc
|
4
4
|
specs:
|
5
5
|
best_practice_project (0.0.9)
|
6
6
|
auto_autoloader
|
7
7
|
|
8
|
-
|
9
|
-
remote:
|
8
|
+
GIT
|
9
|
+
remote: https://github.com/kaspernj/baza.git
|
10
|
+
revision: 18f3235a9a57319fceceea191df578de95bd46a7
|
10
11
|
specs:
|
11
|
-
|
12
|
-
i18n (~> 0.7)
|
13
|
-
json (~> 1.7, >= 1.7.7)
|
14
|
-
minitest (~> 5.1)
|
15
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
16
|
-
tzinfo (~> 1.1)
|
17
|
-
addressable (2.4.0)
|
18
|
-
array_enumerator (0.0.10)
|
19
|
-
ast (2.2.0)
|
20
|
-
auto_autoloader (0.0.4)
|
21
|
-
string-cases
|
22
|
-
baza (0.0.31)
|
12
|
+
baza (0.0.36)
|
23
13
|
array_enumerator (~> 0.0.10)
|
24
|
-
auto_autoloader (~> 0.0.
|
14
|
+
auto_autoloader (~> 0.0.5)
|
25
15
|
datet (~> 0.0.25)
|
26
16
|
event_handler (~> 0.0.0)
|
27
17
|
simple_delegate (~> 0.0.2)
|
28
18
|
string-cases (~> 0.0.4)
|
29
19
|
wref (~> 0.0.8)
|
20
|
+
|
21
|
+
GEM
|
22
|
+
remote: http://rubygems.org/
|
23
|
+
specs:
|
24
|
+
activesupport (6.0.0)
|
25
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
26
|
+
i18n (>= 0.7, < 2)
|
27
|
+
minitest (~> 5.1)
|
28
|
+
tzinfo (~> 1.1)
|
29
|
+
zeitwerk (~> 2.1, >= 2.1.8)
|
30
|
+
addressable (2.7.0)
|
31
|
+
public_suffix (>= 2.0.2, < 5.0)
|
32
|
+
array_enumerator (0.0.10)
|
33
|
+
ast (2.4.0)
|
34
|
+
auto_autoloader (0.0.5)
|
35
|
+
string-cases
|
30
36
|
builder (3.2.3)
|
37
|
+
concurrent-ruby (1.1.5)
|
31
38
|
datet (0.0.25)
|
32
39
|
descendants_tracker (0.0.4)
|
33
40
|
thread_safe (~> 0.3, >= 0.3.1)
|
34
41
|
diff-lcs (1.3)
|
35
42
|
event_handler (0.0.0)
|
36
|
-
|
37
|
-
activesupport (>=
|
38
|
-
faraday (0.
|
43
|
+
factory_bot (5.1.1)
|
44
|
+
activesupport (>= 4.2.0)
|
45
|
+
faraday (0.17.0)
|
39
46
|
multipart-post (>= 1.2, < 3)
|
40
|
-
git (1.
|
41
|
-
github_api (0.
|
42
|
-
addressable (~> 2.4
|
47
|
+
git (1.5.0)
|
48
|
+
github_api (0.18.2)
|
49
|
+
addressable (~> 2.4)
|
43
50
|
descendants_tracker (~> 0.0.4)
|
44
|
-
faraday (~> 0.8
|
45
|
-
hashie (>= 3.
|
46
|
-
mime-types (>= 1.16, < 3.0)
|
51
|
+
faraday (~> 0.8)
|
52
|
+
hashie (~> 3.5, >= 3.5.2)
|
47
53
|
oauth2 (~> 1.0)
|
48
|
-
hashie (3.
|
49
|
-
highline (
|
50
|
-
html_gen (0.0.
|
54
|
+
hashie (3.6.0)
|
55
|
+
highline (2.0.3)
|
56
|
+
html_gen (0.0.16)
|
51
57
|
string-cases
|
52
|
-
i18n (
|
53
|
-
|
54
|
-
|
55
|
-
|
58
|
+
i18n (1.7.0)
|
59
|
+
concurrent-ruby (~> 1.0)
|
60
|
+
jar-dependencies (0.4.0)
|
61
|
+
jaro_winkler (1.5.3)
|
62
|
+
jaro_winkler (1.5.3-java)
|
63
|
+
jdbc-sqlite3 (3.28.0)
|
64
|
+
juwelier (2.4.9)
|
56
65
|
builder
|
57
|
-
bundler
|
58
|
-
git
|
59
|
-
github_api
|
60
|
-
highline
|
61
|
-
|
62
|
-
|
66
|
+
bundler
|
67
|
+
git
|
68
|
+
github_api
|
69
|
+
highline
|
70
|
+
kamelcase (~> 0)
|
71
|
+
nokogiri
|
72
|
+
psych
|
63
73
|
rake
|
64
74
|
rdoc
|
65
75
|
semver2
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
multi_json (1.12.1)
|
76
|
+
jwt (2.2.1)
|
77
|
+
kamelcase (0.0.2)
|
78
|
+
semver2 (~> 3)
|
79
|
+
mini_portile2 (2.4.0)
|
80
|
+
minitest (5.12.2)
|
81
|
+
multi_json (1.14.1)
|
73
82
|
multi_xml (0.6.0)
|
74
|
-
multipart-post (2.
|
75
|
-
nokogiri (1.
|
76
|
-
mini_portile2 (~> 2.
|
77
|
-
nokogiri (1.
|
78
|
-
oauth2 (1.
|
79
|
-
faraday (>= 0.8, < 0
|
80
|
-
jwt (
|
83
|
+
multipart-post (2.1.1)
|
84
|
+
nokogiri (1.10.4)
|
85
|
+
mini_portile2 (~> 2.4.0)
|
86
|
+
nokogiri (1.10.4-java)
|
87
|
+
oauth2 (1.4.2)
|
88
|
+
faraday (>= 0.8, < 2.0)
|
89
|
+
jwt (>= 1.0, < 3.0)
|
81
90
|
multi_json (~> 1.3)
|
82
91
|
multi_xml (~> 0.5)
|
83
92
|
rack (>= 1.2, < 3)
|
84
93
|
orm_adapter (0.5.0)
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
psych (
|
89
|
-
psych (
|
94
|
+
parallel (1.18.0)
|
95
|
+
parser (2.6.5.0)
|
96
|
+
ast (~> 2.4.0)
|
97
|
+
psych (3.1.0)
|
98
|
+
psych (3.1.0-java)
|
90
99
|
jar-dependencies (>= 0.1.7)
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
rspec (3.
|
97
|
-
rspec-core (~> 3.
|
98
|
-
rspec-expectations (~> 3.
|
99
|
-
rspec-mocks (~> 3.
|
100
|
-
rspec-core (3.
|
101
|
-
rspec-support (~> 3.
|
102
|
-
rspec-expectations (3.
|
100
|
+
public_suffix (4.0.1)
|
101
|
+
rack (2.0.7)
|
102
|
+
rainbow (3.0.0)
|
103
|
+
rake (13.0.0)
|
104
|
+
rdoc (6.2.0)
|
105
|
+
rspec (3.9.0)
|
106
|
+
rspec-core (~> 3.9.0)
|
107
|
+
rspec-expectations (~> 3.9.0)
|
108
|
+
rspec-mocks (~> 3.9.0)
|
109
|
+
rspec-core (3.9.0)
|
110
|
+
rspec-support (~> 3.9.0)
|
111
|
+
rspec-expectations (3.9.0)
|
103
112
|
diff-lcs (>= 1.2.0, < 2.0)
|
104
|
-
rspec-support (~> 3.
|
105
|
-
rspec-mocks (3.
|
113
|
+
rspec-support (~> 3.9.0)
|
114
|
+
rspec-mocks (3.9.0)
|
106
115
|
diff-lcs (>= 1.2.0, < 2.0)
|
107
|
-
rspec-support (~> 3.
|
108
|
-
rspec-support (3.
|
109
|
-
rubocop (0.
|
110
|
-
|
111
|
-
|
112
|
-
|
116
|
+
rspec-support (~> 3.9.0)
|
117
|
+
rspec-support (3.9.0)
|
118
|
+
rubocop (0.75.1)
|
119
|
+
jaro_winkler (~> 1.5.1)
|
120
|
+
parallel (~> 1.10)
|
121
|
+
parser (>= 2.6)
|
122
|
+
rainbow (>= 2.2.2, < 4.0)
|
113
123
|
ruby-progressbar (~> 1.7)
|
114
|
-
unicode-display_width (
|
115
|
-
ruby-progressbar (1.
|
124
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
125
|
+
ruby-progressbar (1.10.1)
|
116
126
|
semver2 (3.4.2)
|
117
127
|
simple_delegate (0.0.2)
|
118
|
-
sqlite3 (1.
|
128
|
+
sqlite3 (1.4.1)
|
119
129
|
string-cases (0.0.4)
|
120
|
-
thread_safe (0.3.
|
121
|
-
thread_safe (0.3.
|
122
|
-
tzinfo (1.2.
|
130
|
+
thread_safe (0.3.6)
|
131
|
+
thread_safe (0.3.6-java)
|
132
|
+
tzinfo (1.2.5)
|
123
133
|
thread_safe (~> 0.1)
|
124
|
-
unicode-display_width (
|
134
|
+
unicode-display_width (1.6.0)
|
125
135
|
wref (0.0.8)
|
136
|
+
zeitwerk (2.2.0)
|
126
137
|
|
127
138
|
PLATFORMS
|
128
139
|
java
|
129
140
|
ruby
|
130
141
|
|
131
142
|
DEPENDENCIES
|
132
|
-
array_enumerator
|
133
|
-
auto_autoloader
|
134
|
-
baza
|
143
|
+
array_enumerator
|
144
|
+
auto_autoloader
|
145
|
+
baza!
|
135
146
|
best_practice_project!
|
136
|
-
bundler
|
137
|
-
|
138
|
-
html_gen
|
147
|
+
bundler
|
148
|
+
factory_bot
|
149
|
+
html_gen
|
139
150
|
jdbc-sqlite3
|
140
|
-
|
151
|
+
juwelier
|
141
152
|
orm_adapter
|
142
|
-
rdoc
|
143
|
-
rspec
|
144
|
-
rubocop
|
145
|
-
simple_delegate
|
153
|
+
rdoc
|
154
|
+
rspec
|
155
|
+
rubocop
|
156
|
+
simple_delegate
|
146
157
|
sqlite3
|
147
|
-
string-cases
|
158
|
+
string-cases
|
148
159
|
|
149
160
|
BUNDLED WITH
|
150
|
-
1.
|
161
|
+
1.17.3
|
data/Rakefile
CHANGED
@@ -11,8 +11,8 @@ rescue Bundler::BundlerError => e
|
|
11
11
|
end
|
12
12
|
require "rake"
|
13
13
|
|
14
|
-
require "
|
15
|
-
|
14
|
+
require "juwelier"
|
15
|
+
Juwelier::Tasks.new do |gem|
|
16
16
|
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
17
17
|
gem.name = "baza_models"
|
18
18
|
gem.homepage = "http://github.com/kaspernj/baza_models"
|
@@ -23,7 +23,7 @@ Jeweler::Tasks.new do |gem|
|
|
23
23
|
gem.authors = ["kaspernj"]
|
24
24
|
# dependencies defined in Gemfile
|
25
25
|
end
|
26
|
-
|
26
|
+
Juwelier::RubygemsDotOrgTasks.new
|
27
27
|
|
28
28
|
require "rspec/core"
|
29
29
|
require "rspec/core/rake_task"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.13
|
data/baza_models.gemspec
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
# Generated by
|
1
|
+
# Generated by juwelier
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit
|
3
|
+
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: baza_models 0.0.
|
5
|
+
# stub: baza_models 0.0.13 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "baza_models".freeze
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.13"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["kaspernj".freeze]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2019-10-18"
|
15
15
|
s.description = "ActiveRecord like models for the Baza database framework".freeze
|
16
16
|
s.email = "k@spernj.org".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
".rspec",
|
24
24
|
".rubocop.yml",
|
25
25
|
".rubocop_todo.yml",
|
26
|
+
".ruby-version",
|
26
27
|
"Gemfile",
|
27
28
|
"Gemfile.lock",
|
28
29
|
"LICENSE.txt",
|
@@ -67,7 +68,7 @@ Gem::Specification.new do |s|
|
|
67
68
|
"lib/baza_models/validators/length_validator.rb",
|
68
69
|
"lib/baza_models/validators/presence_validator.rb",
|
69
70
|
"lib/baza_models/validators/uniqueness_validator.rb",
|
70
|
-
"
|
71
|
+
"peak_flow.yml",
|
71
72
|
"spec/baza_models/autoloader_spec.rb",
|
72
73
|
"spec/baza_models/baza_orm_adapter_spec.rb",
|
73
74
|
"spec/baza_models/class_translation_spec.rb",
|
@@ -104,63 +105,63 @@ Gem::Specification.new do |s|
|
|
104
105
|
]
|
105
106
|
s.homepage = "http://github.com/kaspernj/baza_models".freeze
|
106
107
|
s.licenses = ["MIT".freeze]
|
107
|
-
s.rubygems_version = "
|
108
|
+
s.rubygems_version = "3.0.6".freeze
|
108
109
|
s.summary = "ActiveRecord like models for the Baza database framework".freeze
|
109
110
|
|
110
111
|
if s.respond_to? :specification_version then
|
111
112
|
s.specification_version = 4
|
112
113
|
|
113
114
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
114
|
-
s.add_runtime_dependency(%q<array_enumerator>.freeze, [">= 0
|
115
|
-
s.add_runtime_dependency(%q<auto_autoloader>.freeze, [">= 0
|
116
|
-
s.add_runtime_dependency(%q<baza>.freeze, ["
|
117
|
-
s.add_runtime_dependency(%q<html_gen>.freeze, [">= 0
|
118
|
-
s.add_runtime_dependency(%q<simple_delegate>.freeze, [">= 0
|
119
|
-
s.add_runtime_dependency(%q<string-cases>.freeze, [">= 0
|
115
|
+
s.add_runtime_dependency(%q<array_enumerator>.freeze, [">= 0"])
|
116
|
+
s.add_runtime_dependency(%q<auto_autoloader>.freeze, [">= 0"])
|
117
|
+
s.add_runtime_dependency(%q<baza>.freeze, [">= 0"])
|
118
|
+
s.add_runtime_dependency(%q<html_gen>.freeze, [">= 0"])
|
119
|
+
s.add_runtime_dependency(%q<simple_delegate>.freeze, [">= 0"])
|
120
|
+
s.add_runtime_dependency(%q<string-cases>.freeze, [">= 0"])
|
120
121
|
s.add_development_dependency(%q<best_practice_project>.freeze, [">= 0"])
|
121
|
-
s.add_development_dependency(%q<bundler>.freeze, ["
|
122
|
-
s.add_development_dependency(%q<
|
122
|
+
s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
|
123
|
+
s.add_development_dependency(%q<factory_bot>.freeze, [">= 0"])
|
123
124
|
s.add_development_dependency(%q<jdbc-sqlite3>.freeze, [">= 0"])
|
124
|
-
s.add_development_dependency(%q<
|
125
|
+
s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
|
125
126
|
s.add_development_dependency(%q<orm_adapter>.freeze, [">= 0"])
|
126
|
-
s.add_development_dependency(%q<rdoc>.freeze, ["
|
127
|
-
s.add_development_dependency(%q<rspec>.freeze, ["
|
128
|
-
s.add_development_dependency(%q<rubocop>.freeze, ["
|
127
|
+
s.add_development_dependency(%q<rdoc>.freeze, [">= 0"])
|
128
|
+
s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
|
129
|
+
s.add_development_dependency(%q<rubocop>.freeze, [">= 0"])
|
129
130
|
s.add_development_dependency(%q<sqlite3>.freeze, [">= 0"])
|
130
131
|
else
|
131
|
-
s.add_dependency(%q<array_enumerator>.freeze, [">= 0
|
132
|
-
s.add_dependency(%q<auto_autoloader>.freeze, [">= 0
|
133
|
-
s.add_dependency(%q<baza>.freeze, ["
|
134
|
-
s.add_dependency(%q<html_gen>.freeze, [">= 0
|
135
|
-
s.add_dependency(%q<simple_delegate>.freeze, [">= 0
|
136
|
-
s.add_dependency(%q<string-cases>.freeze, [">= 0
|
132
|
+
s.add_dependency(%q<array_enumerator>.freeze, [">= 0"])
|
133
|
+
s.add_dependency(%q<auto_autoloader>.freeze, [">= 0"])
|
134
|
+
s.add_dependency(%q<baza>.freeze, [">= 0"])
|
135
|
+
s.add_dependency(%q<html_gen>.freeze, [">= 0"])
|
136
|
+
s.add_dependency(%q<simple_delegate>.freeze, [">= 0"])
|
137
|
+
s.add_dependency(%q<string-cases>.freeze, [">= 0"])
|
137
138
|
s.add_dependency(%q<best_practice_project>.freeze, [">= 0"])
|
138
|
-
s.add_dependency(%q<bundler>.freeze, ["
|
139
|
-
s.add_dependency(%q<
|
139
|
+
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
140
|
+
s.add_dependency(%q<factory_bot>.freeze, [">= 0"])
|
140
141
|
s.add_dependency(%q<jdbc-sqlite3>.freeze, [">= 0"])
|
141
|
-
s.add_dependency(%q<
|
142
|
+
s.add_dependency(%q<juwelier>.freeze, [">= 0"])
|
142
143
|
s.add_dependency(%q<orm_adapter>.freeze, [">= 0"])
|
143
|
-
s.add_dependency(%q<rdoc>.freeze, ["
|
144
|
-
s.add_dependency(%q<rspec>.freeze, ["
|
145
|
-
s.add_dependency(%q<rubocop>.freeze, ["
|
144
|
+
s.add_dependency(%q<rdoc>.freeze, [">= 0"])
|
145
|
+
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
146
|
+
s.add_dependency(%q<rubocop>.freeze, [">= 0"])
|
146
147
|
s.add_dependency(%q<sqlite3>.freeze, [">= 0"])
|
147
148
|
end
|
148
149
|
else
|
149
|
-
s.add_dependency(%q<array_enumerator>.freeze, [">= 0
|
150
|
-
s.add_dependency(%q<auto_autoloader>.freeze, [">= 0
|
151
|
-
s.add_dependency(%q<baza>.freeze, ["
|
152
|
-
s.add_dependency(%q<html_gen>.freeze, [">= 0
|
153
|
-
s.add_dependency(%q<simple_delegate>.freeze, [">= 0
|
154
|
-
s.add_dependency(%q<string-cases>.freeze, [">= 0
|
150
|
+
s.add_dependency(%q<array_enumerator>.freeze, [">= 0"])
|
151
|
+
s.add_dependency(%q<auto_autoloader>.freeze, [">= 0"])
|
152
|
+
s.add_dependency(%q<baza>.freeze, [">= 0"])
|
153
|
+
s.add_dependency(%q<html_gen>.freeze, [">= 0"])
|
154
|
+
s.add_dependency(%q<simple_delegate>.freeze, [">= 0"])
|
155
|
+
s.add_dependency(%q<string-cases>.freeze, [">= 0"])
|
155
156
|
s.add_dependency(%q<best_practice_project>.freeze, [">= 0"])
|
156
|
-
s.add_dependency(%q<bundler>.freeze, ["
|
157
|
-
s.add_dependency(%q<
|
157
|
+
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
158
|
+
s.add_dependency(%q<factory_bot>.freeze, [">= 0"])
|
158
159
|
s.add_dependency(%q<jdbc-sqlite3>.freeze, [">= 0"])
|
159
|
-
s.add_dependency(%q<
|
160
|
+
s.add_dependency(%q<juwelier>.freeze, [">= 0"])
|
160
161
|
s.add_dependency(%q<orm_adapter>.freeze, [">= 0"])
|
161
|
-
s.add_dependency(%q<rdoc>.freeze, ["
|
162
|
-
s.add_dependency(%q<rspec>.freeze, ["
|
163
|
-
s.add_dependency(%q<rubocop>.freeze, ["
|
162
|
+
s.add_dependency(%q<rdoc>.freeze, [">= 0"])
|
163
|
+
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
164
|
+
s.add_dependency(%q<rubocop>.freeze, [">= 0"])
|
164
165
|
s.add_dependency(%q<sqlite3>.freeze, [">= 0"])
|
165
166
|
end
|
166
167
|
end
|
@@ -2,7 +2,7 @@ module BazaModels::Helpers::RansackerHelper
|
|
2
2
|
def bm_paginate_content(collection)
|
3
3
|
require "html_gen"
|
4
4
|
|
5
|
-
new_params = params.dup
|
5
|
+
new_params = params.dup.permit!
|
6
6
|
current_page = collection.page
|
7
7
|
total_pages = collection.total_pages
|
8
8
|
|
@@ -53,7 +53,7 @@ module BazaModels::Helpers::RansackerHelper
|
|
53
53
|
new_params[:q][:s] = sort_asc
|
54
54
|
end
|
55
55
|
|
56
|
-
href = url_for(new_params)
|
56
|
+
href = url_for(new_params.permit!)
|
57
57
|
|
58
58
|
element = HtmlGen::Element.new(:a, str: label, attr: {href: href})
|
59
59
|
element.html
|
data/lib/baza_models/query.rb
CHANGED
@@ -193,7 +193,7 @@ class BazaModels::Query
|
|
193
193
|
new_where = "(#{args.shift})"
|
194
194
|
|
195
195
|
args.each do |arg|
|
196
|
-
new_where.sub!("?", @db.
|
196
|
+
new_where.sub!("?", @db.quote_value(arg))
|
197
197
|
end
|
198
198
|
|
199
199
|
new_wheres << new_where
|
@@ -208,7 +208,7 @@ class BazaModels::Query
|
|
208
208
|
elsif arg.is_a?(TrueClass)
|
209
209
|
arg = "1"
|
210
210
|
else
|
211
|
-
arg = @db.
|
211
|
+
arg = @db.quote_value(arg)
|
212
212
|
end
|
213
213
|
|
214
214
|
str.sub!("?", arg)
|
@@ -459,13 +459,13 @@ private
|
|
459
459
|
sql << ", " unless first
|
460
460
|
end
|
461
461
|
|
462
|
-
sql << @db.
|
462
|
+
sql << @db.quote_value(val_i)
|
463
463
|
end
|
464
464
|
|
465
465
|
sql << ")"
|
466
466
|
sql
|
467
467
|
else
|
468
|
-
"= #{@db.
|
468
|
+
"= #{@db.quote_value(value)}"
|
469
469
|
end
|
470
470
|
end
|
471
471
|
|
@@ -121,6 +121,6 @@ private
|
|
121
121
|
add_join_parts
|
122
122
|
@ransacker.query = @ransacker
|
123
123
|
.query
|
124
|
-
.where("#{@table_query}.#{@column_query} #{symbol} #{@klass.db.
|
124
|
+
.where("#{@table_query}.#{@column_query} #{symbol} #{@klass.db.quote_value(value)}")
|
125
125
|
end
|
126
126
|
end
|
data/peak_flow.yml
ADDED
data/spec/factories/user.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
3
3
|
|
4
4
|
require "rspec"
|
5
5
|
require "baza_models"
|
6
|
-
require "
|
6
|
+
require "factory_bot"
|
7
7
|
|
8
8
|
Dir.foreach("spec/test_classes") do |file|
|
9
9
|
require "test_classes/#{file}" if file.end_with?(".rb")
|
@@ -18,5 +18,5 @@ end
|
|
18
18
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
19
19
|
|
20
20
|
RSpec.configure do |config|
|
21
|
-
config.include
|
21
|
+
config.include FactoryBot::Syntax::Methods
|
22
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: baza_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kaspernj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: array_enumerator
|
@@ -16,84 +16,84 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: auto_autoloader
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: baza
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: html_gen
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0
|
61
|
+
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: simple_delegate
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0
|
75
|
+
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: string-cases
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0
|
89
|
+
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: best_practice_project
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,18 +112,18 @@ dependencies:
|
|
112
112
|
name: bundler
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: factory_bot
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
@@ -151,19 +151,19 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: juwelier
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: '0'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: orm_adapter
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,44 +182,44 @@ dependencies:
|
|
182
182
|
name: rdoc
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
185
|
+
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '
|
187
|
+
version: '0'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - "
|
192
|
+
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
194
|
+
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: rspec
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
201
|
+
version: '0'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- -
|
206
|
+
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
208
|
+
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: rubocop
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- -
|
213
|
+
- - ">="
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 0
|
215
|
+
version: '0'
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- -
|
220
|
+
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 0
|
222
|
+
version: '0'
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: sqlite3
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -246,6 +246,7 @@ files:
|
|
246
246
|
- ".rspec"
|
247
247
|
- ".rubocop.yml"
|
248
248
|
- ".rubocop_todo.yml"
|
249
|
+
- ".ruby-version"
|
249
250
|
- Gemfile
|
250
251
|
- Gemfile.lock
|
251
252
|
- LICENSE.txt
|
@@ -290,7 +291,7 @@ files:
|
|
290
291
|
- lib/baza_models/validators/length_validator.rb
|
291
292
|
- lib/baza_models/validators/presence_validator.rb
|
292
293
|
- lib/baza_models/validators/uniqueness_validator.rb
|
293
|
-
-
|
294
|
+
- peak_flow.yml
|
294
295
|
- spec/baza_models/autoloader_spec.rb
|
295
296
|
- spec/baza_models/baza_orm_adapter_spec.rb
|
296
297
|
- spec/baza_models/class_translation_spec.rb
|
@@ -343,8 +344,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
343
344
|
- !ruby/object:Gem::Version
|
344
345
|
version: '0'
|
345
346
|
requirements: []
|
346
|
-
|
347
|
-
rubygems_version: 2.6.13
|
347
|
+
rubygems_version: 3.0.6
|
348
348
|
signing_key:
|
349
349
|
specification_version: 4
|
350
350
|
summary: ActiveRecord like models for the Baza database framework
|
data/shippable.yml
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
archive: true
|
4
|
-
rvm:
|
5
|
-
- ruby-2.1.2
|
6
|
-
- jruby-1.7.13
|
7
|
-
script:
|
8
|
-
- CODECLIMATE_REPO_TOKEN=b91c00ba044df16a09d7120a2449a43ccad754de9271a7ecf594e3b0cf432eeb bundle exec rspec
|
9
|
-
- bundle exec rake best_practice_project:run
|
10
|
-
notifications:
|
11
|
-
email: false
|