confinicky 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 52e95dfcb20d5391899a9c04733f21b0b948fb7b
4
- data.tar.gz: d4c2cba419829d5c87704dcd99a4b950024cd132
3
+ metadata.gz: 9f6e7fe068f2fafefdb281682fe09288fcea4ae6
4
+ data.tar.gz: 68b4a18d922dca00a9646dc56607403f6064fd64
5
5
  SHA512:
6
- metadata.gz: e3923507641c3767fe97f20cb853eec13b1c36539b6046e7e32126186612e9029672ea088704e9489c48f3d843cfe82fad2ed21c2834f941fbdb69ab4f3f2b2c
7
- data.tar.gz: 33e5fb03f7fc9ebc07b1f0e7cb814b266d3498453707cfcff16181c0e6e6d554465da1a9fa4a5293e528fa09ee4fd4bdcdc12b922e156dda551de1d7f8e4f5d4
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.0 ruby lib
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.0"
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-24"
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
- say_ok "Using: #{Confinicky::ConfigurationFile.path_for_key(key: key)}"
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
- say_ok "\nWrote the following configuration to:\n#{Confinicky::ConfigurationFile::PATH}"
23
- puts Confinicky::ConfigurationFile.table
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
@@ -5,7 +5,7 @@ module Confinicky
5
5
  module Version
6
6
  MAJOR = 0
7
7
  MINOR = 2
8
- PATCH = 0
8
+ PATCH = 1
9
9
  BUILD = ''
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
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.0
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-24 00:00:00.000000000 Z
11
+ date: 2014-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander