Skip to content

Commit 5d3dc2d

Browse files
chore: Use vanilla Rubocop, correct offenses, remove failing test
1 parent 735b1be commit 5d3dc2d

File tree

10 files changed

+117
-41
lines changed

10 files changed

+117
-41
lines changed

.rubocop.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
AllCops:
22
TargetRubyVersion: 3.1
3-
4-
Style/StringLiterals:
5-
EnforcedStyle: double_quotes
6-
7-
Style/StringLiteralsInInterpolation:
8-
EnforcedStyle: double_quotes
3+
NewCops: enable

Gemfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# frozen_string_literal: true
22

3-
source "https://rubygems.org"
3+
source 'https://rubygems.org'
44

55
# Specify your gem's dependencies in devise-code_confirmable.gemspec
66
gemspec
77

8-
gem "irb"
9-
gem "rake", "~> 13.0"
10-
11-
gem "rspec", "~> 3.0"
12-
13-
gem "rubocop", "~> 1.21"
8+
gem 'irb'
9+
gem 'rake', '~> 13.0'
10+
gem 'rspec', '~> 3.0'
11+
gem 'rubocop', '~> 1.21'

Gemfile.lock

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
PATH
2+
remote: .
3+
specs:
4+
devise-code_confirmable (0.1.0)
5+
6+
GEM
7+
remote: https://rubygems.org/
8+
specs:
9+
ast (2.4.3)
10+
date (3.4.1)
11+
diff-lcs (1.6.2)
12+
erb (5.0.1)
13+
io-console (0.8.0)
14+
irb (1.15.2)
15+
pp (>= 0.6.0)
16+
rdoc (>= 4.0.0)
17+
reline (>= 0.4.2)
18+
json (2.12.2)
19+
language_server-protocol (3.17.0.5)
20+
lint_roller (1.1.0)
21+
parallel (1.27.0)
22+
parser (3.3.8.0)
23+
ast (~> 2.4.1)
24+
racc
25+
pp (0.6.2)
26+
prettyprint
27+
prettyprint (0.2.0)
28+
prism (1.4.0)
29+
psych (5.2.6)
30+
date
31+
stringio
32+
racc (1.8.1)
33+
rainbow (3.1.1)
34+
rake (13.3.0)
35+
rdoc (6.14.0)
36+
erb
37+
psych (>= 4.0.0)
38+
regexp_parser (2.10.0)
39+
reline (0.6.1)
40+
io-console (~> 0.5)
41+
rspec (3.13.1)
42+
rspec-core (~> 3.13.0)
43+
rspec-expectations (~> 3.13.0)
44+
rspec-mocks (~> 3.13.0)
45+
rspec-core (3.13.4)
46+
rspec-support (~> 3.13.0)
47+
rspec-expectations (3.13.5)
48+
diff-lcs (>= 1.2.0, < 2.0)
49+
rspec-support (~> 3.13.0)
50+
rspec-mocks (3.13.5)
51+
diff-lcs (>= 1.2.0, < 2.0)
52+
rspec-support (~> 3.13.0)
53+
rspec-support (3.13.4)
54+
rubocop (1.76.1)
55+
json (~> 2.3)
56+
language_server-protocol (~> 3.17.0.2)
57+
lint_roller (~> 1.1.0)
58+
parallel (~> 1.10)
59+
parser (>= 3.3.0.2)
60+
rainbow (>= 2.2.2, < 4.0)
61+
regexp_parser (>= 2.9.3, < 3.0)
62+
rubocop-ast (>= 1.45.0, < 2.0)
63+
ruby-progressbar (~> 1.7)
64+
unicode-display_width (>= 2.4.0, < 4.0)
65+
rubocop-ast (1.45.1)
66+
parser (>= 3.3.7.2)
67+
prism (~> 1.4)
68+
ruby-progressbar (1.13.0)
69+
stringio (3.1.7)
70+
unicode-display_width (3.1.4)
71+
unicode-emoji (~> 4.0, >= 4.0.4)
72+
unicode-emoji (4.0.4)
73+
74+
PLATFORMS
75+
ruby
76+
x86_64-darwin-24
77+
78+
DEPENDENCIES
79+
devise-code_confirmable!
80+
irb
81+
rake (~> 13.0)
82+
rspec (~> 3.0)
83+
rubocop (~> 1.21)
84+
85+
BUNDLED WITH
86+
2.6.9

Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# frozen_string_literal: true
22

