rspec-description_consistency 1.0.4 → 1.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: 1d6e5598bd81e991f1032f7b4bc283b432c52bc392847c239854095270fea483
4
- data.tar.gz: 60cfd9fd4227dd970c0168ab91d2489121be5d584cf28d7fa3a62cc898fcd131
3
+ metadata.gz: e4adf3f07cd1af973e1adb15f2bb11567e4132850a872c12aac9e531b3d930ec
4
+ data.tar.gz: 388ca0b6dfa12e04a0ea259cd6ae264fbc5635cab800c0e889049cee9e6b0457
5
5
  SHA512:
6
- metadata.gz: 7c1f6c6070acde9552d1e3a4581565c60deb73a9d2ff7c9507b6cbcaa31a56def4bb80150231df8185c2b83ad36706be0d64b183529928cbde50f350e66135da
7
- data.tar.gz: 65b82550950266021c6b1e08771a0383aa242e78045865075908770e9b170873b7cf21928e99f615c2b5b3ef29b10a888677cfc9998762b68b2174e4067bed5c
6
+ metadata.gz: 54437014957fdfdeacb7bec993d27e57eb08836324226c7f07c9cab8103025b07861ce09cebaf9f575489b87345a3217c2320f75c3de1862f60a4aa4bbc2df23
7
+ data.tar.gz: 2f7477484ac4fdda827927fade1ea770d962529e1ee551f1b423c60c25ce7f144402b4c348e113bb9a4196a018a3e264cea6c0dd09bfdc0f98fe4f341ff14a6d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.1.0] - 2024-11-28
4
+
5
+ - Do not release `StringIO` instances. [(#7)](https://github.com/viralpraxis/rspec-description_consistency/pull/7)
6
+
3
7
  ## [1.0.4] - 2024-08-13
4
8
 
5
9
  - Fix `ActiveModel` attribute misdetection [(#4)](https://github.com/viralpraxis/rspec-description_consistency/pull/4)
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
6
+
7
+ gem 'pry'
8
+ gem 'rake', '~> 13.0'
9
+ gem 'rspec', '~> 3.0'
10
+ gem 'rubocop'
11
+ gem 'rubocop-rake'
12
+ gem 'rubocop-rspec'
13
+ gem 'simplecov', require: false, group: :test
data/Gemfile.lock ADDED
@@ -0,0 +1,80 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rspec-description_consistency (1.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.2)
10
+ coderay (1.1.3)
11
+ diff-lcs (1.5.1)
12
+ docile (1.4.1)
13
+ json (2.7.2)
14
+ language_server-protocol (3.17.0.3)
15
+ method_source (1.1.0)
16
+ parallel (1.26.3)
17
+ parser (3.3.5.0)
18
+ ast (~> 2.4.1)
19
+ racc
20
+ pry (0.14.2)
21
+ coderay (~> 1.1)
22
+ method_source (~> 1.0)
23
+ racc (1.8.1)
24
+ rainbow (3.1.1)
25
+ rake (13.2.1)
26
+ regexp_parser (2.9.2)
27
+ rspec (3.13.0)
28
+ rspec-core (~> 3.13.0)
29
+ rspec-expectations (~> 3.13.0)
30
+ rspec-mocks (~> 3.13.0)
31
+ rspec-core (3.13.1)
32
+ rspec-support (~> 3.13.0)
33
+ rspec-expectations (3.13.3)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.13.0)
36
+ rspec-mocks (3.13.1)
37
+ diff-lcs (>= 1.2.0, < 2.0)
38
+ rspec-support (~> 3.13.0)
39
+ rspec-support (3.13.1)
40
+ rubocop (1.66.1)
41
+ json (~> 2.3)
42
+ language_server-protocol (>= 3.17.0)
43
+ parallel (~> 1.10)
44
+ parser (>= 3.3.0.2)
45
+ rainbow (>= 2.2.2, < 4.0)
46
+ regexp_parser (>= 2.4, < 3.0)
47
+ rubocop-ast (>= 1.32.2, < 2.0)
48
+ ruby-progressbar (~> 1.7)
49
+ unicode-display_width (>= 2.4.0, < 3.0)
50
+ rubocop-ast (1.32.3)
51
+ parser (>= 3.3.1.0)
52
+ rubocop-rake (0.6.0)
53
+ rubocop (~> 1.0)
54
+ rubocop-rspec (3.0.5)
55
+ rubocop (~> 1.61)
56
+ ruby-progressbar (1.13.0)
57
+ simplecov (0.22.0)
58
+ docile (~> 1.1)
59
+ simplecov-html (~> 0.11)
60
+ simplecov_json_formatter (~> 0.1)
61
+ simplecov-html (0.13.1)
62
+ simplecov_json_formatter (0.1.4)
63
+ unicode-display_width (2.6.0)
64
+
65
+ PLATFORMS
66
+ ruby
67
+ x86_64-linux
68
+
69
+ DEPENDENCIES
70
+ pry
71
+ rake (~> 13.0)
72
+ rspec (~> 3.0)
73
+ rspec-description_consistency!
74
+ rubocop
75
+ rubocop-rake
76
+ rubocop-rspec
77
+ simplecov
78
+
79
+ BUNDLED WITH
80
+ 2.5.16
@@ -9,6 +9,7 @@ module RSpec
9
9
  return unless io
10
10
  return if [$stdout, $stderr].include?(io)
11
11
  return if io.closed?
12
+ return if io.is_a?(StringIO) || (defined?(RSpec::Core::OutputWrapper) && io.is_a?(RSpec::Core::OutputWrapper))
12
13
 
13
14
  io.close
14
15
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rspec
4
4
  module DescriptionConsistency
5
- VERSION = '1.0.4'
5
+ VERSION = '1.1.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-description_consistency
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iaroslav Kurbatov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-13 00:00:00.000000000 Z
11
+ date: 2024-11-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Automatic checking of consistency of descriptions in context and describe
14
14
  blocks, and class or module methods.
@@ -24,6 +24,8 @@ files:
24
24
  - ".rubocop.yml"
25
25
  - CHANGELOG.md
26
26
  - CODE_OF_CONDUCT.md
27
+ - Gemfile
28
+ - Gemfile.lock
27
29
  - LICENSE
28
30
  - README.md
29
31
  - Rakefile
@@ -34,7 +36,6 @@ files:
34
36
  - lib/rspec/description_consistency/resource_manager.rb
35
37
  - lib/rspec/description_consistency/state.rb
36
38
  - lib/rspec/description_consistency/version.rb
37
- - rspec-description_consistency.gemspec
38
39
  homepage: https://github.com/viralpraxis/rspec-description_consistency
39
40
  licenses:
40
41
  - MIT
@@ -42,7 +43,7 @@ metadata:
42
43
  homepage_uri: https://github.com/viralpraxis/rspec-description_consistency
43
44
  changelog_uri: https://github.com/viralpraxis/rspec-description_consistency/blob/main/CHANGELOG.md
44
45
  rubygems_mfa_required: 'true'
45
- post_install_message:
46
+ post_install_message:
46
47
  rdoc_options: []
47
48
  require_paths:
48
49
  - lib
@@ -57,8 +58,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
58
  - !ruby/object:Gem::Version
58
59
  version: '0'
59
60
  requirements: []
60
- rubygems_version: 3.5.15
61
- signing_key:
61
+ rubygems_version: 3.5.11
62
+ signing_key:
62
63
  specification_version: 4
63
64
  summary: RSpec extension for automatic description consistency verification
64
65
  test_files: []
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'lib/rspec/description_consistency/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'rspec-description_consistency'
7
- spec.version = Rspec::DescriptionConsistency::VERSION
8
- spec.authors = ['Iaroslav Kurbatov']
9
- spec.email = ['iaroslav2k@gmail.com']
10
-
11
- spec.summary = 'RSpec extension for automatic description consistency verification'
12
- spec.description = <<~TXT
13
- Automatic checking of consistency of descriptions in context and describe blocks, and class or module methods.
14
- TXT
15
- spec.homepage = 'https://github.com/viralpraxis/rspec-description_consistency'
16
- spec.license = 'MIT'
17
- spec.required_ruby_version = '>= 3.0.0'
18
-
19
- spec.metadata['homepage_uri'] = 'https://github.com/viralpraxis/rspec-description_consistency'
20
- spec.metadata['changelog_uri'] = 'https://github.com/viralpraxis/rspec-description_consistency/blob/main/CHANGELOG.md'
21
-
22
- # Specify which files should be added to the gem when it is released.
23
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
- spec.files = Dir.chdir(__dir__) do
25
- `git ls-files -z`.split("\x0").reject do |f|
26
- (File.expand_path(f) == __FILE__) ||
27
- f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
28
- end
29
- end
30
- spec.require_paths = ['lib']
31
-
32
- spec.metadata['rubygems_mfa_required'] = 'true'
33
- end