Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nofxx committed Oct 4, 2010
1 parent b21afff commit e16a9ef
Show file tree
Hide file tree
Showing 7 changed files with 155 additions and 95 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
.DS_Store
doc
*~
pkg/*
41 changes: 0 additions & 41 deletions README.markdown

This file was deleted.

41 changes: 18 additions & 23 deletions README.txt
@@ -1,33 +1,21 @@
__ __
/ ) / , / /
__ __
/ ) / , / /
----\--------------/__--_/_------_/_---/----__-----/---_/_-
\ / / / ) / / / / /___) / /
\ / / / ) / / / / /___) / /
_(____/___(___(__(___/_(_ __/___(_ __/___(___ _ _/_ __(_ __


Ruby tool to download, create, convert and fix subtitles.


== FEATURES:

* To and from: SRT, SUB, XML(TT), YML, MPL2, RSB and ASS.
* Download from opensubtitles.org
* Automatic Download from opensubtitles.org
* Fixes delays. (SrtResync)
* Compatibility with "sube" (http://github.com/vic/sube)


== TODO:

Please visit:

* http://nofxx.lighthouseapp.com/projects/17299-subtitle_it


== REQUIREMENTS:

* hpricot


== SYNOPSIS:

Bash tool:
Expand All @@ -39,10 +27,10 @@ Convert a srt to sub:

Add a delay of 1 minute:
subtitle_it -d 60 in.srt

Create a template
subtitle_it unexistent.file
subtitle_it unexistent.file


== INSTALL:

Expand All @@ -59,18 +47,18 @@ It`s just a easy way, proof of concept to edit subtitles. Here is what it looks

MM:SS => MM:SS or N == TEXT | NEWLINE

Create a template to check it out.
Create a template to check it out.


== DEV:

To run tests:

rake spec or autotest

Documentation => doc
Subtitle examples => spec/fixtures


== SUBTITLE EDITORS:

Expand All @@ -87,6 +75,13 @@ Aegisub: http://www.malakith.net/aegiwiki/Main_Page
* Marcin (tiraeth) Chwedziak - Sub format first implementation.


== TODO:

Please visit:

* http://github.com/nofxx/subtitle_it


== LICENSE:

(The MIT License)
Expand Down
23 changes: 19 additions & 4 deletions Rakefile
@@ -1,4 +1,19 @@
require 'config/requirements'
require 'config/hoe' # setup Hoe + all gem configuration

Dir['tasks/**/*.rake'].each { |rake| load rake }
require 'rubygems'
require 'rake'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "subtitle_it"
gem.summary = "Download, edit and create subtitles."
gem.description = "Download, edit and create subtitles. Supports various formats."
gem.email = "x@nofxx.com"
gem.homepage = "http://github.com/nofxx/subtitle_it"
gem.authors = ["Marcos Piccinini"]
gem.add_development_dependency "rspec", ">= 1.2.9"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
1 change: 1 addition & 0 deletions VERSION
@@ -0,0 +1 @@
1.0.0
6 changes: 3 additions & 3 deletions lib/subtitle_it/version.rb
@@ -1,8 +1,8 @@
module SubtitleIt
module VERSION #:nodoc:
MAJOR = 0
MINOR = 7
TINY = 7
MAJOR = 1
MINOR = 0
TINY = 0

