This repository was archived by the owner on Mar 7, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Gem ::Specification . new do |s |
4
4
s . name = 'dashing'
5
- s . version = '1.3.1 '
6
- s . date = '2013-07-29 '
5
+ s . version = '1.3.2 '
6
+ s . date = '2013-11-21 '
7
7
s . executables << 'dashing'
8
8
9
9
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
19
19
s . add_dependency ( 'sass' )
20
20
s . add_dependency ( 'coffee-script' , '>=1.6.2' )
21
+ s . add_dependency ( 'execjs' , '>=2.0.0' )
21
22
s . add_dependency ( 'sinatra' )
22
23
s . add_dependency ( 'sinatra-contrib' )
23
24
s . add_dependency ( 'thin' )
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
gem 'dashing'
4
4
5
5
## Remove this if you don't need a twitter widget.
6
- gem 'twitter'
6
+ gem 'twitter' , '>= 5.0.0'
Original file line number Diff line number Diff line change 3
3
4
4
#### Get your twitter keys & secrets:
5
5
#### https://dev.twitter.com/docs/auth/tokens-devtwittercom
6
- Twitter . configure do |config |
6
+ twitter = Twitter :: REST :: Client . new do |config |
7
7
config . consumer_key = 'YOUR_CONSUMER_KEY'
8
8
config . consumer_secret = 'YOUR_CONSUMER_SECRET'
9
9
config . oauth_token = 'YOUR_OAUTH_TOKEN'
14
14
15
15
SCHEDULER . every '10m' , :first_in => 0 do |job |
16
16
begin
17
- tweets = Twitter . search ( "#{ search_term } " ) . results
17
+ tweets = twitter . search ( "#{ search_term } " )
18
18
19
19
if tweets
20
- tweets . map! do |tweet |
20
+ tweets = tweets . map do |tweet |
21
21
{ name : tweet . user . name , body : tweet . text , avatar : tweet . user . profile_image_url_https }
22
22
end
23
23
send_event ( 'twitter_mentions' , comments : tweets )
You can’t perform that action at this time.
0 commit comments