3-
require "bundler/gem_tasks"
4-
require "rspec/core/rake_task"
3+
require 'bundler/gem_tasks'
4+
require 'rspec/core/rake_task'
55

66
RSpec::Core::RakeTask.new(:spec)
77

8-
require "rubocop/rake_task"
8+
require 'rubocop/rake_task'
99

1010
RuboCop::RakeTask.new
1111

bin/console

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env ruby
22
# frozen_string_literal: true
33

4-
require "bundler/setup"
5-
require "devise/code_confirmable"
4+
require 'bundler/setup'
5+
require 'devise/code_confirmable'
66

77
# You can add fixtures and/or initialization code here to make experimenting
88
# with your gem easier. You can also use a different console, if you like.
99

10-
require "irb"
10+
require 'irb'
1111
IRB.start(__FILE__)

devise-code_confirmable.gemspec

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# frozen_string_literal: true
22

3-
require_relative "lib/devise/code_confirmable/version"
3+
require_relative 'lib/devise/code_confirmable/version'
44

55
Gem::Specification.new do |spec|
6-
spec.name = "devise-code_confirmable"
6+
spec.name = 'devise-code_confirmable'
77
spec.version = Devise::CodeConfirmable::VERSION
8-
spec.authors = ["Daniel Olivares"]
9-
spec.email = ["[email protected]"]
8+
spec.authors = ['Daniel Olivares']
9+
spec.email = ['[email protected]']
1010

11-
spec.summary = "TODO: Write a short summary, because RubyGems requires one."
12-
spec.description = "TODO: Write a longer description or delete this line."
11+
spec.summary = 'TODO: Write a short summary, because RubyGems requires one.'
12+
spec.description = 'TODO: Write a longer description or delete this line.'
1313
spec.homepage = "TODO: Put your gem's website or public repo URL here."
14-
spec.required_ruby_version = ">= 3.1.0"
14+
spec.required_ruby_version = '>= 3.1.0'
1515

16-
spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
16+
spec.metadata['allowed_push_host'] = "TODO: Set to your gem server 'https://example.com'"
1717

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

2222
# Specify which files should be added to the gem when it is released.
2323
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -28,13 +28,14 @@ Gem::Specification.new do |spec|
2828
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
2929
end
3030
end
31-
spec.bindir = "exe"
31+
spec.bindir = 'exe'
3232
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
33-
spec.require_paths = ["lib"]
33+
spec.require_paths = ['lib']
3434

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

3838
# For more information and examples about making a new gem, check out our
3939
# guide at: https://bundler.io/guides/creating_gem.html
40+
spec.metadata['rubygems_mfa_required'] = 'true'
4041
end

lib/devise/code_confirmable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
require_relative "code_confirmable/version"
3+
require_relative 'code_confirmable/version'
44

55
module Devise
66
module CodeConfirmable

lib/devise/code_confirmable/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module Devise
44
module CodeConfirmable
5-
VERSION = "0.1.0"
5+
VERSION = '0.1.0'
66
end
77
end
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
# frozen_string_literal: true
22

33
RSpec.describe Devise::CodeConfirmable do
4-
it "has a version number" do
4+
it 'has a version number' do
55
expect(Devise::CodeConfirmable::VERSION).not_to be nil
66
end
7-
8-
it "does something useful" do
9-
expect(false).to eq(true)
10-
end
117
end

spec/spec_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# frozen_string_literal: true
22

3-
require "devise/code_confirmable"
3+
require 'devise/code_confirmable'
44

55
RSpec.configure do |config|
66
# Enable flags like --only-failures and --next-failure
7-
config.example_status_persistence_file_path = ".rspec_status"
7+
config.example_status_persistence_file_path = '.rspec_status'
88

99
# Disable RSpec exposing methods globally on `Module` and `main`
1010
config.disable_monkey_patching!

0 commit comments

Comments
 (0)