commander 4.1.1 → 4.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,10 @@
1
+ === 4.1.2 / 2012-02-17
2
+
3
+ * Improvement to `ask_editor` to be more portable across *nix variants. (thanks to Federico Galassi)
4
+
1
5
  === 4.1.1 / 2012-02-16
2
6
 
3
- * Update `ask_editor` to work with any unix editor - emacs, vim, etc. (thanks to Federico Galassi)
7
+ * Update `ask_editor` to work with any *nix editor - emacs, vim, etc. (thanks to Federico Galassi)
4
8
 
5
9
  === 4.1.0 / 2012-02-12
6
10
 
@@ -234,7 +234,7 @@ module Commander
234
234
  def available_editor preferred = nil
235
235
  [preferred, ENV['EDITOR'], 'mate -w', 'vim', 'vi', 'emacs', 'nano', 'pico'].
236
236
  compact.
237
- find {|name| system("/usr/bin/which #{name.split.first} > /dev/null") }
237
+ find {|name| system("hash #{name.split.first} 2>&-") }
238
238
  end
239
239
 
240
240
  ##
@@ -1,3 +1,3 @@
1
1
  module Commander
2
- VERSION = '4.1.1'
2
+ VERSION = '4.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commander
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-16 00:00:00.000000000Z
13
+ date: 2012-02-17 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline
17
- requirement: &2157651520 !ruby/object:Gem::Requirement
17
+ requirement: &70103334850040 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 1.6.11
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2157651520
25
+ version_requirements: *70103334850040
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec
28
- requirement: &2157681480 !ruby/object:Gem::Requirement
28
+ requirement: &70103334849540 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '2'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2157681480
36
+ version_requirements: *70103334849540
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rake
39
- requirement: &2157681100 !ruby/object:Gem::Requirement
39
+ requirement: &70103334849160 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2157681100
47
+ version_requirements: *70103334849160
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: simplecov
50
- requirement: &2157680640 !ruby/object:Gem::Requirement
50
+ requirement: &70103334848700 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2157680640
58
+ version_requirements: *70103334848700
59
59
  description: The complete solution for Ruby command-line executables. Commander bridges
60
60
  the gap between other terminal related libraries you know and love (OptionParser,
61
61
  HighLine), while providing many new features, and an elegant API.
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project: commander
126
- rubygems_version: 1.8.15
126
+ rubygems_version: 1.8.16
127
127
  signing_key:
128
128
  specification_version: 3
129
129
  summary: The complete solution for Ruby command-line executables