ruber 0.0.1.1 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/bin/ruber CHANGED
@@ -31,7 +31,7 @@ require 'ruber/utils'
31
31
  require 'ruber/exception_widgets'
32
32
  require 'ruber/component_manager.rb'
33
33
 
34
- data = KDE::AboutData.new "ruber", "", KDE::ki18n("Ruber"), "0.0.1.1",
34
+ data = KDE::AboutData.new "ruber", "", KDE::ki18n("Ruber"), "0.0.4",
35
35
  KDE.ki18n('A Ruby IDE written in Ruby'), KDE::AboutData::License_GPL
36
36
  data.add_author KDE.ki18n('Stefano Crocco'), KDE::LocalizedString.new,
37
37
  Qt::ByteArray.new('stefano.crocco@alice.it')
@@ -169,7 +169,7 @@ or sorting dependencies.
169
169
  =end
170
170
  def setup
171
171
  # Create $KDEHOME/share/apps/ruber/plugins if it's missing
172
- begin FileUtils.mkdir DEFAULT_PLUGIN_PATHS[0]
172
+ begin FileUtils.mkdir_p DEFAULT_PLUGIN_PATHS[0]
173
173
  rescue Errno::EEXIST
174
174
  end
175
175
  chosen_plugins = Ruber[:config][:general, :plugins].map(&:to_sym)
@@ -190,9 +190,9 @@ Returns the editor view for the given document, creating it if needed
190
190
  doesn't exist
191
191
  =end
192
192
  def editor_for! doc
193
- doc = unless doc.is_a? Document
194
- if doc.is_a? KDE::Url or doc.start_with? '/' then Ruber[:documents].document doc
195
- else Ruber[:documents].document_with_name doc
193
+ unless doc.is_a? Document
194
+ if doc.is_a? KDE::Url or doc.start_with? '/' then doc = Ruber[:documents].document doc
195
+ else doc = Ruber[:documents].document_with_name doc
196
196
  end
197
197
  end
198
198
  return unless doc
metadata CHANGED
@@ -5,9 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- - 1
10
- version: 0.0.1.1
8
+ - 4
9
+ version: 0.0.4
11
10
  platform: ruby
12
11
  authors:
13
12
  - Stefano Crocco