Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert code to standard style (#45)
- Loading branch information
Showing
46 changed files
with
220 additions
and
257 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fix: true | ||
parallel: true | ||
ruby_version: 2.4 | ||
ignore: | ||
- 'test/dummy/bin/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gemspec | ||
|
||
gem 'codecov', require: false, group: :test | ||
gem "codecov", require: false, group: :test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
# frozen_string_literal: true | ||
|
||
begin | ||
require 'bundler/setup' | ||
require "bundler/setup" | ||
rescue LoadError | ||
puts 'You must `gem install bundler` and `bundle install` to run rake tasks' | ||
puts "You must `gem install bundler` and `bundle install` to run rake tasks" | ||
end | ||
|
||
require 'yard' | ||
require "yard" | ||
YARD::Rake::YardocTask.new | ||
task docs: :yard | ||
|
||
APP_RAKEFILE = File.expand_path('../test/dummy/Rakefile', __FILE__) | ||
load 'rails/tasks/engine.rake' | ||
load 'rails/tasks/statistics.rake' | ||
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__) | ||
load "rails/tasks/engine.rake" | ||
load "rails/tasks/statistics.rake" | ||
|
||
require 'bundler/gem_tasks' | ||
require "bundler/gem_tasks" | ||
|
||
require 'rake/testtask' | ||
require "rake/testtask" | ||
|
||
Rake::TestTask.new(:test) do |t| | ||
t.libs << 'test' | ||
t.pattern = 'test/**/*_test.rb' | ||
t.libs << "test" | ||
t.pattern = "test/**/*_test.rb" | ||
t.verbose = false | ||
end | ||
|
||
task default: :test | ||
|
||
require "standard/rake" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
Passwordless::Engine.routes.draw do | ||
get '/sign_in', to: 'sessions#new', as: :sign_in | ||
post '/sign_in', to: 'sessions#create' | ||
get '/sign_in/:token', to: 'sessions#show', as: :token_sign_in | ||
match '/sign_out', to: 'sessions#destroy', via: %i[get delete], as: :sign_out | ||
get "/sign_in", to: "sessions#new", as: :sign_in | ||
post "/sign_in", to: "sessions#create" | ||
get "/sign_in/:token", to: "sessions#show", as: :token_sign_in | ||
match "/sign_out", to: "sessions#destroy", via: %i[get delete], as: :sign_out | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Passwordless | ||
VERSION = '0.6.0' # :nodoc: | ||
VERSION = "0.6.0" # :nodoc: | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.