mutils 1.2.2 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +0 -0
  3. data/.github/CONTRIBUTING.md +0 -0
  4. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  5. data/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  6. data/.github/ISSUE_TEMPLATE.md +0 -0
  7. data/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  8. data/.github/dependabot.yml +0 -0
  9. data/.github/workflows/{release.yml → create-release.yml} +8 -9
  10. data/.github/workflows/master.yml +3 -1
  11. data/.github/workflows/publish-gem.yml +44 -0
  12. data/.github/workflows/{pr.yml → test.yml} +5 -3
  13. data/.gitignore +0 -0
  14. data/.jrubyrc +0 -0
  15. data/.releaserc +64 -0
  16. data/.rspec +0 -0
  17. data/.rubocop.yml +0 -0
  18. data/.rubocop_todo.yml +0 -0
  19. data/.travis.yml +0 -0
  20. data/CHANGELOG.md +28 -0
  21. data/CODE_OF_CONDUCT.md +0 -0
  22. data/Gemfile +0 -0
  23. data/Gemfile.lock +31 -30
  24. data/LICENSE.txt +0 -0
  25. data/README.md +0 -0
  26. data/Rakefile +0 -0
  27. data/SECURITY.md +0 -0
  28. data/Version +1 -1
  29. data/commitlint.config.js +0 -0
  30. data/lib/generators/mutils/USAGE +0 -0
  31. data/lib/generators/mutils/serializer_generator.rb +0 -0
  32. data/lib/generators/mutils/templates/serializer.rb.tt +0 -0
  33. data/lib/mutils/lib/helper.rb +0 -0
  34. data/lib/mutils/lib/result_hash.rb +0 -0
  35. data/lib/mutils/serialization/base_serializer.rb +0 -0
  36. data/lib/mutils/serialization/methods/attributes.rb +0 -0
  37. data/lib/mutils/serialization/methods/main.rb +0 -0
  38. data/lib/mutils/serialization/methods/relations.rb +0 -0
  39. data/lib/mutils/serialization/results/attributes.rb +0 -0
  40. data/lib/mutils/serialization/results/main.rb +0 -0
  41. data/lib/mutils/serialization/results/relations.rb +0 -0
  42. data/lib/mutils/serialization/serialization_includes.rb +0 -0
  43. data/lib/mutils/serialization/serialization_methods.rb +0 -0
  44. data/lib/mutils/serialization/serialization_results.rb +0 -0
  45. data/lib/mutils/version.rb +0 -0
  46. data/lib/mutils.rb +0 -0
  47. data/mutils.gemspec +0 -0
  48. metadata +11 -12
  49. data/.huskyrc +0 -7
  50. data/package-lock.json +0 -5806
  51. data/package.json +0 -94
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1e38f18d697f9a7dff3192712e9612bcf8da298f785129fcc9a43ada6e00d56
4
- data.tar.gz: bdae09e0ff5700b1c245fd8296756141bbf817602b2dd90e01bb7158799bb966
3
+ metadata.gz: ba0d177914b79c45fb3da60966cfaad27381fb071f1d547ed164fdd6b36b4ff0
4
+ data.tar.gz: 2b43060e32d381cf74b3e6e46d8d54c74951aad5ac22a72d56e6be59585e24b5
5
5
  SHA512:
6
- metadata.gz: b341eda42e946f3ae9888b289b70fdcce263e6d3f4d933b17636dcb1905d1a846f19b35ffe865e1823b7995252a1ba9ad63c33381c61c53fb1486e40e6e99877
7
- data.tar.gz: dc53c939a566414cae43a65dd94c7c5f59d874eb255b559f0a5f03015a0da27fe920bc939c88e34955da360a01e2c62ead9cbe2bc0d24e030b085b2b066c47e5
6
+ metadata.gz: bdf0e0225d311ffb32a28444715fdd67d906e0621eb427bd735fe7f00186334284069cbb5f6adb9bbe11ffa268b82ceb16a34fe23d16fba83c69213e229d21d7
7
+ data.tar.gz: 5ba7fdd5317995172a7437612cb51506eb0d495ba5f82218de8b3b944391051e204dd920bbaabab409e60e9802912274aafdd5144a07c7622bef66b3836de100
data/.codeclimate.yml CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,20 +1,19 @@
1
- name: Release
1
+ name: Create Release
2
2
  on:
3
- push:
4
- branches: [master]
3
+ workflow_dispatch:
5
4
  jobs:
6
- release:
5
+ create_release:
6
+ name: Create Release
7
7
  runs-on: ubuntu-20.04
8
- name: Release
9
8
  steps:
10
9
  - uses: actions/checkout@v2
11
10
  - name: Use Node.js
12
11
  uses: actions/setup-node@v1
13
12
  with:
14
- node-version: 14.x
13
+ node-version: 18.x
15
14
  - uses: ruby/setup-ruby@v1
