ruber 0.0.7 → 0.0.8

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.
Files changed (67) hide show
  1. data/CHANGES +54 -0
  2. data/bin/ruber +12 -1
  3. data/data/share/apps/ruber/ruberui.rc +5 -0
  4. data/data/share/icons/pin.png +0 -0
  5. data/lib/ruber/application/application.rb +1 -1
  6. data/lib/ruber/documents/document_list.rb +1 -1
  7. data/lib/ruber/editor/document.rb +26 -6
  8. data/lib/ruber/editor/editor_view.rb +21 -2
  9. data/lib/ruber/filtered_output_widget.rb +1 -1
  10. data/lib/ruber/ktexteditor_sugar.rb +124 -0
  11. data/lib/ruber/main_window/main_window.rb +34 -16
  12. data/lib/ruber/main_window/main_window_actions.rb +98 -5
  13. data/lib/ruber/main_window/main_window_internal.rb +1 -1
  14. data/lib/ruber/main_window/plugin.yaml +5 -0
  15. data/lib/ruber/main_window/ui/choose_plugins_widget.rb +2 -2
  16. data/lib/ruber/main_window/ui/main_window_settings_widget.rb +67 -34
  17. data/lib/ruber/main_window/ui/main_window_settings_widget.ui +77 -30
  18. data/lib/ruber/main_window/ui/new_project_widget.rb +2 -2
  19. data/lib/ruber/main_window/ui/open_file_in_project_dlg.rb +2 -2
  20. data/lib/ruber/main_window/ui/output_color_widget.rb +2 -2
  21. data/lib/ruber/main_window/ui/workspace_settings_widget.rb +1 -1
  22. data/lib/ruber/main_window/view_manager.rb +14 -1
  23. data/lib/ruber/output_widget.rb +409 -288
  24. data/lib/ruber/pane.rb +22 -0
  25. data/lib/ruber/projects/ui/project_files_rule_chooser_widget.rb +2 -2
  26. data/lib/ruber/projects/ui/project_files_widget.rb +2 -2
  27. data/lib/ruber/qt_sugar.rb +11 -0
  28. data/lib/ruber/version.rb +1 -1
  29. data/plugins/auto_end/auto_end.rb +122 -0
  30. data/plugins/auto_end/plugin.yaml +11 -0
  31. data/plugins/autosave/ui/autosave_config_widget.rb +2 -2
  32. data/plugins/command/command.rb +71 -12
  33. data/plugins/command/output.rb +592 -0
  34. data/plugins/command/ui/tool_widget.rb +143 -0
  35. data/plugins/command/ui/tool_widget.ui +147 -0
  36. data/plugins/find_in_files/ui/config_widget.rb +2 -2
  37. data/plugins/find_in_files/ui/find_in_files_widget.rb +2 -2
  38. data/plugins/rake/ui/add_quick_task_widget.rb +2 -2
  39. data/plugins/rake/ui/choose_task_widget.rb +2 -2
  40. data/plugins/rake/ui/config_widget.rb +2 -2
  41. data/plugins/rake/ui/project_widget.rb +2 -2
  42. data/plugins/rspec/plugin.yaml +7 -2
  43. data/plugins/rspec/rspec.rb +178 -53
  44. data/plugins/rspec/rspecui.rc +2 -3
  45. data/plugins/rspec/ui/config_widget.rb +79 -0
  46. data/plugins/rspec/ui/config_widget.ui +89 -0
  47. data/plugins/rspec/ui/rspec_project_widget.rb +2 -2
  48. data/plugins/ruby_development/ruby_development.rb +1 -1
  49. data/plugins/ruby_development/ui/config_widget.rb +1 -1
  50. data/plugins/ruby_development/ui/project_widget.rb +2 -2
  51. data/plugins/ruby_runner/ruby_runner.rb +13 -12
  52. data/plugins/ruby_runner/ui/config_widget.rb +2 -2
  53. data/plugins/ruby_runner/ui/project_widget.rb +2 -2
  54. data/plugins/ruby_runner/ui/ruby_runnner_plugin_option_widget.rb +2 -2
  55. data/plugins/state/ui/config_widget.rb +2 -2
  56. data/plugins/syntax_checker/syntax_checker.rb +1 -1
  57. data/spec/auto_end_spec.rb +272 -0
  58. data/spec/common.rb +1 -0
  59. data/spec/document_spec.rb +83 -0
  60. data/spec/editor_view_spec.rb +41 -0
  61. data/spec/filtered_output_widget_spec.rb +2 -2
  62. data/spec/ktexteditor_sugar_spec.rb +190 -0
  63. data/spec/output_widget_spec.rb +120 -11
  64. data/spec/pane_spec.rb +1 -1
  65. data/spec/qt_sugar_spec.rb +14 -0
  66. data/spec/state_spec.rb +0 -26
  67. metadata +14 -3
@@ -25,7 +25,7 @@ describe Ruber::Pane do
25
25
  end
26
26
 
27
27
  it 'is enumerable' do
28
- Ruber::Pane.ancestors.should include(QtEnumerable)
28
+ Ruber::Pane.ancestors.should include(Enumerable)
29
29
  end
30
30
 
31
31
  context 'when created with one view' do
@@ -594,4 +594,18 @@ describe Qt::Splitter do
594
594
 
595
595
  end
596
596
 
597
+ describe Qt::Enum do
598
+
599
+ it 'can be summed with a fixnum' do
600
+ (Qt::AlignHCenter + 2).should == 6
601
+ (2 + Qt::AlignHCenter).should == 6
602
+ end
603
+
604
+ it 'can perform binary operations with a fixnum' do
605
+ (Qt::AlignHCenter & 4).should == 4
606
+ (4 & Qt::AlignHCenter).should == 4
607
+ end
608
+
609
+ end
610
+
597
611
  end
@@ -13,34 +13,14 @@ require 'plugins/state/state'
13
13
  describe Ruber::State::Plugin do
14
14
 
15
15
  before do
16
- # #Needed because the Qt::Object connect method doesn't like @components not being a
17
- # #Qt::Object
18
- # class Ruber::State::Plugin
19
- # def connect *args
20
- # end
21
- # end
22
- # @components = flexmock('components'){|m| m.should_ignore_missing}
23
- # @config = flexmock('config'){|m| m.should_ignore_missing}
24
- # flexmock(Ruber).should_receive(:[]).with(:components).and_return(@components).by_default
25
- # flexmock(Ruber).should_receive(:[]).with(:app).and_return(KDE::Application.instance).by_default
26
- # flexmock(Ruber).should_receive(:[]).with(:config).and_return(@config).by_default
27
16
  Ruber[:documents].close_all(false)
28
17
  Ruber[:components].load_plugin 'plugins/state/'
29
18
  @plug = Ruber[:components][:state]
30
- # data = YAML.load('plugins/state/plugin.yaml')
31
- # psf = Ruber::PluginSpecification.full data
32
- # @plug = Ruber::State::Plugin.new psf
33
19
  end
34
20
 
35
21
  after do
36
22
  Ruber[:components].unload_plugin(:state)
37
23
  end
38
- #
39
- # after do
40
- # class Ruber::State::Plugin
41
- # remove_method :connect rescue nil
42
- # end
43
- # end
44
24
 
45
25
  it 'inherits Ruber::Plugin' do
46
26
  Ruber::State::Plugin.ancestors.should include(Ruber::Plugin)
@@ -62,12 +42,6 @@ describe Ruber::State::Plugin do
62
42
 
63
43
  describe '#delayed_initialize' do
64
44
 
65
- # before do
66
- # @documents = flexmock('documents')
67
- # @projects = flexmock('projects')
68
- # flexmock(KDE::Application.instance).should_receive(:starting?).and_return(true).by_default
69
- # end
70
-
71
45
  it 'calls the restore_last_state method if there\'s no open project and the only open document is pristine' do
72
46
  Ruber[:documents].new_document
73
47
  flexmock(@plug).should_receive(:restore_last_state).once
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 7
9
- version: 0.0.7
8
+ - 8
9
+ version: 0.0.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Stefano Crocco
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-12 00:00:00 +01:00
17
+ date: 2011-02-07 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -113,6 +113,7 @@ files:
113
113
  - lib/ruber/project_backend.rb
114
114
  - lib/ruber/documents/plugin.yaml
115
115
  - lib/ruber/documents/document_list.rb
116
+ - lib/ruber/ktexteditor_sugar.rb
116
117
  - lib/ruber/plugin_specification.rb
117
118
  - lib/ruber/output_widget.rb
118
119
  - lib/ruber/settings_dialog.rb
@@ -158,11 +159,16 @@ files:
158
159
  - plugins/rake/rake.png
159
160
  - plugins/rake/rake_extension.rb
160
161
  - plugins/rake/rake_widgets.rb
162
+ - plugins/command/ui/tool_widget.rb
163
+ - plugins/command/ui/tool_widget.ui
161
164
  - plugins/command/plugin.yaml
162
165
  - plugins/command/command.png
163
166
  - plugins/command/command.rb
167
+ - plugins/command/output.rb
164
168
  - plugins/rspec/ui/rspec_project_widget.rb
165
169
  - plugins/rspec/ui/rspec_project_widget.ui
170
+ - plugins/rspec/ui/config_widget.rb
171
+ - plugins/rspec/ui/config_widget.ui
166
172
  - plugins/rspec/plugin.yaml
167
173
  - plugins/rspec/rspec.rb
168
174
  - plugins/rspec/rspec.png
@@ -182,6 +188,8 @@ files:
182
188
  - plugins/find_in_files/find_in_files_widgets.rb
183
189
  - plugins/find_in_files/find_in_files_dlg.rb
184
190
  - plugins/find_in_files/find_in_files_ui.rc
191
+ - plugins/auto_end/plugin.yaml
192
+ - plugins/auto_end/auto_end.rb
185
193
  - plugins/autosave/ui/autosave_config_widget.rb
186
194
  - plugins/autosave/ui/autosave_config_widget.ui
187
195
  - plugins/autosave/autosave.rb
@@ -224,10 +232,12 @@ files:
224
232
  - spec/ktexteditor_wrapper_spec.rb
225
233
  - spec/hint_solver_spec.rb
226
234
  - spec/kde_config_option_backend_spec.rb
235
+ - spec/auto_end_spec.rb
227
236
  - spec/filtered_output_widget_spec.rb
228
237
  - spec/settings_container_spec.rb
229
238
  - spec/project_files_list_spec.rb
230
239
  - spec/document_project_spec.rb
240
+ - spec/ktexteditor_sugar_spec.rb
231
241
  - spec/plugin_spec.rb
232
242
  - spec/document_list_spec.rb
233
243
  - spec/component_manager_spec.rb
@@ -246,6 +256,7 @@ files:
246
256
  - data/share/apps/ruber/core_components.yaml
247
257
  - data/share/apps/ruber/ruberui.rc
248
258
  - data/share/icons/ruber-old.pgn
259
+ - data/share/icons/pin.png
249
260
  - data/share/pixmaps/ruby.png
250
261
  - ruber.desktop
251
262
  - outsider_files