video_thumbnailer 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40d212a14ca07fc157ae317f09003b54a544a3ec
4
- data.tar.gz: 33492b0632ebc89eab0c341d47ed7acfc1616001
3
+ metadata.gz: 290d2a64ae933defeb6f16be891ad150e7dc7b23
4
+ data.tar.gz: d846fab778c2cfb593ca5c80da4ac5111d2bb494
5
5
  SHA512:
6
- metadata.gz: f21b86920a0ed48184052dbfc6dd7dd477a860c49103c58b05a4b6887e83486393514bfd9b60b4c1659b3bde00540a339b3cacb15457f9035b17d69c8b6bee3a
7
- data.tar.gz: 2f9364f60f71897734c78aa466c0b0f3a00227fe1d60a71a546b4c74c99e47944434a07a168f9d0a24e67db7e8d19a197b1323c78bdd0a5304d3da2125c662f9
6
+ metadata.gz: c4e3d073072269ffab651960a12f913c9ff27825884ea8b60152556ad7a5f86793016648af3b82650ec829dec70925d071ce958d0884d79f8ab95faf42d47017
7
+ data.tar.gz: 531ceaf629dc1a81ca56f9d260b0df4ed96f9767141e2a50f92e1dc0f2f4f8d7546a15876dc2f256b8ca4931ed238ad1afc8a091c62e7691df12e0bece2955af
data/README.md CHANGED
@@ -25,11 +25,12 @@ The options are passed as hash to this function, can be also empty.
25
25
 
26
26
  The options are:
27
27
 
28
- * size - The height x width of the thumbnail to be generated, by default will take the same size of that of the video.
29
- * file_extension - Format of the file to be saved, by default the form at will be jpeg.
30
- * rotate - Orientation of the thumbnail image generated(Can be 90/180/270).
31
- * time_frame - The time in the video at which the thumbnail must be generated.
32
- * quality - Quality of the file to be saved.
28
+ * size - The height x width of the thumbnail to be generated, by default will take the same size of that of the video, type is string.
29
+ * file_extension - Format of the file to be saved, by default the format at will be "jpeg", type is string.
30
+ * rotate - Orientation of the thumbnail image generated(Can be 90/180/270), type is integer.
31
+ * quality - Quality of the file to be saved, type is integer.
32
+ * time_frame - The time in the video at which the thumbnail must be generated, type is string.
33
+
33
34
 
34
35
  ## Examples
35
36
 
@@ -37,14 +38,14 @@ Here's a working example:
37
38
 
38
39
  In your Rails app/uploaders/video_uploader.rb:
39
40
 
40
- ```
41
+ ```ruby
41
42
  class VideoUploader < CarrierWave::Uploader::Base
42
43
  include CarrierWave::RMagick
43
44
  include VideoThumbnailer
44
45
  storage :file
45
46
 
46
47
  version :thumb do
47
- process generate_thumb:[{size:"200 x 200",:quality => "5", :time_frame => "00:0:04", :file_extension => "jpeg", :rotate => 180 }]
48
+ process generate_thumb:[{size:"200 x 200",:quality => 5, :time_frame => "00:0:04", :file_extension => "jpeg", :rotate => 180 }]
48
49
  def full_filename for_file
49
50
  png_name for_file, version_name, "jpeg"
50
51
  end
@@ -1,3 +1,3 @@
1
1
  module VideoThumbnailer
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -5,11 +5,11 @@ require 'video_thumbnailer/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "video_thumbnailer"
7
7
  spec.version = VideoThumbnailer::VERSION
8
- spec.authors = ["teena, radhika"]
8
+ spec.authors = ["shamith, radhika, teena"]
9
9
  spec.email = ["teena@qburst.com"]
10
- spec.summary = ""
11
- spec.description = ""
12
- spec.files = `git ls-files`.split("\n") # ["lib/video_thumbnailer/version.rb", "lib/video_thumbnailer/logger.rb", "lib/video_thumbnailer/options.rb", "lib/video_thumbnailer.rb","lib/video_thumbnailer/generate_command.rb"]
10
+ spec.summary = "Generates a thumbnail for the input video."
11
+ spec.description = "Upload video in your Ruby applications and generate a thumbnail according to the valid optios provided."
12
+ spec.files = `git ls-files`.split("\n")
13
13
  spec.bindir = "exe"
14
14
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
15
15
  spec.require_paths = ["lib"]
@@ -17,4 +17,4 @@ Gem::Specification.new do |spec|
17
17
  spec.add_development_dependency "rspec"," ~> 2.4"
18
18
  spec.add_development_dependency "bundler", "~> 1.10"
19
19
  spec.add_development_dependency "rake", "~> 10.0"
20
- end
20
+ end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: video_thumbnailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - teena, radhika
7
+ - shamith, radhika, teena
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
@@ -66,7 +66,8 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.0'
69
- description: ''
69
+ description: Upload video in your Ruby applications and generate a thumbnail according
70
+ to the valid optios provided.
70
71
  email:
71
72
  - teena@qburst.com
72
73
  executables: []
@@ -115,5 +116,5 @@ rubyforge_project:
115
116
  rubygems_version: 2.4.7
116
117
  signing_key:
117
118
  specification_version: 4
118
- summary: ''
119
+ summary: Generates a thumbnail for the input video.
119
120
  test_files: []