page_by_page 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fa944dd4b26a3928521fab9ab0715912b5b41da
4
- data.tar.gz: ec53a56c45380b0a95994ab056bbf1d0e33b2fc1
3
+ metadata.gz: 941d892aaaf89b696dfbc8c32024928647e4f4e9
4
+ data.tar.gz: 54f4e829f22f5a2006aa385970d18bb9d255afa5
5
5
  SHA512:
6
- metadata.gz: ea009729e29a8bd6922992d9afcddec3dfe5cf1dc9003cbae7bb24e1c1c2a8b4fddd521adf7f879d298a25431db18ae8f8fbf22bd6b382a90244ad385d298c5a
7
- data.tar.gz: 254f829aa7fc8b08e280c00f0c640c96740893e6f8c564403a0b9b2d50f03465318739ecb383f650c71104adbbe3a2fdb6389832a28ed312f74479ee45771c40
6
+ metadata.gz: ece1b278512a03e7a9a9a9e2854620c77f258ef81478841ec76569100fd16e912051c87240420502637576f254718191eecabe37333e1061970e5c21e9bc694b
7
+ data.tar.gz: 7e406c982e29bec4d4d86b6b9349d21bc2a78ed5026c1ada591d5dbc53ff0ecdd11c37fd6bf16afa2b7e27586910e5b639c6e2b84ba4dde37f6f43e9faa38760
@@ -7,14 +7,14 @@ class PageByPage
7
7
 
8
8
  def_delegator :@enum, :next
9
9
 
10
- def initialize tmpl
10
+ def initialize tmpl, from: 1, step: 1
11
11
  @tmpl = ERB.new tmpl
12
12
  @enum = Enumerator.new do |yielder|
13
- n = 1
13
+ n = from
14
14
  loop do
15
15
  rendered = @tmpl.result binding
16
16
  yielder.yield rendered
17
- n = n.succ
17
+ n = n + step
18
18
  end
19
19
  end
20
20
  end
@@ -1,3 +1,3 @@
1
1
  class PageByPage
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: page_by_page
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ken
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-29 00:00:00.000000000 Z
11
+ date: 2016-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler