rspec-block_is_expected 1.0.3 → 1.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: b87ba86b4537ce94c390608b97dfb980bbba417e4e7f15c282756622bb373f12
4
- data.tar.gz: d25f02f0dc67bdf2dbaae4347a79d5ce0bdf5fc378fbd344d0d91b65b92e12bf
3
+ metadata.gz: a811433ebee4f90c89a910b8943d64eebf7382707a7cc816ac98457111d4c1de
4
+ data.tar.gz: 46988de21adb0276656dbdc4a08dcccda9130898b6a6f312da05e6764b680661
5
5
  SHA512:
6
- metadata.gz: 0ba6de54fb4d3605f05232ec24eb355a402284aecb797bbe3b5dd9c7dceeea63222f96b1eaaddf435ecf7dc96925fe426203d77acb15229c07bf5f06ac1c21cd
7
- data.tar.gz: e633b9a2b7184db400e58193b830b3f3b1d8f4c68f6bfc48d51762ceb03644ee4a45d412e5dfdaa428274643df50761a50d06822a6e2322d4acf5c933955c1d1
6
+ metadata.gz: 9670493137ff9827d1b72de9c29e2c317923d34040e6ad681183ea1bec578481b9f31c21a5173f7c8fa35929b6e9373ba8296cf4a043c78d5511e3f9672129ee
7
+ data.tar.gz: 63af4754c61daf83d23eae24f853f7ed91ba05c741c8f4f0ca772e96040f56d22bd0ef76ebee9188bdfca0ee37a62caa7ac1412080a696842183d46424630031
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /*.gem
5
4
  /_yardoc/
6
5
  /coverage/
data/.rubocop.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  inherit_from:
2
2
  - .rubocop_todo.yml
3
- - lib/rspec/block_is_expected/rubocop.yml
4
3
 
5
4
  require:
6
5
  - rubocop-lts
@@ -10,12 +9,14 @@ require:
10
9
 
11
10
  inherit_gem:
12
11
  rubocop-lts: rubocop-lts.yml
12
+ rspec-block_is_expected: rubocop.yml
13
13
 
14
14
  AllCops:
15
15
  DisplayCopNames: true # Display the name of the failing cops
16
16
  Exclude:
17
17
  - 'gemfiles/vendor/**/*'
18
18
  - 'vendor/**/*'
19
+ TargetRubyVersion: 2.0
19
20
 
20
21
  Metrics/BlockLength:
21
22
  AllowedMethods:
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2023-03-23 17:51:30 UTC using RuboCop version 1.48.1.
3
+ # on 2023-03-23 18:29:56 UTC using RuboCop version 1.48.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -27,41 +27,6 @@ Lint/EmptyBlock:
27
27
  Exclude:
28
28
  - 'Appraisals'
29
29
 
30
- # Offense count: 3
31
- # Configuration parameters: Prefixes.
32
- # Prefixes: when, with, without
33
- RSpec/ContextWording:
34
- Exclude:
35
- - 'spec/rspec/block_is_expected_spec.rb'
36
-
37
30
  # Offense count: 1
38
31
  RSpec/MultipleExpectations:
39
32
  Max: 2
40
-
41
- # Offense count: 1
42
- # This cop supports safe autocorrection (--autocorrect).
43
- Rake/Desc:
44
- Exclude:
45
- - 'Rakefile'
46
-
47
- # Offense count: 1
48
- # This cop supports unsafe autocorrection (--autocorrect-all).
49
- # Configuration parameters: AllowModifiersOnSymbols.
50
- # SupportedStyles: inline, group
51
- Style/AccessModifierDeclarations:
52
- EnforcedStyle: inline
53
-
54
- # Offense count: 1
55
- # Configuration parameters: AllowedConstants.
56
- Style/Documentation:
57
- Exclude:
58
- - '**/*.md'
59
- - '**/*.markdown'
60
- - 'lib/rspec/block_is_expected.rb'
61
-
62
- # Offense count: 24
63
- # This cop supports unsafe autocorrection (--autocorrect-all).
64
- # Configuration parameters: EnforcedStyle.
65
- # SupportedStyles: always, always_true, never
66
- Style/FrozenStringLiteralComment:
67
- Enabled: false
data/CHANGELOG.md CHANGED
@@ -10,6 +10,15 @@ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.
10
10
  ### Fixed
11
11
  ### Removed
12
12
 
13
+ ## [1.0.4] - 2023-03-23
14
+ ### Added
15
+ - Required ruby version in gemspec >= 1.8.7
16
+ ### Changed
17
+ - Moved rubocop config to root
18
+ ### Fixed
19
+ - documentation of rubocop config
20
+ - Copyright years
21
+
13
22
  ## [1.0.3] - 2023-03-23
