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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 460ee912d039c88a90e0b90fc6a4a594c0716632
4
- data.tar.gz: 7a65b1e9fcb98844dde9bd77ef05cbee35eacc11
2
+ SHA256:
3
+ metadata.gz: 1b85dd648cc5d0b9bfa6ba4f5ec3dd4c2538eb698dbdcdf235d22d3565d2819d
4
+ data.tar.gz: c99d6805bd05efd1903e5eeb23d0bceecc3b9c57c62d04ba727153b0a9463640
5
5
  SHA512:
6
- metadata.gz: af048eeba875ca4b41bd6330c18a0dadbf4e4705c82b1e4d25fd4321f725aa71e27b9ad020da069522ea25039975d61f0c13e196e09f6e54536f07eb9b847a33
7
- data.tar.gz: 25b301c10a7befbdf3b80714427f2cae95ebf4753916f164d5090e117099849c595c31c13534513360891b125d88f7997a9a70fd199d9170556b94d4f3ae2261
6
+ metadata.gz: 8a49bc042ac2866a09a48caedde95dbf269da107199a72a214e386040a1fe4f05d0fd286b56e48e74a7be2e614f2611cbcde32d5fa57061c522c859dbbb2fb71
7
+ data.tar.gz: 04ad6a6b2486242fada1a94f2b78c9a91a03c6b9be50968579131a5dbce5f3a0662757a8c43c33e9b2eba2e1123f236607ea5219f8da53d9ec07ca3d27cdf2ee
@@ -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", ">= 0.0.10"
7
- gem "auto_autoloader", ">= 0.0.1"
8
- gem "baza", "~> 0.0.31"
9
- gem "html_gen", ">= 0.0.12", require: false
10
- gem "simple_delegate", ">= 0.0.2"
11
- gem "string-cases", ">= 0.0.3"
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", "~> 1.0"
16
- gem "factory_girl"
15
+ gem "bundler"
16
+ gem "factory_bot"
17
17
  gem "jdbc-sqlite3", platform: :jruby
18
- gem "jeweler", "2.3.6"
18
+ gem "juwelier"
19
19
  gem "orm_adapter", require: false
20
- gem "rdoc", "~> 3.12"
21
- gem "rspec", "3.6.0"
22
- gem "rubocop", "0.37.0", require: false
20
+ gem "rdoc"
21
+ gem "rspec"
22
+ gem "rubocop", require: false
23
23
  gem "sqlite3", platform: :ruby
24
24
  end
@@ -1,150 +1,161 @@
1
1
  GIT
2
2
  remote: git://github.com/kaspernj/best_practice_project.git
3
- revision: c83ad748c63928b446c45e6ba50caabaf7af8714
3
+ revision: cf3a8e27b173540118278331a58177c5a8d857cc
4
4
  specs:
5
5
  best_practice_project (0.0.9)
6
6
  auto_autoloader
7
7
 
8
- GEM
9
- remote: http://rubygems.org/
8
+ GIT
9
+ remote: https://github.com/kaspernj/baza.git
10
+ revision: 18f3235a9a57319fceceea191df578de95bd46a7
10
11
  specs:
11
- activesupport (4.2.4)
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.1)
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
- factory_girl (4.5.0)
37
- activesupport (>= 3.0.0)
38
- faraday (0.9.2)
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.3.0)
41
- github_api (0.16.0)
42
- addressable (~> 2.4.0)
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, < 0.10)
45
- hashie (>= 3.4)
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.5.5)
49
- highline (1.7.8)
50
- html_gen (0.0.12)
54
+ hashie (3.6.0)
55
+ highline (2.0.3)
56
+ html_gen (0.0.16)
51
57
  string-cases
