cellar 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cellar.rb +3 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f45811a66c7c570a6b09c891dc7e4ebde205485312fd40444d6060470ed6249f
4
- data.tar.gz: 3f752cc5cb1ea78184616eb30bf1fd141a9d2f362fcd6bd971948faf43af3288
3
+ metadata.gz: b58422d5246d4a2b03c7aa4af26fe7ba44651310e3309fbd7951f591e0471fdd
4
+ data.tar.gz: 4a2ffd2ddff0233d6952ad56e009c8a71fdb434a8dd72afc38ccf0ded3b46925
5
5
  SHA512:
6
- metadata.gz: 23939a9a8e1e7cf5be52c494389b9372e0ea1e9a7602a0e9ebc17a9980162cc0f2d739e7712235ab0b5bc6572f021a38004ffe2c157e5c53e0bac09ba2b586ce
7
- data.tar.gz: da5f109fa8b7558602d7fdc4d58355aef5c926881f5532e529f01345475fdb56badf3b2943b97da973f0f707928c9512b0a1ea031ab9a72e66de9dbe1d2b819d
6
+ metadata.gz: af77ee166027269439035e19218f253a24a9d7f5c5c0c3686049e8c5f1cd3df06918f4482823a603c017211f773a319deec18a46f6bfd237241af3725e8045d7
7
+ data.tar.gz: acec6a238c3c94c8a52b74e80d9e0500340538e687a3db345cc94afcfe9e6d59f1b2dcae1cbae846cadf3ddb4f80cc638a369ee5169352236178e011415380f9
data/lib/cellar.rb CHANGED
@@ -24,7 +24,7 @@ class Object
24
24
  end
25
25
 
26
26
  class Cellar
27
- VERSION="0.1.3"
27
+ VERSION="0.1.4"
28
28
 
29
29
  attr_reader :fields
30
30
  attr_reader :values
@@ -98,6 +98,8 @@ class Cellar
98
98
  when 0
99
99
  []
100
100
  when 1
101
+ first = fields.first
102
+ first.is_a?(Cellar) and return self[*first.fields]
101
103
  index = index(fields.first)
102
104
  value = @values[index] if index
103
105
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cellar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-09 00:00:00.000000000 Z
11
+ date: 2024-10-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby gem to deal with cells of data in rows and columns
14
14
  email: steve.shreeve@gmail.com