confinicky 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/confinicky.gemspec +3 -3
- data/lib/confinicky/commands/setup.rb +12 -3
- data/lib/confinicky/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f6e7fe068f2fafefdb281682fe09288fcea4ae6
|
|
4
|
+
data.tar.gz: 68b4a18d922dca00a9646dc56607403f6064fd64
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 531c0ae2754214cc06dd755fec30d1cf8645daedb3c98f2268a482dfe2ecfcf4bed6cbfeb133222e1043fb55ac4f1e8fdd48ef21d316e4a85dc8a61cc619d3c2
|
|
7
|
+
data.tar.gz: ccc3c3733ba986d7373eaa1e39ddb164b96f28798944be05764c93c52ae4d46d1b345049cb5b2aa9804338ef1bf1c4a42e438562d2acc5ed8572c1203ccf64aa
|
data/confinicky.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: confinicky 0.2.
|
|
5
|
+
# stub: confinicky 0.2.1 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "confinicky"
|
|
9
|
-
s.version = "0.2.
|
|
9
|
+
s.version = "0.2.1"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Jim Jeffers"]
|
|
14
|
-
s.date = "2014-08-
|
|
14
|
+
s.date = "2014-08-25"
|
|
15
15
|
s.description = "A simple CLI to manage environment variables on your local machine. Perform basic CRUD for your environment variables all in the command line."
|
|
16
16
|
s.email = "jim@sumocreations.com"
|
|
17
17
|
s.executables = ["cfy"]
|
|
@@ -14,12 +14,21 @@ command :setup do |c|
|
|
|
14
14
|
aliases: "\nWhat file do you want to store your aliases in?\n(leave blank to keep current)"
|
|
15
15
|
}.each do |key, question|
|
|
16
16
|
Confinicky::ConfigurationFile.set_path_for_key(path: ask(question), key: key)
|
|
17
|
-
|
|
17
|
+
path = Confinicky::ConfigurationFile.path_for_key(key: key)
|
|
18
|
+
if !File.exists?(path)
|
|
19
|
+
File.open(path, "w"){|f| f.write "##{key.upcase}\n"}
|
|
20
|
+
say_ok "Created file at: #{path}"
|
|
21
|
+
else
|
|
22
|
+
say_ok "Using: #{Confinicky::ConfigurationFile.path_for_key(key: key)}"
|
|
23
|
+
end
|
|
18
24
|
end
|
|
19
25
|
|
|
20
26
|
Confinicky::ConfigurationFile.write!
|
|
21
27
|
|
|
22
|
-
|
|
23
|
-
puts Confinicky::ConfigurationFile
|
|
28
|
+
color "\nWrote the following configuration to:", :bold
|
|
29
|
+
puts "#{Confinicky::ConfigurationFile::PATH}"
|
|
30
|
+
color "\nBe sure to add the following lines to your ~/.bash_profile or ~/.bashrc files:", :bold
|
|
31
|
+
color ". #{Confinicky::ConfigurationFile.path_for_key(key: :env)}", :black, :on_green
|
|
32
|
+
color ". #{Confinicky::ConfigurationFile.path_for_key(key: :aliases)}", :black, :on_green
|
|
24
33
|
end
|
|
25
34
|
end
|
data/lib/confinicky/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: confinicky
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jim Jeffers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-08-
|
|
11
|
+
date: 2014-08-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: commander
|