16
15
  with:
17
- ruby-version: 2.7
16
+ ruby-version: 3.0
18
17
  bundler-cache: true
19
18
  - name: Run Rubocop
20
19
  run: bundle exec rubocop lib
@@ -25,6 +24,6 @@ jobs:
25
24
  RUBYGEMS_AUTH_TOKEN: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
26
25
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27
26
  run: |
28
- npm install
27
+ npm install -g @commitlint/cli @commitlint/config-angular @semantic-release/changelog @semantic-release/exec
28
+ npm install -g @semantic-release/git @semantic-release/github semantic-release
29
29
  npx semantic-release
30
-
@@ -1,4 +1,4 @@
1
- name: Master
1
+ name: Test Master
2
2
  on:
3
3
  push:
4
4
  branches: [master]
@@ -8,6 +8,8 @@ jobs:
8
8
  strategy:
9
9
  matrix:
10
10
  ruby:
11
+ - "3.2"
12
+ - "3.1"
11
13
  - "3.0"
12
14
  - "2.7"
13
15
  - "2.6"
@@ -0,0 +1,44 @@
1
+ name: Publish Gem
2
+ on:
3
+ workflow_dispatch:
4
+ inputs:
5
+ release_password:
6
+ description: "Enter Release Password"
7
+ required: true
8
+ default: ""
9
+ jobs:
10
+ release:
11
+ runs-on: ubuntu-20.04
12
+ name: Publish Gem
13
+ steps:
14
+ - name: Set ENV
15
+ run: |
16
+ echo "release password: ${{secrets.RELEASE_PASSWORD}}"
17
+ echo "release_password=${{secrets.RELEASE_PASSWORD}}" >> $GITHUB_ENV
18
+ - name: Checkout
19
+ if: github.event.inputs.release_password == env.release_password
20
+ uses: actions/checkout@v2
21
+ - uses: ruby/setup-ruby@v1
22
+ if: github.event.inputs.release_password == env.release_password
23
+ with:
24
+ ruby-version: 3.0
25
+ bundler-cache: true
26
+ - name: Run Rubocop
27
+ if: github.event.inputs.release_password == env.release_password
28
+ run: bundle exec rubocop lib
29
+ - name: Run Test
30
+ if: github.event.inputs.release_password == env.release_password
31
+ run: bundle exec rspec
32
+ - name: Publish
33
+ if: github.event.inputs.release_password == env.release_password
34
+ env:
35
+ RUBYGEMS_AUTH_TOKEN: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
36
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37
+ run: |
38
+ mkdir -p $HOME/.gem
39
+ touch $HOME/.gem/credentials
40
+ chmod 0600 $HOME/.gem/credentials
41
+ printf -- "---\n:rubygems_api_key: ${RUBYGEMS_AUTH_TOKEN}\n" > $HOME/.gem/credentials
42
+ gem build *.gemspec
43
+ gem push *.gem
44
+
@@ -2,19 +2,21 @@ name: Pull Requests
2
2
  on:
3
3
  push:
4
4
  branches:
5
- - '*'
6
- - '!master'
5
+ - "*"
6
+ - "!master"
7
7
  jobs:
8
8
  testing:
9
9
  runs-on: ubuntu-20.04
10
10
  strategy:
11
11
  matrix:
12
12
  ruby:
13
+ - "3.2"
14
+ - "3.1"
13
15
  - "3.0"
14
16
  - "2.7"
15
17
  - "2.6"
16
18
  include:
17
- - ruby: "3.0"
19
+ - ruby: "3.2"
18
20
  coverage: "true"
19
21
  name: Test with ruby ${{ matrix.ruby }}
20
22
  steps:
data/.gitignore CHANGED
File without changes
data/.jrubyrc CHANGED
File without changes
data/.releaserc ADDED
@@ -0,0 +1,64 @@
1
+ branch: master
2
+ ci: false
3
+ verifyConditions:
4
+ - "@semantic-release/changelog"
5
+ - "@semantic-release/git"
6
+ - "@semantic-release/github"
7
+ analyzeCommits:
8
+ - "@semantic-release/commit-analyzer"
9
+ generateNotes:
10
+ path: "@semantic-release/release-notes-generator"
11
+ preset: angular
12
+ parserOpts:
13
+ noteKeywords:
14
+ - BREAKING CHANGE
15
+ - BREAKING CHANGES
16
+ - BREAKING
17
+ writerOpts:
18
+ commitsSort:
19
+ - scope
20
+ - subject
21
+ presetConfig:
22
+ types:
23
+ - type: chore
24
+ section: Chores
25
+ - type: build
26
+ section: Build Changes
27
+ - type: docs
28
+ section: Documentation Changes
29
+ - type: feat
30
+ section: Features
31
+ - type: fix
32
+ section: Bug Fixes
33
+ - type: perf
34
+ section: Performance Improvments
35
+ - type: refactor
36
+ section: Refactors
37
+ - type: revert
38
+ section: Reverted
39
+ - type: style
40
+ section: Styles Changes
41
+ - type: test
42
+ section: Test Suite Changes
43
+ prepare:
44
+ - path: "@semantic-release/changelog"
45
+ changelogFile: CHANGELOG.md
46
+ - path: "@semantic-release/exec"
47
+ cmd: echo "v${nextRelease.version}" > Version
48
+ - path: "@semantic-release/exec"
49
+ cmd: 'bundle config unset deployment'
50
+ - path: "@semantic-release/exec"
51
+ cmd: 'bundle install'
52
+ - path: "@semantic-release/exec"
53
+ cmd: 'echo "Creating Version: $(cat Version)"'
54
+ - path: "@semantic-release/git"
55
+ assets:
56
+ - CHANGELOG.md
57
+ - Version
58
+ - Gemfile.lock
59
+ message: |-
60
+ build(release): v${nextRelease.version} [skip ci]
61
+
62
+ ${nextRelease.notes}
63
+ publish:
64
+ - "@semantic-release/github"
data/.rspec CHANGED
File without changes
data/.rubocop.yml CHANGED
File without changes
data/.rubocop_todo.yml CHANGED
File without changes
data/.travis.yml CHANGED
File without changes
data/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ## [1.2.6](https://github.com/Code-Vedas/mutils/compare/v1.2.5...v1.2.6) (2023-02-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add upto ruby 3.2 test matrix ([cbeedc3](https://github.com/Code-Vedas/mutils/commit/cbeedc36ca96bb691fa8b6fdc8c19788c7184b4a))
7
+
8
+ ## [1.2.5](https://github.com/Code-Vedas/mutils/compare/v1.2.4...v1.2.5) (2022-03-10)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * include Gemfile.lock when creating release ([7c9b88a](https://github.com/Code-Vedas/mutils/commit/7c9b88a2ef63bda6ab44a36eafbbaf31dab9cd7f))
14
+
15
+ ## [1.2.4](https://github.com/Code-Vedas/mutils/compare/v1.2.3...v1.2.4) (2022-03-10)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * bundle ([4f70247](https://github.com/Code-Vedas/mutils/commit/4f70247451df4df88397ff51b0dbe382eed02838))
21
+
22
+ ## [1.2.3](https://github.com/Code-Vedas/mutils/compare/v1.2.2...v1.2.3) (2022-03-10)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * release with test ruby 3.0 ([c3a6034](https://github.com/Code-Vedas/mutils/commit/c3a60344f7722552215559f46377dc83d7e33e05))
28
+
1
29
  ## [1.2.2](https://github.com/Code-Vedas/mutils/compare/v1.2.1...v1.2.2) (2021-11-26)
2
30
 
3
31
 
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/Gemfile.lock CHANGED
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- mutils (1.2.1)
10
+ mutils (1.2.6)
11
11
  dry-inflector
12
12
 
13
13
  GEM
@@ -23,51 +23,52 @@ GEM
23
23
  term-ansicolor (~> 1.3)
24
24
  thor (>= 0.19.4, < 2.0)
25
25
  tins (~> 1.6)
26
- diff-lcs (1.4.4)
26
+ diff-lcs (1.5.0)
27
27
  docile (1.4.0)
28
- dry-inflector (0.2.1)
29
- json (2.6.1)
30
- json (2.6.1-java)
31
- parallel (1.21.0)
32
- parser (3.0.3.0)
28
+ 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)
33
33
  ast (~> 2.4.1)
34
34
  pluginator (1.5.0)
35
35
  pre-commit (0.39.0)
36
36
  pluginator (~> 1.5)
37
- rainbow (3.0.0)
37
+ rainbow (3.1.1)
38
38
  rake (13.0.6)
39
- regexp_parser (2.1.1)
39
+ regexp_parser (2.7.0)
40
40
  rexml (3.2.5)
41
- rspec (3.10.0)
42
- rspec-core (~> 3.10.0)
43
- rspec-expectations (~> 3.10.0)
44
- rspec-mocks (~> 3.10.0)
41
+ rspec (3.12.0)
42
+ rspec-core (~> 3.12.0)
43
+ rspec-expectations (~> 3.12.0)
44
+ rspec-mocks (~> 3.12.0)
45
45
  rspec-benchmark (0.6.0)
46
46
  benchmark-malloc (~> 0.2)
47
47
  benchmark-perf (~> 0.6)
48
48
  benchmark-trend (~> 0.4)
49
49
  rspec (>= 3.0)
