strictly_fake 0.1.3 → 0.1.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: bb8f3170249cdf18f00d7aabcad9d4e4d4c830b2c05dcad5ec73b634c5ca5e10
4
- data.tar.gz: 573646b3425ac722f6388b5df5f05d9d870f05ba5f523ed75f0abfd452020350
3
+ metadata.gz: f2747dee35aba648497c6bb49ba37eb96281f5ca6b31c162ac6e46b55f85282c
4
+ data.tar.gz: 87a07c562759d7ad1bc59a70ee3d3ac690505fbe0eb2e4edc2c3ae1d7518734f
5
5
  SHA512:
6
- metadata.gz: 8053c39ab63d265cec9a4dee92dae370a7d4796e66a7da77589971ce18b86a787b4e22538cbd819fa420964f13488e798d862e476f12b824bd0f92b761098f4e
7
- data.tar.gz: 5e583bda68956e38c4097dcdcace272589722600b14458aefbaba0232e3d8359307dcb8af9cbccd3f2f0153b23f7735cbe9f2b9c37028b05fbf80e43df15008e
6
+ metadata.gz: db55c532a8f87ace74be84f84f4b5d74b667ac8b0ba6852da5c7217729b8c45f4056a91ad113d34f2f1e1c5738a19353ff4c9f4218cb0a660c8dea5971ac3e57
7
+ data.tar.gz: 45bea78790f826fd0c1f798c437f9ca0594c1e870ad2d2d4766f8984bb9c2faacddd42ab949b8bcbe96fc97e8f5480343d53f40df44736d41de1a602ca50f016
@@ -0,0 +1,37 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ master ]
13
+ pull_request:
14
+ branches: [ master ]
15
+
16
+ jobs:
17
+ test:
18
+
19
+ runs-on: ubuntu-latest
20
+ strategy:
21
+ matrix:
22
+ ruby-version: ['2.7', '3.0']
23
+
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - name: Set up Ruby
27
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
28
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
29
+ uses: ruby/setup-ruby@v1
30
+ # uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
31
+ with:
32
+ ruby-version: ${{ matrix.ruby-version }}
33
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
34
+ - name: lint
35
+ run: bundle exec rubocop
36
+ - name: test
37
+ run: bundle exec rspec
data/Gemfile.lock CHANGED
@@ -1,53 +1,55 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strictly_fake (0.1.3)
4
+ strictly_fake (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- ast (2.4.1)
10
- awesome_print (1.8.0)
11
- diff-lcs (1.4.4)
12
- docile (1.3.2)
13
- minitest (5.14.2)
14
- parallel (1.19.2)
15
- parser (2.7.2.0)
9
+ ast (2.4.2)
10
+ awesome_print (1.9.2)
11
+ diff-lcs (1.5.0)
12
+ docile (1.4.0)
13
+ minitest (5.15.0)
14
+ parallel (1.21.0)
15
+ parser (3.1.0.0)
16
16
  ast (~> 2.4.1)
17
- rainbow (3.0.0)
18
- rake (13.0.1)
19
- regexp_parser (1.8.2)
20
- rexml (3.2.4)
17
+ rainbow (3.1.1)
18
+ rake (13.0.6)
19
+ regexp_parser (2.2.0)
20
+ rexml (3.2.5)
21
21
  rspec (3.10.0)
22
22
  rspec-core (~> 3.10.0)
23
23
  rspec-expectations (~> 3.10.0)
24
24
  rspec-mocks (~> 3.10.0)
25
- rspec-core (3.10.0)
25
+ rspec-core (3.10.1)
26
26
  rspec-support (~> 3.10.0)
27
- rspec-expectations (3.10.0)
27
+ rspec-expectations (3.10.1)
28
28
  diff-lcs (>= 1.2.0, < 2.0)
29
29
  rspec-support (~> 3.10.0)
30
- rspec-mocks (3.10.0)
30
+ rspec-mocks (3.10.2)
31
31
  diff-lcs (>= 1.2.0, < 2.0)
32
32
  rspec-support (~> 3.10.0)
33
- rspec-support (3.10.0)
34
- rubocop (1.1.0)
33
+ rspec-support (3.10.3)
34
+ rubocop (1.24.1)
35
35
  parallel (~> 1.10)
36
- parser (>= 2.7.1.5)
36
+ parser (>= 3.0.0.0)
37
37
  rainbow (>= 2.2.2, < 4.0)
38
- regexp_parser (>= 1.8)
38
+ regexp_parser (>= 1.8, < 3.0)
39
39
  rexml
40
- rubocop-ast (>= 1.0.1)
40
+ rubocop-ast (>= 1.15.1, < 2.0)
41
41
  ruby-progressbar (~> 1.7)
42
- unicode-display_width (>= 1.4.0, < 2.0)
43
- rubocop-ast (1.1.0)
44
- parser (>= 2.7.1.5)
45
- ruby-progressbar (1.10.1)
46
- simplecov (0.19.1)
42
+ unicode-display_width (>= 1.4.0, < 3.0)
43
+ rubocop-ast (1.15.1)
44
+ parser (>= 3.0.1.1)
45
+ ruby-progressbar (1.11.0)
46
+ simplecov (0.21.2)
47
47
  docile (~> 1.1)
48
48
  simplecov-html (~> 0.11)
49
+ simplecov_json_formatter (~> 0.1)
49
50
  simplecov-html (0.12.3)
50
- unicode-display_width (1.7.0)
51
+ simplecov_json_formatter (0.1.3)
52
+ unicode-display_width (2.1.0)
51
53
 
52
54
  PLATFORMS
53
55
  ruby
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # StrictlyFake [![Build Status](https://travis-ci.org/featurist/strictly_fake.svg?branch=master)](https://travis-ci.org/featurist/strictly_fake) [![Gem Version](https://badge.fury.io/rb/strictly_fake.svg)](https://badge.fury.io/rb/strictly_fake)
1
+ # StrictlyFake [![Build status](https://github.com/featurist/strictly_fake/actions/workflows/ruby.yml/badge.svg)](https://travis-ci.org/featurist/strictly_fakehttps://github.com/featurist/strictly_fake/actions/workflows/ruby.yml) [![Gem Version](https://badge.fury.io/rb/strictly_fake.svg)](https://badge.fury.io/rb/strictly_fake)
2
2
 
3
3
  Sometimes fakes are a good choice. But the price is high. In particular, they make changing code harder. You rename a method, but all tests that stub the previous version _keep_ passing. It would be nice if those started to fail so that when they're green again, you can be certain that everything that had to be updated was updated. Well, now you can.
4
4
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class StrictlyFake
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
data/lib/strictly_fake.rb CHANGED
@@ -40,13 +40,11 @@ class StrictlyFake
40
40
  stub_method(meth, &block)
41
41
  end
42
42
 
43
- # rubocop:disable Lint/MissingSuper
44
- def method_missing(meth, *args, &block)
45
- @fake.send(meth, *args, &block)
43
+ def method_missing(meth, *args, **kwargs, &block)
44
+ @fake.send(meth, *args, **kwargs, &block)
46
45
  end
47
- # rubocop:enable Lint/MissingSuper
48
46
 
49
- def respond_to_missing?(meth, *_args)
47
+ def respond_to_missing?(meth, include_private = false)
50
48
  @fake.respond_to?(meth) || super
51
49
  end
52
50
 
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.description = spec.summary
14
14
  spec.homepage = 'https://github.com/featurist/strictly_fake'
15
15
  spec.license = 'MIT'
16
- spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
16
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
17
17
 
18
18
  spec.metadata['homepage_uri'] = spec.homepage
19
19
  spec.metadata['source_code_uri'] = spec.homepage
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strictly_fake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - artemave
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-10 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Stub that automatically verifies that stubbed methods exist and the signatures
14
14
  match the original.
@@ -18,8 +18,8 @@ executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
+ - ".github/workflows/ruby.yml"
21
22
  - ".gitignore"
22
- - ".travis.yml"
23
23
  - Gemfile
24
24
  - Gemfile.lock
25
25
  - LICENSE.txt
@@ -43,14 +43,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 2.4.0
46
+ version: 2.7.0
47
47
  required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  requirements:
49
49
  - - ">="
50
50
  - !ruby/object:Gem::Version
51
51
  version: '0'
52
52
  requirements: []
53
- rubygems_version: 3.0.3
53
+ rubygems_version: 3.1.6
54
54
  signing_key:
55
55
  specification_version: 4
56
56
  summary: Stub that automatically verifies that stubbed methods exist and the signatures
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.6.6
6
- before_install: gem install bundler -v 2.1.4
7
- install: bundle
8
- script:
9
- - bundle exec rubocop
10
- - COVERAGE=1 bundle exec rspec