14
23
  ### Added
15
24
  - negated matchers
data/Gemfile.lock ADDED
@@ -0,0 +1,107 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rspec-block_is_expected (1.0.4)
5
+ rspec-core
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.4.1)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ ast (2.4.2)
15
+ byebug (10.0.2)
16
+ coderay (1.1.3)
17
+ diff-lcs (1.5.0)
18
+ docile (1.4.0)
19
+ json (2.6.3)
20
+ method_source (1.0.0)
21
+ parallel (1.22.1)
22
+ parser (3.2.1.1)
23
+ ast (~> 2.4.1)
24
+ pry (0.14.2)
25
+ coderay (~> 1.1)
26
+ method_source (~> 1.0)
27
+ pry-byebug (3.6.0)
28
+ byebug (~> 10.0)
29
+ pry (~> 0.10)
30
+ rainbow (3.1.1)
31
+ rake (13.0.6)
32
+ regexp_parser (2.7.0)
33
+ rexml (3.2.5)
34
+ rspec (3.12.0)
35
+ rspec-core (~> 3.12.0)
36
+ rspec-expectations (~> 3.12.0)
37
+ rspec-mocks (~> 3.12.0)
38
+ rspec-core (3.12.1)
39
+ rspec-support (~> 3.12.0)
40
+ rspec-expectations (3.12.2)
41
+ diff-lcs (>= 1.2.0, < 2.0)
42
+ rspec-support (~> 3.12.0)
43
+ rspec-mocks (3.12.4)
44
+ diff-lcs (>= 1.2.0, < 2.0)
45
+ rspec-support (~> 3.12.0)
46
+ rspec-pending_for (0.1.16)
47
+ rspec-core
48
+ ruby_engine (>= 1, < 3)
49
+ ruby_version (~> 1.0)
50
+ rspec-support (3.12.0)
51
+ rubocop (1.48.1)
52
+ json (~> 2.3)
53
+ parallel (~> 1.10)
54
+ parser (>= 3.2.0.0)
55
+ rainbow (>= 2.2.2, < 4.0)
56
+ regexp_parser (>= 1.8, < 3.0)
57
+ rexml (>= 3.2.5, < 4.0)
58
+ rubocop-ast (>= 1.26.0, < 2.0)
59
+ ruby-progressbar (~> 1.7)
60
+ unicode-display_width (>= 2.4.0, < 3.0)
61
+ rubocop-ast (1.27.0)
62
+ parser (>= 3.2.1.0)
63
+ rubocop-lts (18.1.0)
64
+ rubocop-ruby2_7 (~> 1.1.3)
65
+ rubocop-md (1.2.0)
66
+ rubocop (>= 1.0)
67
+ rubocop-rake (0.6.0)
68
+ rubocop (~> 1.0)
69
+ rubocop-rspec (1.42.0)
70
+ rubocop (>= 0.87.0)
71
+ rubocop-ruby2_7 (1.1.3)
72
+ rubocop (~> 1.48.1)
73
+ ruby-progressbar (1.13.0)
74
+ ruby_engine (2.0.0)
75
+ ruby_version (1.0.2)
76
+ simplecov (0.22.0)
77
+ docile (~> 1.1)
78
+ simplecov-html (~> 0.11)
79
+ simplecov_json_formatter (~> 0.1)
80
+ simplecov-html (0.12.3)
81
+ simplecov_json_formatter (0.1.4)
82
+ thor (1.2.1)
83
+ unicode-display_width (2.4.2)
84
+ wwtd (1.4.1)
85
+
86
+ PLATFORMS
87
+ arm64-darwin-22
88
+
89
+ DEPENDENCIES
90
+ appraisal
91
+ bundler
92
+ byebug (~> 10)
93
+ pry (~> 0)
94
+ pry-byebug (~> 3)
95
+ rake
96
+ rspec (~> 3.8)
97
+ rspec-block_is_expected!
98
+ rspec-pending_for (~> 0.1)
99
+ rubocop-lts (~> 18.0)
100
+ rubocop-md
101
+ rubocop-rake
102
+ rubocop-rspec (~> 1.42)
103
+ simplecov (~> 0)
104
+ wwtd
105
+
106
+ BUNDLED WITH
107
+ 2.4.9
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018 Peter H. Boling of RailsBling.com
1
+ Copyright (c) 2018, 2020, 2023 Peter H. Boling of RailsBling.com
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -73,9 +73,10 @@ You have a module like this:
73
73
 
74
74
  ```ruby
75
75
  module MyTasks
76
- module_function def my_rakelib
76
+ def my_rakelib
77
77
  Rake.add_rakelib('bananas')
78
78
  end
79
+ module_function :my_rakelib
79
80
  end
80
81
  ```
