lux 1.0.7 → 1.0.8

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: 8e0947b5efcf9fabc2c11b06913adfbdaa204fb1
4
- data.tar.gz: 342ea52ff0f2fcdd68e68407332c749a4d4b81f9
3
+ metadata.gz: 17f092e16bb5301fa762d0137e24918531506458
4
+ data.tar.gz: f0ff905d5f5173fdb7ed0bafb14ca14fa876b767
5
5
  SHA512:
6
- metadata.gz: ae72f42c0be9640c0f2c4e2e77077846b475912146093c6522563dbd0621e1afcc89b7bedebf8da3038a41c28bffe5ca749cfdb3bc2fc7f70c970241baf5af8e
7
- data.tar.gz: f3180c3f6f9b6423a96ed4919c0c76ee4c728419795ca83f04a6caead1e1d368e0f3f49893b642e269e9b6376148ce293ecbcbcb5c342fbb54e664b9568128ab
6
+ metadata.gz: 391206b1d269ae2eb0908789297c8e8c79a0b4f6b895f5ba30ac26b8a20b8c1a5b797fb4aaad4e2d58402806f64ad955cb91c80470edd495b18bc5865e6c0d08
7
+ data.tar.gz: 3b28efd211f89e4b9071a62121a9a274c1f67fc2da04be69fc42b6882686be62802ad23ea13a2a7596ce9207d5a25694026a294b8ad45d9a71b0634ed1b873bd
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ lux (1.0.8)
2
+
3
+ * Don't prompt to select image if only one matches
4
+
5
+ -- Nick Townsend <nick.townsend@mac.com> Mon, 28 Sep 2015 08:59:10 -0700
6
+
1
7
  lux (1.0.7)
2
8
 
3
9
  * Fixed bug in start command
data/Rakefile CHANGED
@@ -1,7 +1 @@
1
1
  require "bundler/gem_tasks"
2
-
3
- desc "Update the CSS file"
4
- task :getcss do
5
- sh "curl -O http://necolas.github.io/normalize.css/latest/normalize.css"
6
- sh "curl -O https://raw.githubusercontent.com/richleland/pygments-css/master/github.css"
7
- end
data/lib/lux.rb CHANGED
@@ -45,12 +45,16 @@ module Lux
45
45
  matching_image = matching_images.select{|l| l.end_with? ':latest' }.first
46
46
  end
47
47
  unless matching_image
48
- matching_image = HighLine.choose do |menu|
49
- menu.header = 'List of matching (local) images'
50
- menu.choices(*matching_images)
51
- menu.choice('None of the above') { nil }
48
+ if matching_images.size == 1
49
+ matching_image = matching_images[0]
50
+ else
51
+ matching_image = HighLine.choose do |menu|
52
+ menu.header = 'List of matching (local) images'
53
+ menu.choices(*matching_images)
54
+ menu.choice('None of the above') { nil }
55
+ end
56
+ exit 2 unless matching_image
52
57
  end
53
- exit 2 unless matching_image
54
58
  end
55
59
  else
56
60
  matching_image = image
@@ -1,3 +1,3 @@
1
1
  module Lux
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lux
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Townsend
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2015-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -123,8 +123,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.4.5
126
+ rubygems_version: 2.4.5.1
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Handy utilities for working with Docker
130
130
  test_files: []
131
+ has_rdoc: