confinicky 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/confinicky.gemspec +2 -2
- data/lib/confinicky/commands/set.rb +9 -1
- data/lib/confinicky/version.rb +1 -1
- 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: 9836f5a85f188ea3b4c9b7480f710bdac3a57eb7
|
4
|
+
data.tar.gz: b8ba70ed563f0ef0c6d6888dae9c4b368a01bd66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5f87de97ec66d6e7ffb70bb056a067140b4a591452bf17f1b9773b26960a8b02b9e5177c9419bc248ddc23182ed4bdb0dd0f2ded2436d20f062d6d23c06c31e
|
7
|
+
data.tar.gz: 52102e4319e2e09bc2e3a54c82656ae4c6451bd06252ac7a9006a33ca06b63c9a666a967aa02b6a90e6856368350ed8a074aea9030ae686174b986515b02a7bd
|
data/confinicky.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
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.2 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.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"]
|
@@ -25,6 +25,14 @@ command :set do |c|
|
|
25
25
|
command_group = Confinicky::Controllers::Exports.new if command == Confinicky::Arguments::ENVIRONMENT
|
26
26
|
command_group = Confinicky::Controllers::Aliases.new if command == Confinicky::Arguments::ALIAS
|
27
27
|
|
28
|
+
# Do we have whitespace that needs to be merged?
|
29
|
+
# This resolves some basic commands that should be
|
30
|
+
# wrapped in quotes.
|
31
|
+
if args.length > 2
|
32
|
+
args.shift
|
33
|
+
expression = args.join " "
|
34
|
+
end
|
35
|
+
|
28
36
|
# Abort if duplicate commands have been found.
|
29
37
|
if command_group.duplicates.length > 0
|
30
38
|
say_error "Your configuration cannot be managed because it currently has duplicate statements."
|
@@ -34,7 +42,7 @@ command :set do |c|
|
|
34
42
|
|
35
43
|
# Set the variable and save changes to disk.
|
36
44
|
if command_group.set!(expression) and command_group.save!
|
37
|
-
say_ok "Successfully set '#{
|
45
|
+
say_ok "Successfully set '#{expression}'."
|
38
46
|
puts "Open a new terminal/shell window for these changes to take affect."
|
39
47
|
else
|
40
48
|
say_error "Could not set '#{expression}' please double check to ensure you used the appropriate syntax."
|
data/lib/confinicky/version.rb
CHANGED