Skip to content

Commit

Permalink
remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
8398a7 committed Oct 30, 2024
1 parent 5b2c88b commit 962e039
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 124 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ gem 'bootsnap', require: false
gem 'coffee-rails'
gem 'devise'
gem 'draper'
gem 'google-cloud-storage'
# }}}
# h,i,j,k,l,m,n {{{
gem 'kaminari'
Expand Down Expand Up @@ -39,7 +38,6 @@ gem 'sinatra'
gem 'slim-rails'
gem 'ts_routes'
gem 'turbolinks'
gem 'twitter'
# }}}
# v,w,x,y,z {{{
gem 'webpacker'
Expand Down
94 changes: 0 additions & 94 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ GEM
bindex (0.8.1)
bootsnap (1.13.0)
msgpack (~> 1.2)
buftok (0.2.0)
builder (3.2.4)
bullet (7.0.3)
activesupport (>= 3.0.0)
Expand Down Expand Up @@ -112,7 +111,6 @@ GEM
crack (0.4.5)
rexml
crass (1.0.6)
declarative (0.0.20)
devise (4.8.1)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
Expand All @@ -121,19 +119,14 @@ GEM
warden (~> 1.2.3)
diff-lcs (1.5.0)
digest (3.1.0)
digest-crc (0.6.4)
rake (>= 12.0.0, < 14.0.0)
docile (1.4.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
draper (4.0.2)
actionpack (>= 5.0)
activemodel (>= 5.0)
activemodel-serializers-xml (>= 1.0)
activesupport (>= 5.0)
request_store (>= 1.0)
ruby2_keywords
equalizer (0.0.11)
erubi (1.11.0)
et-orbi (1.2.7)
tzinfo
Expand All @@ -148,62 +141,13 @@ GEM
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.0)
ffi (1.17.0)
ffi-compiler (1.0.1)
ffi (>= 1.0.0)
rake
fugit (1.7.1)
et-orbi (~> 1, >= 1.2.7)
raabro (~> 1.4)
globalid (1.0.0)
activesupport (>= 5.0)
google-apis-core (0.9.0)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.16.2, < 2.a)
httpclient (>= 2.8.1, < 3.a)
mini_mime (~> 1.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.a)
rexml
webrick
google-apis-iamcredentials_v1 (0.14.0)
google-apis-core (>= 0.7.2, < 2.a)
google-apis-storage_v1 (0.17.0)
google-apis-core (>= 0.7, < 2.a)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
google-cloud-errors (~> 1.0)
google-cloud-env (1.6.0)
faraday (>= 0.17.3, < 3.0)
google-cloud-errors (1.3.0)
google-cloud-storage (1.41.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
google-apis-storage_v1 (~> 0.17.0)
google-cloud-core (~> 1.6)
googleauth (>= 0.16.2, < 2.a)
mini_mime (~> 1.0)
googleauth (1.2.0)
faraday (>= 0.17.3, < 3.a)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
hashdiff (1.0.1)
hashie (5.0.0)
http (4.4.1)
addressable (~> 2.3)
http-cookie (~> 1.0)
http-form_data (~> 2.2)
http-parser (~> 1.2.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
http-form_data (2.3.0)
http-parser (1.2.3)
ffi-compiler (>= 1.0, < 2.0)
http_parser.rb (0.6.0)
httpclient (2.8.3)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
json (2.6.2)
Expand Down Expand Up @@ -231,21 +175,15 @@ GEM
mini_mime (>= 0.1.1)
marcel (1.0.2)
matrix (0.4.2)
memoist (0.16.2)
memoizable (0.4.2)
thread_safe (~> 0.3, >= 0.3.1)
method_source (1.0.0)
mini_magick (4.11.0)
mini_mime (1.1.5)
mini_portile2 (2.8.4)
minitest (5.16.3)
msgpack (1.5.6)
multi_json (1.15.0)
multi_xml (0.6.0)
multipart-post (2.2.3)
mustermann (2.0.2)
ruby2_keywords (~> 0.0.1)
naught (1.1.0)
nested_form (0.3.2)
net-imap (0.2.3)
digest
Expand Down Expand Up @@ -288,7 +226,6 @@ GEM
actionpack (>= 4.2)
omniauth (~> 2.0)
orm_adapter (0.5.0)
os (1.1.4)
parallel (1.22.1)
parser (3.1.2.1)
ast (~> 2.4.1)
Expand Down Expand Up @@ -367,16 +304,11 @@ GEM
tilt
redis (4.8.0)
regexp_parser (2.8.2)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
request_store (1.5.1)
rack (>= 1.4)
responders (3.0.1)
actionpack (>= 5.0)
railties (>= 5.0)
retriable (3.1.2)
rexml (3.2.6)
rolify (6.0.1)
rspec-core (3.11.0)
Expand Down Expand Up @@ -453,12 +385,6 @@ GEM
sidekiq-prometheus-exporter (0.1.17)
rack (>= 1.6.0)
sidekiq (>= 3.3.1)
signet (0.17.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simple_oauth (0.3.1)
simplecov (0.21.2)
docile (~> 1.1)
simplecov-html (~> 0.11)
Expand Down Expand Up @@ -493,10 +419,8 @@ GEM
strscan (3.0.4)
temple (0.8.2)
thor (1.2.1)
thread_safe (0.3.6)
tilt (2.0.11)
timeout (0.3.0)
trailblazer-option (0.1.2)
ts_routes (1.0.3)
railties (>= 4.0)
turbo-rails (1.1.1)
Expand All @@ -506,23 +430,8 @@ GEM
turbolinks (5.2.1)
turbolinks-source (~> 5.2)
turbolinks-source (5.2.0)
twitter (7.0.0)
addressable (~> 2.3)
buftok (~> 0.2.0)
equalizer (~> 0.0.11)
http (~> 4.0)
http-form_data (~> 2.0)
http_parser.rb (~> 0.6.0)
memoizable (~> 0.4.0)
multipart-post (~> 2.0)
naught (~> 1.0)
simple_oauth (~> 0.3.0)
tzinfo (2.0.5)
concurrent-ruby (~> 1.0)
uber (0.1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.8.2)
unicode-display_width (2.3.0)
uniform_notifier (1.16.0)
vcr (6.1.0)
Expand All @@ -547,7 +456,6 @@ GEM
rack-proxy (>= 0.6.1)
railties (>= 5.2)
semantic_range (>= 2.3.0)
webrick (1.7.0)
websocket (1.2.10)
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
Expand All @@ -569,7 +477,6 @@ DEPENDENCIES
devise
draper
factory_bot_rails
google-cloud-storage
json_expressions
kaminari
listen
Expand Down Expand Up @@ -610,7 +517,6 @@ DEPENDENCIES
spring-commands-rspec
ts_routes
turbolinks
twitter
vcr
web-console
webdrivers
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/messages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def create
Slack::MessageDispatcher.send(message.id)
flash[:notice] = '承りました。対応はしばしお待ちください。'
else
flash[:danger] = '何らかの不具合で送信できていません。Twitterなどにご連絡下さい。'
flash[:danger] = '何らかの不具合で送信できていません。Xなどにご連絡下さい。'
end
redirect_to root_path
end
Expand Down
12 changes: 6 additions & 6 deletions app/views/messages/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ section.accordions
button.toggle aria-label='toggle'
.accordion-body
.accordion-content
p 以下の手順でTwitterで連絡してください
p 以下の手順でXで連絡してください
blockquote.twitter-tweet data-lang='ja'
p lang='ja' dir='ltr'
a href='https://twitter.com/sukemasa_P'
a href='https://x.com/sukemasa_P'
| @sukemasa_P
| お問い合わせありがとうございます。本人確認のため
a href='https://t.co/btjiBmWBvp'
Expand All @@ -21,17 +21,17 @@ section.accordions
br
| 削除することもできますし、dm経由で一時的なパスワードに変更することも可能です。
| — IIDX☆12参考表 (@IIDX_12)
a href='https://twitter.com/IIDX_12/status/774630178425155584'
a href='https://x.com/IIDX_12/status/774630178425155584'
| 2016年9月10日
script src='//platform.twitter.com/widgets.js' charset='utf-8' async=true
script src='//platform.x.com/widgets.js' charset='utf-8' async=true

.content
ul
li 既にiidxidが使われている
li 何らかの不具合やバグ報告など
| 対応は
= link_to 'http://twitter.com/IIDX_12'
= icon 'twitter', 'Twitter', style: 'fab'
= link_to 'http://x.com/IIDX_12'
= icon 'twitter', 'X', style: 'fab'
| のほうが迅速なことが多いです。
br
font color='red'
Expand Down
4 changes: 0 additions & 4 deletions lib/irt/sync.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# frozen_string_literal: true

require 'twitter_dispatcher'

module Irt
class Sync
def self.run
hash = fetch
Ability.sync(hash)
twitter = TwitterDispatcher.new
twitter.tweet('地力値表を更新しました')
end

def self.fetch
Expand Down
17 changes: 0 additions & 17 deletions lib/twitter_dispatcher.rb

This file was deleted.

0 comments on commit 962e039

Please sign in to comment.