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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a660d8e895c7bd3233967f8e3a0d4ae9da9394c
4
- data.tar.gz: 088df83890eebba386cf4e73e925f7bab66d2b9a
3
+ metadata.gz: 6960965f38057d4c62c84876db294064a32b463e
4
+ data.tar.gz: 4260ecbe0b4072478459bc5fe5945c7c64ba40ff
5
5
  SHA512:
6
- metadata.gz: 68a98dbc911741fa0757b5320b4554346cf212bb87d16c6f5f44ef00a038e1180d4a4e2b67c61caf3901c3eaa598295acb357c4e178825f4b623e57fd7526098
7
- data.tar.gz: c31f9aabfcbb32430d0e83e0bb80eb9a3d5bc1e1efdc78fb29a19095bc31c5b2146af5ff15049ba130ad9b6044f963275a01e9e77112d2bb42998b429fa37b3f
6
+ metadata.gz: 527fcf2ab72587584f496b3d2ec2c3cb6ccfc3f3c844913564d3adcb4f172b442c21de8a2548ebf29c2ab3027937382003eebec5c447ebc63fd3ba1e90bd4b3f
7
+ data.tar.gz: 822e7802cc2a5763f06cac0e4f080bba48c026fa35638e5c12a83f25498aee9cdeb02c86f1cd7d005b971232fe19126a8e67af59c1c2b269717f281ef6abdcf0
@@ -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
@@ -1,5 +1,5 @@
1
1
  module SitePrism
2
2
  module Table
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  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.1.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: 2017-02-06 00:00:00.000000000 Z
11
+ date: 2018-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler