typ-rspec-matcher 0.0.2 → 0.1.0

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: f68ee7dc154113b06aeba5b669ca43056b1f7a9f946f8bff1cf92953f4c3fc21
4
- data.tar.gz: b2e870ba7580583f57c087bd722500ae7dfc741e6bf5967c3dba8dcdb433ddbe
3
+ metadata.gz: eb08fefcf8b6ccb92cdcefc43f7dd7fb7a7506d053116952be41805440b063c8
4
+ data.tar.gz: bd4a2573ee72e6175ce0cca7a4ff322be2cf6bbd2093580e28e1cf7fd251a68c
5
5
  SHA512:
6
- metadata.gz: cba39ea11437c9da287eb913ede553e615f927a9412291ad88031d37e925c915d3926bb20cf1f82862617115d315335ec39cd58270ab51918d5aa00fa2a7841d
7
- data.tar.gz: 40a874c1ce5585196dea1ec9b5e88c6088d7af08f751a9f3598c3f0bac29ba31929eebd2489c6f6f68bf08b8cac7c31f5f1d8524233669e4521fab1bdfdc62c8
6
+ metadata.gz: 4c91b5cc43fdefdf1cd1e395adb78f95157c518b88570c2fe8be9ca5ee8b18d8c8cb96510d328d25d6a529b07db3b3ad747c7423e7d4876346bbabbc041da127
7
+ data.tar.gz: ed1ea109d3e0dae3198a55c6df3dca9c3d901cc0a754da10478846fb19f63bc8f5f685ba07da4b5703117581fb53de5ffaea4220670d1ce590c8bf5f902f2485
data/Gemfile CHANGED
@@ -2,10 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem 'pry'
4
4
  gem 'awesome_print'
5
- gem 'byebug'
6
- gem 'pry-byebug'
7
- gem 'mutant'
8
- gem 'mutant-rspec'
9
5
  gem 'rspec'
10
6
 
11
7
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- typ-rspec-matcher (0.0.1)
4
+ typ-rspec-matcher (0.1.0)
5
5
  awesome_print
6
6
  typ
7
7
  typ-formatter
@@ -9,107 +9,41 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- abstract_type (0.0.7)
13
- adamantium (0.2.0)
14
- ice_nine (~> 0.11.0)
15
- memoizable (~> 0.4.0)
16
- anima (0.3.0)
17
- abstract_type (~> 0.0.7)
18
- adamantium (~> 0.2)
19
- equalizer (~> 0.0.11)
20
- ast (2.4.0)
21
- awesome_print (1.8.0)
22
- byebug (10.0.2)
23
- coderay (1.1.2)
24
- concord (0.1.5)
25
- adamantium (~> 0.2.0)
26
- equalizer (~> 0.0.9)
27
- diff-lcs (1.3)
28
- equalizer (0.0.11)
29
- ice_nine (0.11.2)
30
- memoizable (0.4.2)
31
- thread_safe (~> 0.3, >= 0.3.1)
32
- method_source (0.9.0)
33
- morpher (0.2.6)
34
- abstract_type (~> 0.0.7)
35
- adamantium (~> 0.2.0)
36
- anima (~> 0.3.0)
37
- ast (~> 2.2)
38
- concord (~> 0.1.5)
39
- equalizer (~> 0.0.9)
40
- ice_nine (~> 0.11.0)
41
- procto (~> 0.0.2)
42
- mutant (0.8.14)
43
- abstract_type (~> 0.0.7)
44
- adamantium (~> 0.2.0)
45
- anima (~> 0.3.0)
46
- ast (~> 2.2)
47
- concord (~> 0.1.5)
48
- diff-lcs (~> 1.3)
49
- equalizer (~> 0.0.9)
50
- ice_nine (~> 0.11.1)
51
- memoizable (~> 0.4.2)
52
- morpher (~> 0.2.6)
53
- parallel (~> 1.3)
54
- parser (>= 2.3.1.4, < 2.5)
55
- procto (~> 0.0.2)
56
- regexp_parser (~> 0.4.3)
57
- unparser (~> 0.2.5)
58
- mutant-rspec (0.8.14)
59
- mutant (~> 0.8.14)
60
- rspec-core (>= 3.4.0, < 3.7.0)
61
- parallel (1.12.1)
62
- parser (2.4.0.2)
63
- ast (~> 2.3)
64
- procto (0.0.3)
65
- pry (0.11.3)
66
- coderay (~> 1.1.0)
67
- method_source (~> 0.9.0)
68
- pry-byebug (3.6.0)
69
- byebug (~> 10.0)
70
- pry (~> 0.10)
71
- rainbow (3.0.0)
72
- regexp_parser (0.4.13)
73
- rspec (3.6.0)
74
- rspec-core (~> 3.6.0)
75
- rspec-expectations (~> 3.6.0)
76
- rspec-mocks (~> 3.6.0)
77
- rspec-core (3.6.0)
78
- rspec-support (~> 3.6.0)
79
- rspec-expectations (3.6.0)
12
+ awesome_print (1.9.2)
13
+ coderay (1.1.3)
14
+ diff-lcs (1.5.0)
15
+ method_source (1.0.0)
16
+ pry (0.14.2)
17
+ coderay (~> 1.1)
18
+ method_source (~> 1.0)
19
+ rainbow (3.1.1)
20
+ rspec (3.12.0)
21
+ rspec-core (~> 3.12.0)
22
+ rspec-expectations (~> 3.12.0)
23
+ rspec-mocks (~> 3.12.0)
24
+ rspec-core (3.12.2)
25
+ rspec-support (~> 3.12.0)
26
+ rspec-expectations (3.12.3)
80
27
  diff-lcs (>= 1.2.0, < 2.0)
