da_funk 3.15.1 → 3.16.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: 2565aacaf8e8cf12a6010866c903eefb2848dc204c17187da758282a00477d88
4
- data.tar.gz: 1ae22aa0ec4acbe3c88dab3528c68ca7fb1c53454086e327d372e6515478e268
3
+ metadata.gz: 18443a10caa201e3b1901461e5fe33dffd47070faf5f409db3cb7c30dff885db
4
+ data.tar.gz: a01e70d7da4d6a05e7a804d5bc4b648c9a1461b1c87017e15faf995454d42dd9
5
5
  SHA512:
6
- metadata.gz: 10aae7d981ba07f45e8038ca19c2ec03619db7a7445166b2fff1fb1afd89c8144f68d4a8e853b1b03c63af4d241f015281016ae55697bf1e39c52a0769bf8404
7
- data.tar.gz: e63aa9f72141978a7f40fd812eb066ce005c773de178ee2388572c2d5df044bdbeb00512fd33977327965e9a4c0b179e4336888d56132e387e81b2cd44699fd7
6
+ metadata.gz: ad49a8820ab9dcbf8c898cff2f69f66f8c239930511a1e8853e56ca42666df1e74ba80576130004c7125adce00b6c4682b59c58ceb584c8f378ecb2ad535853d
7
+ data.tar.gz: 8d1a33a277b103928144c09ab598d9bd248e7ae2966f478e257f9f557548cd4931ca7d1618e293ceab024f157244c97e9797219073f21d356071c64488805a81
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- da_funk (3.15.1)
4
+ da_funk (3.16.0)
5
5
  archive-zip (~> 0.5)
6
6
  bundler
7
7
  cloudwalk_handshake
@@ -1,5 +1,10 @@
1
1
  # DaFunk
2
2
 
3
+ ### 3.16.0 - 2020-01-28
4
+
5
+ - Added FileDb#each_with_index method;
6
+ - Changed DaFunk::Helper#menu return, now it will return nil if key pressed is CANCEL.
7
+
3
8
  ### 3.15.1 - 2020-01-17
4
9
 
5
10
  - Just removed some debug points
@@ -278,7 +278,9 @@ module DaFunk
278
278
  end
279
279
  end
280
280
 
281
- if key == Device::IO::ENTER || key == Device::IO::CANCEL
281
+ return nil if key == Device::IO::CANCEL
282
+
283
+ if key == Device::IO::ENTER
282
284
  options[:default]
283
285
  else
284
286
  selected
@@ -1,4 +1,4 @@
1
1
  module DaFunk
2
- VERSION="3.15.1"
2
+ VERSION="3.16.0"
3
3
  end
4
4
 
@@ -29,6 +29,10 @@ class FileDb
29
29
  @hash.each(&block)
30
30
  end
31
31
 
32
+ def each_with_index(&block)
33
+ @hash.each_with_index(&block)
34
+ end
35
+
32
36
  def save
33
37
  string = @hash.inject("") do |str, line| #|line_key, line_value|
34
38
  str << "#{line[0]}=#{line[1]}\n"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: da_funk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.15.1
4
+ version: 3.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Scalone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-17 00:00:00.000000000 Z
11
+ date: 2020-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake