toastyapps-gembox 1.3.6 → 1.3.7

Sign up to get free protection for your applications and to get access to all the features.
data/lib/gembox.rb CHANGED
@@ -3,7 +3,7 @@ require 'yaml'
3
3
  require 'erb'
4
4
 
5
5
  class Gembox
6
- VERSION = '1.3.6'
6
+ VERSION = '1.3.7'
7
7
  DEFAULTS = {'nodoc' => true, 'sources' => []}
8
8
  attr_accessor :dir, :cfg, :box_name
9
9
 
@@ -71,9 +71,8 @@ class Gembox
71
71
  private
72
72
 
73
73
  def generate_gem_yaml(file)
74
- data = `gem env`.split("\n")
74
+ lines = `gem env`.strip.split("\n")
75
75
  config = {'gem_paths' => []}
76
- lines = data.strip.split("\n")
77
76
  lines.each_with_index do |line, i|
78
77
  if line.match(/EXECUTABLE DIRECTORY:/)
79
78
  config['executable_directory'] = line.match(/:\s(.*)/).captures[0]
@@ -68,7 +68,7 @@ class Dispatch
68
68
  end
69
69
  puts " #{index}. All versions"
70
70
  print "> "
71
- choice = gets
71
+ choice = STDIN.gets
72
72
  if choice == index
73
73
  versions = data[gem_name].keys
74
74
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toastyapps-gembox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Mongeau