From d7880b075955e23afae9a2307bdd2d7adc54e436 Mon Sep 17 00:00:00 2001 From: Tatsuya Sato Date: Fri, 19 Mar 2021 08:57:08 +0900 Subject: [PATCH 1/2] Test: changes on not-ruby files does not trigger CI --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2f8f5a6..617f9cd 100644 --- a/README.md +++ b/README.md @@ -28,3 +28,5 @@ Or deploy it! bundle install bundle exec rackup # Launch Dajare server ``` + +hogehoge From 2cb6eab5fd14d39c2c720abc37c1681676539e7b Mon Sep 17 00:00:00 2001 From: Tatsuya Sato Date: Fri, 19 Mar 2021 10:46:37 +0900 Subject: [PATCH 2/2] This change triggers CI --- src/dajare/app.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/dajare/app.rb b/src/dajare/app.rb index e49d5f6..5da724c 100755 --- a/src/dajare/app.rb +++ b/src/dajare/app.rb @@ -1,4 +1,6 @@ -require "cgi" +# frozen_string_literal: true + +require 'cgi' require 'sinatra/base' require 'sinatra/json' require 'pebbles/dajare' @@ -8,18 +10,18 @@ module Dajare class App < Sinatra::Base set :erb, layout: true - set :views, File.expand_path('./views', __dir__) + set :views, File.expand_path('./views', __dir__) set :public_folder, File.expand_path('../../public', __dir__) enable :logging helpers Dajare::Helpers - get "/" do + get '/' do if params[:text] logger.info params[:text] @original = params[:text] - @original.chomp! if @original + @original&.chomp! @dajare = dajarize(@original.chomp).sample end