52
- i18n (0.7.0)
53
- jar-dependencies (0.3.11)
54
- jdbc-sqlite3 (3.8.10.1)
55
- jeweler (2.3.6)
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 (>= 1)
58
- git (>= 1.2.5)
59
- github_api (~> 0.16.0)
60
- highline (>= 1.6.15)
61
- nokogiri (>= 1.5.10)
62
- psych (~> 2.2)
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
- json (1.8.6)
67
- json (1.8.6-java)
68
- jwt (1.5.6)
69
- mime-types (2.99.3)
70
- mini_portile2 (2.2.0)
71
- minitest (5.8.0)
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.0.0)
75
- nokogiri (1.8.0)
76
- mini_portile2 (~> 2.2.0)
77
- nokogiri (1.8.0-java)
78
- oauth2 (1.3.1)
79
- faraday (>= 0.8, < 0.12)
80
- jwt (~> 1.0)
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
- parser (2.3.0.2)
86
- ast (~> 2.2)
87
- powerpack (0.1.1)
88
- psych (2.2.4)
89
- psych (2.2.4-java)
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
- rack (2.0.3)
92
- rainbow (2.1.0)
93
- rake (12.0.0)
94
- rdoc (3.12.2)
95
- json (~> 1.4)
96
- rspec (3.6.0)
97
- rspec-core (~> 3.6.0)
98
- rspec-expectations (~> 3.6.0)
99
- rspec-mocks (~> 3.6.0)
100
- rspec-core (3.6.0)
101
- rspec-support (~> 3.6.0)
102
- rspec-expectations (3.6.0)
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.6.0)
105
- rspec-mocks (3.6.0)
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.6.0)
108
- rspec-support (3.6.0)
109
- rubocop (0.37.0)
110
- parser (>= 2.3.0.2, < 3.0)
111
- powerpack (~> 0.1)
112
- rainbow (>= 1.99.1, < 3.0)
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 (~> 0.3)
115
- ruby-progressbar (1.7.5)
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.3.10)
128
+ sqlite3 (1.4.1)
119
129
  string-cases (0.0.4)
