public
Description: Wrapper for netflix api calls that incorporates oauth negotiation.
Homepage:
Clone URL: git://github.com/rares/netflix.git
reagent (author)
Sat Jan 03 21:26:32 -0800 2009
commit  bec89493f9fceb64823854bcc58d1d0d992ff75b
tree    cc2bd78cd3c196608fca904b74a6403a91ffce7a
parent  d299931d58bbba64868d5a72355ac36b2af545f0
netflix / Rakefile
100644 37 lines (31 sloc) 1.171 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'rubygems'
require 'rake/gempackagetask'
require 'spec/rake/spectask'
 
require 'lib/netflix/version'
 
task :default => :spec
 
spec = Gem::Specification.new do |s|
  s.name = "netflix"
  s.version = Netflix::Version.to_s
  s.has_rdoc = true
  s.extra_rdoc_files = %w(README.markdown)
  s.summary = "This gem handles some of the complexity in dealing with the netflix api (and OAuth in turn)."
  s.author = "Rob Ares"
  s.email = "rob.ares@gmail.com"
  s.homepage = "http://www.robares.com"
  s.files = %w(README.markdown Rakefile) + Dir.glob("{lib,test}/**/*")
  s.add_dependency("rares-oauth", ">=0.2.7")
end
 
Rake::GemPackageTask.new(spec) do |pkg|
  pkg.gem_spec = spec
end
 
Spec::Rake::SpecTask.new(:spec) do |s|
  s.spec_files = FileList[File.dirname(__FILE__) + '/spec/*_spec.rb']
  s.verbose = true
  s.spec_opts = ["--color", "--format specdoc", "--diff"]
end
 
desc 'Generate the gemspec to serve this Gem from Github'
task :github do
  file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
  File.open(file, 'w') {|f| f << spec.to_ruby }
  puts "Created gemspec: #{file}"
end