50
- rspec-core (3.10.1)
51
- rspec-support (~> 3.10.0)
52
- rspec-expectations (3.10.1)
50
+ rspec-core (3.12.0)
51
+ rspec-support (~> 3.12.0)
52
+ rspec-expectations (3.12.0)
53
53
  diff-lcs (>= 1.2.0, < 2.0)
54
- rspec-support (~> 3.10.0)
54
+ rspec-support (~> 3.12.0)
55
55
  rspec-json_expectations (2.2.0)
56
- rspec-mocks (3.10.2)
56
+ rspec-mocks (3.12.0)
57
57
  diff-lcs (>= 1.2.0, < 2.0)
58
- rspec-support (~> 3.10.0)
59
- rspec-support (3.10.3)
60
- rubocop (1.23.0)
58
+ rspec-support (~> 3.12.0)
59
+ rspec-support (3.12.0)
60
+ rubocop (1.46.0)
61
+ json (~> 2.3)
61
62
  parallel (~> 1.10)
62
- parser (>= 3.0.0.0)
63
+ parser (>= 3.2.0.0)
63
64
  rainbow (>= 2.2.2, < 4.0)
64
65
  regexp_parser (>= 1.8, < 3.0)
65
- rexml
66
- rubocop-ast (>= 1.12.0, < 2.0)
66
+ rexml (>= 3.2.5, < 4.0)
67
+ rubocop-ast (>= 1.26.0, < 2.0)
67
68
  ruby-progressbar (~> 1.7)
68
- unicode-display_width (>= 1.4.0, < 3.0)
69
- rubocop-ast (1.13.0)
70
- parser (>= 3.0.1.1)
69
+ unicode-display_width (>= 2.4.0, < 3.0)
70
+ rubocop-ast (1.26.0)
71
+ parser (>= 3.2.1.0)
71
72
  ruby-progressbar (1.11.0)
72
73
  simplecov (0.16.1)
73
74
  docile (~> 1.1)
@@ -77,10 +78,10 @@ GEM
77
78
  sync (0.5.0)
78
79
  term-ansicolor (1.7.1)
79
80
  tins (~> 1.0)
80
- thor (1.1.0)
81
- tins (1.29.1)
81
+ thor (1.2.1)
82
+ tins (1.31.0)
82
83
  sync
83
- unicode-display_width (2.1.0)
84
+ unicode-display_width (2.4.2)
84
85
 
85
86
  PLATFORMS
86
87
  java
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
data/SECURITY.md CHANGED
File without changes
data/Version CHANGED
@@ -1 +1 @@
1
- v1.2.2
1
+ v1.2.6
data/commitlint.config.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/lib/mutils.rb CHANGED
File without changes
data/mutils.gemspec CHANGED
File without changes
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.2.2
4
+ version: 1.2.6
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: 2021-11-26 00:00:00.000000000 Z
11
+ date: 2023-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-inflector
@@ -66,12 +66,13 @@ files:
66
66
  - ".github/ISSUE_TEMPLATE/feature_request.md"
67
67
  - ".github/PULL_REQUEST_TEMPLATE.md"
68
68
  - ".github/dependabot.yml"
69
+ - ".github/workflows/create-release.yml"
69
70
  - ".github/workflows/master.yml"
70
- - ".github/workflows/pr.yml"
71
- - ".github/workflows/release.yml"
71
+ - ".github/workflows/publish-gem.yml"
72
+ - ".github/workflows/test.yml"
72
73
  - ".gitignore"
73
- - ".huskyrc"
74
74
  - ".jrubyrc"
75
+ - ".releaserc"
75
76
  - ".rspec"
76
77
  - ".rubocop.yml"
77
78
  - ".rubocop_todo.yml"
@@ -107,15 +108,13 @@ files:
107
108
  - lib/mutils/serialization/serialization_results.rb
108
109
  - lib/mutils/version.rb
109
110
  - mutils.gemspec
110
- - package-lock.json
111
- - package.json
112
111
  homepage: https://github.com/code-vedas/mutils
113
112
  licenses:
114
113
  - MIT
115
114
  metadata:
116
115
  bug_tracker_uri: https://github.com/code-vedas/mutils/issues
117
- source_code_uri: https://github.com/code-vedas/mutils/tree/v1.2.2
118
- post_install_message:
116
+ source_code_uri: https://github.com/code-vedas/mutils/tree/v1.2.6
117
+ post_install_message:
119
118
  rdoc_options: []
120
119
  require_paths:
121
120
  - lib
@@ -130,8 +129,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
129
  - !ruby/object:Gem::Version
131
130
  version: 1.8.11
132
131
  requirements: []
133
- rubygems_version: 3.1.6
134
- signing_key:
132
+ rubygems_version: 3.4.7
133
+ signing_key:
135
134
  specification_version: 4
136
135
  summary: mutils Utilities for rails app
137
136
  test_files: []
data/.huskyrc DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "husky": {
3
- "hooks": {
4
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
5
- }
6
- }
7
- }