81
82
 
@@ -106,7 +107,7 @@ To fix it properly you need to register `block_is_expected` as an "expectation".
106
107
 
107
108
  ```yml
108
109
  inherit_gem:
109
- rspec-block_is_expected: rspec/block_is_expected/rubocop.yml
110
+ rspec-block_is_expected: rubocop.yml
110
111
  ```
111
112
 
112
113
  ## Usage
@@ -199,7 +200,7 @@ or in a `gemspec`
199
200
 
200
201
  * MIT License - See [LICENSE][license] file in this project [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
201
202
 
202
- * Copyright (c) 2018 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
203
+ * Copyright (c) 2018, 2020, 2023 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
203
204
 
204
205
  [semver]: http://semver.org/
205
206
  [pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
data/Rakefile CHANGED
@@ -14,6 +14,7 @@ rescue LoadError
14
14
  warn 'rspec is disabled'
15
15
  end
16
16
  end
17
+ desc 'Alias test to spec'
17
18
  task :test => :spec
18
19
 
19
20
  begin
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module BlockIsExpected
3
- VERSION = '1.0.3'.freeze
3
+ VERSION = '1.0.4'.freeze
4
4
  end
5
5
  end
@@ -2,6 +2,7 @@ require 'rspec/block_is_expected/version'
2
2
  require 'rspec/block_is_expected/rspec'
3
3
 
4
4
  module Rspec
5
+ # Namespace of this library
5
6
  module BlockIsExpected
6
7
  def block_is_expected
7
8
  expect { subject }
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.description = %[subject { Integer(nil) }; it('raises') { block_is_expected.to raise_error(TypeError) }]
14
14
  spec.homepage = 'https://github.com/pboling/rspec-block_is_expected'
15
15
  spec.license = 'MIT'
16
+ spec.required_ruby_version = '>= 1.8.7'
16
17
 
17
18
  spec.metadata['homepage_uri'] = spec.homepage
18
19
  spec.metadata['source_code_uri'] = "#{spec.homepage}/tree/v#{spec.version}"
@@ -25,7 +26,7 @@ Gem::Specification.new do |spec|
25
26
 
26
27
  # Specify which files should be added to the gem when it is released.
27
28
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
29
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|\.lock)/}) }
29
30
  spec.bindir = 'exe'
30
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
32
  spec.require_paths = ['lib']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-block_is_expected
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -126,6 +126,7 @@ files:
126
126
  - CHANGELOG.md
127
127
  - CODE_OF_CONDUCT.md
128
128
  - Gemfile
129
+ - Gemfile.lock
129
130
  - LICENSE
130
131
  - README.md
131
132
  - Rakefile
@@ -147,18 +148,18 @@ files:
147
148
  - lib/rspec/block_is_expected.rb
148
149
  - lib/rspec/block_is_expected/matchers/not.rb
149
150
  - lib/rspec/block_is_expected/rspec.rb
150
- - lib/rspec/block_is_expected/rubocop.yml
151
151
  - lib/rspec/block_is_expected/version.rb
152
152
  - rspec-block_is_expected.gemspec
153
+ - rubocop.yml
153
154
  homepage: https://github.com/pboling/rspec-block_is_expected
154
155
  licenses:
155
156
  - MIT
156
157
  metadata:
157
158
  homepage_uri: https://github.com/pboling/rspec-block_is_expected
158
- source_code_uri: https://github.com/pboling/rspec-block_is_expected/tree/v1.0.3
159
- changelog_uri: https://github.com/pboling/rspec-block_is_expected/blob/v1.0.3/CHANGELOG.md
159
+ source_code_uri: https://github.com/pboling/rspec-block_is_expected/tree/v1.0.4
160
+ changelog_uri: https://github.com/pboling/rspec-block_is_expected/blob/v1.0.4/CHANGELOG.md
160
161
  bug_tracker_uri: https://github.com/pboling/rspec-block_is_expected/issues
161
- documentation_uri: https://www.rubydoc.info/gems/rspec-block_is_expected/1.0.3
162
+ documentation_uri: https://www.rubydoc.info/gems/rspec-block_is_expected/1.0.4
162
163
  funding_uri: https://liberapay.com/pboling
163
164
  wiki_uri: https://github.com/pboling/rspec-block_is_expected/wiki
164
165
  rubygems_mfa_required: 'true'
@@ -170,7 +171,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
171
  requirements:
171
172
  - - ">="
172
173
  - !ruby/object:Gem::Version
173
- version: '0'
174
+ version: 1.8.7
174
175
  required_rubygems_version: !ruby/object:Gem::Requirement
175
176
  requirements:
176
177
  - - ">="