jnunemaker-twitter 0.3.8 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,10 @@
1
+ 0.4.0 - December 23, 2008
2
+ * 3 major changes
3
+ * Removed active support as dependency
4
+ * Removed CLI dependencies from install dependency list
5
+ (they are now only installed by you manually)
6
+ * Switched to echoe for gem managment
7
+
1
8
  0.3.7 - August 26, 2008
2
9
  * Fixed source param not getting through
3
10
 
File without changes
@@ -1,11 +1,4 @@
1
- History.txt
2
- License.txt
3
- Manifest.txt
4
- README.txt
5
- Rakefile
6
1
  bin/twitter
7
- config/hoe.rb
8
- config/requirements.rb
9
2
  examples/blocks.rb
10
3
  examples/direct_messages.rb
11
4
  examples/favorites.rb
@@ -20,9 +13,8 @@ examples/sent_messages.rb
20
13
  examples/timeline.rb
21
14
  examples/twitter.rb
22
15
  examples/verify_credentials.rb
23
- lib/twitter.rb
16
+ History
24
17
  lib/twitter/base.rb
25
- lib/twitter/cli.rb
26
18
  lib/twitter/cli/config.rb
27
19
  lib/twitter/cli/helpers.rb
28
20
  lib/twitter/cli/migrations/20080722194500_create_accounts.rb
@@ -32,6 +24,7 @@ lib/twitter/cli/migrations/20080722214606_create_configurations.rb
32
24
  lib/twitter/cli/models/account.rb
33
25
  lib/twitter/cli/models/configuration.rb
34
26
  lib/twitter/cli/models/tweet.rb
27
+ lib/twitter/cli.rb
35
28
  lib/twitter/direct_message.rb
36
29
  lib/twitter/easy_class_maker.rb
37
30
  lib/twitter/rate_limit_status.rb
@@ -39,10 +32,11 @@ lib/twitter/search.rb
39
32
  lib/twitter/status.rb
40
33
  lib/twitter/user.rb
41
34
  lib/twitter/version.rb
42
- script/destroy
43
- script/generate
44
- script/txt2html
45
- setup.rb
35
+ lib/twitter.rb
36
+ License
37
+ Manifest
38
+ Rakefile
39
+ README
46
40
  spec/base_spec.rb
47
41
  spec/cli/helper_spec.rb
48
42
  spec/direct_message_spec.rb
@@ -62,9 +56,6 @@ spec/spec.opts
62
56
  spec/spec_helper.rb
63
57
  spec/status_spec.rb
64
58
  spec/user_spec.rb
65
- tasks/deployment.rake
66
- tasks/environment.rake
67
- tasks/website.rake
68
59
  twitter.gemspec
69
60
  website/css/common.css
70
61
  website/images/terminal_output.png
File without changes
data/Rakefile CHANGED
@@ -1,4 +1,42 @@
1
- require 'config/requirements'
2
- require 'config/hoe' # setup Hoe + all gem configuration
1
+ ProjectName = 'twitter'
2
+ WebsitePath = "jnunemaker@rubyforge.org:/var/www/gforge-projects/#{ProjectName}"
3
3
 
4
- Dir['tasks/**/*.rake'].each { |rake| load rake }
4
+ require 'rubygems'
5
+ require 'rake'
6
+ require 'echoe'
7
+ require 'spec/rake/spectask'
8
+ require "lib/#{ProjectName}/version"
9
+
10
+ Echoe.new(ProjectName, Twitter::Version) do |p|
11
+ p.description = "a command line interface for twitter, also a library which wraps the twitter api"
12
+ p.url = "http://#{ProjectName}.rubyforge.org"
13
+ p.author = "John Nunemaker"
14
+ p.email = "nunemaker@gmail.com"
15
+ p.extra_deps = [['hpricot', '>= 0.6'], ['activesupport', '>= 2.1'], ['httparty', '>= 0.2.4']]
16
+ p.need_tar_gz = false
17
+ p.docs_host = WebsitePath
18
+ end
19
+
20
+ desc 'Upload website files to rubyforge'
21
+ task :website do
22
+ sh %{rsync -av website/ #{WebsitePath}}
23
+ Rake::Task['website_docs'].invoke
24
+ end
25
+
26
+ task :website_docs do
27
+ Rake::Task['redocs'].invoke
28
+ sh %{rsync -av doc/ #{WebsitePath}/docs}
29
+ end
30
+
31
+ desc 'Preps the gem for a new release'
32
+ task :prepare do
33
+ %w[manifest build_gemspec].each do |task|
34
+ Rake::Task[task].invoke
35
+ end
36
+ end
37
+
38
+ Rake::Task[:default].prerequisites.clear
39
+ task :default => :spec
40
+ Spec::Rake::SpecTask.new do |t|
41
+ t.spec_files = FileList["spec/**/*_spec.rb"]
42
+ end
data/bin/twitter CHANGED
@@ -10,6 +10,5 @@ if ARGV[0] && ARGV[0] == 'd' && !STDIN.tty?
10
10
  ARGV[2] = "#{STDIN.read}#{ARGV[2]}"
11
11
  end
12
12
 
13
- $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
14
- require 'twitter'
13
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'twitter'))
15
14
  require 'twitter/cli'
