rspec-json_api 1.4.0 → 1.6.0

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.
data/CODE_OF_CONDUCT.md DELETED
@@ -1,84 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
-
9
- ## Our Standards
10
-
11
- Examples of behavior that contributes to a positive environment for our community include:
12
-
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
18
-
19
- Examples of unacceptable behavior include:
20
-
21
- * The use of sexualized language or imagery, and sexual attention or
22
- advances of any kind
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
26
- address, without their explicit permission
27
- * Other conduct which could reasonably be considered inappropriate in a
28
- professional setting
29
-
30
- ## Enforcement Responsibilities
31
-
32
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
-
34
- Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
-
36
- ## Scope
37
-
38
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
-
40
- ## Enforcement
41
-
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at m.gajowiak@nomtek.com. All complaints will be reviewed and investigated promptly and fairly.
43
-
44
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
-
46
- ## Enforcement Guidelines
47
-
48
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
-
50
- ### 1. Correction
51
-
52
- **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
-
54
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
-
56
- ### 2. Warning
57
-
58
- **Community Impact**: A violation through a single incident or series of actions.
59
-
60
- **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
-
62
- ### 3. Temporary Ban
63
-
64
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
-
66
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
-
68
- ### 4. Permanent Ban
69
-
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
-
72
- **Consequence**: A permanent ban from any sort of public interaction within the community.
73
-
74
- ## Attribution
75
-
76
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
- available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
-
81
- [homepage]: https://www.contributor-covenant.org
82
-
83
- For answers to common questions about this code of conduct, see the FAQ at
84
- https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile DELETED
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Bundler version: 4.0.4 (see Gemfile.lock BUNDLED WITH section)
4
- source "https://rubygems.org"
5
- git_source(:github) { |repo| "https://github.com/#{repo}.git" }
6
-
7
- # Specify your gem's dependencies in rspec-json_api.gemspec
8
- gemspec
9
-
10
- gem "activesupport", ">= 6.1.4.1"
11
- gem "diffy", "~> 3.4"
12
- gem "rake", "~> 13.2"
13
- gem "rspec-rails", ">= 5.0.2"
14
- gem "rubocop", "~> 1.65"
data/Gemfile.lock DELETED
@@ -1,262 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- rspec-json_api (1.4.0)
5
- activesupport (>= 6.1.4.1)
6
- diffy (>= 3.4.2)
7
- rails (>= 6.1.4.1)
8
- rspec-rails (>= 5.0.2)
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- action_text-trix (2.1.16)
14
- railties
15
- actioncable (8.1.2)
16
- actionpack (= 8.1.2)
17
- activesupport (= 8.1.2)
18
- nio4r (~> 2.0)
19
- websocket-driver (>= 0.6.1)
20
- zeitwerk (~> 2.6)
21
- actionmailbox (8.1.2)
22
- actionpack (= 8.1.2)
23
- activejob (= 8.1.2)
24
- activerecord (= 8.1.2)
25
- activestorage (= 8.1.2)
26
- activesupport (= 8.1.2)
27
- mail (>= 2.8.0)
28
- actionmailer (8.1.2)
29
- actionpack (= 8.1.2)
30
- actionview (= 8.1.2)
31
- activejob (= 8.1.2)
32
- activesupport (= 8.1.2)
33
- mail (>= 2.8.0)
34
- rails-dom-testing (~> 2.2)
35
- actionpack (8.1.2)
36
- actionview (= 8.1.2)
37
- activesupport (= 8.1.2)
38
- nokogiri (>= 1.8.5)
39
- rack (>= 2.2.4)
40
- rack-session (>= 1.0.1)
41
- rack-test (>= 0.6.3)
42
- rails-dom-testing (~> 2.2)
43
- rails-html-sanitizer (~> 1.6)
44
- useragent (~> 0.16)
45
- actiontext (8.1.2)
46
- action_text-trix (~> 2.1.15)
47
- actionpack (= 8.1.2)
48
- activerecord (= 8.1.2)
49
- activestorage (= 8.1.2)
50
- activesupport (= 8.1.2)
51
- globalid (>= 0.6.0)
52
- nokogiri (>= 1.8.5)
53
- actionview (8.1.2)
54
- activesupport (= 8.1.2)
55
- builder (~> 3.1)
56
- erubi (~> 1.11)
57
- rails-dom-testing (~> 2.2)
58
- rails-html-sanitizer (~> 1.6)
59
- activejob (8.1.2)
60
- activesupport (= 8.1.2)
61
- globalid (>= 0.3.6)
62
- activemodel (8.1.2)
63
- activesupport (= 8.1.2)
64
- activerecord (8.1.2)
65
- activemodel (= 8.1.2)
66
- activesupport (= 8.1.2)
67
- timeout (>= 0.4.0)
68
- activestorage (8.1.2)
69
- actionpack (= 8.1.2)
70
- activejob (= 8.1.2)
71
- activerecord (= 8.1.2)
72
- activesupport (= 8.1.2)
73
- marcel (~> 1.0)
74
- activesupport (8.1.2)
75
- base64
76
- bigdecimal
77
- concurrent-ruby (~> 1.0, >= 1.3.1)
78
- connection_pool (>= 2.2.5)
79
- drb
80
- i18n (>= 1.6, < 2)
81
- json
82
- logger (>= 1.4.2)
83
- minitest (>= 5.1)
84
- securerandom (>= 0.3)
85
- tzinfo (~> 2.0, >= 2.0.5)
86
- uri (>= 0.13.1)
87
- ast (2.4.3)
88
- base64 (0.3.0)
89
- bigdecimal (4.0.1)
90
- builder (3.3.0)
91
- concurrent-ruby (1.3.6)
92
- connection_pool (3.0.2)
93
- crass (1.0.6)
94
- date (3.5.1)
95
- diff-lcs (1.6.2)
96
- diffy (3.4.4)
97
- drb (2.2.3)
98
- erb (6.0.1)
99
- erubi (1.13.1)
100
- globalid (1.3.0)
101
- activesupport (>= 6.1)
102
- i18n (1.14.8)
103
- concurrent-ruby (~> 1.0)
104
- io-console (0.8.2)
105
- irb (1.16.0)
106
- pp (>= 0.6.0)
107
- rdoc (>= 4.0.0)
108
- reline (>= 0.4.2)
109
- json (2.18.0)
110
- language_server-protocol (3.17.0.5)
111
- lint_roller (1.1.0)
112
- logger (1.7.0)
113
- loofah (2.25.0)
114
- crass (~> 1.0.2)
115
- nokogiri (>= 1.12.0)
116
- mail (2.9.0)
117
- logger
118
- mini_mime (>= 0.1.1)
119
- net-imap
120
- net-pop
121
- net-smtp
122
- marcel (1.1.0)
123
- mini_mime (1.1.5)
124
- minitest (6.0.1)
125
- prism (~> 1.5)
126
- net-imap (0.6.2)
127
- date
128
- net-protocol
129
- net-pop (0.1.2)
130
- net-protocol
131
- net-protocol (0.2.2)
132
- timeout
133
- net-smtp (0.5.1)
134
- net-protocol
135
- nio4r (2.7.5)
136
- nokogiri (1.19.0-arm64-darwin)
137
- racc (~> 1.4)
138
- nokogiri (1.19.0-x86_64-darwin)
139
- racc (~> 1.4)
140
- parallel (1.27.0)
141
- parser (3.3.10.1)
142
- ast (~> 2.4.1)
143
- racc
144
- pp (0.6.3)
145
- prettyprint
146
- prettyprint (0.2.0)
147
- prism (1.8.0)
148
- psych (5.3.1)
149
- date
150
- stringio
151
- racc (1.8.1)
152
- rack (3.2.4)
153
- rack-session (2.1.1)
154
- base64 (>= 0.1.0)
155
- rack (>= 3.0.0)
156
- rack-test (2.2.0)
157
- rack (>= 1.3)
158
- rackup (2.3.1)
159
- rack (>= 3)
160
- rails (8.1.2)
161
- actioncable (= 8.1.2)
162
- actionmailbox (= 8.1.2)
163
- actionmailer (= 8.1.2)
164
- actionpack (= 8.1.2)
165
- actiontext (= 8.1.2)
166
- actionview (= 8.1.2)
167
- activejob (= 8.1.2)
168
- activemodel (= 8.1.2)
169
- activerecord (= 8.1.2)
170
- activestorage (= 8.1.2)
171
- activesupport (= 8.1.2)
172
- bundler (>= 1.15.0)
173
- railties (= 8.1.2)
174
- rails-dom-testing (2.3.0)
175
- activesupport (>= 5.0.0)
176
- minitest
177
- nokogiri (>= 1.6)
178
- rails-html-sanitizer (1.6.2)
179
- loofah (~> 2.21)
180
- nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
181
- railties (8.1.2)
182
- actionpack (= 8.1.2)
183
- activesupport (= 8.1.2)
184
- irb (~> 1.13)
185
- rackup (>= 1.0.0)
186
- rake (>= 12.2)
187
- thor (~> 1.0, >= 1.2.2)
188
- tsort (>= 0.2)
189
- zeitwerk (~> 2.6)
190
- rainbow (3.1.1)
191
- rake (13.3.1)
192
- rdoc (7.1.0)
193
- erb
194
- psych (>= 4.0.0)
195
- tsort
196
- regexp_parser (2.11.3)
197
- reline (0.6.3)
198
- io-console (~> 0.5)
199
- rspec-core (3.13.6)
200
- rspec-support (~> 3.13.0)
201
- rspec-expectations (3.13.5)
202
- diff-lcs (>= 1.2.0, < 2.0)
203
- rspec-support (~> 3.13.0)
204
- rspec-mocks (3.13.7)
205
- diff-lcs (>= 1.2.0, < 2.0)
206
- rspec-support (~> 3.13.0)
207
- rspec-rails (8.0.2)
208
- actionpack (>= 7.2)
209
- activesupport (>= 7.2)
210
- railties (>= 7.2)
211
- rspec-core (~> 3.13)
212
- rspec-expectations (~> 3.13)
213
- rspec-mocks (~> 3.13)
214
- rspec-support (~> 3.13)
215
- rspec-support (3.13.6)
216
- rubocop (1.82.1)
217
- json (~> 2.3)
218
- language_server-protocol (~> 3.17.0.2)
219
- lint_roller (~> 1.1.0)
220
- parallel (~> 1.10)
221
- parser (>= 3.3.0.2)
222
- rainbow (>= 2.2.2, < 4.0)
223
- regexp_parser (>= 2.9.3, < 3.0)
224
- rubocop-ast (>= 1.48.0, < 2.0)
225
- ruby-progressbar (~> 1.7)
226
- unicode-display_width (>= 2.4.0, < 4.0)
227
- rubocop-ast (1.49.0)
228
- parser (>= 3.3.7.2)
229
- prism (~> 1.7)
230
- ruby-progressbar (1.13.0)
231
- securerandom (0.4.1)
232
- stringio (3.2.0)
233
- thor (1.5.0)
234
- timeout (0.6.0)
235
- tsort (0.2.0)
236
- tzinfo (2.0.6)
237
- concurrent-ruby (~> 1.0)
238
- unicode-display_width (3.2.0)
239
- unicode-emoji (~> 4.1)
240
- unicode-emoji (4.2.0)
241
- uri (1.1.1)
242
- useragent (0.16.11)
243
- websocket-driver (0.8.0)
244
- base64
245
- websocket-extensions (>= 0.1.0)
246
- websocket-extensions (0.1.5)
247
- zeitwerk (2.7.4)
248
-
249
- PLATFORMS
250
- arm64-darwin-22
251
- x86_64-darwin-20
252
-
253
- DEPENDENCIES
254
- activesupport (>= 6.1.4.1)
255
- diffy (~> 3.4)
256
- rake (~> 13.2)
257
- rspec-json_api!
258
- rspec-rails (>= 5.0.2)
259
- rubocop (~> 1.65)
260
-
261
- BUNDLED WITH
262
- 4.0.4
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- require "rubocop/rake_task"
9
-
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]
data/bin/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/setup"
5
- require "rspec/json_api"
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require "irb"
15
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class Array
4
- def deep_sort
5
- map { |element| element.is_a?(Array) ? element.deep_sort : element }
6
- .sort_by { |el| el.is_a?(Array) ? el.first.to_s : el.to_s }
7
- end
8
- end
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Extension methods for hash class
4
- class Hash
5
- def deep_keys
6
- each_with_object([]) do |(k, v), keys|
7
- keys << k
8
- keys << v.deep_keys if v.respond_to?(:keys)
9
- end
10
- end
11
-
12
- def deep_key_paths
13
- stack = map { |k, v| [[k], v] }
14
- key_map = []
15
-
16
- until stack.empty?
17
- key, value = stack.pop
18
-
19
- key_map << key unless value.is_a? Hash
20
-
21
- next unless value.is_a? Hash
22
-
23
- value.map do |k, v|
24
- stack.push [key.dup << k, v]
25
- end
26
- end
27
-
28
- key_map.reverse
29
- end
30
-
31
- def sanitize!(keys)
32
- keep_if do |k, _v|
33
- keys.include?(k)
34
- end
35
- end
36
- end
@@ -1,9 +0,0 @@
1
- <%= module RSpec %>
2
- <%= module JsonApi %>
3
- <%= module Interfaces %>
4
- <%= const_set(file_name, {
5
-
6
- }.freeze) %>
7
- <%= end %>
8
- <%= end %>
9
- <%= end %>
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RSpec
4
- module JsonApi
5
- module CompareArray
6
- extend self
7
-
8
- def compare(actual, expected)
9
- if interface?(expected)
10
- actual.all? do |actual_elem|
11
- return false unless actual_elem.deep_keys == expected[0].deep_keys
12
-
13
- CompareHash.compare(actual_elem, expected[0])
14
- end
15
- else
16
- actual.each_with_index.all? do |actual_elem, index|
17
- compare_primitive_type_element(actual, expected, actual_elem, index)
18
- end
19
- end
20
- end
21
-
22
- private
23
-
24
- def interface?(expected_value)
25
- expected_value.size == 1 && expected_value[0].is_a?(Hash)
26
- end
27
-
28
- def compare_primitive_type_element(actual, expected, actual_elem, index)
29
- if actual[index].respond_to?(:deep_keys) && expected[index].respond_to?(:deep_keys)
30
- return false unless actual[index].deep_keys == expected[index].deep_keys
31
-
32
- CompareHash.compare(actual_elem, expected[index])
33
- else
34
- CompareHash.compare_values(actual[index], expected[index])
35
- end
36
- end
37
- end
38
- end
39
- end
@@ -1,114 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RSpec
4
- module JsonApi
5
- module CompareHash
6
- module_function
7
-
8
- SUPPORTED_OPTIONS = %i[allow_blank type value min max inclusion regex lambda].freeze
9
-
10
- def compare(actual, expected)
11
- return false if actual.blank? && expected.present?
12
-
13
- keys = expected.deep_key_paths | actual.deep_key_paths
14
-
15
- compare_key_paths_and_values(keys, actual, expected)
16
- end
17
-
18
- def compare_key_paths_and_values(keys, actual, expected)
19
- keys.all? do |key_path|
20
- actual_value = actual.dig(*key_path)
21
- expected_value = expected.dig(*key_path)
22
-
23
- compare_values(actual_value, expected_value)
24
- end
25
- end
26
-
27
- def compare_values(actual_value, expected_value)
28
- case expected_value
29
- when Class
30
- compare_class(actual_value, expected_value)
31
- when Regexp
32
- compare_regexp(actual_value, expected_value)
33
- when Proc
34
- compare_proc(actual_value, expected_value)
35
- when Array
36
- compare_array(actual_value, expected_value)
37
- else
38
- compare_simple_value(actual_value, expected_value)
39
- end
40
- end
41
-
42
- def compare_class(actual_value, expected_value)
43
- actual_value.instance_of?(expected_value)
44
- end
45
-
46
- def compare_regexp(actual_value, expected_value)
47
- actual_value.to_s =~ expected_value
48
- end
49
-
50
- def compare_proc(actual_value, expected_value)
51
- payload = expected_value.call
52
- payload.sanitize!(SUPPORTED_OPTIONS)
53
- payload = payload.sort_by { |k, _v| k == :allow_blank ? 0 : 1 }.to_h
54
-
55
- payload.all? do |condition_key, condition_value|
56
- case condition_key
57
- when :allow_blank
58
- return true if actual_value.blank? && condition_value
59
-
60
- true
61
- when :type
62
- compare_class(actual_value, condition_value)
63
- when :value
64
- compare_simple_value(actual_value, condition_value)
65
- when :inclusion
66
- condition_value.include?(actual_value)
67
- when :min
68
- return false if !condition_value.is_a?(Numeric) || !actual_value.is_a?(Numeric)
69
-
70
- actual_value >= condition_value
71
- when :max
72
- return false if !condition_value.is_a?(Numeric) || !actual_value.is_a?(Numeric)
73
-
74
- actual_value <= condition_value
75
- when :regex
76
- compare_regexp(actual_value, condition_value)
77
- when :lambda
78
- condition_value.call(actual_value)
79
- end
80
- end
81
- end
82
-
83
- def compare_array(actual_value, expected_value)
84
- if simple_type?(expected_value)
85
- type = expected_value[0]
86
-
87
- actual_value.all? { |elem| compare_class(elem, type) }
88
- elsif interface?(expected_value)
89
- interface = expected_value[0]
90
-
91
- actual_value.all? { |elem| compare(elem, interface) }
92
- else
93
- return false if actual_value&.size != expected_value&.size
94
-
95
- expected_value.each_with_index.all? do |elem, index|
96
- elem.is_a?(Hash) ? compare(actual_value[index], elem) : compare_simple_value(actual_value[index], elem)
97
- end
98
- end
99
- end
100
-
101
- def compare_simple_value(actual_value, expected_value)
102
- actual_value == expected_value
103
- end
104
-
105
- def simple_type?(expected_value)
106
- expected_value.size == 1 && expected_value[0].instance_of?(Class)
107
- end
108
-
109
- def interface?(expected_value)
110
- expected_value.size == 1 && expected_value[0].is_a?(Hash)
111
- end
112
- end
113
- end
114
- end
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/rspec/json_api/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "rspec-json_api"
7
- spec.version = RSpec::JsonApi::VERSION
8
- spec.authors = ["Michal Gajowiak"]
9
- spec.email = ["m.gajowiak@nomtek.com"]
10
-
11
- spec.summary = "RSpec extension to test JSON API response."
12
- spec.homepage = "https://github.com/nomtek/rspec-json_api"
13
- spec.license = "MIT"
14
- spec.required_ruby_version = Gem::Requirement.new(">= 3.2.0")
15
-
16
- spec.metadata["homepage_uri"] = spec.homepage
17
- spec.metadata["source_code_uri"] = "https://github.com/nomtek/rspec-json_api"
18
- spec.metadata["changelog_uri"] = "https://github.com/nomtek/rspec-json_api/blob/master/CHANGELOG.md"
19
- spec.metadata["rubygems_mfa_required"] = "true"
20
-
21
- # Specify which files should be added to the gem when it is released.
22
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
25
- end
26
- spec.bindir = "exe"
27
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
29
-
30
- # Uncomment to register a new dependency of your gem
31
- spec.add_dependency "activesupport", ">= 6.1.4.1"
32
- spec.add_dependency "diffy", ">= 3.4.2"
33
- spec.add_dependency "rails", ">= 6.1.4.1"
34
- spec.add_dependency "rspec-rails", ">= 5.0.2"
35
-
36
- # For more information and examples about making a new gem, checkout our
37
- # guide at: https://bundler.io/guides/creating_gem.html
38
- end