video_screenshoter 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,7 @@ module VideoScreenshoter
31
31
  end.uniq
32
32
  elsif (number = params[:number].to_i) > 0
33
33
  [:offset_start, :offset_end].each do |attr|
34
- if percent = params[attr].to_s.match(/^(\d+)%$/).to_a[1]
34
+ if percent = params[attr].to_s.match(/^(\d+)\\?%$/).to_a[1]
35
35
  self.send("#{attr}=", duration * percent.to_i / 100.0)
36
36
  else
37
37
  self.send("#{attr}=", params[attr].to_f)
@@ -1,3 +1,3 @@
1
1
  module VideoScreenshoter
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: video_screenshoter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-03 00:00:00.000000000 Z
12
+ date: 2014-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: -2212613341637156165
115
+ hash: 811301849327222069
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  segments:
123
123
  - 0
124
- hash: -2212613341637156165
124
+ hash: 811301849327222069
125
125
  requirements:
126
126
  - ffmpeg
127
127
  - imagemagick