wgif 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/wgif/argument_parser.rb +10 -0
- data/lib/wgif/cli.rb +1 -0
- data/lib/wgif/version.rb +1 -1
- data/spec/unit/wgif/cli_spec.rb +5 -0
- data/wgif.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92ca5de36813e2b201513a8ff013832035405e00
|
4
|
+
data.tar.gz: 0edf4a2d32e8c3ba58a37463074e289421c8f01e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16ba33472d3345d7c975de8e4f8bb74db0ffaec7b334919ea604fdeebff1dd3dcb61f1410ffa4151e9a42f3cd9970d44ad74fe73b821779b7c4361656c910508
|
7
|
+
data.tar.gz: 5f704128b172a9f9919101b92a2d6da2f753d7588dab0a709ce04030a5f8aea0d42cb56fc5123532d10680b0064469366af2f8d0fa8524b78f72537cef2af635
|
data/README.md
CHANGED
@@ -114,7 +114,8 @@ And here it is:
|
|
114
114
|
### "You shouldn't let poets lie to you."
|
115
115
|
|
116
116
|
## Changes
|
117
|
-
- v0.5.
|
117
|
+
- v0.5.4, 2015/7/26: Add `--version` flag. Upgrade viddl-rb and rmagick.
|
118
|
+
- v0.5.3, 2015/7/26: Fix sort order of globbed frames. ([Issue #19](https://github.com/ecmendenhall/wgif/issues/19))
|
118
119
|
- v0.5.2, 2015/1/24: Use `/usr/bin/env ruby` in binary.
|
119
120
|
- v0.5.1, 2014/8/15: Lock down dependency versions.
|
120
121
|
- v0.5.0, 2014/8/15: Add support for sub-second timestamps in `--start` and `--duration` flags ([Issue #13](https://github.com/ecmendenhall/wgif/issues/13)).
|
@@ -126,6 +127,7 @@ And here it is:
|
|
126
127
|
## Contributors
|
127
128
|
Thanks to [arlandism](https://github.com/arlandism) and [ellie007](https://github.com/ellie007) for pairing on Imgur uploads.
|
128
129
|
Thanks to [justalisteningman](https://github.com/justalisteningman) for adding file size info.
|
130
|
+
Thanks to [aparrish](https://github.com/aparrish) for diagnosing an Ubuntu frame ordering bug.
|
129
131
|
|
130
132
|
## Contributions
|
131
133
|
Are welcome via pull request.
|
data/lib/wgif/argument_parser.rb
CHANGED
@@ -54,6 +54,12 @@ module WGif
|
|
54
54
|
print_help
|
55
55
|
exit
|
56
56
|
}
|
57
|
+
opts.on_tail('-v',
|
58
|
+
'--version',
|
59
|
+
'Print version.') {
|
60
|
+
print_version
|
61
|
+
exit
|
62
|
+
}
|
57
63
|
end
|
58
64
|
end
|
59
65
|
|
@@ -81,6 +87,10 @@ module WGif
|
|
81
87
|
@options
|
82
88
|
end
|
83
89
|
|
90
|
+
def print_version
|
91
|
+
puts "wgif #{WGif::VERSION}"
|
92
|
+
end
|
93
|
+
|
84
94
|
def print_help
|
85
95
|
puts 'Usage: wgif [YouTube URL] [output file] [options]', "\n"
|
86
96
|
puts argument_summary, "\n"
|
data/lib/wgif/cli.rb
CHANGED
data/lib/wgif/version.rb
CHANGED
data/spec/unit/wgif/cli_spec.rb
CHANGED
@@ -95,5 +95,10 @@ describe WGif::CLI do
|
|
95
95
|
expect(@mock_stdout.string).to include(help_info)
|
96
96
|
end
|
97
97
|
end
|
98
|
+
|
99
|
+
it 'prints version information' do
|
100
|
+
expect { cli.make_gif(['-v']) }.to raise_error(SystemExit)
|
101
|
+
expect(@mock_stdout.string).to include(WGif::VERSION)
|
102
|
+
end
|
98
103
|
end
|
99
104
|
end
|
data/wgif.gemspec
CHANGED
@@ -18,11 +18,11 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(/^(test|spec|features)\//)
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency 'rmagick', '2.
|
21
|
+
spec.add_dependency 'rmagick', '2.15.3'
|
22
22
|
spec.add_dependency 'ruby-progressbar', '1.5.1'
|
23
23
|
spec.add_dependency 'streamio-ffmpeg', '1.0.0'
|
24
24
|
spec.add_dependency 'typhoeus', '~> 0.6'
|
25
|
-
spec.add_dependency 'viddl-rb', '1.1.
|
25
|
+
spec.add_dependency 'viddl-rb', '1.1.1'
|
26
26
|
|
27
27
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
28
28
|
spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.3'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wgif
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connor Mendenhall
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.15.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.15.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ruby-progressbar
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.1.
|
75
|
+
version: 1.1.1
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.1.
|
82
|
+
version: 1.1.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|