craby 0.0.2 → 0.0.4

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: d192463da028b4faccdead55e56bf0bd3c00c004eb44fd060dde68f3d4a4164d
4
- data.tar.gz: e0b459330cf9c31b89030f982088ab07a04da04dcd4d9a64a1259d4b0bd7d7e4
3
+ metadata.gz: c824bd95f0d5f0abd39e119eb495a31dccf0f24bf40a20d1db82cfc3e6059a8b
4
+ data.tar.gz: 396123aea1c1ab9c66dbcfef9a1e28125909d730fd3d16c3099745a3e4808431
5
5
  SHA512:
6
- metadata.gz: fbe8542927c86e2f73b2400705bbd14570a9e05ddee8b23a25e377d45c51869ac92de13f3e714921dfc37db3df8896c0ed228c937812753a11be3f83d655e39e
7
- data.tar.gz: 620397afe1981d2f3686983a4d6bbdc281ea6734f4b9249059816e58b4fac48a62ac4ccef85be9f26db39b66920ea4227f509098c9d3a30f4bad871be799dec6
6
+ metadata.gz: 35dfafc161abb76b955f193726cc7b7d75407779223ab651b909b25486f65845b8ea55363680c830e7a600313b57ef80fa4aa4d574259dd05120a5851f2d4590
7
+ data.tar.gz: 7f7e080a0c6deda2083f8876e3a51c092fd9fba4a26d23f6aa2092dfda1179d5a01b5c84905750ead636b803f7cfb5daed4b8c8c2c4d52232b9af6458f3b7924
data/craby.gemspec CHANGED
@@ -43,6 +43,8 @@ Gem::Specification.new do |spec|
43
43
  spec.add_dependency "rubocop-capybara"
44
44
  # https://github.com/rubocop/rubocop-factory_bot#usage
45
45
  spec.add_dependency "rubocop-factory_bot"
46
+ # https://github.com/rubocop/rubocop-rspec_rails#usage
47
+ spec.add_dependency "rubocop-rspec_rails"
46
48
  # https://github.com/Shopify/erb-lint#installation
47
49
  spec.add_dependency "erb_lint"
48
50
  # https://github.com/thoughtbot/factory_bot_rails
@@ -65,6 +67,8 @@ Gem::Specification.new do |spec|
65
67
  spec.add_dependency "simplecov-json"
66
68
  # https://github.com/bblimke/webmock#rspec
67
69
  spec.add_dependency "webmock"
70
+ # https://github.com/vcr/vcr#usage
71
+ spec.add_dependency "vcr"
68
72
  # https://github.com/rails/rails-controller-testing#rspec
69
73
  spec.add_dependency "rails-controller-testing"
70
74
  end
@@ -2,7 +2,7 @@ abort("The Rails environment is running in production mode!") if Rails.env.produ
2
2
 
3
3
  require "rspec/rails"
4
4
 
5
- Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
5
+ Rails.root.glob("spec/support/**/*.rb").each { |f| require f }
6
6
 
7
7
  RSpec.configure do |config|
8
8
  config.infer_spec_type_from_file_location!
data/lib/craby/vcr.rb CHANGED
@@ -6,4 +6,10 @@ VCR.configure do |cassette|
6
6
  cassette.configure_rspec_metadata!
7
7
  cassette.ignore_localhost = true
8
8
  # cassette.default_cassette_options = {re_record_interval: 30.days.to_i}
9
+
10
+ if ENV["VCR_IGNORED_DOMAINS"].present?
11
+ cassette.ignore_request do |request|
12
+ ENV["VCR_IGNORED_DOMAINS"].to_s.split(",").include?(URI(request.uri).host)
13
+ end
14
+ end
9
15
  end
data/lib/craby/version.rb CHANGED
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Craby
4
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
5
3
  end
@@ -3,6 +3,7 @@ require:
3
3
  - rubocop-factory_bot
4
4
  - rubocop-capybara
5
5
  - rubocop-rspec
6
+ - rubocop-rspec_rails
6
7
 
7
8
  inherit_gem:
8
9
  standard: config/base.yml
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: craby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lavenda Software
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-02 00:00:00.000000000 Z
11
+ date: 2024-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brakeman
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-rspec_rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: erb_lint
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -248,6 +262,20 @@ dependencies:
248
262
  - - ">="
249
263
  - !ruby/object:Gem::Version
250
264
  version: '0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: vcr
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :runtime
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
251
279
  - !ruby/object:Gem::Dependency
252
280
  name: rails-controller-testing
253
281
  requirement: !ruby/object:Gem::Requirement
@@ -320,7 +348,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
320
348
  - !ruby/object:Gem::Version
321
349
  version: '0'
322
350
  requirements: []
323
- rubygems_version: 3.5.10
351
+ rubygems_version: 3.5.23
324
352
  signing_key:
325
353
  specification_version: 4
326
354
  summary: Craby is just a quick test suite setup for Rails application