honey_format 0.20.0 → 0.21.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
  SHA256:
3
- metadata.gz: 7c0136727f1cf1e473ac8a517105158a9c927c5988f525b1640ffced32c5a2fd
4
- data.tar.gz: d26d86cd08edbc33f2f9b8399ef2f7c5aade4b35ca4ea7617dc6a21415b72c9a
3
+ metadata.gz: 46fdc7932e9287a30e106b06d264e1816ca0b0270c175a279b52e5173eb79780
4
+ data.tar.gz: 67e680e4771404bd64d8c07267982296f49fcf123d154d8739b8d3776fa05b53
5
5
  SHA512:
6
- metadata.gz: 6ec8850e11d3ae4039b748738641bacd19ea3ffe9f437e2d93eb407e9d7e7cb2dcc669116f04f2a175855fbc121bad62228dc6dbd022163d033a52e89af6e8e7
7
- data.tar.gz: 9ec609fe969d26348c1be54458a79ea24a199085381e82c3bc79d58b5054bb02300759946f520c7b29eb0273e56db290375c791ee4fb2c5fecf10da65954e54b
6
+ metadata.gz: a0fec7274008e64d2848d1f7f6c4b277651993d1355948bb948b68a91034f57689e05b8443874141bc8edb1183ade8dbfe2d387ef28bd9a0e67db2172df61a3d
7
+ data.tar.gz: a64d69090268ae7c8d4abcef2ff3f33d1be3aba971719f63aa50183f0c1c953e798a192945af9f283669b661fe560d4cdb0fa205857b6165a1ad501b0a494402
@@ -1,5 +1,9 @@
1
1
  # HEAD
2
2
 
3
+ ## v0.21.0
4
+
5
+ * Add `Rows#[]` method
6
+
3
7
  ## v0.20.0
4
8
 
5
9
  * Support additional header variant, pass hash with `String => Symbol` and/or `String => #call` (callable object). Unmapped keys are converted using the default header converter.
@@ -40,6 +40,12 @@ module HoneyFormat
40
40
  @rows
41
41
  end
42
42
 
43
+ # Return element at given position.
44
+ # @return [Row] of rows.
45
+ def [](index)
46
+ @rows[index]
47
+ end
48
+
43
49
  # Return the number of rows
44
50
  # @return [Integer] the number of rows
45
51
  def length
@@ -4,7 +4,7 @@ module HoneyFormat
4
4
  # Gem version
5
5
  VERSION = [
6
6
  MAJOR_VERSION = 0,
7
- MINOR_VERSION = 20,
7
+ MINOR_VERSION = 21,
8
8
  PATCH_VERSION = 0,
9
9
  ].join('.')
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honey_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Burenstam
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-16 00:00:00.000000000 Z
11
+ date: 2020-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark-ips