confinicky 0.2.1 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f6e7fe068f2fafefdb281682fe09288fcea4ae6
4
- data.tar.gz: 68b4a18d922dca00a9646dc56607403f6064fd64
3
+ metadata.gz: 9836f5a85f188ea3b4c9b7480f710bdac3a57eb7
4
+ data.tar.gz: b8ba70ed563f0ef0c6d6888dae9c4b368a01bd66
5
5
  SHA512:
6
- metadata.gz: 531c0ae2754214cc06dd755fec30d1cf8645daedb3c98f2268a482dfe2ecfcf4bed6cbfeb133222e1043fb55ac4f1e8fdd48ef21d316e4a85dc8a61cc619d3c2
7
- data.tar.gz: ccc3c3733ba986d7373eaa1e39ddb164b96f28798944be05764c93c52ae4d46d1b345049cb5b2aa9804338ef1bf1c4a42e438562d2acc5ed8572c1203ccf64aa
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.1 ruby lib
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.1"
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 '#{args.first}'."
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."
@@ -5,7 +5,7 @@ module Confinicky
5
5
  module Version
6
6
  MAJOR = 0
7
7
  MINOR = 2
8
- PATCH = 1
8
+ PATCH = 2
9
9
  BUILD = ''
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: confinicky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Jeffers