Skip to content

Commit 1930e99

Browse files
committed
Rename variable of frame interval configuration (frame_interval to frame_interval_ms)
1 parent d07fdca commit 1930e99

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ You can do to customize a screenshot.
4949

5050
```ruby
5151
Gnawrnip.configure do |c|
52-
c.frame_interval = 1000 # milliseconds
52+
c.frame_interval_ms = 1000 # milliseconds
5353
c.make_animation = true
5454
c.max_frame_size = 1024 # pixel
5555
end
5656
```
5757

5858
* `make_animation` (Boolean) Whether to make animation GIF. (Default: true)
59-
* `frame_interval` (Integer) A time (millisecond) between each image in an animation. Default is `1000` (1sec)
59+
* `frame_interval_ms` (Integer) A time (millisecond) between each image in an animation. Default is `1000`.
6060
* This option is enabled only when the `make_animation = true`.
6161
* `max_frame_size` (Integer) Maximum size that use to resize of image.
6262
* If given, it resize the image to fit to this value.

example/spec/spec_helper.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Capybara.javascript_driver = :selenium
2222

2323
Gnawrnip.configure do |c|
24-
c.frame_interval = 1000 # milliseconds
25-
c.make_animation = true
26-
c.max_frame_size = 1024 # pixel
24+
c.frame_interval_ms = 1000
25+
c.make_animation = true
26+
c.max_frame_size = 1024 # pixel
2727
end

lib/gnawrnip.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class << self
88
#
99
# [Integer] Time (millisecond) between each image in animation
1010
#
11-
attr_accessor :frame_interval
11+
attr_accessor :frame_interval_ms
1212

1313
#
1414
# [Boolean] Whether to make animation GIF
@@ -59,7 +59,7 @@ def publisher_driver=(driver)
5959
end
6060

6161
Gnawrnip.configure do |c|
62-
c.frame_interval = 1000
63-
c.make_animation = true
64-
c.max_frame_size = nil
62+
c.frame_interval_ms = 1000
63+
c.make_animation = true
64+
c.max_frame_size = nil
6565
end

0 commit comments

Comments
 (0)