# HG changeset patch # User nanaya # Date 1739040918 -32400 # Node ID a8fd79a8d1702e1f3169eb0c768afceaa0b91068 # Parent 4f86037f6e6ac405234b3c305c2a2fd764a26102 Update with better config example diff -r 4f86037f6e6a -r a8fd79a8d170 config/config_init.rb --- a/config/config_init.rb Sun Feb 09 03:48:26 2025 +0900 +++ b/config/config_init.rb Sun Feb 09 03:55:18 2025 +0900 @@ -1,12 +1,9 @@ $cfg = { - twitter: [ - { - consumer_key: ENV["CONSUMER_KEY"], - consumer_secret: ENV["CONSUMER_SECRET"], - access_token: ENV["ACCESS_TOKEN"], - access_token_secret: ENV["ACCESS_TOKEN_SECRET"] + headers: { + identifier: { + # fill in here } - ], + }, redis_server: ENV["REDIS_SERVER"] } @@ -14,4 +11,6 @@ require config_local if File.exist? config_local +$cfg[:headers] = $cfg[:headers].to_a + $cfg.freeze