baza_models 0.0.14 → 0.0.15

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
  SHA256:
3
- metadata.gz: f5dafeb31c0031ed98a959b129cd089bc70cbf015ce1bf0d84289bc70099f4c0
4
- data.tar.gz: b8590ae630f7d9b3581e62f48c8fdf944476b69ff7b5c4f39e21df4f6125f552
3
+ metadata.gz: c970b9be78db46378bcb7546c7e55e1af4b863bba1bb063e038956a74e295e44
4
+ data.tar.gz: 1a6cc7175d682c9bdac060f50284df70bbf936e8a573d01f8622ed0d447fdcc9
5
5
  SHA512:
6
- metadata.gz: 380631dfc0d02e9a59e97eb33df3bc17ad32c707aef2976a5e502225c543d7f8fa094577ead0449cd70b68adae712cda45b9c193f629dbcd758814342b347b60
7
- data.tar.gz: 6c9ce953c117d3eea42a165f31f1184c7bfa2af76fea98c0bedd14a40ff728962133db13eb7df44022273866d842dbde33b002e38b6a2404f37d272df1ee5ea1
6
+ metadata.gz: 6eb01cb89f696a0a359827c8c2675c85655b2bc027482cf30e8cb4c5bc71ad05ceead7f0e62b162e4d8d71407bb2b44dc22962eff349e3c8ea4283b7ea51bf43
7
+ data.tar.gz: f80115826d04d0a21a78b6b81d079346fc6e08acf5c95fedb2e979ffa07b7b93c6f081ec617aba1438ed6e5c8050734573f3d9a082cc6fbe1bef8ad64a9699c1
@@ -0,0 +1,13 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: monthly
7
+ time: "11:00"
8
+ timezone: Europe/Copenhagen
9
+ open-pull-requests-limit: 99
10
+ ignore:
11
+ - dependency-name: rubocop
12
+ versions:
13
+ - 1.9.1
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.7
1
+ 2.7.4
data/Gemfile.lock CHANGED
@@ -1,6 +1,6 @@
1
1
  GIT
2
2
  remote: https://github.com/kaspernj/baza.git
3
- revision: 9fd96eab7bb315cf650cbdaa1b066d6fea8b9aa9
3
+ revision: 67f9172f4c618ad092173269fd25dff41d3a646a
4
4
  specs:
5
5
  baza (0.0.37)
6
6
  array_enumerator (~> 0.0.10)
@@ -14,28 +14,28 @@ GIT
14
14
  GEM
15
15
  remote: http://rubygems.org/
16
16
  specs:
17
- activesupport (6.0.3.2)
17
+ activesupport (6.1.3.2)
18
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
19
- i18n (>= 0.7, < 2)
20
- minitest (~> 5.1)
21
- tzinfo (~> 1.1)
22
- zeitwerk (~> 2.2, >= 2.2.2)
23
- addressable (2.7.0)
19
+ i18n (>= 1.6, < 2)
20
+ minitest (>= 5.1)
21
+ tzinfo (~> 2.0)
22
+ zeitwerk (~> 2.3)
23
+ addressable (2.8.0)
24
24
  public_suffix (>= 2.0.2, < 5.0)
25
25
  array_enumerator (0.0.10)
26
- ast (2.4.1)
26
+ ast (2.4.2)
27
27
  auto_autoloader (0.0.5)
28
28
  string-cases
29
29
  best_practice_project (0.0.11)
30
30
  auto_autoloader (>= 0.0.5)
31
31
  builder (3.2.3)
32
- concurrent-ruby (1.1.6)
32
+ concurrent-ruby (1.1.8)
33
33
  datet (0.0.25)
34
34
  descendants_tracker (0.0.4)
35
35
  thread_safe (~> 0.3, >= 0.3.1)
36
36
  diff-lcs (1.4.4)
37
37
  event_handler (0.0.0)
38
- factory_bot (6.1.0)
38
+ factory_bot (6.2.0)
39
39
  activesupport (>= 5.0.0)
40
40
  faraday (0.17.0)
41
41
  multipart-post (>= 1.2, < 3)
@@ -50,7 +50,7 @@ GEM
50
50
  highline (2.0.3)
51
51
  html_gen (0.0.16)
52
52
  string-cases
53
- i18n (1.8.5)
53
+ i18n (1.8.10)
54
54
  concurrent-ruby (~> 1.0)
55
55
  jar-dependencies (0.4.0)
56
56
  jdbc-sqlite3 (3.28.0)
@@ -69,14 +69,16 @@ GEM
69
69
  jwt (2.2.1)
70
70
  kamelcase (0.0.2)
71
71
  semver2 (~> 3)
72
- mini_portile2 (2.4.0)
73
- minitest (5.14.1)
72
+ mini_portile2 (2.6.1)
73
+ minitest (5.14.4)
74
74
  multi_json (1.14.1)
75
75
  multi_xml (0.6.0)
76
76
  multipart-post (2.1.1)
77
- nokogiri (1.10.8)
78
- mini_portile2 (~> 2.4.0)
79
- nokogiri (1.10.8-java)
77
+ nokogiri (1.12.5)
78
+ mini_portile2 (~> 2.6.1)
79
+ racc (~> 1.4)
80
+ nokogiri (1.12.5-java)
81
+ racc (~> 1.4)
80
82
  oauth2 (1.4.2)
81
83
  faraday (>= 0.8, < 2.0)
82
84
  jwt (>= 1.0, < 3.0)
@@ -84,19 +86,21 @@ GEM
84
86
  multi_xml (~> 0.5)
85
87
  rack (>= 1.2, < 3)
86
88
  orm_adapter (0.5.0)
87
- parallel (1.20.1)
88
- parser (3.0.0.0)
89
+ parallel (1.21.0)
90
+ parser (3.0.2.0)
89
91
  ast (~> 2.4.1)
90
92
  psych (3.1.0)
91
93
  psych (3.1.0-java)
92
94
  jar-dependencies (>= 0.1.7)
93
- public_suffix (4.0.1)
95
+ public_suffix (4.0.6)
96
+ racc (1.5.2)
97
+ racc (1.5.2-java)
94
98
  rack (2.2.3)
95
99
  rainbow (3.0.0)
96
100
  rake (13.0.0)
97
- rdoc (6.3.0)
98
- regexp_parser (2.0.3)
99
- rexml (3.2.4)
101
+ rdoc (6.3.2)
102
+ regexp_parser (2.1.1)
103
+ rexml (3.2.5)
100
104
  rspec (3.10.0)
101
105
  rspec-core (~> 3.10.0)
102
106
  rspec-expectations (~> 3.10.0)
@@ -110,23 +114,22 @@ GEM
110
114
  diff-lcs (>= 1.2.0, < 2.0)
111
115
  rspec-support (~> 3.10.0)
112
116
  rspec-support (3.10.0)
113
- rubocop (1.7.0)
117
+ rubocop (1.22.0)
114
118
  parallel (~> 1.10)
115
- parser (>= 2.7.1.5)
119
+ parser (>= 3.0.0.0)
116
120
  rainbow (>= 2.2.2, < 4.0)
117
121
  regexp_parser (>= 1.8, < 3.0)
118
122
  rexml
119
- rubocop-ast (>= 1.2.0, < 2.0)
123
+ rubocop-ast (>= 1.12.0, < 2.0)
120
124
  ruby-progressbar (~> 1.7)
121
- unicode-display_width (>= 1.4.0, < 2.0)
122
- rubocop-ast (1.3.0)
123
- parser (>= 2.7.1.5)
124
- rubocop-performance (1.9.2)
125
- rubocop (>= 0.90.0, < 2.0)
125
+ unicode-display_width (>= 1.4.0, < 3.0)
126
+ rubocop-ast (1.12.0)
127
+ parser (>= 3.0.1.1)
128
+ rubocop-performance (1.11.5)
129
+ rubocop (>= 1.7.0, < 2.0)
126
130
  rubocop-ast (>= 0.4.0)
