subdb 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.textile +28 -1
  2. data/bin/subdb +0 -1
  3. data/lib/subdb/version.rb +1 -1
  4. metadata +3 -3
data/README.textile CHANGED
@@ -1 +1,28 @@
1
- Under development
1
+ h1. Ruby SubDB
2
+
3
+ This project aims to provide a simple API for accessing "SubBD":http://thesubdb.com/
4
+
5
+ h2. Installation
6
+
7
+ bc. gem install subdb
8
+
9
+ h2. Command Line Usage
10
+
11
+ You can simply use it by command line to sync your subtitles with SubDB, let's say you have a folder called @~/Movies@ where all your movies are placed, you can do simple:
12
+
13
+ bc. subdb ~/Movies
14
+
15
+ It will upload any subtitle that you already have to SubDB, and will try to download subtitles for movies that don't already have a local one.
16
+
17
+ h2. Library Usage
18
+
19
+ If you plan to use on your project, SubDB gem also provides a simple interface for it. You can figure it all with the following example:
20
+
21
+ bc.. require 'subdb'
22
+
23
+ file = Subdb.new("path_to_your_movie.mp4")
24
+ file.search # will retrieve a string with available languages (ex: "pt,en") or nil if don't have anyone
25
+ file.download(["en", "pt"]) # will download the subtitle for given language, it tries in order of array
26
+ file.upload("path_to_subtitle.str") # will upload a subtitle for this movie
27
+
28
+ p. It's only this :)
data/bin/subdb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "rubygems"
4
- require "bundler/setup"
5
4
 
6
5
  $: << File.expand_path("../../lib", __FILE__)
7
6
 
data/lib/subdb/version.rb CHANGED
@@ -20,5 +20,5 @@
20
20
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
21
 
22
22
  class Subdb
23
- VERSION = "0.1.0"
23
+ VERSION = "0.1.1"
24
24
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subdb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Wilker Lucio