rspec-match_ruby 0.1.3 → 0.2.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.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +18 -0
- data/.github/workflows/test.yml +32 -0
- data/.gitignore +1 -0
- data/README.md +1 -1
- data/lib/rspec/match_ruby.rb +2 -2
- data/lib/rspec/rspec_match_ruby.rb +2 -0
- data/rspec-match_ruby.gemspec +3 -3
- metadata +13 -17
- data/.travis.yml +0 -11
- data/Gemfile.lock +0 -39
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 2d7513edfa576cf917795dbc68f087facda5ad55cb304c39f6f11c0210d0a213
|
|
4
|
+
data.tar.gz: b503aef3f882937147e6d42aaeb3284379bf7f1f45a3cd54834b5a37d146081b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 430212fa77ba8451f15af6427e742117bcfcf7c1e89db1e5dfa502cacff1596a6c42cd19aedd772f120d5e557755034a927a84775e1349bba490d2bc22b4631c
|
|
7
|
+
data.tar.gz: e77485f66e1f7b66745becfa2e38ff8867785eea69d608b3a224616bd47142aff79289f4ec9bf62798c30001227dbd98e0cd64d0f4253393bad7c4afd13e5865
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: "bundler"
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: "weekly"
|
|
7
|
+
cooldown:
|
|
8
|
+
default-days: 3
|
|
9
|
+
- package-ecosystem: "github-actions"
|
|
10
|
+
directory: "/"
|
|
11
|
+
schedule:
|
|
12
|
+
interval: "weekly"
|
|
13
|
+
groups:
|
|
14
|
+
dependencies:
|
|
15
|
+
patterns:
|
|
16
|
+
- "*"
|
|
17
|
+
cooldown:
|
|
18
|
+
default-days: 3
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
ruby:
|
|
20
|
+
- "2.7"
|
|
21
|
+
- "3.0"
|
|
22
|
+
- "3.1"
|
|
23
|
+
- "3.2"
|
|
24
|
+
- "3.3"
|
|
25
|
+
- "3.4"
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
28
|
+
- uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0
|
|
29
|
+
with:
|
|
30
|
+
ruby-version: ${{ matrix.ruby }}
|
|
31
|
+
bundler-cache: true
|
|
32
|
+
- run: bundle exec rake
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
It is Ruby code matcher.
|
|
4
4
|
|
|
5
5
|
[](https://badge.fury.io/rb/rspec-match_ruby)
|
|
6
|
-
[](https://github.com/winebarrel/rspec-match_ruby/actions/workflows/test.yml)
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
data/lib/rspec/match_ruby.rb
CHANGED
|
@@ -36,7 +36,7 @@ expected: #{expected_normalized.inspect}
|
|
|
36
36
|
ast_diff = RSpec::Expectations.differ.diff(actual_ast.pretty_inspect, expected_ast.pretty_inspect)
|
|
37
37
|
|
|
38
38
|
if not diff.empty? or not ast_diff.empty?
|
|
39
|
-
message << "\n\n" <<
|
|
39
|
+
message << "\n\n" << RSpecMatchRuby::DEFAULT_DIFF_LABEL
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
unless diff.strip.empty?
|
|
@@ -49,4 +49,4 @@ expected: #{expected_normalized.inspect}
|
|
|
49
49
|
|
|
50
50
|
message
|
|
51
51
|
end
|
|
52
|
-
end
|
|
52
|
+
end
|
data/rspec-match_ruby.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = 'rspec-match_ruby'
|
|
7
|
-
spec.version = '0.
|
|
7
|
+
spec.version = '0.2.0'
|
|
8
8
|
spec.authors = ['winebarrel']
|
|
9
9
|
spec.email = ['sugawara@winebarrel.jp']
|
|
10
10
|
|
|
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.add_dependency 'rspec', '~> 3'
|
|
24
24
|
spec.add_dependency 'parser'
|
|
25
25
|
|
|
26
|
-
spec.add_development_dependency 'bundler'
|
|
27
|
-
spec.add_development_dependency
|
|
26
|
+
spec.add_development_dependency 'bundler'
|
|
27
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
|
28
28
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-match_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- winebarrel
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rspec
|
|
@@ -42,30 +41,30 @@ dependencies:
|
|
|
42
41
|
name: bundler
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
|
-
- - "
|
|
44
|
+
- - ">="
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
46
|
+
version: '0'
|
|
48
47
|
type: :development
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
|
-
- - "
|
|
51
|
+
- - ">="
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
53
|
+
version: '0'
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
55
|
name: rake
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
|
59
|
-
- - "
|
|
58
|
+
- - ">="
|
|
60
59
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
60
|
+
version: 12.3.3
|
|
62
61
|
type: :development
|
|
63
62
|
prerelease: false
|
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
|
66
|
-
- - "
|
|
65
|
+
- - ">="
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
version:
|
|
67
|
+
version: 12.3.3
|
|
69
68
|
description: Ruby code matcher.
|
|
70
69
|
email:
|
|
71
70
|
- sugawara@winebarrel.jp
|
|
@@ -73,11 +72,11 @@ executables: []
|
|
|
73
72
|
extensions: []
|
|
74
73
|
extra_rdoc_files: []
|
|
75
74
|
files:
|
|
75
|
+
- ".github/dependabot.yml"
|
|
76
|
+
- ".github/workflows/test.yml"
|
|
76
77
|
- ".gitignore"
|
|
77
78
|
- ".rspec"
|
|
78
|
-
- ".travis.yml"
|
|
79
79
|
- Gemfile
|
|
80
|
-
- Gemfile.lock
|
|
81
80
|
- README.md
|
|
82
81
|
- Rakefile
|
|
83
82
|
- bin/console
|
|
@@ -89,7 +88,6 @@ files:
|
|
|
89
88
|
homepage: https://github.com/winebarrel/rspec-match_ruby
|
|
90
89
|
licenses: []
|
|
91
90
|
metadata: {}
|
|
92
|
-
post_install_message:
|
|
93
91
|
rdoc_options: []
|
|
94
92
|
require_paths:
|
|
95
93
|
- lib
|
|
@@ -104,9 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
104
102
|
- !ruby/object:Gem::Version
|
|
105
103
|
version: '0'
|
|
106
104
|
requirements: []
|
|
107
|
-
|
|
108
|
-
rubygems_version: 2.6.13
|
|
109
|
-
signing_key:
|
|
105
|
+
rubygems_version: 3.7.2
|
|
110
106
|
specification_version: 4
|
|
111
107
|
summary: Ruby code matcher.
|
|
112
108
|
test_files: []
|
data/.travis.yml
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
rspec-match_ruby (0.1.3)
|
|
5
|
-
parser
|
|
6
|
-
rspec (~> 3)
|
|
7
|
-
|
|
8
|
-
GEM
|
|
9
|
-
remote: https://rubygems.org/
|
|
10
|
-
specs:
|
|
11
|
-
ast (2.3.0)
|
|
12
|
-
diff-lcs (1.3)
|
|
13
|
-
parser (2.4.0.2)
|
|
14
|
-
ast (~> 2.3)
|
|
15
|
-
rake (10.5.0)
|
|
16
|
-
rspec (3.7.0)
|
|
17
|
-
rspec-core (~> 3.7.0)
|
|
18
|
-
rspec-expectations (~> 3.7.0)
|
|
19
|
-
rspec-mocks (~> 3.7.0)
|
|
20
|
-
rspec-core (3.7.0)
|
|
21
|
-
rspec-support (~> 3.7.0)
|
|
22
|
-
rspec-expectations (3.7.0)
|
|
23
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
24
|
-
rspec-support (~> 3.7.0)
|
|
25
|
-
rspec-mocks (3.7.0)
|
|
26
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
27
|
-
rspec-support (~> 3.7.0)
|
|
28
|
-
rspec-support (3.7.0)
|
|
29
|
-
|
|
30
|
-
PLATFORMS
|
|
31
|
-
ruby
|
|
32
|
-
|
|
33
|
-
DEPENDENCIES
|
|
34
|
-
bundler (~> 1.16)
|
|
35
|
-
rake (~> 10.0)
|
|
36
|
-
rspec-match_ruby!
|
|
37
|
-
|
|
38
|
-
BUNDLED WITH
|
|
39
|
-
1.16.0
|