127
- rubocop-rspec (2.1.0)
128
- rubocop (~> 1.0)
129
- rubocop-ast (>= 1.1.0)
131
+ rubocop-rspec (2.5.0)
132
+ rubocop (~> 1.19)
130
133
  ruby-progressbar (1.11.0)
131
134
  semver2 (3.4.2)
132
135
  simple_delegate (0.0.2)
@@ -134,11 +137,11 @@ GEM
134
137
  string-cases (0.0.4)
135
138
  thread_safe (0.3.6)
136
139
  thread_safe (0.3.6-java)
137
- tzinfo (1.2.7)
138
- thread_safe (~> 0.1)
139
- unicode-display_width (1.7.0)
140
+ tzinfo (2.0.4)
141
+ concurrent-ruby (~> 1.0)
142
+ unicode-display_width (2.1.0)
140
143
  wref (0.0.8)
141
- zeitwerk (2.4.0)
144
+ zeitwerk (2.4.2)
142
145
 
143
146
  PLATFORMS
144
147
  java
@@ -165,4 +168,4 @@ DEPENDENCIES
165
168
  string-cases
166
169
 
167
170
  BUNDLED WITH
168
- 1.17.3
171
+ 2.2.28
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.14
1
+ 0.0.15
data/baza_models.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: baza_models 0.0.14 ruby lib
5
+ # stub: baza_models 0.0.15 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "baza_models".freeze
9
- s.version = "0.0.14"
9
+ s.version = "0.0.15"
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 = "2021-01-02"
14
+ s.date = "2021-10-04"
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 = [
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
23
+ ".github/dependabot.yml",
23
24
  ".rspec",
24
25
  ".rubocop.yml",
25
26
  ".rubocop_todo.yml",
@@ -104,51 +105,32 @@ 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 = "3.0.6".freeze
108
+ s.rubygems_version = "3.1.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
113
+ end
112
114
 
113
- 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, [">= 0"])
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"])
120
- s.add_development_dependency(%q<best_practice_project>.freeze, [">= 0"])
121
- s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
122
- s.add_development_dependency(%q<factory_bot>.freeze, [">= 0"])
123
- s.add_development_dependency(%q<jdbc-sqlite3>.freeze, [">= 0"])
124
- s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
125
- s.add_development_dependency(%q<orm_adapter>.freeze, [">= 0"])
126
- s.add_development_dependency(%q<rdoc>.freeze, [">= 0"])
127
- s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
128
- s.add_development_dependency(%q<rubocop>.freeze, [">= 0"])
129
- s.add_development_dependency(%q<rubocop-performance>.freeze, [">= 0"])
130
- s.add_development_dependency(%q<rubocop-rspec>.freeze, [">= 0"])
131
- s.add_development_dependency(%q<sqlite3>.freeze, [">= 0"])
132
- else
133
- s.add_dependency(%q<array_enumerator>.freeze, [">= 0"])
134
- s.add_dependency(%q<auto_autoloader>.freeze, [">= 0"])
135
- s.add_dependency(%q<baza>.freeze, [">= 0"])
136
- s.add_dependency(%q<html_gen>.freeze, [">= 0"])
137
- s.add_dependency(%q<simple_delegate>.freeze, [">= 0"])
138
- s.add_dependency(%q<string-cases>.freeze, [">= 0"])
139
- s.add_dependency(%q<best_practice_project>.freeze, [">= 0"])
140
- s.add_dependency(%q<bundler>.freeze, [">= 0"])
141
- s.add_dependency(%q<factory_bot>.freeze, [">= 0"])
142
- s.add_dependency(%q<jdbc-sqlite3>.freeze, [">= 0"])
143
- s.add_dependency(%q<juwelier>.freeze, [">= 0"])
144
- s.add_dependency(%q<orm_adapter>.freeze, [">= 0"])
145
- s.add_dependency(%q<rdoc>.freeze, [">= 0"])
146
- s.add_dependency(%q<rspec>.freeze, [">= 0"])
147
- s.add_dependency(%q<rubocop>.freeze, [">= 0"])
148
- s.add_dependency(%q<rubocop-performance>.freeze, [">= 0"])
149
- s.add_dependency(%q<rubocop-rspec>.freeze, [">= 0"])
150
- s.add_dependency(%q<sqlite3>.freeze, [">= 0"])
151
- end
115
+ if s.respond_to? :add_runtime_dependency then
116
+ s.add_runtime_dependency(%q<array_enumerator>.freeze, [">= 0"])
117
+ s.add_runtime_dependency(%q<auto_autoloader>.freeze, [">= 0"])
118
+ s.add_runtime_dependency(%q<baza>.freeze, [">= 0"])
119
+ s.add_runtime_dependency(%q<html_gen>.freeze, [">= 0"])
120
+ s.add_runtime_dependency(%q<simple_delegate>.freeze, [">= 0"])
121
+ s.add_runtime_dependency(%q<string-cases>.freeze, [">= 0"])
122
+ s.add_development_dependency(%q<best_practice_project>.freeze, [">= 0"])
123
+ s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
124
+ s.add_development_dependency(%q<factory_bot>.freeze, [">= 0"])
125
+ s.add_development_dependency(%q<jdbc-sqlite3>.freeze, [">= 0"])
126
+ s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
127
+ s.add_development_dependency(%q<orm_adapter>.freeze, [">= 0"])
128
+ s.add_development_dependency(%q<rdoc>.freeze, [">= 0"])
129
+ s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
130
+ s.add_development_dependency(%q<rubocop>.freeze, [">= 0"])
131
+ s.add_development_dependency(%q<rubocop-performance>.freeze, [">= 0"])
132
+ s.add_development_dependency(%q<rubocop-rspec>.freeze, [">= 0"])
133
+ s.add_development_dependency(%q<sqlite3>.freeze, [">= 0"])
152
134
  else
