-
Notifications
You must be signed in to change notification settings - Fork 0
/
shining-sea.rb
36 lines (30 loc) · 1.05 KB
/
shining-sea.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require 'rubygems'
require 'bundler/setup'
require 'rest-client'
require 'twitter'
require 'aws-sdk'
require 'multi_json'
require 'boxer'
require 'active_support/all'
require 'csv'
require_relative './config/too_many_secrets'
require_relative './app/model/model'
require_relative './app/model/s3_storage'
require_relative './app/model/account'
require_relative './app/model/tweet_metric'
require_relative './app/model/metrics_file'
require_relative './app/model/daily_summary'
require_relative './app/model/weekly_summary'
require_relative './app/model/monthly_summary'
require_relative './app/model/account_summary'
require_relative './app/model/tweet_summary'
require_relative './app/model/rank'
require_relative './app/model/daily_ranking'
require_relative './app/boxes/metrics'
require_relative './app/boxes/summaries'
Twitter.configure do |config|
config.consumer_key = ENV['TWITTER_CLIENT_KEY']
config.consumer_secret = ENV['TWITTER_CLIENT_SECRET']
config.bearer_token = Twitter.token
end
Time.zone = ENV['TIME_ZONE'] || "Eastern Time (US & Canada)"