mutils 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3db271534988dd1130f614df84fa5559bdd4e094e7736f3de94d0844a575b35
4
- data.tar.gz: c0d705d4a50049a9211c7a4e582a7806cdc3b02524a680ea050fd6cd76ef900c
3
+ metadata.gz: 24a15c8629926ece6e84dc2662d223288b7261b7bece0eaeb292b62b50bbb947
4
+ data.tar.gz: c33f4fc727b756583394e291a6bc39104380b5b2c63354776ff4f16903063d3d
5
5
  SHA512:
6
- metadata.gz: 95c973c182e50083fce234af589d4e444426a8dac78268ac49535331d511f90294e281697729031d11029c70f256d1e8afa154a9fba64843d128b5043f24f1e5
7
- data.tar.gz: de66b614983b2991297af9579b70aab810b3df95b56eb8b601d66fb9dd4793be4c94dc2051d392feb480a161da24414f8a04ab4ec7540f3f0a40d7247ffda779
6
+ metadata.gz: 61a14db805137719b9bb79862ed85aa70ce970bcf3a74519bc8cc02e3199aeaeec2513b16706604340801966d6dee5c5c8015de0f150c1f025010f648956c1fb
7
+ data.tar.gz: f0cf1c2ac7c9f7dd809605efeee3219d6dfa6aaaca674d2761919665f841fba03a98a9ec3c01bbe6b198ebffc069000b824e41a53b2df4f39a5aa7e9f89e2ebc
@@ -2,10 +2,11 @@ name: "CodeQL"
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ "master" ]
5
+ branches: [ "*" ]
6
6
  pull_request:
7
7
  # The branches below must be a subset of the branches above
8
- branches: [ "master" ]
8
+ branches: [ "*" ]
9
+ merge_group:
9
10
  schedule:
10
11
  - cron: '26 6 * * 5'
11
12
 
@@ -4,13 +4,13 @@ on:
4
4
  jobs:
5
5
  create_release:
6
6
  name: Create Release
7
- runs-on: ubuntu-20.04
7
+ runs-on: ubuntu-latest
8
8
  steps:
9
9
  - uses: actions/checkout@v3
10
10
  - name: Use Node.js
11
11
  uses: actions/setup-node@v1
12
12
  with:
13
- node-version: 18.x
13
+ node-version: 20.x
14
14
  - uses: ruby/setup-ruby@v1
15
15
  with:
16
16
  ruby-version: 3.0
@@ -2,16 +2,17 @@ name: Test Master
2
2
  on:
3
3
  push:
4
4
  branches: [master]
5
+ merge_group:
5
6
  jobs:
6
7
  testing:
7
- runs-on: ubuntu-20.04
8
+ runs-on: ubuntu-latest
8
9
  strategy:
9
10
  matrix:
10
11
  ruby:
12
+ - "3.3"
11
13
  - "3.2"
12
14
  - "3.1"
13
15
  - "3.0"
14
- - "2.7"
15
16
  include:
16
17
  - ruby: "3.0"
17
18
  coverage: "true"
@@ -1,4 +1,4 @@
1
- name: Publish Gem
1
+ name: Publish Gem (Manual)
2
2
  on:
3
3
  workflow_dispatch:
4
4
  inputs:
@@ -1,19 +1,17 @@
1
1
  name: Pull Requests
2
2
  on:
3
- push:
4
- branches:
5
- - "*"
6
- - "!master"
3
+ pull_request:
4
+ branches: ["master"]
7
5
  jobs:
8
6
  testing:
9
- runs-on: ubuntu-20.04
7
+ runs-on: ubuntu-latest
10
8
  strategy:
11
9
  matrix:
12
10
  ruby:
11
+ - "3.3"
13
12
  - "3.2"
14
13
  - "3.1"
15
14
  - "3.0"
16
- - "2.7"
17
15
  include:
18
16
  - ruby: "3.2"
19
17
  coverage: "true"
data/.releaserc CHANGED
@@ -31,7 +31,7 @@ generateNotes:
31
31
  - type: fix
32
32
  section: Bug Fixes
33
33
  - type: perf
34
- section: Performance Improvments
34
+ section: Performance Improvements
35
35
  - type: refactor
36
36
  section: Refactors
