site_prism-table 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/site_prism/table.rb +2 -2
- data/lib/site_prism/table/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: 6960965f38057d4c62c84876db294064a32b463e
|
4
|
+
data.tar.gz: 4260ecbe0b4072478459bc5fe5945c7c64ba40ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 527fcf2ab72587584f496b3d2ec2c3cb6ccfc3f3c844913564d3adcb4f172b442c21de8a2548ebf29c2ab3027937382003eebec5c447ebc63fd3ba1e90bd4b3f
|
7
|
+
data.tar.gz: 822e7802cc2a5763f06cac0e4f080bba48c026fa35638e5c12a83f25498aee9cdeb02c86f1cd7d005b971232fe19126a8e67af59c1c2b269717f281ef6abdcf0
|
data/lib/site_prism/table.rb
CHANGED
@@ -7,10 +7,10 @@ module SitePrism
|
|
7
7
|
autoload :Element, 'site_prism/table/element'
|
8
8
|
autoload :Definition, 'site_prism/table/definition'
|
9
9
|
|
10
|
-
def table(name, selector, &block)
|
10
|
+
def table(name, *selector, &block)
|
11
11
|
definition = Definition.new(&block)
|
12
12
|
define_method name do
|
13
|
-
Element.new(page.find(selector)['innerHTML'], definition)
|
13
|
+
Element.new(page.find(*selector)['innerHTML'], definition)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: site_prism-table
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Aizim Kelmanson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|