Skip to content

Commit

Permalink
Replace jeweler with a simple dynamic gemspec. Also skip spec files i…
Browse files Browse the repository at this point in the history
…n the published gem to make it a lot leaner for bundle caching etc.
  • Loading branch information
dbackeus committed Aug 26, 2010
1 parent 84e8a6e commit 25fea39
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 100 deletions.
45 changes: 12 additions & 33 deletions Rakefile
@@ -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
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

3 changes: 3 additions & 0 deletions lib/ffmpeg/version.rb
@@ -0,0 +1,3 @@
module FFMPEG
VERSION = "0.7.3"
end
3 changes: 1 addition & 2 deletions lib/streamio-ffmpeg.rb
Expand Up @@ -2,13 +2,12 @@

require 'logger'

require 'ffmpeg/version'
require 'ffmpeg/movie'
require 'ffmpeg/transcoder'
require 'ffmpeg/encoding_options'

module FFMPEG
VERSION = '0.5.0'

# FFMPEG logs information about its progress when it's transcoding.
# Jack in your own logger through this method if you wish to.
#
Expand Down
81 changes: 17 additions & 64 deletions streamio-ffmpeg.gemspec
@@ -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

0 comments on commit 25fea39

Please sign in to comment.