twitter_lti 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12d1825870ba5cfc04c7c926f6a7d75fd39f803a
|
4
|
+
data.tar.gz: afb94a9515334a1605a61ed4e4f2e889738714cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4a05584736344dfc0bf7e1e709357ff8ab242cd1817c4bb31f783117dd31e3c1188d0c140b50a45c0e46d19048784fdf8d0f9e353a442167c20ec3b524a4353
|
7
|
+
data.tar.gz: 736fec455dd2b3db762e0b1baac59f86c2657c2f4ae508ea5908f4e468833943568c8b711745589b3ba9dc1aa6f8c49e0b642aab4086c0ff983fd3cbc31082d6
|
@@ -7,10 +7,10 @@ module TwitterLti
|
|
7
7
|
|
8
8
|
def tweets
|
9
9
|
client = Twitter::REST::Client.new do |config|
|
10
|
-
config.consumer_key = ENV["
|
11
|
-
config.consumer_secret = ENV["
|
12
|
-
config.access_token = ENV["
|
13
|
-
config.access_token_secret = ENV["
|
10
|
+
config.consumer_key = ENV["TWITTER_CONSUMER_KEY"]
|
11
|
+
config.consumer_secret = ENV["TWITTER_CONSUMER_SECRET"]
|
12
|
+
config.access_token = ENV["TWITTER_ACCESS_TOKEN"]
|
13
|
+
config.access_token_secret = ENV["TWITTER_ACCESS_TOKEN_SECRET"]
|
14
14
|
end
|
15
15
|
max = params[:max] || 10
|
16
16
|
tweets = []
|
@@ -1,8 +1,8 @@
|
|
1
1
|
default: &default
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
twitter_consumer_key: TWITTER_CONSUMER_KEY
|
3
|
+
twitter_consumer_secret: TWITTER_CONSUMER_SECRET
|
4
|
+
twitter_access_token: TWITTER_ACCESS_TOKEN
|
5
|
+
twitter_access_token_secret: TWITTER_ACCESS_TOKEN_SECRET
|
6
6
|
|
7
7
|
development:
|
8
8
|
<<: *default
|
data/lib/twitter_lti/version.rb
CHANGED