forked from streamio/streamio-ffmpeg
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace jeweler with a simple dynamic gemspec. Also skip spec files i…
…n the published gem to make it a lot leaner for bundle caching etc.
- Loading branch information
Showing
5 changed files
with
33 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,23 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
|
||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
gem.name = "streamio-ffmpeg" | ||
gem.summary = %Q{Simple wrapper around ffmpeg to get metadata from movies and do transcoding} | ||
gem.description = %Q{Simple wrapper around ffmpeg to get metadata from movies and do transcoding} | ||
gem.email = "duztdruid@gmail.com" | ||
gem.homepage = "http://github.com/streamio/streamio-ffmpeg" | ||
gem.authors = ["David Backeus"] | ||
gem.add_development_dependency "rspec", "1.3.0" | ||
end | ||
Jeweler::GemcutterTasks.new | ||
rescue LoadError | ||
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" | ||
end | ||
$LOAD_PATH.unshift 'lib' | ||
|
||
require 'spec/rake/spectask' | ||
|
||
Spec::Rake::SpecTask.new(:spec) do |spec| | ||
spec.libs << 'lib' << 'spec' | ||
spec.spec_files = FileList['spec/**/*_spec.rb'] | ||
end | ||
|
||
Spec::Rake::SpecTask.new(:rcov) do |spec| | ||
spec.libs << 'lib' << 'spec' | ||
spec.pattern = 'spec/**/*_spec.rb' | ||
spec.rcov = true | ||
end | ||
|
||
task :spec => :check_dependencies | ||
|
||
task :default => :spec | ||
|
||
require 'rake/rdoctask' | ||
Rake::RDocTask.new do |rdoc| | ||
version = File.exist?('VERSION') ? File.read('VERSION') : "" | ||
desc "Push a new version to Rubygems" | ||
task :publish do | ||
require 'streamio-ffmpeg/version' | ||
|
||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = "streamio-ffmpeg #{version}" | ||
rdoc.rdoc_files.include('README*') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
sh "gem build streamio-ffmpeg.gemspec" | ||
sh "gem push streamio-ffmpeg-#{Magick::VERSION}.gem" | ||
sh "git tag v#{Magick::VERSION}" | ||
sh "git push origin v#{Magick::VERSION}" | ||
sh "git push origin master" | ||
sh "git clean -fd" | ||
exec "rake pages" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module FFMPEG | ||
VERSION = "0.7.3" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,23 @@ | ||
# Generated by jeweler | ||
# DO NOT EDIT THIS FILE DIRECTLY | ||
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command | ||
# -*- encoding: utf-8 -*- | ||
lib = File.expand_path('../lib/', __FILE__) | ||
$:.unshift lib unless $:.include?(lib) | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{streamio-ffmpeg} | ||
s.version = "0.7.2" | ||
require "ffmpeg/version" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["David Backeus"] | ||
s.date = %q{2010-08-11} | ||
s.description = %q{Simple wrapper around ffmpeg to get metadata from movies and do transcoding} | ||
s.email = %q{duztdruid@gmail.com} | ||
s.extra_rdoc_files = [ | ||
"LICENSE", | ||
"README.rdoc" | ||
] | ||
s.files = [ | ||
".document", | ||
".gitignore", | ||
"CHANGELOG", | ||
"LICENSE", | ||
"README.rdoc", | ||
"Rakefile", | ||
"VERSION", | ||
"lib/ffmpeg/encoding_options.rb", | ||
"lib/ffmpeg/movie.rb", | ||
"lib/ffmpeg/transcoder.rb", | ||
"lib/streamio-ffmpeg.rb", | ||
"spec/ffmpeg/encoding_options_spec.rb", | ||
"spec/ffmpeg/movie_spec.rb", | ||
"spec/ffmpeg/transcoder_spec.rb", | ||
"spec/fixtures/movies/awesome movie.mov", | ||
"spec/fixtures/movies/awesome_widescreen.mov", | ||
"spec/fixtures/movies/broken.mp4", | ||
"spec/fixtures/movies/weird_aspect.small.mpg", | ||
"spec/fixtures/sounds/napoleon.mp3", | ||
"spec/spec.opts", | ||
"spec/spec_helper.rb", | ||
"spec/streamio-ffmpeg_spec.rb", | ||
"streamio-ffmpeg.gemspec" | ||
] | ||
s.homepage = %q{http://github.com/streamio/streamio-ffmpeg} | ||
s.rdoc_options = ["--charset=UTF-8"] | ||
s.require_paths = ["lib"] | ||
s.rubygems_version = %q{1.3.7} | ||
s.summary = %q{Simple wrapper around ffmpeg to get metadata from movies and do transcoding} | ||
s.test_files = [ | ||
"spec/ffmpeg/encoding_options_spec.rb", | ||
"spec/ffmpeg/movie_spec.rb", | ||
"spec/ffmpeg/transcoder_spec.rb", | ||
"spec/spec_helper.rb", | ||
"spec/streamio-ffmpeg_spec.rb" | ||
] | ||
Gem::Specification.new do |s| | ||
s.name = "streamio-ffmpeg" | ||
s.version = FFMPEG::VERSION | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = ["David Backeus"] | ||
s.email = ["david@streamio.se"] | ||
s.homepage = "http://github.com/streamio/streamio-ffmpeg" | ||
s.summary = "Reads metadata and transcodes movies." | ||
s.description = "Simple yet powerful wrapper around ffmpeg to get metadata from movies and do transcoding." | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 3 | ||
s.required_rubygems_version = ">= 1.3.6" | ||
|
||
s.add_development_dependency(%q<rspec>, ["= 1.3.0"]) | ||
|
||
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then | ||
s.add_development_dependency(%q<rspec>, ["= 1.3.0"]) | ||
else | ||
s.add_dependency(%q<rspec>, ["= 1.3.0"]) | ||
end | ||
else | ||
s.add_dependency(%q<rspec>, ["= 1.3.0"]) | ||
end | ||
s.files = Dir.glob("lib/**/*") + %w(README.rdoc LICENSE CHANGELOG) | ||
s.require_path = 'lib' | ||
end | ||
|