Sha256: d64355fb696ab1d076fe97c041413ee5c02f0e76152fd8903d91638e5b2ade7b

Contents?: true

Size: 350 Bytes

Versions: 42

Compression:

Stored size: 350 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
require 'rubygems'
require 'tw'

if ARGV.empty?
  STDERR.puts "ruby #{$0} hello world"
  exit 1
end

msg = ARGV.join(' ')

client = Tw::Client.new
client.auth
client.mentions.each do |m|
  puts m
end

begin
  p client.tweet msg
rescue => e
  STDERR.puts e
  exit 1
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
tw-1.3.1 samples/sample.rb
tw-1.3.0 samples/sample.rb
tw-1.2.1 samples/sample.rb
tw-1.2.0 samples/sample.rb
tw-1.1.1 samples/sample.rb
tw-1.1.0 samples/sample.rb
tw-1.0.12 samples/sample.rb
tw-1.0.11 samples/sample.rb
tw-1.0.10 samples/sample.rb
tw-1.0.9 samples/sample.rb
tw-1.0.8 samples/sample.rb
tw-1.0.7 samples/sample.rb
tw-1.0.6 samples/sample.rb
tw-1.0.5 samples/sample.rb
tw-1.0.4 samples/sample.rb
tw-1.0.3 samples/sample.rb
tw-1.0.2 samples/sample.rb
tw-1.0.1 samples/sample.rb
tw-1.0.0 samples/sample.rb
tw-0.5.2 samples/sample.rb