37
37
  - type: revert
data/.rubocop.yml CHANGED
@@ -2,6 +2,7 @@ inherit_from: .rubocop_todo.yml
2
2
 
3
3
  AllCops:
4
4
  TargetRubyVersion: "2.7.0"
5
+ NewCops: enable
5
6
  Exclude:
6
7
  - 'spec/**/*'
7
8
  - 'test/**/*'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [1.3.2](https://github.com/Code-Vedas/mutils/compare/v1.3.1...v1.3.2) (2024-06-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bundle updated ([b5770d6](https://github.com/Code-Vedas/mutils/commit/b5770d62edd2566f1d0e581843c4e528c43a8fd4))
7
+ * rubocop >= 1.63.3 ([9d8f944](https://github.com/Code-Vedas/mutils/commit/9d8f944e1277b068a65b068f5b2d7601bbf18704))
8
+
9
+ ## [1.3.1](https://github.com/Code-Vedas/mutils/compare/v1.3.0...v1.3.1) (2024-04-02)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **maintenance:** maintenance release ([19ef41d](https://github.com/Code-Vedas/mutils/commit/19ef41d754f6b398e4955e8ba40359bf91c3bddd))
15
+
1
16
  # [1.3.0](https://github.com/Code-Vedas/mutils/compare/v1.2.6...v1.3.0) (2023-03-01)
2
17
 
3
18
 
data/Gemfile CHANGED
@@ -3,12 +3,14 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in mutils.gemspec
6
+ gem 'bundler', '~> 2.0'
6
7
  gem 'coveralls', '>= 0.8.23'
7
8
  gem 'json', '>= 2.3.1'
8
9
  gem 'pre-commit', require: false
10
+ gem 'rake', '~> 13.2'
9
11
  gem 'rspec'
10
12
  gem 'rspec-benchmark'
11
13
  gem 'rspec-json_expectations'
12
- gem 'rubocop'
14
+ gem 'rubocop', '>= 1.63.3'
13
15
  gem 'simplecov-lcov', git: 'https://github.com/niteshpurohit/simplecov-lcov'
14
16
  gemspec
data/Gemfile.lock CHANGED
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- mutils (1.3.0)
10
+ mutils (1.3.2)
11
11
  dry-inflector
12
12
 
13
13
  GEM
@@ -17,71 +17,91 @@ GEM
17
17
  benchmark-malloc (0.2.0)
18
18
  benchmark-perf (0.6.0)
19
19
  benchmark-trend (0.4.0)
20
+ bigdecimal (3.1.8)
21
+ bigdecimal (3.1.8-java)
20
22
  coveralls (0.8.23)
21
23
  json (>= 1.8, < 3)
22
24
  simplecov (~> 0.16.1)
23
25
  term-ansicolor (~> 1.3)
24
26
  thor (>= 0.19.4, < 2.0)
25
27
  tins (~> 1.6)
26
- diff-lcs (1.5.0)
28
+ diff-lcs (1.5.1)
27
29
  docile (1.4.0)
28
30
  dry-inflector (1.0.0)
29
- json (2.6.3)
30
- json (2.6.3-java)
31
- parallel (1.22.1)
32
- parser (3.2.1.0)
31
+ json (2.7.2)
32
+ json (2.7.2-java)
33
+ language_server-protocol (3.17.0.3)
34
+ mize (0.4.1)
35
+ protocol (~> 2.0)
36
+ parallel (1.25.1)
37
+ parser (3.3.3.0)
33
38
  ast (~> 2.4.1)
39
+ racc
34
40
  pluginator (1.5.0)
35
- pre-commit (0.39.0)
41
+ pre-commit (0.40.0)
36
42
  pluginator (~> 1.5)
43
+ protocol (2.0.0)
44
+ ruby_parser (~> 3.0)
45
+ racc (1.8.0)
46
+ racc (1.8.0-java)
37
47
  rainbow (3.1.1)
38
- rake (13.0.6)
39
- regexp_parser (2.7.0)
40
- rexml (3.2.5)
41
- rspec (3.12.0)
42
- rspec-core (~> 3.12.0)
43
- rspec-expectations (~> 3.12.0)
44
- rspec-mocks (~> 3.12.0)
48
+ rake (13.2.1)
49
+ regexp_parser (2.9.2)
50
+ rexml (3.3.1)
51
+ strscan
52
+ rspec (3.13.0)
53
+ rspec-core (~> 3.13.0)
54
+ rspec-expectations (~> 3.13.0)
55
+ rspec-mocks (~> 3.13.0)
45
56
  rspec-benchmark (0.6.0)
46
57
  benchmark-malloc (~> 0.2)
47
58
  benchmark-perf (~> 0.6)
48
59
  benchmark-trend (~> 0.4)
49
60
  rspec (>= 3.0)
50
- rspec-core (3.12.0)
51
- rspec-support (~> 3.12.0)
52
- rspec-expectations (3.12.0)
61
+ rspec-core (3.13.0)
62
+ rspec-support (~> 3.13.0)
63
+ rspec-expectations (3.13.1)
53
64
  diff-lcs (>= 1.2.0, < 2.0)
54
- rspec-support (~> 3.12.0)
65
+ rspec-support (~> 3.13.0)
55
66
  rspec-json_expectations (2.2.0)
56
- rspec-mocks (3.12.0)
67
+ rspec-mocks (3.13.1)
57
68
  diff-lcs (>= 1.2.0, < 2.0)
58
- rspec-support (~> 3.12.0)
59
- rspec-support (3.12.0)
60
- rubocop (1.46.0)
69
+ rspec-support (~> 3.13.0)
70
+ rspec-support (3.13.1)
71
+ rubocop (1.64.1)
61
72
  json (~> 2.3)
73
+ language_server-protocol (>= 3.17.0)
62
74
  parallel (~> 1.10)
63
- parser (>= 3.2.0.0)
75
+ parser (>= 3.3.0.2)
64
76
  rainbow (>= 2.2.2, < 4.0)
65
77
  regexp_parser (>= 1.8, < 3.0)
66
78
  rexml (>= 3.2.5, < 4.0)
67
- rubocop-ast (>= 1.26.0, < 2.0)
79
+ rubocop-ast (>= 1.31.1, < 2.0)
68
80
  ruby-progressbar (~> 1.7)
69
81
  unicode-display_width (>= 2.4.0, < 3.0)
70
- rubocop-ast (1.26.0)
71
- parser (>= 3.2.1.0)
72
- ruby-progressbar (1.11.0)
82
+ rubocop-ast (1.31.3)
83
+ parser (>= 3.3.1.0)
84
+ ruby-progressbar (1.13.0)
85
+ ruby_parser (3.21.0)
86
+ racc (~> 1.5)
87
+ sexp_processor (~> 4.16)
88
+ sexp_processor (4.17.1)
73
89
  simplecov (0.16.1)
74
90
  docile (~> 1.1)
75
91
  json (>= 1.8, < 3)
76
92
  simplecov-html (~> 0.10.0)
77
93
  simplecov-html (0.10.2)
94
+ strscan (3.1.0)
95
+ strscan (3.1.0-java)
78
96
  sync (0.5.0)
79
- term-ansicolor (1.7.1)
97
+ term-ansicolor (1.10.2)
98
+ mize
80
99
  tins (~> 1.0)
81
- thor (1.2.1)
82
- tins (1.31.0)
100
+ thor (1.3.1)
101
+ tins (1.33.0)
102
+ bigdecimal
83
103
  sync
84
- unicode-display_width (2.4.2)
104
+ unicode-display_width (2.5.0)
85
105
 
86
106
  PLATFORMS
87
107
  java
@@ -93,12 +113,12 @@ DEPENDENCIES
93
113
  json (>= 2.3.1)
94
114
  mutils!
95
115
  pre-commit
96
- rake (~> 13.0)
116
+ rake (~> 13.2)
97
117
  rspec
98
118
  rspec-benchmark
99
119
  rspec-json_expectations
100
- rubocop
120
+ rubocop (>= 1.63.3)
101
121
  simplecov-lcov!
102
122
 
103
123
  BUNDLED WITH
104
- 2.1.4
124
+ 2.5.6
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  [![Maintainability](https://api.codeclimate.com/v1/badges/42e8a34f839ca0c5ec45/maintainability)](https://codeclimate.com/github/code-vedas/mutils/maintainability)
2
2
  ![](https://ruby-gem-downloads-badge.herokuapp.com/mutils?type=total&color=brightgreen)
3
3
  [![Gem Version](https://badge.fury.io/rb/mutils.svg)](https://badge.fury.io/rb/mutils)
4
- [![Coverage Status](https://coveralls.io/repos/github/Code-Vedas/mutils/badge.svg?branch=master)](https://coveralls.io/github/Code-Vedas/mutils?branch=master)
5
- ![Master](https://github.com/Code-Vedas/mutils/workflows/Master/badge.svg?branch=master)
4
+ [![Coverage Status](https://badge.coveralls.io/repos/github/Code-Vedas/mutils/badge.svg?branch=master)](https://badge.coveralls.io/github/Code-Vedas/mutils?branch=master)
6
5
 
7
6
  # Mutils
8
7
  ## Introduction
data/Version CHANGED
@@ -1 +1 @@
1
- v1.3.0
1
+ v1.3.2
@@ -24,8 +24,8 @@ module Mutils
24
24
  class_name = options[:serializer]
25
25
  if class_name.nil?
26
26
  raise "Serializer is Required for belongs_to :#{relationship_name}." \
27
- "\nDefine it like:\n#{option_name} :#{relationship_name}, " \
28
- 'serializer: SERIALIZER_CLASS'
27
+ "\nDefine it like:\n#{option_name} :#{relationship_name}, " \
28
+ 'serializer: SERIALIZER_CLASS'
29
29
  end
30
30
  raise "Serializer class not defined for relationship: #{relationship_name}" unless class_exists? class_name
31
31
 
@@ -10,7 +10,7 @@ module Mutils
10
10
  def fetch_block_attributes(attributes, result_hash)
11
11
  attributes&.each do |key, s_options|
12
12
  arg = [scope]
13
- arg << options[:params] || {} unless s_options[:block].parameters.flatten.include?(:rest)
13
+ (arg << options[:params]) || {} unless s_options[:block].parameters.flatten.include?(:rest)
14
14
 
15
15
  result_hash[key] = s_options[:block].call(*arg)
16
16
  end
data/mutils.gemspec CHANGED
@@ -23,11 +23,10 @@ Gem::Specification.new do |spec|
23
23
  spec.required_ruby_version = '>= 2.7.0'
24
24
  spec.required_rubygems_version = '>= 1.8.11'
25
25
  spec.add_dependency('dry-inflector')
26
- spec.add_development_dependency 'bundler', '~> 2.0'
27
- spec.add_development_dependency 'rake', '~> 13.0'
28
26
 
29
27
  spec.metadata = {
30
28
  'bug_tracker_uri' => 'https://github.com/code-vedas/mutils/issues',
31
- 'source_code_uri' => "https://github.com/code-vedas/mutils/tree/v#{Mutils::VERSION}"
29
+ 'source_code_uri' => "https://github.com/code-vedas/mutils/tree/v#{Mutils::VERSION}",
30
+ 'rubygems_mfa_required' => 'true'
32
31
  }
33
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nitesh Purohit
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-01 00:00:00.000000000 Z
11
+ date: 2024-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-inflector
@@ -24,34 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.0'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '13.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '13.0'
55
27
  description: mutils Utilities for rails app
56
28
  email:
57
29
  - nitesh.purohit.it@gmail.com
@@ -113,8 +85,9 @@ licenses:
113
85
  - MIT
114
86
  metadata:
115
87
  bug_tracker_uri: https://github.com/code-vedas/mutils/issues
116
- source_code_uri: https://github.com/code-vedas/mutils/tree/v1.3.0
117
- post_install_message:
88
+ source_code_uri: https://github.com/code-vedas/mutils/tree/v1.3.2
89
+ rubygems_mfa_required: 'true'
90
+ post_install_message:
118
91
  rdoc_options: []
119
92
  require_paths:
120
93
  - lib
@@ -129,8 +102,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
102
  - !ruby/object:Gem::Version
130
103
  version: 1.8.11
131
104
  requirements: []
132
- rubygems_version: 3.1.4
133
- signing_key:
105
+ rubygems_version: 3.5.6
106
+ signing_key:
134
107
  specification_version: 4
135
108
  summary: mutils Utilities for rails app
136
109
  test_files: []