gifr 1.0.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 +7 -0
- data/.gitignore +18 -0
- data/.rspec +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +46 -0
- data/Rakefile +9 -0
- data/bin/gifr +67 -0
- data/features/features.feature +30 -0
- data/features/support.rb +8 -0
- data/gifr.gemspec +28 -0
- data/lib/gifr.rb +5 -0
- data/lib/gifr/gif_creator.rb +15 -0
- data/lib/gifr/movie.rb +23 -0
- data/lib/gifr/movie_screenshoter.rb +19 -0
- data/lib/gifr/options_validator.rb +16 -0
- data/lib/gifr/version.rb +3 -0
- data/spec/fixtures/example1.mp4 +0 -0
- data/spec/fixtures/example2.mp4 +0 -0
- data/spec/fixtures/example3.mp4 +0 -0
- data/spec/lib/gif_creator_spec.rb +32 -0
- data/spec/lib/movie_screenshoter_spec.rb +29 -0
- data/spec/lib/movie_spec.rb +46 -0
- data/spec/lib/options_validator_spec.rb +40 -0
- data/spec/spec_helper.rb +2 -0
- metadata +163 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1e5a3422ff309ddf69dac0f25368af0b2ce6afee
|
4
|
+
data.tar.gz: c95586afe2e9f4307f11687cf541212814204d32
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8ba8006121fbd9fbfecf5009838c914972cf54f1344ced265bb70e05821dfcafed4c77fdd042b08d9e971a6bbe10340d4b70ace0f01533b8a1b26a8267b9c76a
|
7
|
+
data.tar.gz: 6131ef36791326f8d406b16e3d7d703a2d67ad3b2e9e68da51d781205a9ad2826a8b6fb7614a8c10fa219b5af551c30c3fbe058e1eb99f8eaa22d85130458d18
|
data/.gitignore
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Michał Darda
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
## Gifr
|
2
|
+
|
3
|
+
Command line tool to easily create animated gifs from movies.
|
4
|
+
|
5
|
+
## Requirements
|
6
|
+
|
7
|
+
On Ubuntu (14.04), please install
|
8
|
+
|
9
|
+
$ sudo add-apt-repository ppa:samrog131/ppa
|
10
|
+
|
11
|
+
$ sudo apt-get update
|
12
|
+
|
13
|
+
$ sudo apt-get install ffmpeg-real
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
Type:
|
18
|
+
|
19
|
+
$ gem install gifr
|
20
|
+
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
$ gifr video.mp4 -s 00:00:00 -t 7 output.gif
|
25
|
+
|
26
|
+
Available options
|
27
|
+
|
28
|
+
`-s or --start` moment int movie to start in format `hh:mm:ss`
|
29
|
+
`-t or --time` how long should animated gif last
|
30
|
+
|
31
|
+
You can optionally provide also:
|
32
|
+
`-d or --delay` the speed of gif's animation, default is 20
|
33
|
+
|
34
|
+
## Contributing
|
35
|
+
|
36
|
+
1. Fork it (http://github.com/michaldarda/gifr/fork)
|
37
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
38
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
39
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
40
|
+
5. Create new Pull Request
|
41
|
+
|
42
|
+
When submiting your PR please make sure you've added tests and they are passing.
|
43
|
+
|
44
|
+
## License
|
45
|
+
|
46
|
+
Copyright © 2014 Michal Darda <michaldarda@gmail.com>
|
data/Rakefile
ADDED
data/bin/gifr
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require_relative '../lib/gifr'
|
4
|
+
require 'optparse'
|
5
|
+
|
6
|
+
options = {}
|
7
|
+
parser = OptionParser.new do |opts|
|
8
|
+
opts.banner = %q{
|
9
|
+
Usage:
|
10
|
+
$ gifr video.mp4 -s 00:00:00 -t 7 output.gif
|
11
|
+
|
12
|
+
Available options
|
13
|
+
|
14
|
+
`-s or --start` moment int movie to start in format `hh:mm:ss`
|
15
|
+
`-t or --time` how long should animated gif last
|
16
|
+
|
17
|
+
You can optionally provide also:
|
18
|
+
`-d or --delay` the speed of gif's animation, default is 20
|
19
|
+
}
|
20
|
+
|
21
|
+
opts.on("-h", "--help", "Show usage informations") do |v|
|
22
|
+
puts opts.banner
|
23
|
+
exit(0)
|
24
|
+
end
|
25
|
+
|
26
|
+
opts.on("-s n", "--start=n", "") do |v|
|
27
|
+
options[:start] = v
|
28
|
+
end
|
29
|
+
|
30
|
+
opts.on("-t n", "--time=n", "") do |v|
|
31
|
+
options[:time] = v
|
32
|
+
end
|
33
|
+
|
34
|
+
opts.on("-d n", "--delay=n", "") do |v|
|
35
|
+
options[:delay] = v
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
parser.parse!
|
40
|
+
|
41
|
+
filename = ARGV.shift
|
42
|
+
output = ARGV.shift || "#{filename}.gif"
|
43
|
+
|
44
|
+
options.merge!(filename: filename, output: output)
|
45
|
+
|
46
|
+
errors = OptionsValidator.new(options).validate!
|
47
|
+
|
48
|
+
if errors.any?
|
49
|
+
puts parser.banner
|
50
|
+
puts errors
|
51
|
+
exit(1)
|
52
|
+
end
|
53
|
+
|
54
|
+
begin
|
55
|
+
movie = Movie.new(options)
|
56
|
+
rescue ArgumentError
|
57
|
+
puts "Given file does not exists"
|
58
|
+
exit(1)
|
59
|
+
end
|
60
|
+
|
61
|
+
movie_screenshoter = MovieScreenshoter.new(movie, options)
|
62
|
+
|
63
|
+
movie_screenshoter.take_screenshots!
|
64
|
+
|
65
|
+
gif_creator = GifCreator.new(movie_screenshoter.screenshots, options)
|
66
|
+
|
67
|
+
gif_creator.make_gif!
|
@@ -0,0 +1,30 @@
|
|
1
|
+
Feature: Invoking program with different parameters
|
2
|
+
Scenario: Invoking with correct parameters
|
3
|
+
When I run `gifr ../../spec/fixtures/example1.mp4 -s 00:00:00 -t 7`
|
4
|
+
Then a file named "../../spec/fixtures/example1.mp4.gif" should exist
|
5
|
+
And the exit status should be 0
|
6
|
+
|
7
|
+
Scenario: Invoking with custom output file path
|
8
|
+
When I run `gifr ../../spec/fixtures/example1.mp4 -s 00:00:00 -t 7 output.gif`
|
9
|
+
Then a file named "output.gif" should exist
|
10
|
+
And the exit status should be 0
|
11
|
+
|
12
|
+
Scenario: Invoking with custom output file path and additional delay parameter
|
13
|
+
When I run `gifr ../../spec/fixtures/example1.mp4 -s 00:00:00 -t 7 -d 20 output.gif`
|
14
|
+
Then a file named "output.gif" should exist
|
15
|
+
And the exit status should be 0
|
16
|
+
|
17
|
+
Scenario: Invoking with not existing file
|
18
|
+
When I run `gifr ../../spec/fixtures/notexistingfile.mp4 -s 00:00:00 -t 7`
|
19
|
+
Then the exit status should be 1
|
20
|
+
And the stdout should contain "Given file does not exists"
|
21
|
+
|
22
|
+
Scenario: Viewing help screen
|
23
|
+
When I successfully run `gifr -h`
|
24
|
+
Then the exit status should be 0
|
25
|
+
And the stdout should contain "Usage:"
|
26
|
+
|
27
|
+
Scenario: Invoking with no parameters at all
|
28
|
+
When I run `gifr`
|
29
|
+
Then the exit status should be 1
|
30
|
+
And the stdout should contain "Usage:"
|
data/features/support.rb
ADDED
data/gifr.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'gifr/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "gifr"
|
8
|
+
spec.version = Gifr::VERSION
|
9
|
+
spec.authors = ["Michał Darda"]
|
10
|
+
spec.email = ["michaldarda@gmail.com"]
|
11
|
+
spec.summary = %q{Simple solution to create gifs from short movies.}
|
12
|
+
spec.description = %q{Simple solution to create gifs from short movies.}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "rspec", "~> 3.0.0beta2"
|
24
|
+
spec.add_development_dependency "aruba"
|
25
|
+
spec.add_development_dependency "simplecov"
|
26
|
+
|
27
|
+
spec.add_dependency "rmagick"
|
28
|
+
end
|
data/lib/gifr.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'RMagick'
|
2
|
+
include Magick
|
3
|
+
|
4
|
+
class GifCreator
|
5
|
+
def initialize(gifs = [], options = {})
|
6
|
+
@gifs = ImageList.new(*gifs)
|
7
|
+
@output = options.fetch(:output)
|
8
|
+
@delay = options.fetch(:delay) { 20 }
|
9
|
+
end
|
10
|
+
|
11
|
+
def make_gif!
|
12
|
+
@gifs.delay = @delay
|
13
|
+
@gifs.write(@output)
|
14
|
+
end
|
15
|
+
end
|
data/lib/gifr/movie.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
class Movie
|
2
|
+
def initialize(options = {})
|
3
|
+
@path = options.fetch(:filename)
|
4
|
+
|
5
|
+
raise ArgumentError unless File.exists?(@path)
|
6
|
+
end
|
7
|
+
|
8
|
+
def length
|
9
|
+
@length ||= Integer(%x{ ffprobe -v quiet -show_entries format=duration #{to_s} | grep duration }.match(/(duration=)(\d+)(.\d+)/)[2])
|
10
|
+
end
|
11
|
+
|
12
|
+
def to_s
|
13
|
+
"#{to_path}"
|
14
|
+
end
|
15
|
+
|
16
|
+
def to_path
|
17
|
+
Pathname.new(@path)
|
18
|
+
end
|
19
|
+
|
20
|
+
def filename
|
21
|
+
to_path.basename
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
|
3
|
+
class MovieScreenshoter
|
4
|
+
attr_reader :screenshots
|
5
|
+
|
6
|
+
def initialize(movie, options = {})
|
7
|
+
@movie = movie
|
8
|
+
@start = options.fetch(:start)
|
9
|
+
@duration = Integer(options.fetch(:time))
|
10
|
+
end
|
11
|
+
|
12
|
+
def take_screenshots!
|
13
|
+
%x{ ffmpeg -v quiet -ss #{@start} -i #{@movie} -f image2 -vf fps=fps=1 /tmp/gifr_#{@movie.filename}_%d.png }
|
14
|
+
|
15
|
+
@screenshots = @duration.times.map do |i|
|
16
|
+
"/tmp/gifr_#{@movie.filename}_#{i+1}.png"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class OptionsValidator
|
2
|
+
attr_reader :errors
|
3
|
+
|
4
|
+
def initialize(options)
|
5
|
+
@options = options
|
6
|
+
@errors = {}
|
7
|
+
end
|
8
|
+
|
9
|
+
def validate!
|
10
|
+
@options.fetch(:start) { @errors[:start] = "You must provide start" }
|
11
|
+
@options.fetch(:time) { @errors[:time] = "You must provide time" }
|
12
|
+
@options.fetch(:filename) { @errors[:filename] = "You must provide filename" }
|
13
|
+
|
14
|
+
@errors
|
15
|
+
end
|
16
|
+
end
|
data/lib/gifr/version.rb
ADDED
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require_relative '../spec_helper'
|
2
|
+
require_relative '../../lib/gifr/gif_creator'
|
3
|
+
|
4
|
+
describe GifCreator do
|
5
|
+
it 'makes a gif from selected videos' do
|
6
|
+
movie = Movie.new(filename: "spec/fixtures/example1.mp4")
|
7
|
+
movie_screenshoter = MovieScreenshoter.new(movie, start: "00:00:00", time: "6")
|
8
|
+
|
9
|
+
movie_screenshoter.take_screenshots!
|
10
|
+
screenshots = movie_screenshoter.screenshots
|
11
|
+
|
12
|
+
gif_creator = GifCreator.new(screenshots, { output: "video.gif" })
|
13
|
+
gif_creator.make_gif!
|
14
|
+
|
15
|
+
expect(File.exists?("video.gif")).to eq true
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'makes a gif from selected videos' do
|
19
|
+
movie = Movie.new(filename: "spec/fixtures/example1.mp4")
|
20
|
+
movie_screenshoter = MovieScreenshoter.new(movie, start: "00:00:00", time: "6")
|
21
|
+
|
22
|
+
movie_screenshoter.take_screenshots!
|
23
|
+
screenshots = movie_screenshoter.screenshots
|
24
|
+
|
25
|
+
output = "spec/fixtures/video.gif"
|
26
|
+
|
27
|
+
gif_creator = GifCreator.new(screenshots, { output: output })
|
28
|
+
gif_creator.make_gif!
|
29
|
+
|
30
|
+
expect(File.exists?(output)).to eq true
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require_relative '../spec_helper'
|
2
|
+
require_relative '../../lib/gifr/movie_screenshoter'
|
3
|
+
|
4
|
+
describe MovieScreenshoter do
|
5
|
+
it 'takes a screenshots of a movie every 1 second for selected \
|
6
|
+
time period and start time and returns an array of created \
|
7
|
+
screenshots' do
|
8
|
+
movie = Movie.new(filename: 'spec/fixtures/example1.mp4')
|
9
|
+
movie_screenshoter = MovieScreenshoter.new(movie, { start: "00:00:00", time: "6"})
|
10
|
+
movie_screenshoter.take_screenshots!
|
11
|
+
|
12
|
+
expect(movie_screenshoter.screenshots)
|
13
|
+
.to match_array ["/tmp/gifr_example1.mp4_1.png", "/tmp/gifr_example1.mp4_2.png",
|
14
|
+
"/tmp/gifr_example1.mp4_3.png", "/tmp/gifr_example1.mp4_4.png",
|
15
|
+
"/tmp/gifr_example1.mp4_5.png", "/tmp/gifr_example1.mp4_6.png"]
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'takes a screenshots of a movie every 1 second for selected \
|
19
|
+
time period and start time and takes that screenshots' do
|
20
|
+
movie = Movie.new(filename: 'spec/fixtures/example1.mp4')
|
21
|
+
movie_screenshoter = MovieScreenshoter.new(movie, { start: "00:00:00", time: "6"})
|
22
|
+
|
23
|
+
movie_screenshoter.take_screenshots!
|
24
|
+
|
25
|
+
movie_screenshoter.screenshots.each do |screenshot|
|
26
|
+
expect(File.exists?(screenshot)).to eq true
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require_relative '../spec_helper'
|
2
|
+
require_relative '../../lib/gifr/movie'
|
3
|
+
|
4
|
+
describe Movie do
|
5
|
+
describe 'instantiation' do
|
6
|
+
it "should raise ArgumentError if file not exists" do
|
7
|
+
expect{Movie.new({filename: "example.mp4"})}.to raise_error
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should instantiate correctly if file exists" do
|
11
|
+
expect{Movie.new({filename: "spec/fixtures/example1.mp4"})}.to_not raise_error
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should return movie length correctly" do
|
15
|
+
movie = Movie.new(filename: "spec/fixtures/example1.mp4")
|
16
|
+
expect(movie.length).to eq 6
|
17
|
+
|
18
|
+
movie2 = Movie.new(filename: "spec/fixtures/example2.mp4")
|
19
|
+
expect(movie2.length).to eq 6
|
20
|
+
|
21
|
+
movie3 = Movie.new(filename: "spec/fixtures/example3.mp4")
|
22
|
+
expect(movie3.length).to eq 5
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe 'to_path' do
|
27
|
+
it 'should return path to the image' do
|
28
|
+
movie = Movie.new(filename: "spec/fixtures/example1.mp4")
|
29
|
+
expect(movie.to_path).to eq Pathname.new("spec/fixtures/example1.mp4")
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe 'to_s' do
|
34
|
+
it 'should return string representing the image path' do
|
35
|
+
movie = Movie.new(filename: "spec/fixtures/example1.mp4")
|
36
|
+
expect(movie.to_s).to eq "spec/fixtures/example1.mp4"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'filename' do
|
41
|
+
it 'should return the movie filename' do
|
42
|
+
movie = Movie.new(filename: "spec/fixtures/example1.mp4")
|
43
|
+
expect(movie.filename).to eq Pathname.new("example1.mp4")
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require_relative '../../lib/gifr/options_validator'
|
3
|
+
|
4
|
+
describe OptionsValidator do
|
5
|
+
it 'takes an empty hash and returns hash of errors' do
|
6
|
+
validator = OptionsValidator.new({})
|
7
|
+
|
8
|
+
expect(validator.validate!.keys).to match_array([:filename, :start, :time])
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'takes time, returns hash of errors' do
|
12
|
+
options = {
|
13
|
+
start: '00:00:01',
|
14
|
+
time: '1',
|
15
|
+
}
|
16
|
+
|
17
|
+
validator = OptionsValidator.new(options)
|
18
|
+
expect(validator.validate!.keys).to match_array([:filename])
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'takes only filename, returns hash of errors' do
|
22
|
+
options = {
|
23
|
+
filename: 'video.mp4'
|
24
|
+
}
|
25
|
+
|
26
|
+
validator = OptionsValidator.new(options)
|
27
|
+
expect(validator.validate!.keys).to match_array([:start, :time])
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'takes correct options, returns no errors at all' do
|
31
|
+
options = {
|
32
|
+
start: '00:00:01',
|
33
|
+
time: '1',
|
34
|
+
filename: 'video.mp4'
|
35
|
+
}
|
36
|
+
|
37
|
+
validator = OptionsValidator.new(options)
|
38
|
+
expect(validator.validate!.keys).to be_empty
|
39
|
+
end
|
40
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gifr
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michał Darda
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-05-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.0.0beta2
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.0.0beta2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: aruba
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rmagick
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: Simple solution to create gifs from short movies.
|
98
|
+
email:
|
99
|
+
- michaldarda@gmail.com
|
100
|
+
executables:
|
101
|
+
- gifr
|
102
|
+
extensions: []
|
103
|
+
extra_rdoc_files: []
|
104
|
+
files:
|
105
|
+
- ".gitignore"
|
106
|
+
- ".rspec"
|
107
|
+
- Gemfile
|
108
|
+
- LICENSE.txt
|
109
|
+
- README.md
|
110
|
+
- Rakefile
|
111
|
+
- bin/gifr
|
112
|
+
- features/features.feature
|
113
|
+
- features/support.rb
|
114
|
+
- gifr.gemspec
|
115
|
+
- lib/gifr.rb
|
116
|
+
- lib/gifr/gif_creator.rb
|
117
|
+
- lib/gifr/movie.rb
|
118
|
+
- lib/gifr/movie_screenshoter.rb
|
119
|
+
- lib/gifr/options_validator.rb
|
120
|
+
- lib/gifr/version.rb
|
121
|
+
- spec/fixtures/example1.mp4
|
122
|
+
- spec/fixtures/example2.mp4
|
123
|
+
- spec/fixtures/example3.mp4
|
124
|
+
- spec/lib/gif_creator_spec.rb
|
125
|
+
- spec/lib/movie_screenshoter_spec.rb
|
126
|
+
- spec/lib/movie_spec.rb
|
127
|
+
- spec/lib/options_validator_spec.rb
|
128
|
+
- spec/spec_helper.rb
|
129
|
+
homepage: ''
|
130
|
+
licenses:
|
131
|
+
- MIT
|
132
|
+
metadata: {}
|
133
|
+
post_install_message:
|
134
|
+
rdoc_options: []
|
135
|
+
require_paths:
|
136
|
+
- lib
|
137
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
requirements: []
|
148
|
+
rubyforge_project:
|
149
|
+
rubygems_version: 2.2.2
|
150
|
+
signing_key:
|
151
|
+
specification_version: 4
|
152
|
+
summary: Simple solution to create gifs from short movies.
|
153
|
+
test_files:
|
154
|
+
- features/features.feature
|
155
|
+
- features/support.rb
|
156
|
+
- spec/fixtures/example1.mp4
|
157
|
+
- spec/fixtures/example2.mp4
|
158
|
+
- spec/fixtures/example3.mp4
|
159
|
+
- spec/lib/gif_creator_spec.rb
|
160
|
+
- spec/lib/movie_screenshoter_spec.rb
|
161
|
+
- spec/lib/movie_spec.rb
|
162
|
+
- spec/lib/options_validator_spec.rb
|
163
|
+
- spec/spec_helper.rb
|