capy-spec 0.0.1 → 0.0.3

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: 14e47ef1df6209dfeaed4a479d6c3a1bc924262547db85cd4d02cab2fbd6fcf7
4
- data.tar.gz: c79e91903c67a2341e1e44d141a15b073d1f1120fc122b7b1e9446c67ce8935d
3
+ metadata.gz: 4d2e001cca5170170edc21465eb2be9bc8cb710abc18d61e211f348556af7e22
4
+ data.tar.gz: edbe024b4317bc080d4419a85bfe2cf7fdc9d1ecfa327a87d0817adb04388d0b
5
5
  SHA512:
6
- metadata.gz: cd5e6f235fcc1cd8ad8bd22543c91f150a4a1b60a0834d688f1cda1ebfc6ef9fa2df7a314987127af49c3309d0a71ba6fd0b454428d60a29ac3df7eefb0f3009
7
- data.tar.gz: 44165ed7f6ecb58b838c55a785af5bc4e30c413c153b693cca62620c079c1ba374df40aeddf6793a2b14134bbfa4e92a9d0766a1cefbb693920e59ae29aa2a93
6
+ metadata.gz: 452b854d5ee925fa0d65b4d7161c5367b9bc888b49235e625df99729cbb1c0fa0705e412aa24da3881eb505ee6803cf66a7ff6f83034ae65f5f498ccc99916a7
7
+ data.tar.gz: d30d90464693ef640cce01a6adc6a78e2f9abff474bf7eb8ea66309069199810c1d1ebd24bc6f6a1bd75460fa742f134e1262699c535a5cade80ac766e1e4028
data/capy-spec.gemspec CHANGED
@@ -63,4 +63,6 @@ Gem::Specification.new do |spec|
63
63
  spec.add_dependency "simplecov", "~> 0.22.0"
64
64
  # https://github.com/vicentllongo/simplecov-json#usage
65
65
  spec.add_dependency "simplecov-json", "~> 0.2.3"
66
+ # https://github.com/bblimke/webmock#rspec
67
+ spec.add_dependency "webmock", "~> 3.19"
66
68
  end
data/lib/capy_spec/all.rb CHANGED
@@ -6,6 +6,5 @@ require "capy_spec/factory_bot"
6
6
  require "capy_spec/faker"
7
7
  require "capy_spec/rubocop"
8
8
  require "capy_spec/shoulda_matchers"
9
- require "capy_spec/simplecov"
10
9
 
11
10
  require "capy_spec/rails_helper"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CapySpec
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.3"
5
5
  end
@@ -0,0 +1,3 @@
1
+ require "webmock/rspec"
2
+
3
+ WebMock.disable_net_connect!(allow_localhost: true)
data/lib/capy_spec.rb CHANGED
@@ -4,4 +4,14 @@ require_relative "capy_spec/version"
4
4
 
5
5
  module CapySpec
6
6
  class Error < StandardError; end
7
+
8
+ class Setup
9
+ DEFAULT_FILES = ["capy_spec/all"]
10
+
11
+ class << self
12
+ def call(files = DEFAULT_FILES)
13
+ files.each { |file| require file }
14
+ end
15
+ end
16
+ end
7
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capy-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Walmir Neto
@@ -234,6 +234,20 @@ dependencies:
234
234
  - - "~>"
235
235
  - !ruby/object:Gem::Version
236
236
  version: 0.2.3
237
+ - !ruby/object:Gem::Dependency
238
+ name: webmock
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: '3.19'
244
+ type: :runtime
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: '3.19'
237
251
  description:
238
252
  email:
239
253
  - owalmirneto@gmail.com
@@ -261,6 +275,7 @@ files:
261
275
  - lib/capy_spec/simplecov.rb
262
276
  - lib/capy_spec/spec_helper.rb
263
277
  - lib/capy_spec/version.rb
278
+ - lib/capy_spec/webmock.rb
264
279
  - sig/capy/spec.rbs
265
280
  homepage: https://github.com/LavendaSoftware/capy-spec
266
281
  licenses: