lux 1.0.4 → 1.0.5

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: 470b01fc27a167ded67ac3e78b182c1a6de73ea8
4
- data.tar.gz: db905561412bbd7af5d5b5e07a75d2b55b30f49e
3
+ metadata.gz: 8d5b17560966b0d42c68cc11280dd78d122555c1
4
+ data.tar.gz: adbebd07c74ce022217dee2464969dc3bfef7de7
5
5
  SHA512:
6
- metadata.gz: a531c424ab7e8791ab40f1d5fc754e30dbbd37adea65c1c0be5f7676e8629709183f04ad50bcd93970566091cc3237bf854f352f276b80a32264efbb7d063d85
7
- data.tar.gz: 51d5965a0e686aa7ed79b3cb1906196b3c526a3ec13efd791260868977d8bb37e032677be0c0dd565666f1bc9c62766f9bcb3424a0687224f3868bffc3d57eef
6
+ metadata.gz: 2b176d8c351517d852d173ee752bd83648a7e4d82dcea665585c90d35cfd27e628729b1878f42af2c1d33cb477e6b882abbe9aadb45ea3f5db096d8e7924a6dd
7
+ data.tar.gz: da28e7e66292c1e92faf4ae8a99915f9ff98a1093d540650017a1d17545d925f2e64603688e59b66ef4252e016e9a5858985b70c488c2f913f1ec37cc82d5885
data/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
1
+ lux (1.0.5)
2
+
3
+ * Send only 'export' command to STDOUT in lux dockerip.
4
+ * Send errors to STDERR
5
+ This allows $(lux dockerip) to set it for the current shell
6
+
7
+ -- Nick Townsend <nick.townsend@mac.com> Thu, 13 Aug 2015 21:27:48 -0700
8
+
1
9
  lux (1.0.4)
2
10
 
3
11
  * Refactor Lux into a Module
data/lib/lux.rb CHANGED
@@ -60,7 +60,7 @@ module Lux
60
60
  end
61
61
 
62
62
  def self.die msg, rc = 1
63
- HighLine.say HighLine.color(msg, HighLine::RED)
63
+ HighLine.new(STDIN, STDERR).say HighLine.color(msg, HighLine::RED)
64
64
  exit(rc)
65
65
  end
66
66
 
data/lib/lux/app.rb CHANGED
@@ -173,11 +173,11 @@ class Lux::App < Thor
173
173
  end
174
174
  end
175
175
 
176
- desc "dockerip", "Show DOCKER_HOST IP address"
176
+ desc "dockerip", "Show DOCKER_HOST IP address in exportable format. Use $(lux dockerip) to set it"
177
177
  def dockerip
178
178
  name, var, uri = Lux.dockerip
179
179
  Lux.die "Docker URL or HOST not found" unless name
180
- puts "Found #{var}=#{uri.to_s}"
180
+ STDERR.puts "Found #{var}=#{uri.to_s}"
181
181
  if uri.host != name
182
182
  uri.host = name
183
183
  puts "export #{var}=#{uri.to_s}"
data/lib/lux/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lux
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lux
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Townsend