@@ -1,4 +1,5 @@
1
1
  require 'rubygems'
2
+ require 'activesupport'
2
3
  require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
3
4
  config = YAML::load(open(ENV['HOME'] + '/.twitter'))
4
5
 
@@ -4,13 +4,13 @@ config = YAML::load(open(ENV['HOME'] + '/.twitter'))
4
4
 
5
5
  twitter = Twitter::Base.new(config['email'], config['password'])
6
6
 
7
- puts 'FAVORITES'
8
- twitter.favorites.each { |f| puts f.text }
7
+ puts 'CREATE'
8
+ puts twitter.create_favorite(865416114).text
9
9
  puts
10
10
  puts
11
11
 
12
- puts 'CREATE'
13
- puts twitter.create_favorite(865416114).text
12
+ puts 'FAVORITES'
13
+ twitter.favorites.each { |f| puts f.text }
14
14
  puts
15
15
  puts
16
16
 
data/examples/replies.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'rubygems'
2
+ require 'activesupport'
2
3
  require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
3
4
  config = YAML::load(open(ENV['HOME'] + '/.twitter'))
4
5
 
@@ -1,4 +1,5 @@
1
1
  require 'rubygems'
2
+ require 'activesupport'
2
3
  require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
3
4
  config = YAML::load(open(ENV['HOME'] + '/.twitter'))
4
5
 
data/examples/timeline.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'rubygems'
2
+ require 'activesupport'
2
3
  require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
3
4
  config = YAML::load(open(ENV['HOME'] + '/.twitter'))
4
5
 
data/lib/twitter/base.rb CHANGED
@@ -184,7 +184,7 @@ module Twitter
184
184
  #
185
185
  # ie: call(:public_timeline, :auth => false)
186
186
  def call(method, options={})
187
- options.reverse_merge!({ :auth => true, :args => {} })
187
+ options = { :auth => true, :args => {} }.merge(options)
188
188
  # Following line needed as lite=false doesn't work in the API: http://tinyurl.com/yo3h5d
189
189
  options[:args].delete(:lite) unless options[:args][:lite]
190
190
  args = options.delete(:args)
@@ -193,11 +193,12 @@ module Twitter
193
193
 
194
194
  # Makes a request to twitter.
195
195
  def request(path, options={})
196
- options.reverse_merge!({
196
+ options = {
197
197
  :headers => { "User-Agent" => @config[:email] },
198
- :method => :get
199
- })
200
- unless options[:since].blank?
198
+ :method => :get,
199
+ }.merge(options)
200
+
201
+ unless options[:since].nil?
201
202
  since = options[:since].kind_of?(Date) ? options[:since].strftime('%a, %d-%b-%y %T GMT') : options[:since].to_s
202
203
  options[:headers]["If-Modified-Since"] = since
203
204
  end
@@ -233,7 +234,11 @@ module Twitter
233
234
 
234
235
  # Given a path and a hash, build a full path with the hash turned into a query string
235
236
  def build_path(path, options)
236
- path += "?#{options.to_query}" unless options.blank?
237
+ unless options.nil?
238
+ query = options.inject('') { |str, h| str += "#{CGI.escape(h[0].to_s)}=#{CGI.escape(h[1].to_s)}&"; str }
239
+ path += "?#{query}"
240
+ end
241
+
237
242
  path
238
243
  end
239
244
 
@@ -5,24 +5,34 @@ module Twitter
5
5
  class NoAccounts < StandardError; end
6
6
 
7
7
  def output_tweets(collection, options={})
