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 +4 -4
- data/lib/page_by_page/url.rb +3 -3
- data/lib/page_by_page/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 941d892aaaf89b696dfbc8c32024928647e4f4e9
|
4
|
+
data.tar.gz: 54f4e829f22f5a2006aa385970d18bb9d255afa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ece1b278512a03e7a9a9a9e2854620c77f258ef81478841ec76569100fd16e912051c87240420502637576f254718191eecabe37333e1061970e5c21e9bc694b
|
7
|
+
data.tar.gz: 7e406c982e29bec4d4d86b6b9349d21bc2a78ed5026c1ada591d5dbc53ff0ecdd11c37fd6bf16afa2b7e27586910e5b639c6e2b84ba4dde37f6f43e9faa38760
|
data/lib/page_by_page/url.rb
CHANGED
@@ -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 =
|
13
|
+
n = from
|
14
14
|
loop do
|
15
15
|
rendered = @tmpl.result binding
|
16
16
|
yielder.yield rendered
|
17
|
-
n = n
|
17
|
+
n = n + step
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
data/lib/page_by_page/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|