lava-frame_compare 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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lava/session.rb +4 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 135845266a14a87775f1777e86d6c03e5990fbe0
4
- data.tar.gz: e36c97766577ac1dc6433d250496b3eb7decc83f
3
+ metadata.gz: bebaac216dbc7938cdba61d15efeb72b3eff304c
4
+ data.tar.gz: 1decd2d9f5c1d83a6cea886d5d493261438afdf9
5
5
  SHA512:
6
- metadata.gz: 9f84ebf91ebcd2780dbefdacddb8bb522006b7a84706c1aab56b733c1aab1dc024ed66075a316363d1977de92a8fcdab465812cdef73a431d632d8f4b930ce3f
7
- data.tar.gz: 861c332f21baf00ead2caf1f0910dea792ee741cb6defc7573289ebc27e15373cd0725545f454b2e712cc9af32f41594bd55f04c305365e080fb520e00e2bf4e
6
+ metadata.gz: 98176906cf5e8bd3ec9160f7c4659b2a5358d924f5a4f23ec493f6b8c01ae204a8e86909e627f9550f4d29e9bf6b002cbc96d305a8e7da4507e0e93a5988e860
7
+ data.tar.gz: 96fa4c42137696775980098d743c8026c4a14985b5940ba0bca616a3bb79d05095a8d558a984241d9c6afbc62d137f54b0f3c4b0136353d6a08e042d90206d26
data/lib/lava/session.rb CHANGED
@@ -67,15 +67,17 @@ module Lava
67
67
  end
68
68
 
69
69
  rotate = args[:rotate] || 0
70
+ step = args[:step] || 1
70
71
  max_width = args[:max_width] || Lava::DEFAULT_MAX_WIDTH
71
72
  max_height = args[:max_height] || Lava::DEFAULT_MAX_HEIGHT
72
73
  speed = args[:speed] || Lava::DEFAULT_SPEED
73
74
 
74
75
 
75
76
  rimages = Magick::ImageList.new
76
- samples.each do |s|
77
- s.rimage.resize_to_fit!(max_width, max_height)
77
+ (0 ... samples.count ).step(step).each do |i|
78
+ s = samples[i]
78
79
  s.rimage.rotate! rotate
80
+ s.rimage.resize_to_fit!(max_width, max_height)
79
81
  rimages << s.rimage
80
82
  end
81
83
  rimages.ticks_per_second = speed
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lava-frame_compare
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BBC
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-25 00:00:00.000000000 Z
12
+ date: 2015-02-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rmagick