Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed consumer_key/secret part for local test

  • Loading branch information...
commit 3257f323e7ae67925393da5754523140b1acb82d 1 parent b45a5aa
@inutano authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 app.rb
View
5 app.rb
@@ -7,6 +7,7 @@
require "haml"
require "oauth"
require "twitter"
+require "yaml"
set :haml, { :format => :html5 }
@@ -17,8 +18,8 @@
configure do
use Rack::Session::Cookie, :secret => Digest::SHA1.hexdigest(rand.to_s)
- KEY = ENV["consumer_key"]
- SECRET = ENV["consumer_secret"]
+ KEY = (ENV["consumer_key"]) ? ENV["consumer_key"] : YAML.load_file("./lib/config.yaml")["twitter"]["consumer_key"]
+ SECRET = (ENV["consumer_secret"]) ? ENV["consumer_secret"] : YAML.load_file("./lib/config.yaml")["twitter"]["consumer_secret"]
end
before do
Please sign in to comment.
Something went wrong with that request. Please try again.