confinicky 0.1.1 → 0.1.2

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: 3a3fde24799e3caac23cef2701b2e614dba8b026
4
- data.tar.gz: c54a29d749f69f71c7a599d6c9aa786c7bbcac9f
3
+ metadata.gz: 8082da28725014f83aec98b12a7e92b38ba7ab59
4
+ data.tar.gz: 3a88d9d5510f7772ab29236275eef74c34c63d04
5
5
  SHA512:
6
- metadata.gz: b0b92a4a2f97335500baf4ff3c9d9b3985603dbfb408791f7a90ddb928ff4fe74e9c6c3fa08945d83df71aa9863596d0557a3c4975fb26aabe989133ad62f0ba
7
- data.tar.gz: d92353967f33b165717a2758e3e0653f62f7596015e0fd1d2a264f9b12e8270f67cef18d2253dbd050228481ebf16efecfd5993f22f5008fe9b97a13a3d22a13
6
+ metadata.gz: ebe7c93050b8f3acf035fb5a030194bfd983feb4536bafe7fa58529d7fceb77986ebf87c6ffe9f5414a715f28c750266a80331aec8f04d0784d4f710ad4e4dd1
7
+ data.tar.gz: 24bde737dd945e844694b2408d1fe387ecc7b72002d8973d178f9e9869b2a0d23f9a6914ea3f6570cf0066ee08fac1cf01e488746a086abf0442d413f08dbaa1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/bin/confinicky CHANGED
@@ -4,14 +4,13 @@ require 'commander/import'
4
4
  require 'terminal-table'
5
5
 
6
6
  $:.push File.expand_path("../../lib", __FILE__)
7
- $:.push File.expand_path("../", __FILE__)
8
7
 
9
8
  require 'confinicky'
10
9
 
11
10
  HighLine.track_eof = false # Fix for built-in Ruby
12
11
  Signal.trap("INT") {} # Suppress backtrace when exiting command
13
12
 
14
- program :version, File.exist?('VERSION') ? File.read('VERSION') : "0.1.0"
13
+ program :version, "0.1.2"
15
14
  program :description, 'A command-line interface for managing your shell environment variables.'
16
15
 
17
16
  program :help, 'Author', 'Jim Jeffers <jim@sumocreations.com>'
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.1.1 ruby lib
5
+ # stub: confinicky 0.1.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "confinicky"
9
- s.version = "0.1.1"
9
+ s.version = "0.1.2"
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-10"
14
+ s.date = "2014-08-11"
15
15
  s.description = "A CLI that allows you to perform basic CRUD for your environment variables."
16
16
  s.email = "jim@sumocreations.com"
17
17
  s.executables = ["confinicky"]
@@ -39,7 +39,6 @@ Gem::Specification.new do |s|
39
39
  "lib/confinicky/commands/use.rb",
40
40
  "lib/confinicky/config.rb",
41
41
  "lib/confinicky/shell_file.rb",
42
- "lib/confinicky/version.rb",
43
42
  "test/helper.rb",
44
43
  "test/test_confinicky.rb"
45
44
  ]
@@ -5,12 +5,15 @@ command :list do |c|
5
5
  c.example 'description', 'confinicky list'
6
6
 
7
7
  c.action do |args, options|
8
+
8
9
  if Confinicky::ShellFile.has_path?
9
10
  say_error "Please set '#{Confinicky::FILE_PATH_VAR}' to point to your local configuration file."
10
11
  puts "Try running 'confinicky use' for more info."
11
12
  abort
12
13
  end
14
+
13
15
  shell_file = Confinicky::ShellFile.new
16
+
14
17
  table = Terminal::Table.new do |t|
15
18
  for export in shell_file.exports
16
19
  if export[1].length > 100
@@ -21,6 +24,7 @@ command :list do |c|
21
24
  end
22
25
  end
23
26
  puts table
27
+
24
28
  say_ok "Identified #{shell_file.exports.length} exports in #{Confinicky::ShellFile.file_path}"
25
29
  end
26
30
  end
@@ -23,6 +23,7 @@ command :remove do |c|
23
23
  if shell_file.remove!(args.first)
24
24
  say_ok "Successfully removed '#{args.first}'."
25
25
  puts "Run 'source #{Confinicky::ShellFile.file_path}' or open a new terminal/shell window."
26
+ shell_file.write!
26
27
  else
27
28
  say_error "Could not remove '#{args.first}' please double check to ensure you used the appropriate syntax."
28
29
  end
@@ -1,7 +1,9 @@
1
1
  require 'helper'
2
2
 
3
3
  class TestConfinicky < MiniTest::Unit::Test
4
+
4
5
  def test_something_for_real
5
6
  flunk "hey buddy, you should probably rename this file and start testing for real"
6
7
  end
8
+
7
9
  end
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.1.1
4
+ version: 0.1.2
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-10 00:00:00.000000000 Z
11
+ date: 2014-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -136,7 +136,6 @@ files:
136
136
  - lib/confinicky/commands/use.rb
137
137
  - lib/confinicky/config.rb
138
138
  - lib/confinicky/shell_file.rb
139
- - lib/confinicky/version.rb
140
139
  - test/helper.rb
141
140
  - test/test_confinicky.rb
142
141
  homepage: http://github.com/jimjeffers/confinicky
@@ -1,3 +0,0 @@
1
- module Confinicky
2
- VERSION = "1.0.0"
3
- end