immutable_struct_ex 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +16 -0
- data/.rubocop.yml +6 -12
- data/CHANGELOG.md +50 -23
- data/Gemfile.lock +39 -25
- data/immutable_struct_ex.gemspec +1 -1
- data/lib/immutable_struct_ex/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61c642f3ea31de72627be827ce9bf8e9658b7ac1f357c59c90b0a93f368d0fb3
|
4
|
+
data.tar.gz: bbd87ded6cb63d1537ac996e68dbe9f6d8a68db0dead4476e61b435580c74d08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e390d580160079339eedc90434cd9aa946aa2393d3acb47f45c1d0cce1f8452cc2048159c50478644927fdf20047252449aba9961714719854fd6e217461d33
|
7
|
+
data.tar.gz: 0f494816c62a205bb1f3d27731a0d56d26f97c150feb09f61c527827cc236e3ea02d96077c38c95609934cabc949dd9d5e5482c2370a75aae804ad75e424b32a
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
3
|
+
# Please see the documentation for all configuration options:
|
4
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
5
|
+
|
6
|
+
version: 2
|
7
|
+
updates:
|
8
|
+
- package-ecosystem: "bundler"
|
9
|
+
directory: "/" # Location of package manifests
|
10
|
+
schedule:
|
11
|
+
interval: "weekly"
|
12
|
+
groups:
|
13
|
+
production-dependencies:
|
14
|
+
dependency-type: "production"
|
15
|
+
development-dependencies:
|
16
|
+
dependency-type: "development"
|
data/.rubocop.yml
CHANGED
@@ -1,13 +1,3 @@
|
|
1
|
-
# The behavior of RuboCop can be controlled via the .rubocop.yml
|
2
|
-
# configuration file. It makes it possible to enable/disable
|
3
|
-
# certain cops (checks) and to alter their behavior if they accept
|
4
|
-
# any parameters. The file can be placed either in your home
|
5
|
-
# directory or in some project directory.
|
6
|
-
#
|
7
|
-
# RuboCop will start looking for the configuration file in the directory
|
8
|
-
# where the inspected file is and continue its way up to the root directory.
|
9
|
-
#
|
10
|
-
# See https://docs.rubocop.org/rubocop/configuration
|
11
1
|
require:
|
12
2
|
- rubocop-performance
|
13
3
|
- rubocop-rspec
|
@@ -23,7 +13,8 @@ AllCops:
|
|
23
13
|
- '*.gemspec'
|
24
14
|
- 'spec/**/*'
|
25
15
|
- 'vendor/**/*'
|
26
|
-
- 'scratch
|
16
|
+
- 'scratch*.rb'
|
17
|
+
- 'snippets*.rb'
|
27
18
|
|
28
19
|
# Align the elements of a hash literal if they span more than one line.
|
29
20
|
Layout/HashAlignment:
|
@@ -126,7 +117,7 @@ Layout/LineLength:
|
|
126
117
|
# Avoid methods longer than 15 lines of code.
|
127
118
|
Metrics/MethodLength:
|
128
119
|
Max: 20
|
129
|
-
|
120
|
+
AllowedMethods:
|
130
121
|
- swagger_path
|
131
122
|
- operation
|
132
123
|
|
@@ -135,6 +126,9 @@ Metrics/MethodLength:
|
|
135
126
|
Metrics/PerceivedComplexity:
|
136
127
|
Max: 10
|
137
128
|
|
129
|
+
NestedGroups:
|
130
|
+
Max: 4
|
131
|
+
|
138
132
|
# Naming/FileName:
|
139
133
|
# Exclude:
|
140
134
|
# - 'lib/file.rb'
|
data/CHANGELOG.md
CHANGED
@@ -1,36 +1,63 @@
|
|
1
|
+
### [1.0.2] 2023-08-29
|
2
|
+
|
3
|
+
Changes
|
4
|
+
|
5
|
+
- Ruby gem updates
|
6
|
+
|
7
|
+
### [1.0.1] 2023-08-17
|
8
|
+
|
9
|
+
Changes
|
10
|
+
|
11
|
+
- Ruby gem updates
|
12
|
+
|
1
13
|
### 1.0.0
|
2
|
-
|
3
|
-
|
4
|
-
|
14
|
+
|
15
|
+
Changes (not really a breaking change, but just wanted to bump to 1.0.0)
|
16
|
+
|
17
|
+
- Limit required ruby version to ~> 3.0.
|
18
|
+
- Update ruby gems.
|
5
19
|
|
6
20
|
### 0.3.0
|
7
|
-
|
8
|
-
|
21
|
+
|
22
|
+
Changes
|
23
|
+
|
24
|
+
- Update README.md file with the correct gem name.
|
9
25
|
|
10
26
|
### 0.2.3
|
11
|
-
|
12
|
-
|
27
|
+
|
28
|
+
Bug fixes
|
29
|
+
|
30
|
+
- Fix bug in specs that failed to add criteria for passing tests (e.g. ".to eq true/false") so tests could not fail.
|
13
31
|
|
14
32
|
### 0.2.2
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
33
|
+
|
34
|
+
Changes
|
35
|
+
|
36
|
+
- Restructure modules under lib/immutable_structure_ex folder.
|
37
|
+
- Make codez to create struct a little cleaner/tighter.
|
38
|
+
- Ignore .vscode folder in .gitignore file.
|
39
|
+
- Update gems and especially rake gem version to squash CVE-2020-8130, see https://github.com/advisories/GHSA-jppv-gw3r-w3q8.
|
40
|
+
- Fix rubocop violations.
|
21
41
|
|
22
42
|
### 0.2.1
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
43
|
+
|
44
|
+
Changes
|
45
|
+
|
46
|
+
- General refactors/cleanup.
|
47
|
+
- Added Immutable module; when extended on a struct, makes it immutable.
|
48
|
+
- Added Comparable module; when extended on a struct, makes it comparable to other structs and hashes.
|
27
49
|
|
28
50
|
### 0.1.1
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
51
|
+
|
52
|
+
Changes
|
53
|
+
|
54
|
+
- Added this CHANGELOG.md.
|
55
|
+
|
56
|
+
Bug fixes
|
57
|
+
|
58
|
+
- Equality method #== did not work when comparing objects whose underlying hashes were equal.
|
59
|
+
- Added #== method to compare underlying hashes by calling a.to_h == b.to_h.
|
34
60
|
|
35
61
|
### 0.1.0
|
36
|
-
|
62
|
+
|
63
|
+
Initial release.
|
data/Gemfile.lock
CHANGED
@@ -1,77 +1,91 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
immutable_struct_ex (1.0.
|
4
|
+
immutable_struct_ex (1.0.2)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ast (2.4.2)
|
10
|
+
base64 (0.1.1)
|
10
11
|
byebug (11.1.3)
|
11
12
|
coderay (1.1.3)
|
12
13
|
diff-lcs (1.5.0)
|
13
14
|
docile (1.4.0)
|
14
|
-
json (2.6.
|
15
|
+
json (2.6.3)
|
15
16
|
kwalify (0.7.2)
|
17
|
+
language_server-protocol (3.17.0.3)
|
16
18
|
method_source (1.0.0)
|
17
|
-
parallel (1.
|
18
|
-
parser (3.
|
19
|
+
parallel (1.23.0)
|
20
|
+
parser (3.2.2.3)
|
19
21
|
ast (~> 2.4.1)
|
20
|
-
|
22
|
+
racc
|
23
|
+
pry (0.14.2)
|
21
24
|
coderay (~> 1.1)
|
22
25
|
method_source (~> 1.0)
|
23
26
|
pry-byebug (3.10.1)
|
24
27
|
byebug (~> 11.0)
|
25
28
|
pry (>= 0.13, < 0.15)
|
29
|
+
racc (1.7.1)
|
26
30
|
rainbow (3.1.1)
|
27
31
|
rake (13.0.6)
|
28
|
-
reek (6.1.
|
32
|
+
reek (6.1.4)
|
29
33
|
kwalify (~> 0.7.0)
|
30
|
-
parser (~> 3.
|
34
|
+
parser (~> 3.2.0)
|
31
35
|
rainbow (>= 2.0, < 4.0)
|
32
|
-
regexp_parser (2.
|
33
|
-
rexml (3.2.
|
36
|
+
regexp_parser (2.8.1)
|
37
|
+
rexml (3.2.6)
|
34
38
|
rspec (3.12.0)
|
35
39
|
rspec-core (~> 3.12.0)
|
36
40
|
rspec-expectations (~> 3.12.0)
|
37
41
|
rspec-mocks (~> 3.12.0)
|
38
|
-
rspec-core (3.12.
|
42
|
+
rspec-core (3.12.2)
|
39
43
|
rspec-support (~> 3.12.0)
|
40
|
-
rspec-expectations (3.12.
|
44
|
+
rspec-expectations (3.12.3)
|
41
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
42
46
|
rspec-support (~> 3.12.0)
|
43
|
-
rspec-mocks (3.12.
|
47
|
+
rspec-mocks (3.12.6)
|
44
48
|
diff-lcs (>= 1.2.0, < 2.0)
|
45
49
|
rspec-support (~> 3.12.0)
|
46
|
-
rspec-support (3.12.
|
47
|
-
rubocop (1.
|
50
|
+
rspec-support (3.12.1)
|
51
|
+
rubocop (1.56.2)
|
52
|
+
base64 (~> 0.1.1)
|
48
53
|
json (~> 2.3)
|
54
|
+
language_server-protocol (>= 3.17.0)
|
49
55
|
parallel (~> 1.10)
|
50
|
-
parser (>= 3.
|
56
|
+
parser (>= 3.2.2.3)
|
51
57
|
rainbow (>= 2.2.2, < 4.0)
|
52
58
|
regexp_parser (>= 1.8, < 3.0)
|
53
59
|
rexml (>= 3.2.5, < 4.0)
|
54
|
-
rubocop-ast (>= 1.
|
60
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
55
61
|
ruby-progressbar (~> 1.7)
|
56
|
-
unicode-display_width (>=
|
57
|
-
rubocop-ast (1.
|
58
|
-
parser (>= 3.
|
59
|
-
rubocop-
|
62
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
63
|
+
rubocop-ast (1.29.0)
|
64
|
+
parser (>= 3.2.1.0)
|
65
|
+
rubocop-capybara (2.18.0)
|
66
|
+
rubocop (~> 1.41)
|
67
|
+
rubocop-factory_bot (2.23.1)
|
68
|
+
rubocop (~> 1.33)
|
69
|
+
rubocop-performance (1.19.0)
|
60
70
|
rubocop (>= 1.7.0, < 2.0)
|
61
71
|
rubocop-ast (>= 0.4.0)
|
62
|
-
rubocop-rspec (2.
|
72
|
+
rubocop-rspec (2.23.2)
|
63
73
|
rubocop (~> 1.33)
|
64
|
-
|
65
|
-
|
74
|
+
rubocop-capybara (~> 2.17)
|
75
|
+
rubocop-factory_bot (~> 2.22)
|
76
|
+
ruby-progressbar (1.13.0)
|
77
|
+
simplecov (0.22.0)
|
66
78
|
docile (~> 1.1)
|
67
79
|
simplecov-html (~> 0.11)
|
68
80
|
simplecov_json_formatter (~> 0.1)
|
69
81
|
simplecov-html (0.12.3)
|
70
82
|
simplecov_json_formatter (0.1.4)
|
71
|
-
unicode-display_width (2.
|
83
|
+
unicode-display_width (2.4.2)
|
72
84
|
|
73
85
|
PLATFORMS
|
74
86
|
x86_64-darwin-19
|
87
|
+
x86_64-darwin-21
|
88
|
+
x86_64-linux
|
75
89
|
|
76
90
|
DEPENDENCIES
|
77
91
|
bundler (~> 2.2, >= 2.2.17)
|
@@ -83,7 +97,7 @@ DEPENDENCIES
|
|
83
97
|
rubocop (~> 1.35)
|
84
98
|
rubocop-performance (~> 1.14, >= 1.14.3)
|
85
99
|
rubocop-rspec (~> 2.12, >= 2.12.1)
|
86
|
-
simplecov (~> 0.
|
100
|
+
simplecov (~> 0.22.0)
|
87
101
|
|
88
102
|
BUNDLED WITH
|
89
103
|
2.3.22
|
data/immutable_struct_ex.gemspec
CHANGED
@@ -39,6 +39,6 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.add_development_dependency 'rubocop', '~> 1.35'
|
40
40
|
spec.add_development_dependency 'rubocop-performance', '~> 1.14', '>= 1.14.3'
|
41
41
|
spec.add_development_dependency 'rubocop-rspec', '~> 2.12', '>= 2.12.1'
|
42
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
42
|
+
spec.add_development_dependency 'simplecov', '~> 0.22.0'
|
43
43
|
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
44
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: immutable_struct_ex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gene M. Angelo, Jr.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -138,14 +138,14 @@ dependencies:
|
|
138
138
|
requirements:
|
139
139
|
- - "~>"
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version: 0.
|
141
|
+
version: 0.22.0
|
142
142
|
type: :development
|
143
143
|
prerelease: false
|
144
144
|
version_requirements: !ruby/object:Gem::Requirement
|
145
145
|
requirements:
|
146
146
|
- - "~>"
|
147
147
|
- !ruby/object:Gem::Version
|
148
|
-
version: 0.
|
148
|
+
version: 0.22.0
|
149
149
|
- !ruby/object:Gem::Dependency
|
150
150
|
name: rake
|
151
151
|
requirement: !ruby/object:Gem::Requirement
|
@@ -173,6 +173,7 @@ executables: []
|
|
173
173
|
extensions: []
|
174
174
|
extra_rdoc_files: []
|
175
175
|
files:
|
176
|
+
- ".github/dependabot.yml"
|
176
177
|
- ".gitignore"
|
177
178
|
- ".reek.yml"
|
178
179
|
- ".rspec"
|
@@ -212,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
213
|
- !ruby/object:Gem::Version
|
213
214
|
version: '0'
|
214
215
|
requirements: []
|
215
|
-
rubygems_version: 3.
|
216
|
+
rubygems_version: 3.2.15
|
216
217
|
signing_key:
|
217
218
|
specification_version: 4
|
218
219
|
summary: Creates an immutable struct in one step.
|