81
- rspec-support (~> 3.6.0)
82
- rspec-mocks (3.6.0)
28
+ rspec-support (~> 3.12.0)
29
+ rspec-mocks (3.12.6)
83
30
  diff-lcs (>= 1.2.0, < 2.0)
84
- rspec-support (~> 3.6.0)
85
- rspec-support (3.6.0)
31
+ rspec-support (~> 3.12.0)
32
+ rspec-support (3.12.1)
86
33
  string-indent (0.0.1)
87
- thread_safe (0.3.6)
88
- typ (0.0.3)
89
- typ-formatter (0.0.1)
34
+ typ (0.0.6)
35
+ typ-formatter (0.0.2)
90
36
  rainbow
91
37
  string-indent
92
- unparser (0.2.7)
93
- abstract_type (~> 0.0.7)
94
- adamantium (~> 0.2.0)
95
- concord (~> 0.1.5)
96
- diff-lcs (~> 1.3)
97
- equalizer (~> 0.0.9)
98
- parser (>= 2.3.1.2, < 2.6)
99
- procto (~> 0.0.2)
100
38
 
101
39
  PLATFORMS
102
- ruby
40
+ x86_64-linux
103
41
 
104
42
  DEPENDENCIES
105
43
  awesome_print
106
- byebug
107
- mutant
108
- mutant-rspec
109
44
  pry
110
- pry-byebug
111
45
  rspec
112
46
  typ-rspec-matcher!
113
47
 
114
48
  BUNDLED WITH
115
- 1.16.1
49
+ 2.4.15
@@ -1,5 +1,5 @@
1
1
  require_relative '../matcher'
2
2
 
3
- def typ typ_class
3
+ def pose typ_class
4
4
  Typ::RSpec::Matcher.new typ_class
5
5
  end
@@ -17,6 +17,10 @@ module Typ
17
17
  def failure_message
18
18
  @it.ai + "\n" + Formatter.new(@typ).to_s
19
19
  end
20
+
21
+ def description
22
+ "be #{@typ_class}"
23
+ end
20
24
  end
21
25
  end
22
26
  end
data/readme.adoc CHANGED
@@ -13,10 +13,3 @@ To run the specs:
13
13
  ----
14
14
  bundle exec rspec
15
15
  ----
16
-
17
- To perform mutation analysis:
18
-
19
- [source,bash]
20
- ----
21
- bundle exec mutant --use rspec 'Typ::RSpec::Matcher*'
22
- ----
data/spec/Matcher_spec.rb CHANGED
@@ -13,11 +13,15 @@ describe Typ::RSpec::Matcher do
13
13
  expect(bool).to be false
14
14
 
15
15
  failure_message = <<~S.chomp
16
- -1
16
+ \e[1;34m-1\e[0m
17
17
  #{Rainbow(Positive).red}
18
18
  #{Rainbow('is [:>, 0]').red}
19
19
  S
20
20
 
21
21
  expect(matcher.failure_message).to eq failure_message
22
22
  end
23
+
24
+ it '#description' do
25
+ expect(matcher.description).to eq "be Positive"
26
+ end
23
27
  end
@@ -1,9 +1,10 @@
1
1
  Gem::Specification.new do |g|
2
2
  g.name = 'typ-rspec-matcher'
3
3
  g.files = `git ls-files`.split($/)
4
- g.version = '0.0.2'
4
+ g.version = '0.1.0'
5
5
  g.summary = 'A RSpec matcher to check objects with typs.'
6
- g.authors = ['Anatoly Chernow']
6
+ g.authors = ['Anatoly Chernov']
7
+ g.email = ["chertoly@gmail.com"]
7
8
 
8
9
  g.add_dependency 'awesome_print'
9
10
  g.add_dependency 'typ-formatter'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typ-rspec-matcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - Anatoly Chernow
7
+ - Anatoly Chernov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-29 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -53,7 +53,8 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description:
56
- email:
56
+ email:
57
+ - chertoly@gmail.com
57
58
  executables: []
58
59
  extensions: []
59
60
  extra_rdoc_files: []
@@ -61,7 +62,7 @@ files:
61
62
  - Gemfile
62
63
  - Gemfile.lock
63
64
  - lib/typ/rspec/matcher.rb
64
- - lib/typ/rspec/matcher/with_method.rb
65
+ - lib/typ/rspec/matcher/pose.rb
65
66
  - readme.adoc
66
67
  - spec/Matcher_spec.rb
67
68
  - spec/helper.rb
@@ -84,8 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
85
  - !ruby/object:Gem::Version
85
86
  version: '0'
86
87
  requirements: []
87
- rubyforge_project:
88
- rubygems_version: 2.7.6
88
+ rubygems_version: 3.4.15
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: A RSpec matcher to check objects with typs.