be-let-it-be 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a90cf24bfc3bff9e7fae3cf454c213cb9e98d2e75f7fa2a0461579de14ae9f55
4
+ data.tar.gz: bb50797917fcf5dd15d3bf51b4a71d7353a9425341e15fd6ab5a052192c98e39
5
+ SHA512:
6
+ metadata.gz: 17c94400b69be02e85c41769ab2ac214d6c38ca56f9d86748158589a06d0d65f7c17774573b61086e0e557a7a485fdbce8008c584b115d551221f15fffe347f1
7
+ data.tar.gz: 790225081995f8772b01b8ae08273d6fceddd6907a15c09e14bc8e8164db3fdfd0b1062195d12aa752705a12ad8e5473c84316b5d4c0d613c4b6bdeb3b0d644d
data/.standard.yml ADDED
@@ -0,0 +1,3 @@
1
+ # For available configuration options, see:
2
+ # https://github.com/standardrb/standard
3
+ ruby_version: 3.3
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2025-06-08
4
+
5
+ - Initial release
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [INSERT CONTACT METHOD].
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 moznion
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,158 @@
1
+ # be-let-it-be
2
+
3
+ [![Ruby](https://github.com/moznion/be-let-it-be/actions/workflows/main.yml/badge.svg)](https://github.com/moznion/be-let-it-be/actions/workflows/main.yml)
4
+
5
+ A command-line tool that automatically converts RSpec's `let` and `let!` declarations to `let_it_be` where it's safe to do so. The tool runs your tests after each conversion to ensure they still pass, making the optimization process safe and reliable.
6
+
7
+ ## Motivation
8
+
9
+ One of the main motivations is to improve test speed.
10
+
11
+ ### What is `let_it_be`?
12
+
13
+ `let_it_be` is a helper provided by the [test-prof](https://github.com/test-prof/test-prof) gem that caches test data across examples instead of recreating it for each test. This can significantly improve test performance, especially for expensive object creation like database records.
14
+
15
+ ### Performance Benefits
16
+
17
+ Using `let_it_be` can significantly improve test performance by:
18
+
19
+ - Reducing database queries
20
+ - Minimizing object instantiation overhead
21
+ - Sharing immutable test data across examples
22
+
23
+ Performance gains are especially noticeable with:
24
+
25
+ - Factory-created database records
26
+ - Complex object initialization
27
+ - Large test suites
28
+
29
+ ## How It Works
30
+
31
+ 1. Parse: Analyzes your RSpec file using Ruby's Abstract Syntax Tree
32
+ 2. Identify: Finds all `let` and `let!` declarations
33
+ 3. Convert & Test: For each declaration:
34
+ - Converts it to `let_it_be`
35
+ - Runs your tests
36
+ - Keeps the change if tests pass, reverts if they fail
37
+ 4. Save: Writes the successfully converted file, or it outputs the result if it's in dryrun mode
38
+
39
+ ## Example Conversion
40
+
41
+ Before:
42
+
43
+ ```ruby
44
+ RSpec.describe User do
45
+ let!(:admin) { create(:user, admin: true) }
46
+ let(:user) { create(:user) }
47
+ let(:posts) { user.posts }
48
+ let(:mutable_array) { [] }
49
+
50
+ it "modifies the array" do
51
+ mutable_array << 1
52
+ expect(mutable_array).to eq([1])
53
+ end
54
+ end
55
+ ```
56
+
57
+ After:
58
+
59
+ ```ruby
60
+ RSpec.describe User do
61
+ let_it_be(:admin) { create(:user, admin: true) }
62
+ let_it_be(:user) { create(:user) }
63
+ let(:posts) { user.posts } # Kept as 'let' due to dependency
64
+ let(:mutable_array) { [] } # Kept as 'let' because tests modify it
65
+
66
+ it "modifies the array" do
67
+ mutable_array << 1
68
+ expect(mutable_array).to eq([1])
69
+ end
70
+ end
71
+ ```
72
+
73
+ ## Installation
74
+
75
+ Add this line to your application's Gemfile:
76
+
77
+ ```ruby
78
+ group :development, :test do
79
+ gem 'be-let-it-be'
80
+ end
81
+ ```
82
+
83
+ And then execute:
84
+
85
+ ```bash
86
+ $ bundle install
87
+ ```
88
+
89
+ Or install it yourself as:
90
+
91
+ ```bash
92
+ $ gem install be-let-it-be
93
+ ```
94
+
95
+ ## Prerequisites
96
+
97
+ - Ruby 3.3.0 or higher
98
+ - Your project must have [test-prof](https://github.com/test-prof/test-prof) installed, as `let_it_be` is a feature provided by that gem
99
+
100
+ ## Usage
101
+
102
+ ### Basic Usage
103
+
104
+ Convert a single spec file:
105
+
106
+ ```bash
107
+ be-let-it-be convert spec/models/user_spec.rb
108
+ ```
109
+
110
+ ### Options
111
+
112
+ - `--dryrun` - Show what would be converted without making actual changes
113
+ - `--verbose` - Display detailed processing information
114
+ - `--rspec_cmd` - Customize the RSpec command used for verification (default: "rspec")
115
+
116
+ ### Examples
117
+
118
+ ```bash
119
+ # Dry-run to preview changes
120
+ be-let-it-be convert spec/models/user_spec.rb --dryrun
121
+
122
+ # Verbose output for debugging
123
+ be-let-it-be convert spec/models/user_spec.rb --verbose
124
+
125
+ # Use custom RSpec command
126
+ be-let-it-be convert spec/models/user_spec.rb --rspec_cmd="rspec --format progress"
127
+ ```
128
+
129
+ ## When NOT to Use `let_it_be`
130
+
131
+ The tool automatically detects when conversions would break tests, but it's good to understand when `let_it_be` isn't appropriate:
132
+
133
+ - Mutable objects: When tests modify the object state
134
+ - Test-specific state: When the value depends on test-specific setup
135
+ - Fresh instances: When each test requires a completely new instance
136
+
137
+ ## Current Limitations
138
+
139
+ - Originally, the replacement of `let` and `let!` should adopt the combination that provides the most optimized execution time. However, attempting to do so would likely cause combinatorial explosion, making it non-trivial to implement. Therefore, we currently use a simple approach of replacing them in order of appearance. We plan to address this optimization in the future.
140
+
141
+ ## Development
142
+
143
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests.
144
+
145
+ To install this gem onto your local machine, run `bundle exec rake install`.
146
+
147
+ ## Contributing
148
+
149
+ Bug reports and pull requests are welcome on GitHub at https://github.com/moznion/be-let-it-be. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/moznion/be-let-it-be/blob/main/CODE_OF_CONDUCT.md).
150
+
151
+ ## License
152
+
153
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
154
+
155
+ ## Code of Conduct
156
+
157
+ Everyone interacting in the be-let-it-be project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/moznion/be-let-it-be/blob/main/CODE_OF_CONDUCT.md).
158
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "minitest/test_task"
5
+
6
+ Minitest::TestTask.create
7
+
8
+ require "standard/rake"
9
+
10
+ task default: %i[test standard]
data/bin/be-let-it-be ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "be_let_it_be"
6
+
7
+ BeLetItBe::CLI.start(ARGV)
data/bin/console ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "be_let_it_be"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ require "irb"
11
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "parser/current"
4
+
5
+ module BeLetItBe
6
+ class Analyzer
7
+ def initialize(file)
8
+ @ast = Parser::CurrentRuby.parse(File.read(file))
9
+ end
10
+
11
+ def find_lets
12
+ traverse(@ast, [])
13
+ end
14
+
15
+ private
16
+
17
+ def traverse(node, lets)
18
+ # FIXME: lets should be immutable
19
+ return lets unless node.is_a?(Parser::AST::Node)
20
+
21
+ let_info = extract_let_info(node)
22
+ lets << let_info unless let_info.nil?
23
+
24
+ node.children.each do |child|
25
+ traverse(child, lets) if child.is_a?(Parser::AST::Node)
26
+ end
27
+
28
+ lets
29
+ end
30
+
31
+ def extract_let_info(node)
32
+ return nil unless node.type == :send
33
+ return nil unless node.children[0].nil?
34
+
35
+ method_name = node.children[1]
36
+ return nil unless %i[let let!].include?(method_name)
37
+
38
+ args = node.children[2]
39
+ let_name = args.children[0]
40
+ return nil unless args && args.type == :sym
41
+
42
+ line = node.location.line
43
+
44
+ {type: method_name, name: let_name, line:, node:}
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,108 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "thor"
4
+ require "parser/current"
5
+ require "unparser"
6
+ require "open3"
7
+
8
+ module BeLetItBe
9
+ class CLI < Thor
10
+ desc "convert FILE", "Convert let/let! to let_it_be in RSpec file"
11
+ option :dryrun, type: :boolean, default: false, desc: "Show what would be converted without modifying files"
12
+ option :verbose, type: :boolean, default: false, desc: "Show the processing output verboselly"
13
+ option :rspec_cmd, type: :string, default: "bundle exec rspec", desc: "RSpec command to check the behaviour"
14
+
15
+ def convert(file)
16
+ @processed_let_lines = []
17
+
18
+ unless File.exist?(file)
19
+ error "File not found: #{file}"
20
+ exit 1
21
+ end
22
+
23
+ unless run_rspec(file)
24
+ error "Initial RSpec test failed. Aborting."
25
+ exit 1
26
+ end
27
+ say "Initial tests passed. Starting conversion..."
28
+
29
+ temp_file = file + ".temp"
30
+ begin
31
+ File.write(temp_file, File.read(file))
32
+
33
+ processed_num = 0
34
+ converted_count = 0
35
+ lets = extract_let_info(file)
36
+ num_of_lets = lets.length
37
+
38
+ if num_of_lets.zero?
39
+ say "no let/let! in the given spec; do nothing"
40
+ exit 0
41
+ end
42
+
43
+ say "Found #{num_of_lets} let/let! definitions:"
44
+ lets.each { |let| say " - #{let[:type]} :#{let[:name]} at #{file}:#{let[:line]}" }
45
+
46
+ until lets.empty?
47
+ processed_num += 1
48
+ converter = Converter.new(temp_file)
49
+ let = lets.first
50
+
51
+ say "[#{processed_num}/#{num_of_lets}] Testing conversion of #{let[:type]} :#{let[:name]} at #{file}:#{let[:line]}"
52
+
53
+ if converter.try_conversion_single_let(let, temp_file, -> { run_rspec(temp_file) })
54
+ say " ✓ Converted to let_it_be"
55
+ converter = Converter.new(temp_file) # pile the converted items
56
+ converted_count += 1
57
+ else
58
+ say " ✗ Keeping original #{let[:type]} (test failed with let_it_be)"
59
+ end
60
+
61
+ @processed_let_lines << let[:line]
62
+ lets = extract_let_info(temp_file)
63
+ end
64
+
65
+ if converted_count > 0
66
+ if options[:dryrun]
67
+ puts File.read(temp_file)
68
+ else
69
+ File.write(file, File.read(temp_file))
70
+ end
71
+ say "✅ Successfully converted #{converted_count} out of #{lets.size} definitions to let_it_be"
72
+ else
73
+ say "❌ No conversions were possible (all tests failed with let_it_be)"
74
+ end
75
+ ensure
76
+ File.unlink(temp_file) if File.exist?(temp_file)
77
+ end
78
+ end
79
+
80
+ private
81
+
82
+ def extract_let_info(file)
83
+ analyzer = Analyzer.new(file)
84
+ lets = analyzer.find_lets
85
+
86
+ lets.filter { |l| !@processed_let_lines.include?(l[:line]) }
87
+ end
88
+
89
+ def say(msg)
90
+ return unless options[:verbose]
91
+
92
+ puts msg
93
+ end
94
+
95
+ def run_rspec(file)
96
+ cmd = "#{options[:rspec_cmd]} #{file}"
97
+ say "Running: #{cmd}"
98
+
99
+ stdout, stderr, status = Open3.capture3(cmd)
100
+
101
+ say "RSpec output:"
102
+ say stdout
103
+ say stderr if stderr && !stderr.empty?
104
+
105
+ status.success?
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "parser/current"
4
+ require "unparser"
5
+ require "tempfile"
6
+
7
+ module BeLetItBe
8
+ class Converter
9
+ def initialize(file)
10
+ @file = file
11
+ end
12
+
13
+ def try_conversion_single_let(let_info, output_file, exam)
14
+ source = File.read(@file)
15
+ buffer = Parser::Source::Buffer.new(@file, source:)
16
+
17
+ temp_rewriter = Parser::Source::TreeRewriter.new(buffer)
18
+ apply_single_conversion(let_info, temp_rewriter)
19
+ File.write(output_file, temp_rewriter.process)
20
+
21
+ passed = exam.call
22
+ unless passed
23
+ File.write(output_file, source) # revert changes
24
+ end
25
+ passed
26
+ end
27
+
28
+ private
29
+
30
+ def apply_single_conversion(let_info, rewriter)
31
+ node = let_info[:node]
32
+ method_range = node.loc.selector
33
+
34
+ rewriter.replace(method_range, "let_it_be")
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BeLetItBe
4
+ VERSION = "0.0.1"
5
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "be_let_it_be/version"
4
+ require_relative "be_let_it_be/cli"
5
+ require_relative "be_let_it_be/analyzer"
6
+ require_relative "be_let_it_be/converter"
7
+
8
+ module BeLetItBe
9
+ class Error < StandardError; end
10
+ end
data/renovate.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:recommended"
5
+ ]
6
+ }
@@ -0,0 +1,4 @@
1
+ module BeLetItBe
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,103 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: be-let-it-be
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - moznion
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: parser
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '3.3'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '3.3'
26
+ - !ruby/object:Gem::Dependency
27
+ name: unparser
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '0.7'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.7'
40
+ - !ruby/object:Gem::Dependency
41
+ name: thor
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.3'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.3'
54
+ description: A command-line tool that analyzes RSpec files and converts let/let! to
55
+ let_it_be where tests still pass
56
+ email:
57
+ - moznion@mail.moznion.net
58
+ executables:
59
+ - be-let-it-be
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".standard.yml"
64
+ - CHANGELOG.md
65
+ - CODE_OF_CONDUCT.md
66
+ - LICENSE.txt
67
+ - README.md
68
+ - Rakefile
69
+ - bin/be-let-it-be
70
+ - bin/console
71
+ - bin/setup
72
+ - lib/be_let_it_be.rb
73
+ - lib/be_let_it_be/analyzer.rb
74
+ - lib/be_let_it_be/cli.rb
75
+ - lib/be_let_it_be/converter.rb
76
+ - lib/be_let_it_be/version.rb
77
+ - renovate.json
78
+ - sig/be_let_it_be.rbs
79
+ homepage: https://github.com/moznion/be-let-it-be
80
+ licenses:
81
+ - MIT
82
+ metadata:
83
+ homepage_uri: https://github.com/moznion/be-let-it-be
84
+ source_code_uri: https://github.com/moznion/be-let-it-be
85
+ changelog_uri: https://github.com/moznion/be-let-it-be/blob/main/CHANGELOG.md
86
+ rdoc_options: []
87
+ require_paths:
88
+ - lib
89
+ required_ruby_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: 3.1.0
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ requirements: []
100
+ rubygems_version: 3.6.7
101
+ specification_version: 4
102
+ summary: Convert RSpec let/let! to let_it_be where possible
103
+ test_files: []