STRING = [MAJOR, MINOR, TINY].join('.')
end
Expand Down
137 changes: 113 additions & 24 deletions subtitle_it.gemspec
@@ -1,41 +1,130 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{subtitle_it}
s.version = "0.7.7"
s.version = "1.0.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Marcos Piccinini", "Warlley Rezende", "Giovanni Rapagnani"]
s.date = %q{2008-09-20}
s.authors = ["Marcos Piccinini"]
s.date = %q{2010-10-04}
s.default_executable = %q{subtitle_it}
s.description = %q{description of gem}
s.email = ["x@nofxx.com"]
s.description = %q{Download, edit and create subtitles. Supports various formats.}
s.email = %q{x@nofxx.com}
s.executables = ["subtitle_it"]
s.extra_rdoc_files = ["History.txt", "License.txt", "Manifest.txt", "README.txt", "README.markdown"]
s.files = [".autotest", "History.txt", "License.txt", "Manifest.txt", "README.markdown", "README.txt", "Rakefile", "bin/subtitle_it", "config/hoe.rb", "config/requirements.rb", "lib/subtitle_it.rb", "lib/subtitle_it/bin.rb", "lib/subtitle_it/fixes.rb", "lib/subtitle_it/formats/ass.rb", "lib/subtitle_it/formats/mpl.rb", "lib/subtitle_it/formats/rsb.rb", "lib/subtitle_it/formats/srt.rb", "lib/subtitle_it/formats/sub.rb", "lib/subtitle_it/formats/xml.rb", "lib/subtitle_it/formats/yml.rb", "lib/subtitle_it/generator.rb", "lib/subtitle_it/languages.rb", "lib/subtitle_it/movie.rb", "lib/subtitle_it/movie_hasher.rb", "lib/subtitle_it/platform_endl.rb", "lib/subtitle_it/subdown.rb", "lib/subtitle_it/subline.rb", "lib/subtitle_it/substyle.rb", "lib/subtitle_it/subtime.rb", "lib/subtitle_it/subtitle.rb", "lib/subtitle_it/version.rb", "script/console", "script/destroy", "script/generate", "script/txt2html", "setup.rb", "spec/fixtures/godfather.srt", "spec/fixtures/huge.ass", "spec/fixtures/movie.xml", "spec/fixtures/movie.yml", "spec/fixtures/pseudo.rsb", "spec/fixtures/pulpfiction.sub", "spec/fixtures/puplfiction.mpl", "spec/fixtures/sincity.yml", "spec/spec.opts", "spec/spec_helper.rb", "spec/subtitle_it/bin_spec.rb", "spec/subtitle_it/fixes_spec.rb", "spec/subtitle_it/formats/ass_spec.rb", "spec/subtitle_it/formats/mpl_spec.rb", "spec/subtitle_it/formats/rsb_spec.rb", "spec/subtitle_it/formats/srt_spec.rb", "spec/subtitle_it/formats/sub_spec.rb", "spec/subtitle_it/formats/xml_spec.rb", "spec/subtitle_it/formats/yml_spec.rb", "spec/subtitle_it/generator_spec.rb", "spec/subtitle_it/movie_hasher_spec.rb", "spec/subtitle_it/movie_spec.rb", "spec/subtitle_it/subdown_spec.rb", "spec/subtitle_it/subline_spec.rb", "spec/subtitle_it/substyle_spec.rb", "spec/subtitle_it/subtime_spec.rb", "spec/subtitle_it/subtitle_spec.rb", "spec/subtitle_it_spec.rb", "subtitle_it.gemspec", "tasks/deployment.rake", "tasks/environment.rake", "tasks/rspec.rake"]
s.has_rdoc = true
s.extra_rdoc_files = [
"README.txt"
]
s.files = [
".gitignore",
"History.txt",
"License.txt",
"Manifest.txt",
"README.txt",
"Rakefile",
"VERSION",
"bin/subtitle_it",
"config/hoe.rb",
"config/requirements.rb",
"lib/subtitle_it.rb",
"lib/subtitle_it/bin.rb",
"lib/subtitle_it/fixes.rb",
"lib/subtitle_it/formats/ass.rb",
"lib/subtitle_it/formats/mpl.rb",
"lib/subtitle_it/formats/rsb.rb",
"lib/subtitle_it/formats/srt.rb",
"lib/subtitle_it/formats/sub.rb",
"lib/subtitle_it/formats/xml.rb",
"lib/subtitle_it/formats/yml.rb",
"lib/subtitle_it/generator.rb",
"lib/subtitle_it/languages.rb",
"lib/subtitle_it/movie.rb",
"lib/subtitle_it/movie_hasher.rb",
"lib/subtitle_it/platform_endl.rb",
"lib/subtitle_it/subdown.rb",
"lib/subtitle_it/subline.rb",
"lib/subtitle_it/substyle.rb",
"lib/subtitle_it/subtime.rb",
"lib/subtitle_it/subtitle.rb",
"lib/subtitle_it/version.rb",
"script/console",
"script/destroy",
"script/generate",
"script/txt2html",
"setup.rb",
"spec/fixtures/godfather.srt",
"spec/fixtures/huge.ass",
"spec/fixtures/movie.xml",
"spec/fixtures/movie.yml",
"spec/fixtures/pseudo.rsb",
"spec/fixtures/pulpfiction.sub",
"spec/fixtures/puplfiction.mpl",
"spec/fixtures/sincity.yml",
"spec/spec.opts",
"spec/spec_helper.rb",
"spec/subtitle_it/bin_spec.rb",
"spec/subtitle_it/fixes_spec.rb",
"spec/subtitle_it/formats/ass_spec.rb",
"spec/subtitle_it/formats/mpl_spec.rb",
"spec/subtitle_it/formats/rsb_spec.rb",
"spec/subtitle_it/formats/srt_spec.rb",
"spec/subtitle_it/formats/sub_spec.rb",
"spec/subtitle_it/formats/xml_spec.rb",
"spec/subtitle_it/formats/yml_spec.rb",
"spec/subtitle_it/generator_spec.rb",
"spec/subtitle_it/movie_hasher_spec.rb",
"spec/subtitle_it/movie_spec.rb",
"spec/subtitle_it/subdown_spec.rb",
"spec/subtitle_it/subline_spec.rb",
"spec/subtitle_it/substyle_spec.rb",
"spec/subtitle_it/subtime_spec.rb",
"spec/subtitle_it/subtitle_spec.rb",
"spec/subtitle_it_spec.rb",
"subtitle_it.gemspec",
"tasks/deployment.rake",
"tasks/environment.rake",
"tasks/rspec.rake"
]
s.homepage = %q{http://github.com/nofxx/subtitle_it}
s.post_install_message = %q{
For more information on subtitle_it, see http://github.com/nofxx/subtitle_it
}
s.rdoc_options = ["--main", "README.txt"]
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{subtitle_it}
s.rubygems_version = %q{1.2.0}
s.rubygems_version = %q{1.3.7}
s.summary = %q{Download, edit and create subtitles.}
s.test_files = [
"spec/subtitle_it_spec.rb",
"spec/spec_helper.rb",
"spec/subtitle_it/movie_hasher_spec.rb",
"spec/subtitle_it/subtitle_spec.rb",
"spec/subtitle_it/fixes_spec.rb",
"spec/subtitle_it/substyle_spec.rb",
"spec/subtitle_it/formats/rsb_spec.rb",
"spec/subtitle_it/formats/sub_spec.rb",
"spec/subtitle_it/formats/yml_spec.rb",
"spec/subtitle_it/formats/ass_spec.rb",
"spec/subtitle_it/formats/mpl_spec.rb",
"spec/subtitle_it/formats/xml_spec.rb",
"spec/subtitle_it/formats/srt_spec.rb",
"spec/subtitle_it/subdown_spec.rb",
"spec/subtitle_it/bin_spec.rb",
"spec/subtitle_it/subline_spec.rb",
"spec/subtitle_it/subtime_spec.rb",
"spec/subtitle_it/generator_spec.rb",
"spec/subtitle_it/movie_spec.rb"
]

s.summary = %q{Ruby tool to work with subtitle files}

s.add_dependency(%q<hpricot>, [">= 0.6"])

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 2
s.specification_version = 3

if current_version >= 3 then
s.add_development_dependency(%q<hoe>, [">= 1.7.0"])
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
else
s.add_dependency(%q<hoe>, [">= 1.7.0"])
s.add_dependency(%q<rspec>, [">= 1.2.9"])
end
else
s.add_dependency(%q<hoe>, [">= 1.7.0"])
s.add_dependency(%q<rspec>, [">= 1.2.9"])
end
end

0 comments on commit e16a9ef

Please sign in to comment.