8
- options.reverse_merge!({
8
+ options = {
9
9
  :cache => false,
10
10
  :since_prefix => '',
11
11
  :empty_msg => 'Nothing new since your last check.'
12
- })
12
+ }.merge(options)
13
+
13
14
  if collection.size > 0
14
15
  justify = collection.collect { |s| s.user.screen_name }.max { |a,b| a.length <=> b.length }.length rescue 0
15
16
  indention = ' ' * (justify + 3)
16
17
  say("\n#{indention}#{collection.size} new tweet(s) found.\n\n")
17
18
  collection.each do |s|
18
19
  Tweet.create_from_tweet(current_account, s) if options[:cache]
20
+
19
21
  occurred_at = Time.parse(s.created_at).strftime('On %b %d at %l:%M%P')
20
22
  formatted_time = '-' * occurred_at.length + "\n#{indention}#{occurred_at}"
21
23
  formatted_name = s.user.screen_name.rjust(justify + 1)
22
24
  formatted_msg = ''
23
- s.text.split(' ').in_groups_of(6, false) { |row| formatted_msg += row.join(' ') + "\n#{indention}" }
24
- say "#{CGI::unescapeHTML(formatted_name)}: #{CGI::unescapeHTML(formatted_msg)}#{formatted_time}\n\n"
25
+
26
+ s.text.split(' ').each_with_index do |word, idx|
27
+ formatted_msg += "#{word} "
28
+
29
+ sixth_word = idx != 0 && idx % 6 == 0
30
+ formatted_msg += "\n#{indention}" if sixth_word
31
+ end
32
+
33
+ say "#{CGI::unescapeHTML(formatted_name)}: #{CGI::unescapeHTML(formatted_msg)}\n#{indention}#{formatted_time}\n\n"
25
34
  end
35
+
26
36
  Configuration["#{options[:since_prefix]}_since_id"] = collection.first.id
27
37
  else
28
38
  say(options[:empty_msg])
@@ -35,7 +45,7 @@ module Twitter
35
45
 
36
46
  def current_account
37
47
  @current_account ||= Account.active
38
- raise Account.count == 0 ? NoAccounts : NoActiveAccount if @current_account.blank?
48
+ raise Account.count == 0 ? NoAccounts : NoActiveAccount if @current_account.nil?
39
49
  @current_account
40
50
  end
41
51
 
@@ -44,7 +54,7 @@ module Twitter
44
54
  if File.exists?(tweet_file)
45
55
  say '.twitter file found, attempting import...'
46
56
  config = YAML::load(File.read(tweet_file))
47
- if !config['email'].blank? && !config['password'].blank?
57
+ if !config['email'].nil? && !config['password'].nil?
48
58
  Account.add(:username => config['email'], :password => config['password'])
49
59
  say 'Account imported'
50
60
  block.call if block_given?
data/lib/twitter/cli.rb CHANGED
@@ -1,8 +1,10 @@
1
1
  require 'rubygems'
2
+
2
3
  gem 'main', '>= 2.8.2'
3
4
  gem 'highline', '>= 1.4.0'
4
- gem 'activerecord', '>= 2.1'
5
+ gem 'activerecord', '= 2.2.2'
5
6
  gem 'sqlite3-ruby', '>= 1.2.1'
7
+
6
8
  require 'main'
7
9
  require 'highline/import'
8
10
  require 'activerecord'
