erblint
This commit is contained in:
parent
a2cc0a737e
commit
17b3646f93
5 changed files with 108 additions and 7 deletions
5
memoapp/.erb-lint.yml
Normal file
5
memoapp/.erb-lint.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
glob: "**/*.erb"
|
||||||
|
linters:
|
||||||
|
RequireInputAutocomplete:
|
||||||
|
enabled: false
|
|
@ -1,4 +1,6 @@
|
||||||
source "https://rubygems.org"
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
gem "sinatra"
|
gem 'erb_lint', require: false
|
||||||
gem "sinatra-contrib"
|
gem 'sinatra'
|
||||||
|
gem 'sinatra-contrib'
|
||||||
|
gem 'webrick'
|
||||||
|
|
|
@ -1,16 +1,95 @@
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
|
actionview (7.1.3.4)
|
||||||
|
activesupport (= 7.1.3.4)
|
||||||
|
builder (~> 3.1)
|
||||||
|
erubi (~> 1.11)
|
||||||
|
rails-dom-testing (~> 2.2)
|
||||||
|
rails-html-sanitizer (~> 1.6)
|
||||||
|
activesupport (7.1.3.4)
|
||||||
|
base64
|
||||||
|
bigdecimal
|
||||||
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
|
connection_pool (>= 2.2.5)
|
||||||
|
drb
|
||||||
|
i18n (>= 1.6, < 2)
|
||||||
|
minitest (>= 5.1)
|
||||||
|
mutex_m
|
||||||
|
tzinfo (~> 2.0)
|
||||||
|
ast (2.4.2)
|
||||||
base64 (0.2.0)
|
base64 (0.2.0)
|
||||||
|
better_html (2.1.1)
|
||||||
|
actionview (>= 6.0)
|
||||||
|
activesupport (>= 6.0)
|
||||||
|
ast (~> 2.0)
|
||||||
|
erubi (~> 1.4)
|
||||||
|
parser (>= 2.4)
|
||||||
|
smart_properties
|
||||||
|
bigdecimal (3.1.8)
|
||||||
|
builder (3.3.0)
|
||||||
|
concurrent-ruby (1.3.3)
|
||||||
|
connection_pool (2.4.1)
|
||||||
|
crass (1.0.6)
|
||||||
|
drb (2.2.1)
|
||||||
|
erb_lint (0.6.0)
|
||||||
|
activesupport
|
||||||
|
better_html (>= 2.0.1)
|
||||||
|
parser (>= 2.7.1.4)
|
||||||
|
rainbow
|
||||||
|
rubocop (>= 1)
|
||||||
|
smart_properties
|
||||||
|
erubi (1.13.0)
|
||||||
|
i18n (1.14.5)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
|
json (2.7.2)
|
||||||
|
language_server-protocol (3.17.0.3)
|
||||||
|
loofah (2.22.0)
|
||||||
|
crass (~> 1.0.2)
|
||||||
|
nokogiri (>= 1.12.0)
|
||||||
|
minitest (5.23.1)
|
||||||
multi_json (1.15.0)
|
multi_json (1.15.0)
|
||||||
mustermann (3.0.0)
|
mustermann (3.0.0)
|
||||||
ruby2_keywords (~> 0.0.1)
|
ruby2_keywords (~> 0.0.1)
|
||||||
|
mutex_m (0.2.0)
|
||||||
|
nokogiri (1.16.7-x86_64-linux)
|
||||||
|
racc (~> 1.4)
|
||||||
|
parallel (1.24.0)
|
||||||
|
parser (3.3.2.0)
|
||||||
|
ast (~> 2.4.1)
|
||||||
|
racc
|
||||||
|
racc (1.8.0)
|
||||||
rack (3.1.7)
|
rack (3.1.7)
|
||||||
rack-protection (4.0.0)
|
rack-protection (4.0.0)
|
||||||
base64 (>= 0.1.0)
|
base64 (>= 0.1.0)
|
||||||
rack (>= 3.0.0, < 4)
|
rack (>= 3.0.0, < 4)
|
||||||
rack-session (2.0.0)
|
rack-session (2.0.0)
|
||||||
rack (>= 3.0.0)
|
rack (>= 3.0.0)
|
||||||
|
rails-dom-testing (2.2.0)
|
||||||
|
activesupport (>= 5.0.0)
|
||||||
|
minitest
|
||||||
|
nokogiri (>= 1.6)
|
||||||
|
rails-html-sanitizer (1.6.0)
|
||||||
|
loofah (~> 2.21)
|
||||||
|
nokogiri (~> 1.14)
|
||||||
|
rainbow (3.1.1)
|
||||||
|
regexp_parser (2.9.2)
|
||||||
|
rexml (3.2.8)
|
||||||
|
strscan (>= 3.0.9)
|
||||||
|
rubocop (1.64.1)
|
||||||
|
json (~> 2.3)
|
||||||
|
language_server-protocol (>= 3.17.0)
|
||||||
|
parallel (~> 1.10)
|
||||||
|
parser (>= 3.3.0.2)
|
||||||
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
|
regexp_parser (>= 1.8, < 3.0)
|
||||||
|
rexml (>= 3.2.5, < 4.0)
|
||||||
|
rubocop-ast (>= 1.31.1, < 2.0)
|
||||||
|
ruby-progressbar (~> 1.7)
|
||||||
|
unicode-display_width (>= 2.4.0, < 3.0)
|
||||||
|
rubocop-ast (1.31.3)
|
||||||
|
parser (>= 3.3.1.0)
|
||||||
|
ruby-progressbar (1.13.0)
|
||||||
ruby2_keywords (0.0.5)
|
ruby2_keywords (0.0.5)
|
||||||
sinatra (4.0.0)
|
sinatra (4.0.0)
|
||||||
mustermann (~> 3.0)
|
mustermann (~> 3.0)
|
||||||
|
@ -24,15 +103,23 @@ GEM
|
||||||
rack-protection (= 4.0.0)
|
rack-protection (= 4.0.0)
|
||||||
sinatra (= 4.0.0)
|
sinatra (= 4.0.0)
|
||||||
tilt (~> 2.0)
|
tilt (~> 2.0)
|
||||||
|
smart_properties (1.17.0)
|
||||||
|
strscan (3.1.0)
|
||||||
tilt (2.4.0)
|
tilt (2.4.0)
|
||||||
|
tzinfo (2.0.6)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
|
unicode-display_width (2.5.0)
|
||||||
|
webrick (1.8.1)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
x86_64-linux
|
x86_64-linux
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
|
erb_lint
|
||||||
sinatra
|
sinatra
|
||||||
sinatra-contrib
|
sinatra-contrib
|
||||||
|
webrick
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.5.11
|
2.5.17
|
||||||
|
|
|
@ -1,2 +1,9 @@
|
||||||
# memoapp
|
## Usage
|
||||||
Sinatraでシンプルなメモアプリを作る
|
|
||||||
|
`git clone https://github.com/riq0h/memoapp.git`
|
||||||
|
|
||||||
|
`cd memoapp`
|
||||||
|
|
||||||
|
`bundle install`
|
||||||
|
|
||||||
|
`ruby app.rb`
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'sinatra'
|
require 'sinatra'
|
||||||
require 'sinatra/reloader' if development?
|
require 'sinatra/reloader'
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
FILE_PATH = 'public/memos.json'
|
FILE_PATH = 'public/memos.json'
|
||||||
|
|
Loading…
Reference in a new issue