Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
kakubin committed Jun 10, 2024
1 parent 9285354 commit e4ea205
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 45 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@

# rspec failure tracking
.rspec_status

Gemfile.lock
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
AllCops:
TargetRubyVersion: 3.0
NewCops: disable
SuggestExtensions: false

Style/Documentation:
Enabled: false

Style/StringLiterals:
EnforcedStyle: double_quotes
Expand Down
11 changes: 0 additions & 11 deletions bin/console

This file was deleted.

8 changes: 0 additions & 8 deletions bin/setup

This file was deleted.

27 changes: 8 additions & 19 deletions factory_bot-scoped_sequence.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,22 @@ Gem::Specification.new do |spec|
spec.authors = ["kakubin"]
spec.email = ["[email protected]"]

spec.summary = "TODO: Write a short summary, because RubyGems requires one."
spec.description = "TODO: Write a longer description or delete this line."
spec.homepage = "TODO: Put your gem's website or public repo URL here."
spec.summary = "Extension to add scope to factory_bot's sequence"
spec.description = "Extension to add scope to factory_bot's sequence"
spec.homepage = "https://github.com/kakubin/factory_bot-scoped_sequence"
spec.license = "MIT"
spec.required_ruby_version = ">= 3.0.0"

spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
spec.metadata["allowed_push_host"] = "https://rubygems.org"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."

# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
gemspec = File.basename(__FILE__)
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
ls.readlines("\x0", chomp: true).reject do |f|
(f == gemspec) ||
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
end
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.metadata["source_code_uri"] = spec.homepage

spec.files = Dir.glob("lib/**/*") + [File.basename(__FILE__)]
spec.require_paths = ["lib"]

# Uncomment to register a new dependency of your gem
# spec.add_dependency "example-gem", "~> 1.0"
spec.add_dependency "factory_bot"

# For more information and examples about making a new gem, check out our
# guide at: https://bundler.io/guides/creating_gem.html
Expand Down
8 changes: 1 addition & 7 deletions spec/factory_bot/scoped_sequence_spec.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# frozen_string_literal: true

RSpec.describe FactoryBot::ScopedSequence do
it "has a version number" do
expect(FactoryBot::ScopedSequence::VERSION).not_to be nil
end

it "does something useful" do
expect(false).to eq(true)
end
pending
end

0 comments on commit e4ea205

Please sign in to comment.