153
135
  s.add_dependency(%q<array_enumerator>.freeze, [">= 0"])
154
136
  s.add_dependency(%q<auto_autoloader>.freeze, [">= 0"])
@@ -309,11 +309,7 @@ protected
309
309
  end
310
310
 
311
311
  define_method("#{column_name}_changed?") do
312
- if @changes.key?(column_name) && @changes.fetch(column_name) != @data.fetch(column_name)
313
- true
314
- else
315
- false
316
- end
312
+ @changes.key?(column_name) && @changes.fetch(column_name) != @data.fetch(column_name)
317
313
  end
318
314
 
319
315
  define_method("will_save_change_to_#{column_name}?") do
@@ -170,13 +170,15 @@ describe "BazaModels::Model" do
170
170
 
171
171
  it "#each" do
172
172
  user.save!
173
+ found = []
173
174
  count = 0
174
175
  User.each do |user|
175
- expect(user).to eq user
176
+ found << user
176
177
  count += 1
177
178
  end
178
179
 
179
180
  expect(count).to eq 1
181
+ expect(found).to eq [user]
180
182
  end
181
183
 
182
184
  it "#attribute_names" do
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.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-02 00:00:00.000000000 Z
11
+ date: 2021-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: array_enumerator
@@ -271,6 +271,7 @@ extra_rdoc_files:
271
271
  - README.md
272
272
  files:
273
273
  - ".document"
274
+ - ".github/dependabot.yml"
274
275
  - ".rspec"
275
276
  - ".rubocop.yml"
276
277
  - ".rubocop_todo.yml"
@@ -371,7 +372,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
371
372
  - !ruby/object:Gem::Version
372
373
  version: '0'
373
374
  requirements: []
374
- rubygems_version: 3.0.6
375
+ rubygems_version: 3.1.6
375
376
  signing_key:
376
377
  specification_version: 4
377
378
  summary: ActiveRecord like models for the Baza database framework