rugui 1.4.2 → 1.4.3

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/Changelog CHANGED
@@ -1,3 +1,10 @@
1
+ 1.4.3
2
+ - Fixing options in rugui generator
3
+ - Removing dependency on jeweler for gem release
4
+ - Corrected gemspec, now to release rugui use:
5
+ gem build rugui.gemspec
6
+ gem push rugui-X-X-X.gem
7
+
1
8
  1.4.2
2
9
  - Fixing thor generator again, some directories were not being created.
3
10
 
data/Rakefile CHANGED
@@ -6,7 +6,6 @@
6
6
  require 'rake'
7
7
  require 'rake/testtask'
8
8
  require 'rake/rdoctask'
9
- require 'rubygems'
9
+
10
10
  require 'lib/rugui/tasks/rugui_framework'
11
11
 
12
- require 'lib/packing/release'
data/Thorfile ADDED
@@ -0,0 +1,2 @@
1
+ # Loading generators
2
+ require 'rugui/generators'
@@ -1,14 +1,14 @@
1
1
  class Rugui < Thor::Group
2
2
  include Thor::Actions
3
3
 
4
- argument :name, :default => 'test'
4
+ argument :name
5
5
  argument :app_path, :optional => true,
6
6
  :desc => "The path where to generate the application, if not specified it will create the application in a directory with the same name of the application in the current directory."
7
7
 
8
- class_option :framework_adapter, :type => :string, :aliases => 'a', :default => 'gtk',
8
+ class_option :framework_adapter, :type => :string, :aliases => '-a', :default => 'gtk',
9
9
  :desc => "Choose which framework adapter to use, must either 'gtk' or 'qt'"
10
10
 
11
- class_option :test_framework, :type => :string, :aliases => 't', :default => 'RSpec',
11
+ class_option :test_framework, :type => :string, :aliases => '-t', :default => 'RSpec',
12
12
  :desc => "Choose which test framework to use, defaults to 'RSpec', but can be set to 'test-unit' also"
13
13
 
14
14
  class_option :version, :type => :boolean, :aliases => "-v", :group => :rugui,
data/lib/rugui/version.rb CHANGED
@@ -2,7 +2,7 @@ module RuGUI
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 4
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 4
8
- - 2
9
- version: 1.4.2
8
+ - 3
9
+ version: 1.4.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Vicente Mundim
@@ -17,8 +17,8 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-04-04 00:00:00 -03:00
21
- default_executable: rugui
20
+ date: 2010-04-05 00:00:00 -03:00
21
+ default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: activesupport
@@ -48,7 +48,7 @@ dependencies:
48
48
  version: 0.13.3
49
49
  type: :runtime
50
50
  version_requirements: *id002
51
- description: A simple MVC framework for RubyGTK.
51
+ description: RuGUI is a framework which aims to help building desktop applications. RuGUI was mostly inspired by the *Ruby on Rails* framework, taking most of its features from it.
52
52
  email:
53
53
  - vicente.mundim@gmail.com
54
54
  - fmesquitacunha@gmail.com
@@ -62,88 +62,84 @@ extra_rdoc_files:
62
62
  - LICENSE
63
63
  - README.rdoc
64
64
  files:
65
- - Changelog
66
- - LICENSE
67
- - Rakefile
68
65
  - bin/rugui
69
- - lib/packing/release.rb
70
- - lib/rugui.rb
66
+ - lib/rugui/base_view_helper.rb
71
67
  - lib/rugui/base_controller.rb
72
- - lib/rugui/base_model.rb
68
+ - lib/rugui/tasks/spec_application.rake
69
+ - lib/rugui/tasks/rugui.rb
70
+ - lib/rugui/tasks/runner_application.rake
71
+ - lib/rugui/tasks/spec_framework.rake
72
+ - lib/rugui/tasks/rugui_framework.rb
73
+ - lib/rugui/tasks/test_application.rake
74
+ - lib/rugui/tasks/gems_application.rake
75
+ - lib/rugui/gem_dependency.rb
76
+ - lib/rugui/initialize_hooks.rb
73
77
  - lib/rugui/base_object.rb
74
78
  - lib/rugui/base_view.rb
75
- - lib/rugui/base_view_helper.rb
79
+ - lib/rugui/property_changed_support.rb
80
+ - lib/rugui/generators.rb
81
+ - lib/rugui/gem_builder.rb
82
+ - lib/rugui/initializer.rb
76
83
  - lib/rugui/configuration.rb
77
- - lib/rugui/entity_registration_support.rb
78
84
  - lib/rugui/framework_adapters/GTK.rb
85
+ - lib/rugui/framework_adapters/framework_adapter_support.rb
79
86
  - lib/rugui/framework_adapters/Qt4.rb
80
87
  - lib/rugui/framework_adapters/base_framework_adapter.rb
81
- - lib/rugui/framework_adapters/framework_adapter_support.rb
82
- - lib/rugui/gem_builder.rb
83
- - lib/rugui/gem_dependency.rb
84
- - lib/rugui/generators.rb
88
+ - lib/rugui/signal_support.rb
89
+ - lib/rugui/observable_property_support.rb
90
+ - lib/rugui/vendor_gem_source_index.rb
91
+ - lib/rugui/plugin/loader.rb
92
+ - lib/rugui/entity_registration_support.rb
93
+ - lib/rugui/base_model.rb
94
+ - lib/rugui/log_support.rb
85
95
  - lib/rugui/generators/rugui/rugui_generator.rb
86
- - lib/rugui/generators/rugui/templates/README
87
- - lib/rugui/generators/rugui/templates/Rakefile
88
- - lib/rugui/generators/rugui/templates/app/main.rb
89
96
  - lib/rugui/generators/rugui/templates/bin/main_executable
90
97
  - lib/rugui/generators/rugui/templates/bin/main_executable.bat
91
- - lib/rugui/generators/rugui/templates/config/boot.rb
92
- - lib/rugui/generators/rugui/templates/config/environments/development.rb
93
- - lib/rugui/generators/rugui/templates/config/environments/production.rb
94
- - lib/rugui/generators/rugui/templates/config/environments/test.rb
95
- - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/application_controller.rb
96
- - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/main_controller.rb
97
- - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/resources/glade/main_view.glade
98
- - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/resources/styles/main.rc
99
- - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/application_view.rb
100
- - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/main_view.rb
101
- - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/view_helpers/application_view_helper.rb
102
- - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/view_helpers/main_view_helper.rb
103
- - lib/rugui/generators/rugui/templates/framework_specific/gtk/config/environment.rb
104
- - lib/rugui/generators/rugui/templates/framework_specific/qt/app/controllers/application_controller.rb
105
98
  - lib/rugui/generators/rugui/templates/framework_specific/qt/app/controllers/main_controller.rb
106
- - lib/rugui/generators/rugui/templates/framework_specific/qt/app/resources/ui/main_view.ui
107
- - lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/application_view.rb
99
+ - lib/rugui/generators/rugui/templates/framework_specific/qt/app/controllers/application_controller.rb
108
100
  - lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/main_view.rb
109
- - lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/view_helpers/application_view_helper.rb
101
+ - lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/application_view.rb
110
102
  - lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/view_helpers/main_view_helper.rb
103
+ - lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/view_helpers/application_view_helper.rb
104
+ - lib/rugui/generators/rugui/templates/framework_specific/qt/app/resources/ui/main_view.ui
111
105
  - lib/rugui/generators/rugui/templates/framework_specific/qt/config/environment.rb
112
- - lib/rugui/generators/rugui/templates/spec/rcov.opts
106
+ - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/main_controller.rb
107
+ - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/application_controller.rb
108
+ - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/main_view.rb
109
+ - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/application_view.rb
110
+ - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/view_helpers/main_view_helper.rb
111
+ - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/view_helpers/application_view_helper.rb
112
+ - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/resources/glade/main_view.glade
113
+ - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/resources/styles/main.rc
114
+ - lib/rugui/generators/rugui/templates/framework_specific/gtk/config/environment.rb
115
+ - lib/rugui/generators/rugui/templates/test/test_helper.rb
113
116
  - lib/rugui/generators/rugui/templates/spec/spec.opts
117
+ - lib/rugui/generators/rugui/templates/spec/rcov.opts
114
118
  - lib/rugui/generators/rugui/templates/spec/spec_helper.rb
115
- - lib/rugui/generators/rugui/templates/test/test_helper.rb
116
- - lib/rugui/initialize_hooks.rb
117
- - lib/rugui/initializer.rb
118
- - lib/rugui/log_support.rb
119
+ - lib/rugui/generators/rugui/templates/app/main.rb
120
+ - lib/rugui/generators/rugui/templates/README
121
+ - lib/rugui/generators/rugui/templates/Rakefile
122
+ - lib/rugui/generators/rugui/templates/config/boot.rb
123
+ - lib/rugui/generators/rugui/templates/config/environments/development.rb
124
+ - lib/rugui/generators/rugui/templates/config/environments/production.rb
125
+ - lib/rugui/generators/rugui/templates/config/environments/test.rb
119
126
  - lib/rugui/observable_property_proxy.rb
120
- - lib/rugui/observable_property_support.rb
121
- - lib/rugui/plugin/loader.rb
122
- - lib/rugui/property_changed_support.rb
123
127
  - lib/rugui/property_observer.rb
124
- - lib/rugui/signal_support.rb
125
- - lib/rugui/tasks/gems_application.rake
126
- - lib/rugui/tasks/release_framework.rake
127
- - lib/rugui/tasks/rugui.rb
128
- - lib/rugui/tasks/rugui_framework.rb
129
- - lib/rugui/tasks/runner_application.rake
130
- - lib/rugui/tasks/spec_application.rake
131
- - lib/rugui/tasks/spec_framework.rake
132
- - lib/rugui/tasks/test_application.rake
133
- - lib/rugui/vendor_gem_source_index.rb
134
128
  - lib/rugui/version.rb
135
- - script/console
136
- - script/destroy
137
- - script/generate
138
- - script/spec
129
+ - lib/rugui.rb
130
+ - LICENSE
139
131
  - README.rdoc
132
+ - Rakefile
133
+ - Changelog
134
+ - Thorfile
140
135
  has_rdoc: true
141
136
  homepage: http://rugui.org
142
- licenses: []
143
-
137
+ licenses:
138
+ - GNU LGPL
144
139
  post_install_message:
145
140
  rdoc_options:
146
141
  - --charset=UTF-8
142
+ - --main=README.rdoc
147
143
  require_paths:
148
144
  - lib
149
145
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -158,32 +154,34 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
154
  - - ">="
159
155
  - !ruby/object:Gem::Version
160
156
  segments:
161
- - 0
162
- version: "0"
157
+ - 1
158
+ - 3
159
+ - 5
160
+ version: 1.3.5
163
161
  requirements: []
164
162
 
165
163
  rubyforge_project: rugui
166
164
  rubygems_version: 1.3.6
167
165
  signing_key:
168
166
  specification_version: 3
169
- summary: A simple MVC framework for RubyGTK.
167
+ summary: A rails like MVC framework for building desktop applications with GUI frameworks.
170
168
  test_files:
171
- - spec/framework/base_model_spec.rb
172
- - spec/framework/property_observer_spec.rb
169
+ - spec/spec.opts
170
+ - spec/framework/log_support_spec.rb
171
+ - spec/framework/base_view_helper_spec.rb
173
172
  - spec/framework/observable_property_proxy_spec.rb
173
+ - spec/framework/property_observer_spec.rb
174
+ - spec/framework/base_controller_spec.rb
174
175
  - spec/framework/observable_property_support_spec.rb
175
176
  - spec/framework/base_view_spec.rb
176
- - spec/framework/base_view_helper_spec.rb
177
- - spec/framework/log_support_spec.rb
178
- - spec/framework/base_controller_spec.rb
177
+ - spec/framework/base_model_spec.rb
178
+ - spec/rcov.opts
179
179
  - spec/spec_helper.rb
180
- - spec/helpers/initialize_hooks_helper.rb
181
- - spec/helpers/models.rb
180
+ - spec/resource_files/my_other_view.glade
181
+ - spec/resource_files/my_view.glade
182
182
  - spec/helpers/view_helpers.rb
183
- - spec/helpers/observables.rb
183
+ - spec/helpers/models.rb
184
184
  - spec/helpers/controllers.rb
185
+ - spec/helpers/observables.rb
185
186
  - spec/helpers/views.rb
186
- - spec/spec.opts
187
- - spec/resource_files/my_other_view.glade
188
- - spec/resource_files/my_view.glade
189
- - spec/rcov.opts
187
+ - spec/helpers/initialize_hooks_helper.rb
@@ -1,21 +0,0 @@
1
- begin
2
- require 'jeweler'
3
- Jeweler::Tasks.new do |gemspec|
4
- gemspec.name = "rugui"
5
- gemspec.summary = "A simple MVC framework for RubyGTK."
6
- gemspec.email = ["vicente.mundim@gmail.com", "fmesquitacunha@gmail.com", "claudioe@gmail.com", "thecatwasnot@gmail.com"]
7
- gemspec.homepage = "http://rugui.org"
8
- gemspec.description = "A simple MVC framework for RubyGTK."
9
- gemspec.authors = ["Vicente Mundim", "Felipe Mesquita", "Claudio Escudero", "Cole Teeter"]
10
- gemspec.add_dependency(%q<activesupport>, [">= 2.1.1"])
11
- gemspec.add_dependency(%q<thor>, [">= 0.13.3"])
12
- gemspec.date = %q{2010-03-30}
13
- gemspec.rubyforge_project = "rugui"
14
- gemspec.executables = ['rugui']
15
- gemspec.files = FileList["bin/*", "lib/**/*", "script/*", "Changelog", "LICENSE", "Rakefile", "README"].to_a
16
- gemspec.test_files = FileList["spec/**/*"].to_a
17
- end
18
- Jeweler::GemcutterTasks.new
19
- rescue LoadError
20
- puts "Jeweler not available. Install it with: sudo gem install jeweler"
21
- end
@@ -1,39 +0,0 @@
1
- Rake::RDocTask.new do |rdoc|
2
- if File.exist?('VERSION.yml')
3
- config = YAML.load(File.read('VERSION.yml'))
4
- version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
5
- else
6
- version = ""
7
- end
8
-
9
- rdoc.rdoc_dir = 'rdoc'
10
- rdoc.title = "RuGUI #{version}"
11
- rdoc.rdoc_files.include('README*')
12
- rdoc.rdoc_files.include('lib/**/*.rb')
13
- end
14
-
15
- begin
16
- require 'rake/contrib/sshpublisher'
17
- namespace :rubyforge do
18
-
19
- desc "Release gem and RDoc documentation to RubyForge"
20
- task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
21
-
22
- namespace :release do
23
- desc "Publish RDoc to RubyForge."
24
- task :docs => [:rdoc] do
25
- config = YAML.load(
26
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
27
- )
28
-
29
- host = "#{config['username']}@rubyforge.org"
30
- remote_dir = "/var/www/gforge-projects/rugui"
31
- local_dir = 'rdoc'
32
-
33
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
34
- end
35
- end
36
- end
37
- rescue LoadError
38
- puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
39
- end
data/script/console DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # File: script/console
3
- irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4
-
5
- libs = " -r irb/completion"
6
- # Perhaps use a console_lib to store any extra methods I may want available in the cosole
7
- # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8
- libs << " -r #{File.dirname(__FILE__) + '/../lib/rugui-newgem.rb'}"
9
- puts "Loading rugui-newgem gem"
10
- exec "#{irb} #{libs} --simple-prompt"
data/script/destroy DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/destroy'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Destroy.new.run(ARGV)
data/script/generate DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/generate'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Generate.new.run(ARGV)
data/script/spec DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
- if ARGV.any? {|arg| %w[--drb -X --generate-options -G --help -h --version -v].include?(arg)}
3
- require 'rubygems' unless ENV['NO_RUBYGEMS']
4
- else
5
- gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
6
- ENV["RUGUI_ENV"] ||= 'test'
7
- require 'rubygems' unless ENV['NO_RUBYGEMS']
8
- end
9
- require 'spec/autorun'
10
- exit ::Spec::Runner::CommandLine.run