Sha256: 904eb595d7d0a342fefd2306fd07fda5e7a3ed4888e6e7d2bd3b6e8441b76611

Contents?: true

Size: 270 Bytes

Versions: 18

Compression:

Stored size: 270 Bytes

Contents

twitter_username = fetch(:twitter_username) { "dorianmariefr" }

Twitter.search("to:{twitter_username}", type: :recent).each do |tweet|
  next if Storage.exists?(tweet.id)
  Storage.create!(tweet.id)
  Sms.send("New mention: {tweet.user.screen_name}: {tweet.text}")
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
template-ruby-parser-0.1.8 docs/twitter.code
code-ruby-parser-0.1.8 docs/twitter.code
template-ruby-parser-0.1.7 docs/twitter.code
code-ruby-parser-0.1.7 docs/twitter.code
template-ruby-parser-0.1.6 docs/twitter.code
code-ruby-parser-0.1.6 docs/twitter.code
template-ruby-parser-0.1.5 docs/twitter.code
code-ruby-parser-0.1.5 docs/twitter.code
template-ruby-parser-0.1.4 docs/twitter.code
code-ruby-parser-0.1.4 docs/twitter.code
template-ruby-parser-0.1.3 docs/twitter.code
code-ruby-parser-0.1.3 docs/twitter.code
template-ruby-parser-0.1.2 docs/twitter.code
code-ruby-parser-0.1.2 docs/twitter.code
template-ruby-parser-0.1.1 docs/twitter.code
code-ruby-parser-0.1.1 docs/twitter.code
template-ruby-parser-0.1.0 docs/twitter.code
code-ruby-parser-0.1.0 docs/twitter.code