scrapework 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99162c48b7c56efe773986525ab22b1b524dbf378292da8c65ad10bc2eaff7e3
4
- data.tar.gz: 279bc3e53a095c2bb76029885fe3fcdb148aea7ac88e068cd81d2b2c3ae3ffd8
3
+ metadata.gz: c58c41ad16325995c414d072e220c583b83f1bdc52778ccc843c706efe745924
4
+ data.tar.gz: 0f22e214c0006c0e76a6368b7368b199daf5ce6a53afc3d5b0b76205f198b9da
5
5
  SHA512:
6
- metadata.gz: 59c7d151995fdef2f5d20284f463db50023ad8d61bdbd94c97ce31ee20242501d5b60bf3b4cff88bd911f51a4b16b401c2c243635ca6419a01c9016a89190395
7
- data.tar.gz: bb532285ff601a004070b1c6419745a292a058e83fcc39dc126bccadfa9f3e413daad33d00dea11d6e0cbc3b3db6b563368d9ae1c805c0c0e97bbc9389279a17
6
+ metadata.gz: fd6af54c141cae5e3eb55c9da405777fca1958f0503f774aa1695444951efc47a9744fa6d3675448acf6c1d1894f552bdcc6e29c9bdaaa1e4bf8bdbcbd879164
7
+ data.tar.gz: 011c840fe58b474dc0008eb43e9e9c8a02689dbf1cd3a6e1b8cad56b7a1485183b41ec4b076360803ee56b842a495590fce042bc46d7c792583fc6bb10c6b949
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.1.1
2
+
3
+ * Pagination mapped method calls block in context of the object instance.
4
+
1
5
  # 0.1.0
2
6
 
3
7
  * Initial version
@@ -105,7 +105,7 @@ module Scrapework
105
105
  mapped_method = :_pagination
106
106
 
107
107
  define_method(mapped_method) do
108
- @_pagination ||= block.call(_document)
108
+ @_pagination ||= instance_exec(_document, &block)
109
109
  end
110
110
 
111
111
  define_method(:prev_page) do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Scrapework
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrapework
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
  - jphager2
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-16 00:00:00.000000000 Z
11
+ date: 2019-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_attr