ruber 0.0.1.1 → 0.0.4
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.
- data/bin/ruber +1 -1
- data/lib/ruber/application/application.rb +1 -1
- data/lib/ruber/main_window/main_window.rb +3 -3
- metadata +2 -3
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.
|
|
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.
|
|
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
|
-
|
|
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
|