120
- thread_safe (0.3.5)
121
- thread_safe (0.3.5-java)
122
- tzinfo (1.2.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 (0.3.1)
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 (>= 0.0.10)
133
- auto_autoloader (>= 0.0.1)
134
- baza (~> 0.0.31)
143
+ array_enumerator
144
+ auto_autoloader
145
+ baza!
135
146
  best_practice_project!
136
- bundler (~> 1.0)
137
- factory_girl
138
- html_gen (>= 0.0.12)
147
+ bundler
148
+ factory_bot
149
+ html_gen
139
150
  jdbc-sqlite3
140
- jeweler (= 2.3.6)
151
+ juwelier
141
152
  orm_adapter
142
- rdoc (~> 3.12)
143
- rspec (= 3.6.0)
144
- rubocop (= 0.37.0)
145
- simple_delegate (>= 0.0.2)
153
+ rdoc
154
+ rspec
155
+ rubocop
156
+ simple_delegate
146
157
  sqlite3
147
- string-cases (>= 0.0.3)
158
+ string-cases
148
159
 
149
160
  BUNDLED WITH
150
- 1.16.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 "jeweler"
15
- Jeweler::Tasks.new do |gem|
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
- Jeweler::RubygemsDotOrgTasks.new
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.12
1
+ 0.0.13
@@ -1,17 +1,17 @@
1
- # Generated by jeweler
1
+ # Generated by juwelier
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
3
+ # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: baza_models 0.0.12 ruby lib
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.12"
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 = "2018-01-09"
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
- "shippable.yml",
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 = "2.6.13".freeze
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.0.10"])
115
- s.add_runtime_dependency(%q<auto_autoloader>.freeze, [">= 0.0.1"])
116
- s.add_runtime_dependency(%q<baza>.freeze, ["~> 0.0.31"])
117
- s.add_runtime_dependency(%q<html_gen>.freeze, [">= 0.0.12"])
118
- s.add_runtime_dependency(%q<simple_delegate>.freeze, [">= 0.0.2"])
119
- s.add_runtime_dependency(%q<string-cases>.freeze, [">= 0.0.3"])
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, ["~> 1.0"])
122
- s.add_development_dependency(%q<factory_girl>.freeze, [">= 0"])
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<jeweler>.freeze, ["= 2.3.6"])
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, ["~> 3.12"])
127
- s.add_development_dependency(%q<rspec>.freeze, ["= 3.6.0"])
128
- s.add_development_dependency(%q<rubocop>.freeze, ["= 0.37.0"])
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.0.10"])
132
- s.add_dependency(%q<auto_autoloader>.freeze, [">= 0.0.1"])
133
- s.add_dependency(%q<baza>.freeze, ["~> 0.0.31"])
134
- s.add_dependency(%q<html_gen>.freeze, [">= 0.0.12"])
135
- s.add_dependency(%q<simple_delegate>.freeze, [">= 0.0.2"])
136
- s.add_dependency(%q<string-cases>.freeze, [">= 0.0.3"])
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, ["~> 1.0"])
139
- s.add_dependency(%q<factory_girl>.freeze, [">= 0"])
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<jeweler>.freeze, ["= 2.3.6"])
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, ["~> 3.12"])
144
- s.add_dependency(%q<rspec>.freeze, ["= 3.6.0"])
145
- s.add_dependency(%q<rubocop>.freeze, ["= 0.37.0"])
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.0.10"])
150
- s.add_dependency(%q<auto_autoloader>.freeze, [">= 0.0.1"])
151
- s.add_dependency(%q<baza>.freeze, ["~> 0.0.31"])
152
- s.add_dependency(%q<html_gen>.freeze, [">= 0.0.12"])
153
- s.add_dependency(%q<simple_delegate>.freeze, [">= 0.0.2"])
154
- s.add_dependency(%q<string-cases>.freeze, [">= 0.0.3"])
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, ["~> 1.0"])
157
- s.add_dependency(%q<factory_girl>.freeze, [">= 0"])
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<jeweler>.freeze, ["= 2.3.6"])
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, ["~> 3.12"])
162
- s.add_dependency(%q<rspec>.freeze, ["= 3.6.0"])
163
- s.add_dependency(%q<rubocop>.freeze, ["= 0.37.0"])
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
@@ -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.sqlval(arg))
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.sqlval(arg)
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.sqlval(val_i)
462
+ sql << @db.quote_value(val_i)
463
463
  end
464
464
 
465
465
  sql << ")"
466
466
  sql
467
467
  else
468
- "= #{@db.sqlval(value)}"
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.sqlval(value)}")
124
+ .where("#{@table_query}.#{@column_query} #{symbol} #{@klass.db.quote_value(value)}")
125
125
  end
126
126
  end
@@ -0,0 +1,3 @@
1
+ script:
2
+ - bundle exec rspec
3
+ - bundle exec rake best_practice_project:run
@@ -1,5 +1,5 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :organization do
3
- name "Test organization"
3
+ name { "Test organization" }
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :user do
3
3
  organization
4
4
 
5
- email "user@example.com"
5
+ email { "user@example.com" }
6
6
  end
7
7
  end
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
3
 
4
4
  require "rspec"
5
5
  require "baza_models"
6
- require "factory_girl"
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 FactoryGirl::Syntax::Methods
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.12
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: 2018-01-09 00:00:00.000000000 Z
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.0.10
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.0.10
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.0.1
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.0.1
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.0.31
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.0.31
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.0.12
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.0.12
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.0.2
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.0.2
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.0.3
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.0.3
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: '1.0'
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: '1.0'
124
+ version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: factory_girl
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: jeweler
154
+ name: juwelier
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 2.3.6
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: 2.3.6
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: '3.12'
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: '3.12'
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: 3.6.0
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: 3.6.0
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.37.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.37.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
- - shippable.yml
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
- rubyforge_project:
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
@@ -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