shellplay 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/shellplay/config.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd8a8bcdfaed9eba512c6ac385d427d822764b02
|
4
|
+
data.tar.gz: 853a25e9b05ee965a95dd8c7e2305c50c4b345f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6505d6294617e138774477534d96ca97edceca8e349c2f69e0699ca02d6ca32c912e0b2648c237dc026d4557e49f87734cfd71135ae25a405399532b7c25a376
|
7
|
+
data.tar.gz: e52aa0a301d8fb8c109fd41778049cabc1e6245dbd401c687c71661c18872612ab76f0c3bf81255605d3d19bb32cade644fe51daabb8803b3e91d668510a41ab
|
data/CHANGELOG.md
CHANGED
data/lib/shellplay/config.rb
CHANGED
@@ -6,6 +6,12 @@ module Shellplay
|
|
6
6
|
|
7
7
|
include Cliprompt
|
8
8
|
|
9
|
+
def initialize(options = nil, input = STDIN, output = STDOUT)
|
10
|
+
confdir = File.join(ENV['HOME'], '.shellplay')
|
11
|
+
FileUtils.mkdir_p confdir unless Dir.exist? confdir
|
12
|
+
super(options = nil, input = STDIN, output = STDOUT)
|
13
|
+
end
|
14
|
+
|
9
15
|
def set_defaults
|
10
16
|
default :basedir, File.join(ENV['HOME'], '.shellplay')
|
11
17
|
super
|