rugui 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +7 -0
- data/README.rdoc +6 -0
- data/lib/rugui/tasks/spec_application.rake +57 -52
- data/lib/rugui/version.rb +1 -1
- metadata +2 -4
- data/README +0 -62
data/Changelog
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
1.3.3
|
2
|
+
- Fixed loading of RSpec tasks by the application task loader when RSpec gem is not installed.
|
3
|
+
- Updated README to explain usage of both testing frameworks, Test::Unit and RSpec.
|
4
|
+
|
5
|
+
1.3.2
|
6
|
+
- Nothing has changed, version number was bumped just to test RuGUI release procedure.
|
7
|
+
|
1
8
|
1.3.1
|
2
9
|
- Added a DSL to detect when observable properties were changed.
|
3
10
|
- Silencing logs when running in test environment unless a level is defined in test environment configuration file.
|
data/README.rdoc
CHANGED
@@ -57,6 +57,12 @@ For more options type:
|
|
57
57
|
|
58
58
|
rugui -h
|
59
59
|
|
60
|
+
== Testing
|
61
|
+
|
62
|
+
Your application may use Test::Unit or RSpec as the testing framework. If you
|
63
|
+
have RSpec gem installed, 'rake -T' will list RSpec related tasks as well.
|
64
|
+
Otherwise only Test::Unit tasks will be displayed.
|
65
|
+
|
60
66
|
== More info
|
61
67
|
|
62
68
|
http://rugui.org
|
@@ -1,64 +1,69 @@
|
|
1
|
-
|
2
|
-
require '
|
1
|
+
begin
|
2
|
+
require 'rubygems'
|
3
|
+
require 'spec/rake/spectask'
|
3
4
|
|
4
|
-
task :stats => "spec:statsetup"
|
5
|
+
task :stats => "spec:statsetup"
|
5
6
|
|
6
|
-
desc "Run all specs in spec directory (excluding plugin specs)"
|
7
|
-
Spec::Rake::SpecTask.new(:spec) do |t|
|
8
|
-
t.spec_opts = ['--options', "\"#{APPLICATION_ROOT}/spec/spec.opts\""]
|
9
|
-
t.spec_files = FileList['spec/**/*_spec.rb']
|
10
|
-
end
|
11
|
-
|
12
|
-
namespace :spec do
|
13
|
-
desc "Run all specs in spec directory with RCov (excluding plugin specs)"
|
14
|
-
Spec::Rake::SpecTask.new(:rcov) do |t|
|
7
|
+
desc "Run all specs in spec directory (excluding plugin specs)"
|
8
|
+
Spec::Rake::SpecTask.new(:spec) do |t|
|
15
9
|
t.spec_opts = ['--options', "\"#{APPLICATION_ROOT}/spec/spec.opts\""]
|
16
10
|
t.spec_files = FileList['spec/**/*_spec.rb']
|
17
|
-
t.rcov = true
|
18
|
-
t.rcov_opts = lambda do
|
19
|
-
IO.readlines("#{APPLICATION_ROOT}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
|
20
|
-
end
|
21
11
|
end
|
22
12
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
13
|
+
namespace :spec do
|
14
|
+
desc "Run all specs in spec directory with RCov (excluding plugin specs)"
|
15
|
+
Spec::Rake::SpecTask.new(:rcov) do |t|
|
16
|
+
t.spec_opts = ['--options', "\"#{APPLICATION_ROOT}/spec/spec.opts\""]
|
17
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
18
|
+
t.rcov = true
|
19
|
+
t.rcov_opts = lambda do
|
20
|
+
IO.readlines("#{APPLICATION_ROOT}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
|
21
|
+
end
|
22
|
+
end
|
28
23
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
24
|
+
desc "Print Specdoc for all specs (excluding plugin specs)"
|
25
|
+
Spec::Rake::SpecTask.new(:doc) do |t|
|
26
|
+
t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
27
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
28
|
+
end
|
34
29
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
t.
|
39
|
-
t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"]
|
30
|
+
desc "Print Specdoc for all plugin specs"
|
31
|
+
Spec::Rake::SpecTask.new(:plugin_doc) do |t|
|
32
|
+
t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
33
|
+
t.spec_files = FileList['vendor/plugins/**/spec/**/*_spec.rb'].exclude('vendor/plugins/rspec/*')
|
40
34
|
end
|
41
|
-
end
|
42
35
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
36
|
+
[:models, :controllers, :views, :view_helpers, :lib].each do |sub|
|
37
|
+
desc "Run the specs under spec/#{sub}"
|
38
|
+
Spec::Rake::SpecTask.new(sub) do |t|
|
39
|
+
t.spec_opts = ['--options', "\"#{APPLICATION_ROOT}/spec/spec.opts\""]
|
40
|
+
t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"]
|
41
|
+
end
|
42
|
+
end
|
48
43
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
44
|
+
desc "Run the specs under vendor/plugins (except RSpec's own)"
|
45
|
+
Spec::Rake::SpecTask.new(:plugins) do |t|
|
46
|
+
t.spec_opts = ['--options', "\"#{APPLICATION_ROOT}/spec/spec.opts\""]
|
47
|
+
t.spec_files = FileList['vendor/plugins/**/spec/**/*_spec.rb'].exclude('vendor/plugins/rspec/*')
|
48
|
+
end
|
49
|
+
|
50
|
+
# Setup specs for stats
|
51
|
+
task :statsetup do
|
52
|
+
require 'code_statistics'
|
53
|
+
::STATS_DIRECTORIES << %w(Model\ specs spec/models) if File.exist?('spec/models')
|
54
|
+
::STATS_DIRECTORIES << %w(View\ specs spec/views) if File.exist?('spec/views')
|
55
|
+
::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers) if File.exist?('spec/controllers')
|
56
|
+
::STATS_DIRECTORIES << %w(ViewHelper\ specs spec/helpers) if File.exist?('spec/view_helpers')
|
57
|
+
::STATS_DIRECTORIES << %w(Library\ specs spec/lib) if File.exist?('spec/lib')
|
58
|
+
::CodeStatistics::TEST_TYPES << "Model specs" if File.exist?('spec/models')
|
59
|
+
::CodeStatistics::TEST_TYPES << "View specs" if File.exist?('spec/views')
|
60
|
+
::CodeStatistics::TEST_TYPES << "Controller specs" if File.exist?('spec/controllers')
|
61
|
+
::CodeStatistics::TEST_TYPES << "ViewHelper specs" if File.exist?('spec/view_helpers')
|
62
|
+
::CodeStatistics::TEST_TYPES << "Library specs" if File.exist?('spec/lib')
|
63
|
+
::STATS_DIRECTORIES.delete_if {|a| a[0] =~ /test/}
|
64
|
+
end
|
63
65
|
end
|
64
|
-
|
66
|
+
rescue LoadError
|
67
|
+
# RSpec gem or rubygems are not installed, in order to use RSpec related tasks
|
68
|
+
# they should be installed.
|
69
|
+
end
|
data/lib/rugui/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rugui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vicente Mundim
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2009-08-
|
14
|
+
date: 2009-08-12 00:00:00 -03:00
|
15
15
|
default_executable: rugui
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
@@ -45,12 +45,10 @@ extensions: []
|
|
45
45
|
|
46
46
|
extra_rdoc_files:
|
47
47
|
- LICENSE
|
48
|
-
- README
|
49
48
|
- README.rdoc
|
50
49
|
files:
|
51
50
|
- Changelog
|
52
51
|
- LICENSE
|
53
|
-
- README
|
54
52
|
- Rakefile
|
55
53
|
- bin/rugui
|
56
54
|
- lib/packing/release.rb
|
data/README
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
= RuGUI
|
2
|
-
|
3
|
-
RuGUI is a framework which aims to help building desktop applications. RuGUI was
|
4
|
-
mostly inspired by the *Ruby on Rails* framework, taking most of its features
|
5
|
-
from it.
|
6
|
-
|
7
|
-
RuGUI approach is to provide a MVC design for the application, separating
|
8
|
-
business logic from application presentation, making it easy to maintain and
|
9
|
-
evolve the application.
|
10
|
-
|
11
|
-
Also, a Observer/Observable pattern is implemented so that you can define
|
12
|
-
observable properties in your model which are observed by controllers that
|
13
|
-
should react to changes in the model. This makes the application code even more
|
14
|
-
clean when dealing with applications that have multiple data entry points. For
|
15
|
-
example, when receiving data from a network one may update a value in a model,
|
16
|
-
and the controller will update all needed widgets (progress bars, labels, status
|
17
|
-
bar, etc).
|
18
|
-
|
19
|
-
The initial framework was based on the great Ruby/GTK API, but RuGUI has evolved
|
20
|
-
so that you may use other GUI frameworks with it. Since version 1.1.x it has
|
21
|
-
placed all functionality specific for GTK wrapped in a framework adapter. This
|
22
|
-
has made it possible to write a QT adapter and now it is possible to use all of
|
23
|
-
the RuGUI features together with QT. As the framework evolve other framework
|
24
|
-
adapters may be written, enabling the use of RuGUI with any other GUI frameworks.
|
25
|
-
|
26
|
-
== Instalation
|
27
|
-
|
28
|
-
Install the gem:
|
29
|
-
|
30
|
-
gem install rugui
|
31
|
-
|
32
|
-
To check if the installation was successful type in a console:
|
33
|
-
|
34
|
-
rugui -v
|
35
|
-
|
36
|
-
== Dependencies
|
37
|
-
|
38
|
-
RuGUI depends, of course, on the Ruby binding for the GUI framework that you'll
|
39
|
-
use. It is known to work on Linux and Windows plataforms. Currently it depends
|
40
|
-
on the ActiveSupport gem, which can be installed by:
|
41
|
-
|
42
|
-
gem install activesupport
|
43
|
-
|
44
|
-
To be able to generate applications and controllers/models/views, you will need
|
45
|
-
the rubigen gem, which can be installed by:
|
46
|
-
|
47
|
-
gem install rubigen
|
48
|
-
|
49
|
-
== Generating an Application
|
50
|
-
|
51
|
-
To generate an application, go to the directory where you want to create the
|
52
|
-
application and type:
|
53
|
-
|
54
|
-
rugui <app_name>
|
55
|
-
|
56
|
-
For more options type:
|
57
|
-
|
58
|
-
rugui -h
|
59
|
-
|
60
|
-
== More info
|
61
|
-
|
62
|
-
http://rugui.org
|