Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add twitter authentication gem and config

  • Loading branch information...
commit aa1190acbff48dfe24ea195c6db0d845958b9403 1 parent b73cde0
Lisovsky Vlad authored
1  .gitignore
@@ -10,3 +10,4 @@
10 10 # Ignore all logfiles and tempfiles.
11 11 /log/*.log
12 12 /tmp
  13 +keys.rb
2  Gemfile
@@ -28,3 +28,5 @@ group :test do
28 28 gem 'factory_girl_rails'
29 29 gem 'cucumber-rails'
30 30 end
  31 +
  32 +gem 'omniauth-twitter'
12 Gemfile.lock
@@ -80,6 +80,7 @@ GEM
80 80 activesupport (~> 3.0)
81 81 haml (~> 3.0)
82 82 railties (~> 3.0)
  83 + hashie (1.2.0)
83 84 hike (1.2.1)
84 85 i18n (0.6.0)
85 86 journey (1.0.4)
@@ -108,6 +109,16 @@ GEM
108 109 tzinfo (~> 0.3.22)
109 110 multi_json (1.3.6)
110 111 nokogiri (1.5.4)
  112 + oauth (0.4.6)
  113 + omniauth (1.1.0)
  114 + hashie (~> 1.2)
  115 + rack
  116 + omniauth-oauth (1.0.1)
  117 + oauth
  118 + omniauth (~> 1.0)
  119 + omniauth-twitter (0.0.11)
  120 + multi_json (~> 1.3)
  121 + omniauth-oauth (~> 1.0)
111 122 polyglot (0.3.3)
112 123 quiet_assets (1.0.1)
113 124 railties (~> 3.1)
@@ -203,6 +214,7 @@ DEPENDENCIES
203 214 haml-rails
204 215 jquery-rails
205 216 mongoid
  217 + omniauth-twitter
206 218 quiet_assets
207 219 rails (= 3.2.6)
208 220 rspec-rails
3  config/initializers/omniauth.rb
... ... @@ -0,0 +1,3 @@
  1 +Rails.application.config.middleware.use OmniAuth::Builder do
  2 + provider :twitter, ENV['twi_consumer_key'], ENV['twi_consumer_sercet']
  3 +end

0 comments on commit aa1190a

Please sign in to comment.
Something went wrong with that request. Please try again.