filechooser 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/filechooser/api.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ab50c144e898996401934e203774d7dbc4c0397
4
- data.tar.gz: ca4de6ed9cab62c6ae53f3b6338c2bc67b6fe1d0
3
+ metadata.gz: 857f5f69af8aafa05a38be3bd838e02db1253b8f
4
+ data.tar.gz: ab214bdc1a3984f75c2290b3252cfc6bf5398646
5
5
  SHA512:
6
- metadata.gz: e6e63c469980b0933ffdb80e9aa4bf75f26ccdc68d82d25bbf3506d79a193de1490ca957290c68a5dba0d6be5a5d803807df94bd0e838f772dceba8cd86b9fa1
7
- data.tar.gz: 8ea80274bb24c7a1da553f3703a450a1883359d351cdf11f6ff791da01378f79bc56cbca6136cd420bea979ef0679d2f280be2dead8bb0a8cf7980a2748fd51d
6
+ metadata.gz: a832ac700edacbd8e693b5a60a7b266aaae7f95ea9707a12f696d39f021335452d7a40c10745d98b94354dc4025713061a21b23d9b97c8566db605a2217a9684
7
+ data.tar.gz: 8397398564ac4485190c71bb6d1f21428c0c6f5db324517f5e175f3730a3e15708e61c90a0b5a475b26819b8f6f315a06a196b9f89f9cc4fafb849b9e9d66670
@@ -2,8 +2,8 @@
2
2
 
3
3
  module Filechooser
4
4
 
5
- def self.dirchooser
6
- p0 = Pathname.new(STARTFOLDER)
5
+ def self.dirchooser(startfolder=STARTFOLDER)
6
+ p0 = Pathname.new(startfolder)
7
7
  while true
8
8
  Highline.cli.say("Current Directory: #{p0}".style(":info"))
9
9
  sd=p0.children.select(&:directory?).length
@@ -49,8 +49,8 @@ module Filechooser
49
49
  end
50
50
 
51
51
 
52
- def self.filechooser
53
- p0 = Pathname.new(STARTFOLDER)
52
+ def self.filechooser(startfolder=STARTFOLDER)
53
+ p0 = Pathname.new(startfolder)
54
54
  while true
55
55
  Highline.cli.say("Current Directory: #{p0}".style(":info"))
56
56
  sd=p0.children.select(&:directory?).length
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filechooser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jogan Thums