chop 0.23.4 → 0.23.5

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: fedb1296f688cb337575d72a7221f079ce083291
4
- data.tar.gz: 2c8b015013a92f09c93c8787d905482ea23d7d6b
3
+ metadata.gz: 3c222bb42f1f6a262b3e34f659073899e3f2f5f9
4
+ data.tar.gz: 6aa576134ffa085334c0df92dddf9ae454ca506f
5
5
  SHA512:
6
- metadata.gz: a76f46bc4bb8d6518b489ec8b64463acef63dd5b2d9c80cc132dde5bd9d513a00c2ce9f3648d43fd08f92f2fdf79cc987936fc9bf39d0b00fa05c52b22549989
7
- data.tar.gz: ee2282b1c14f28e3c2f896b28157e5a68d76766894f55704766d0836a2ca074f378370822aa9ee8dffd85b4c100fcbd02b1e87da2713f976044543864414f7cc
6
+ metadata.gz: f6e45f0c1a48c0f90ac772a468ba97e475dcd347b7851d07ac63811de442be6eb414dd9bc0b07dfa4d4870d3e099b764614f45539ab636679f1efdb7070eee21
7
+ data.tar.gz: ac037c449af5038cf0363be4cd737deec0bcb1a9824fa121571c8d8eeb651a84f11347c23153db2522d3974ea7143ac4568dc3aa67cb195ae5e7af6a0039c912
data/README.md CHANGED
@@ -18,7 +18,7 @@ end
18
18
  Chop monkeypatches Cucumber tables with three new methods:
19
19
 
20
20
  * `#create!`: Creates entities. Built-in support for ActiveRecord (default) and FactoryGirl, at present.
21
- * `#diff!`: Enhances existing method to also accept a CSS selector. Currently supports diffing `<table>`, `<dl>`, and `<ul>`.
21
+ * `#diff!`: Enhances existing method to also accept a CSS selector. Currently supports diffing `<table>`, `<dl>`, `<ul>`, and even `<form>`!.
22
22
  * `#fill_in!`: Fills in a form on the current page.
23
23
 
24
24
  All these methods accept blocks for customization.
@@ -162,8 +162,6 @@ Chop.fill_in! table
162
162
 
163
163
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
164
164
 
165
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
166
-
167
165
  ## Contributing
168
166
 
169
167
  Bug reports and pull requests are welcome on GitHub at https://github.com/botandrose/chop.
@@ -13,7 +13,7 @@ module Chop
13
13
  def column index, &block
14
14
  transformation do |rows|
15
15
  rows.map.with_index do |row, row_index|
16
- row[index] = block.call(row[index])
16
+ row[index] = block.call(row[index]) if row.length > index
17
17
  row
18
18
  end
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module Chop
2
- VERSION = "0.23.4"
2
+ VERSION = "0.23.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.4
4
+ version: 0.23.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-21 00:00:00.000000000 Z
11
+ date: 2019-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.6.14
159
+ rubygems_version: 2.6.8
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Slice and dice your cucumber tables with ease!