nxt_support 0.5.0 → 0.6.0

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: 5be999049e08c616e9259357e3babdc21c8a56202e29463ffb35877d7b59156b
4
- data.tar.gz: a24d5abbc81b8a05104096251e7a1c5ef95fd4ef22378be9ad225e310848a417
3
+ metadata.gz: 66ed3b4123cb69e9349dfa49defe2638941a0930742ce6bdbf34b914fdfc356e
4
+ data.tar.gz: 2e33ea8ec3a80541b32fea89bf981146059f21e5ca308804c3949447a5a69749
5
5
  SHA512:
6
- metadata.gz: 62f3c629491c73b7b9fe0ac85639d01671cd3845fa6250a5c5b980ca5ea2a3353bc17337f2a7dbf72904113761cf70d6b43864635a526eed6bb0f7eb859e997d
7
- data.tar.gz: 27ea42c5fa932be54cbc2b2e0cc1d5e1edd34176fe50e8fb8581507ce9429fba032dbba2aeda8806044f7471918eb8cc33744939a881ab4a6d409e7b2130ecb8
6
+ metadata.gz: d6e3ada3b804d951258a3460e1df1a6649a0f125143f593f8eec50b9938966d0aa150e10bcb69da6bc262a44a8bdaea195d75a7945d27e5a86f5c8ee93561862
7
+ data.tar.gz: e5db5071d06af06a9c5c7da33e590404342500d9fa68d50e98a0d6b2fb89e5512794a2c6b62f4c34b361299fc7b45e22f3081bdcd1ad67e6a74f40fc351c4f26
data/.circleci/config.yml CHANGED
@@ -10,7 +10,7 @@ workflows:
10
10
  - build:
11
11
  matrix:
12
12
  parameters:
13
- ruby-version: ["3.0.2", "3.1.3", "3.2.1", "3.2.2"]
13
+ ruby-version: ["3.1.3", "3.2.1", "3.2.2"]
14
14
  orbs:
15
15
  ruby: circleci/ruby@2.0.1
16
16
 
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.2
1
+ 3.3.5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.6.0 2024-09-27
2
+ - Added `NxtSupport::Uuid`
3
+
1
4
  # v0.5.0 2023-03-22
2
5
  - Add `rake_cli_options`
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nxt_support (0.5.0)
4
+ nxt_support (0.6.0)
5
5
  activerecord
6
6
  activesupport
7
7
  nxt_init
@@ -10,24 +10,36 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activemodel (7.0.7.2)
14
- activesupport (= 7.0.7.2)
15
- activerecord (7.0.7.2)
16
- activemodel (= 7.0.7.2)
17
- activesupport (= 7.0.7.2)
18
- activesupport (7.0.7.2)
19
- concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ activemodel (7.2.1)
14
+ activesupport (= 7.2.1)
15
+ activerecord (7.2.1)
16
+ activemodel (= 7.2.1)
17
+ activesupport (= 7.2.1)
18
+ timeout (>= 0.4.0)
19
+ activesupport (7.2.1)
20
+ base64
21
+ bigdecimal
22
+ concurrent-ruby (~> 1.0, >= 1.3.1)
23
+ connection_pool (>= 2.2.5)
24
+ drb
20
25
  i18n (>= 1.6, < 2)
26
+ logger (>= 1.4.2)
21
27
  minitest (>= 5.1)
22
- tzinfo (~> 2.0)
28
+ securerandom (>= 0.3)
29
+ tzinfo (~> 2.0, >= 2.0.5)
30
+ base64 (0.2.0)
31
+ bigdecimal (3.1.8)
23
32
  coderay (1.1.3)
24
- concurrent-ruby (1.2.2)
33
+ concurrent-ruby (1.3.4)
34
+ connection_pool (2.4.1)
25
35
  diff-lcs (1.5.0)
26
- i18n (1.14.1)
36
+ drb (2.2.1)
37
+ i18n (1.14.6)
27
38
  concurrent-ruby (~> 1.0)
39
+ logger (1.6.1)
28
40
  method_source (1.0.0)
29
41
  mini_portile2 (2.8.4)
30
- minitest (5.19.0)
42
+ minitest (5.25.1)
31
43
  nxt_init (0.1.5)
32
44
  activesupport
33
45
  nxt_registry (0.3.10)
@@ -51,8 +63,10 @@ GEM
51
63
  rspec-support (3.12.1)
52
64
  rspec_junit_formatter (0.6.0)
53
65
  rspec-core (>= 2, < 4, != 2.12.0)
54
- sqlite3 (1.6.3)
66
+ securerandom (0.3.1)
67
+ sqlite3 (1.6.4)
55
68
  mini_portile2 (~> 2.8.0)
69
+ timeout (0.4.1)
56
70
  tzinfo (2.0.6)
57
71
  concurrent-ruby (~> 1.0)
58
72
 
@@ -31,7 +31,9 @@ module NxtSupport
31
31
  class_methods do
32
32
  def indifferently_accessible_json_attrs(*attrs)
33
33
  attrs.each do |attr|
34
- serialize attr, JsonSerializer
34
+
35
+ serialize attr, coder: JsonSerializer
36
+ # serialize attr, JsonSerializer
35
37
  end
36
38
  end
37
39
 
@@ -0,0 +1,5 @@
1
+ module NxtSupport
2
+ class Uuid
3
+ REGEXP = /\A(\h{32}|\h{8}-\h{4}-\h{4}-\h{4}-\h{12})\z/
4
+ end
5
+ end
@@ -1,4 +1,5 @@
1
1
  require "nxt_support/models/email"
2
+ require "nxt_support/models/uuid"
2
3
  require "nxt_support/models/safely_find_or_createable"
3
4
  require "nxt_support/models/indifferently_accessible_json_attrs"
4
5
  require "nxt_support/models/assignable_values"
@@ -1,3 +1,3 @@
1
1
  module NxtSupport
2
- VERSION = "0.5.0".freeze
2
+ VERSION = "0.6.0".freeze
3
3
  end
data/nxt_support.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.bindir = "exe"
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
- spec.required_ruby_version = '>= 3.0.0'
29
+ spec.required_ruby_version = '>= 3.1.3'
30
30
 
31
31
  spec.add_dependency "activerecord"
32
32
  spec.add_dependency "activesupport"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nxt_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nils Sommer
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2023-08-23 00:00:00.000000000 Z
14
+ date: 2024-10-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activerecord
@@ -174,6 +174,7 @@ files:
174
174
  - lib/nxt_support/models/indifferently_accessible_json_attrs.rb
175
175
  - lib/nxt_support/models/preprocess_attributes.rb
176
176
  - lib/nxt_support/models/safely_find_or_createable.rb
177
+ - lib/nxt_support/models/uuid.rb
177
178
  - lib/nxt_support/preprocessor.rb
178
179
  - lib/nxt_support/preprocessors/downcase_preprocessor.rb
179
180
  - lib/nxt_support/preprocessors/strip_preprocessor.rb
@@ -208,14 +209,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
208
209
  requirements:
209
210
  - - ">="
210
211
  - !ruby/object:Gem::Version
211
- version: 3.0.0
212
+ version: 3.1.3
212
213
  required_rubygems_version: !ruby/object:Gem::Requirement
213
214
  requirements:
214
215
  - - ">="
215
216
  - !ruby/object:Gem::Version
216
217
  version: '0'
217
218
  requirements: []
218
- rubygems_version: 3.4.10
219
+ rubygems_version: 3.5.9
219
220
  signing_key:
220
221
  specification_version: 4
221
222
  summary: Support through reusable Mixins and Helpers for Ruby on Rails Applications