@@ -280,7 +282,7 @@ Main {
280
282
  do_work do
281
283
  timeline = params['timeline'].value == 'me' ? 'user' : params['timeline'].value
282
284
  options, since_id = {}, Configuration["#{timeline}_since_id"]
283
- options[:since_id] = since_id if !since_id.blank? && !params['force'].given?
285
+ options[:since_id] = since_id if !since_id.nil? && !params['force'].given?
284
286
  cache = [:friends, :user].include?(timeline)
285
287
  collection = base.timeline(timeline.to_sym, options)
286
288
  output_tweets(collection, {:cache => cache, :since_prefix => timeline})
@@ -297,7 +299,7 @@ Main {
297
299
  def run
298
300
  do_work do
299
301
  options, since_id = {}, Configuration["replies_since_id"]
300
- options[:since_id] = since_id if !since_id.blank? && !params['force'].given?
302
+ options[:since_id] = since_id if !since_id.nil? && !params['force'].given?
301
303
  collection = base.replies(options)
302
304
  output_tweets(collection, {:since_prefix => 'replies'})
303
305
  end
@@ -11,7 +11,7 @@ module Twitter
11
11
 
12
12
  def initialize(q=nil)
13
13
  clear
14
- containing(q) unless q.blank?
14
+ containing(q) if q && q.strip != ''
15
15
  end
16
16
 
17
17
  def from(user)
@@ -1,9 +1,3 @@
1
1
  module Twitter #:nodoc:
2
- module VERSION #:nodoc:
3
- MAJOR = 0
4
- MINOR = 3
5
- TINY = 8
6
-
7
- STRING = [MAJOR, MINOR, TINY].join('.')
8
- end
2
+ Version = '0.4.0'
9
3
  end
data/lib/twitter.rb CHANGED
@@ -1,6 +1,12 @@
1
- %w(uri cgi net/http yaml rubygems hpricot active_support).each { |f| require f }
1
+ require 'uri'
2
+ require 'cgi'
3
+ require 'net/http'
4
+ require 'yaml'
5
+ require 'time'
6
+ require 'rubygems'
7
+ require 'hpricot'
2
8
 
3
- $:.unshift(File.join(File.dirname(__FILE__)))
9
+ $:.unshift(File.dirname(__FILE__))
4
10
  require 'twitter/version'
5
11
  require 'twitter/easy_class_maker'
6
12
  require 'twitter/base'
@@ -8,6 +8,10 @@ def say(str)
8
8
  puts str
9
9
  end
10
10
 
11
+ class Tweet < OpenStruct
12
+ attr_accessor :id
13
+ end
14
+
11
15
  describe Twitter::CLI::Helpers do
12
16
  include Twitter::CLI::Helpers
13
17
 
@@ -15,15 +19,17 @@ describe Twitter::CLI::Helpers do
15
19
  before do
16
20
  Configuration.stub!(:[]=).and_return(true)
17
21
  @collection = [
18
- OpenStruct.new(
19
- :text => 'This is my long message that I want to see formatted ooooh so pretty with a few words on each line so it is easy to scan.',
22
+ Tweet.new(
23
+ :id => 1,
24
+ :text => 'This is my long message that I want to see formatted ooooh so pretty with a few words on each line so it is easy to scan.',
20
25
  :created_at => Time.mktime(2008, 5, 1, 10, 15, 00).strftime('%Y-%m-%d %H:%M:%S'),
21
- :user => OpenStruct.new(:screen_name => 'jnunemaker')
26
+ :user => OpenStruct.new(:screen_name => 'jnunemaker')
22
27
  ),
23
- OpenStruct.new(
24
- :text => 'This is my long message that I want to see formatted ooooh so pretty with a.',
28
+ Tweet.new(
29
+ :id => 2,
30
+ :text => 'This is my long message that I want to see formatted ooooh so pretty with a.',
25
31
  :created_at => Time.mktime(2008, 4, 1, 10, 15, 00).strftime('%Y-%m-%d %H:%M:%S'),
26
- :user => OpenStruct.new(:screen_name => 'danielmorrison')
32
+ :user => OpenStruct.new(:screen_name => 'danielmorrison')
27
33
  )
28
34
  ]
29
35
  end
data/twitter.gemspec CHANGED
@@ -2,20 +2,20 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{twitter}
5
- s.version = "0.3.8"
5
+ s.version = "0.4.0"
6
6
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["John Nunemaker"]
9
- s.date = %q{2008-12-13}
9
+ s.date = %q{2008-12-23}
10
10
  s.default_executable = %q{twitter}
11
11
  s.description = %q{a command line interface for twitter, also a library which wraps the twitter api}
12
12
  s.email = %q{nunemaker@gmail.com}
13
13
  s.executables = ["twitter"]
14
- s.extra_rdoc_files = ["History.txt", "License.txt", "Manifest.txt", "README.txt"]
15
- s.files = ["History.txt", "License.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/twitter", "config/hoe.rb", "config/requirements.rb", "examples/blocks.rb", "examples/direct_messages.rb", "examples/favorites.rb", "examples/friends_followers.rb", "examples/friendships.rb", "examples/identica_timeline.rb", "examples/location.rb", "examples/posting.rb", "examples/replies.rb", "examples/search.rb", "examples/sent_messages.rb", "examples/timeline.rb", "examples/twitter.rb", "examples/verify_credentials.rb", "lib/twitter.rb", "lib/twitter/base.rb", "lib/twitter/cli.rb", "lib/twitter/cli/config.rb", "lib/twitter/cli/helpers.rb", "lib/twitter/cli/migrations/20080722194500_create_accounts.rb", "lib/twitter/cli/migrations/20080722194508_create_tweets.rb", "lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb", "lib/twitter/cli/migrations/20080722214606_create_configurations.rb", "lib/twitter/cli/models/account.rb", "lib/twitter/cli/models/configuration.rb", "lib/twitter/cli/models/tweet.rb", "lib/twitter/direct_message.rb", "lib/twitter/easy_class_maker.rb", "lib/twitter/rate_limit_status.rb", "lib/twitter/search.rb", "lib/twitter/status.rb", "lib/twitter/user.rb", "lib/twitter/version.rb", "script/destroy", "script/generate", "script/txt2html", "setup.rb", "spec/base_spec.rb", "spec/cli/helper_spec.rb", "spec/direct_message_spec.rb", "spec/fixtures/followers.xml", "spec/fixtures/friends.xml", "spec/fixtures/friends_for.xml", "spec/fixtures/friends_lite.xml", "spec/fixtures/friends_timeline.xml", "spec/fixtures/public_timeline.xml", "spec/fixtures/rate_limit_status.xml", "spec/fixtures/search_results.json", "spec/fixtures/status.xml", "spec/fixtures/user.xml", "spec/fixtures/user_timeline.xml", "spec/search_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "spec/status_spec.rb", "spec/user_spec.rb", "tasks/deployment.rake", "tasks/environment.rake", "tasks/website.rake", "twitter.gemspec", "website/css/common.css", "website/images/terminal_output.png", "website/index.html"]
14
+ s.extra_rdoc_files = ["bin/twitter", "lib/twitter/base.rb", "lib/twitter/cli/config.rb", "lib/twitter/cli/helpers.rb", "lib/twitter/cli/migrations/20080722194500_create_accounts.rb", "lib/twitter/cli/migrations/20080722194508_create_tweets.rb", "lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb", "lib/twitter/cli/migrations/20080722214606_create_configurations.rb", "lib/twitter/cli/models/account.rb", "lib/twitter/cli/models/configuration.rb", "lib/twitter/cli/models/tweet.rb", "lib/twitter/cli.rb", "lib/twitter/direct_message.rb", "lib/twitter/easy_class_maker.rb", "lib/twitter/rate_limit_status.rb", "lib/twitter/search.rb", "lib/twitter/status.rb", "lib/twitter/user.rb", "lib/twitter/version.rb", "lib/twitter.rb", "README"]
15
+ s.files = ["bin/twitter", "examples/blocks.rb", "examples/direct_messages.rb", "examples/favorites.rb", "examples/friends_followers.rb", "examples/friendships.rb", "examples/identica_timeline.rb", "examples/location.rb", "examples/posting.rb", "examples/replies.rb", "examples/search.rb", "examples/sent_messages.rb", "examples/timeline.rb", "examples/twitter.rb", "examples/verify_credentials.rb", "History", "lib/twitter/base.rb", "lib/twitter/cli/config.rb", "lib/twitter/cli/helpers.rb", "lib/twitter/cli/migrations/20080722194500_create_accounts.rb", "lib/twitter/cli/migrations/20080722194508_create_tweets.rb", "lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb", "lib/twitter/cli/migrations/20080722214606_create_configurations.rb", "lib/twitter/cli/models/account.rb", "lib/twitter/cli/models/configuration.rb", "lib/twitter/cli/models/tweet.rb", "lib/twitter/cli.rb", "lib/twitter/direct_message.rb", "lib/twitter/easy_class_maker.rb", "lib/twitter/rate_limit_status.rb", "lib/twitter/search.rb", "lib/twitter/status.rb", "lib/twitter/user.rb", "lib/twitter/version.rb", "lib/twitter.rb", "License", "Manifest", "Rakefile", "README", "spec/base_spec.rb", "spec/cli/helper_spec.rb", "spec/direct_message_spec.rb", "spec/fixtures/followers.xml", "spec/fixtures/friends.xml", "spec/fixtures/friends_for.xml", "spec/fixtures/friends_lite.xml", "spec/fixtures/friends_timeline.xml", "spec/fixtures/public_timeline.xml", "spec/fixtures/rate_limit_status.xml", "spec/fixtures/search_results.json", "spec/fixtures/status.xml", "spec/fixtures/user.xml", "spec/fixtures/user_timeline.xml", "spec/search_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "spec/status_spec.rb", "spec/user_spec.rb", "website/css/common.css", "website/images/terminal_output.png", "website/index.html", "twitter.gemspec"]
16
16
  s.has_rdoc = true
17
17
  s.homepage = %q{http://twitter.rubyforge.org}
18
- s.rdoc_options = ["--main", "README.txt"]
18
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Twitter", "--main", "README"]
19
19
  s.require_paths = ["lib"]
20
20
  s.rubyforge_project = %q{twitter}
21
21
  s.rubygems_version = %q{1.3.1}
@@ -28,27 +28,18 @@ Gem::Specification.new do |s|
28
28
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
29
29
  s.add_runtime_dependency(%q<hpricot>, [">= 0.6"])
30
30
  s.add_runtime_dependency(%q<activesupport>, [">= 2.1"])
31
- s.add_runtime_dependency(%q<main>, [">= 2.8.2"])
32
- s.add_runtime_dependency(%q<highline>, [">= 1.4.0"])
33
- s.add_runtime_dependency(%q<activerecord>, [">= 2.1"])
34
- s.add_runtime_dependency(%q<httparty>, [">= 0.1.0"])
35
- s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
31
+ s.add_runtime_dependency(%q<httparty>, [">= 0.2.4"])
32
+ s.add_development_dependency(%q<echoe>, [">= 0"])
36
33
  else
37
34
  s.add_dependency(%q<hpricot>, [">= 0.6"])
38
35
  s.add_dependency(%q<activesupport>, [">= 2.1"])
39
- s.add_dependency(%q<main>, [">= 2.8.2"])
40
- s.add_dependency(%q<highline>, [">= 1.4.0"])
41
- s.add_dependency(%q<activerecord>, [">= 2.1"])
42
- s.add_dependency(%q<httparty>, [">= 0.1.0"])
43
- s.add_dependency(%q<hoe>, [">= 1.8.0"])
36
+ s.add_dependency(%q<httparty>, [">= 0.2.4"])
37
+ s.add_dependency(%q<echoe>, [">= 0"])
44
38
  end
45
39
  else
46
40
  s.add_dependency(%q<hpricot>, [">= 0.6"])
47
41
  s.add_dependency(%q<activesupport>, [">= 2.1"])
48
- s.add_dependency(%q<main>, [">= 2.8.2"])
49
- s.add_dependency(%q<highline>, [">= 1.4.0"])
50
- s.add_dependency(%q<activerecord>, [">= 2.1"])
51
- s.add_dependency(%q<httparty>, [">= 0.1.0"])
52
- s.add_dependency(%q<hoe>, [">= 1.8.0"])
42
+ s.add_dependency(%q<httparty>, [">= 0.2.4"])
43
+ s.add_dependency(%q<echoe>, [">= 0"])
53
44
  end
54
- end
45
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jnunemaker-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-13 00:00:00 -08:00
12
+ date: 2008-12-23 00:00:00 -08:00
13
13
  default_executable: twitter
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,33 +30,6 @@ dependencies:
30
30
  - !ruby/object:Gem::Version
31
31
  version: "2.1"
32
32
  version:
33
- - !ruby/object:Gem::Dependency
34
- name: main
35
- version_requirement:
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 2.8.2
41
- version:
42
- - !ruby/object:Gem::Dependency
43
- name: highline
44
- version_requirement:
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 1.4.0
50
- version:
51
- - !ruby/object:Gem::Dependency
52
- name: activerecord
53
- version_requirement:
54
- version_requirements: !ruby/object:Gem::Requirement
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- version: "2.1"
59
- version:
60
33
  - !ruby/object:Gem::Dependency
61
34
  name: httparty
62
35
  version_requirement:
@@ -64,16 +37,16 @@ dependencies:
64
37
  requirements:
65
38
  - - ">="
66
39
  - !ruby/object:Gem::Version
67
- version: 0.1.0
40
+ version: 0.2.4
68
41
  version:
69
42
  - !ruby/object:Gem::Dependency
70
- name: hoe
43
+ name: echoe
71
44
  version_requirement:
72
45
  version_requirements: !ruby/object:Gem::Requirement
73
46
  requirements:
74
47
  - - ">="
75
48
  - !ruby/object:Gem::Version
76
- version: 1.8.0
49
+ version: "0"
77
50
  version:
78
51
  description: a command line interface for twitter, also a library which wraps the twitter api
79
52
  email: nunemaker@gmail.com
@@ -82,19 +55,29 @@ executables:
82
55
  extensions: []
83
56
 
84
57
  extra_rdoc_files:
85
- - History.txt
86
- - License.txt
87
- - Manifest.txt
88
- - README.txt
58
+ - bin/twitter
59
+ - lib/twitter/base.rb
60
+ - lib/twitter/cli/config.rb
61
+ - lib/twitter/cli/helpers.rb
62
+ - lib/twitter/cli/migrations/20080722194500_create_accounts.rb
63
+ - lib/twitter/cli/migrations/20080722194508_create_tweets.rb
64
+ - lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb
65
+ - lib/twitter/cli/migrations/20080722214606_create_configurations.rb
66
+ - lib/twitter/cli/models/account.rb
67
+ - lib/twitter/cli/models/configuration.rb
68
+ - lib/twitter/cli/models/tweet.rb
69
+ - lib/twitter/cli.rb
70
+ - lib/twitter/direct_message.rb
71
+ - lib/twitter/easy_class_maker.rb
72
+ - lib/twitter/rate_limit_status.rb
73
+ - lib/twitter/search.rb
74
+ - lib/twitter/status.rb
75
+ - lib/twitter/user.rb
76
+ - lib/twitter/version.rb
77
+ - lib/twitter.rb
78
+ - README
89
79
  files:
90
- - History.txt
91
- - License.txt
92
- - Manifest.txt
93
- - README.txt
94
- - Rakefile
95
80
  - bin/twitter
96
- - config/hoe.rb
97
- - config/requirements.rb
98
81
  - examples/blocks.rb
99
82
  - examples/direct_messages.rb
100
83
  - examples/favorites.rb
@@ -109,9 +92,8 @@ files:
109
92
  - examples/timeline.rb
110
93
  - examples/twitter.rb
111
94
  - examples/verify_credentials.rb
112
- - lib/twitter.rb
95
+ - History
113
96
  - lib/twitter/base.rb
114
- - lib/twitter/cli.rb
115
97
  - lib/twitter/cli/config.rb
116
98
  - lib/twitter/cli/helpers.rb
117
99
  - lib/twitter/cli/migrations/20080722194500_create_accounts.rb
@@ -121,6 +103,7 @@ files:
121
103
  - lib/twitter/cli/models/account.rb
122
104
  - lib/twitter/cli/models/configuration.rb
123
105
  - lib/twitter/cli/models/tweet.rb
106
+ - lib/twitter/cli.rb
124
107
  - lib/twitter/direct_message.rb
125
108
  - lib/twitter/easy_class_maker.rb
126
109
  - lib/twitter/rate_limit_status.rb
@@ -128,10 +111,11 @@ files:
128
111
  - lib/twitter/status.rb
129
112
  - lib/twitter/user.rb
130
113
  - lib/twitter/version.rb
131
- - script/destroy
132
- - script/generate
133
- - script/txt2html
134
- - setup.rb
114
+ - lib/twitter.rb
115
+ - License
116
+ - Manifest
117
+ - Rakefile
118
+ - README
135
119
  - spec/base_spec.rb
136
120
  - spec/cli/helper_spec.rb
137
121
  - spec/direct_message_spec.rb
@@ -151,19 +135,20 @@ files:
151
135
  - spec/spec_helper.rb
152
136
  - spec/status_spec.rb
153
137
  - spec/user_spec.rb
154
- - tasks/deployment.rake
155
- - tasks/environment.rake
156
- - tasks/website.rake
157
- - twitter.gemspec
158
138
  - website/css/common.css
159
139
  - website/images/terminal_output.png
160
140
  - website/index.html
141
+ - twitter.gemspec
161
142
  has_rdoc: true
162
143
  homepage: http://twitter.rubyforge.org
163
144
  post_install_message:
164
145
  rdoc_options:
146
+ - --line-numbers
147
+ - --inline-source
148
+ - --title
149
+ - Twitter
165
150
  - --main
166
- - README.txt
151
+ - README
167
152
  require_paths:
168
153
  - lib
169
154
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -176,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
161
  requirements:
177
162
  - - ">="
178
163
  - !ruby/object:Gem::Version
179
- version: "0"
164
+ version: "1.2"
180
165
  version:
181
166
  requirements: []
182
167