rugui 1.4.0 → 1.4.2

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,9 @@
1
+ 1.4.2
2
+ - Fixing thor generator again, some directories were not being created.
3
+
4
+ 1.4.1
5
+ - Small fix in thor generator, which was not creating empty directories.
6
+
1
7
  1.4.0
2
8
  - Using thor for generators.
3
9
 
@@ -3,13 +3,13 @@ begin
3
3
  Jeweler::Tasks.new do |gemspec|
4
4
  gemspec.name = "rugui"
5
5
  gemspec.summary = "A simple MVC framework for RubyGTK."
6
- gemspec.email = ["vicente.mundim@gmail.com", "fmesquitacunha@gmail.com", "claudioe@gmail.com"]
6
+ gemspec.email = ["vicente.mundim@gmail.com", "fmesquitacunha@gmail.com", "claudioe@gmail.com", "thecatwasnot@gmail.com"]
7
7
  gemspec.homepage = "http://rugui.org"
8
8
  gemspec.description = "A simple MVC framework for RubyGTK."
9
- gemspec.authors = ["Vicente Mundim", "Felipe Mesquita", "Claudio Escudero"]
9
+ gemspec.authors = ["Vicente Mundim", "Felipe Mesquita", "Claudio Escudero", "Cole Teeter"]
10
10
  gemspec.add_dependency(%q<activesupport>, [">= 2.1.1"])
11
11
  gemspec.add_dependency(%q<thor>, [">= 0.13.3"])
12
- gemspec.date = %q{2010-02-19}
12
+ gemspec.date = %q{2010-03-30}
13
13
  gemspec.rubyforge_project = "rugui"
14
14
  gemspec.executables = ['rugui']
15
15
  gemspec.files = FileList["bin/*", "lib/**/*", "script/*", "Changelog", "LICENSE", "Rakefile", "README"].to_a
@@ -1,8 +1,9 @@
1
1
  class Rugui < Thor::Group
2
2
  include Thor::Actions
3
3
 
4
- argument :app_path
5
- argument :name
4
+ argument :name, :default => 'test'
5
+ argument :app_path, :optional => true,
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."
6
7
 
7
8
  class_option :framework_adapter, :type => :string, :aliases => 'a', :default => 'gtk',
8
9
  :desc => "Choose which framework adapter to use, must either 'gtk' or 'qt'"
@@ -21,7 +22,7 @@ class Rugui < Thor::Group
21
22
  end
22
23
 
23
24
  def create_root
24
- self.destination_root = File.expand_path(app_path, destination_root)
25
+ self.destination_root = File.expand_path(app_path || name, destination_root)
25
26
  empty_directory '.'
26
27
 
27
28
  FileUtils.cd(destination_root)
@@ -32,9 +33,29 @@ class Rugui < Thor::Group
32
33
  copy_file 'Rakefile'
33
34
  end
34
35
 
36
+ def create_directory_structure
37
+ directory_structure = [
38
+ 'bin',
39
+ 'app',
40
+ 'app/controllers',
41
+ 'app/models',
42
+ 'app/resources',
43
+ 'app/views',
44
+ 'app/views/view_helpers',
45
+ 'config',
46
+ 'config/environments',
47
+ 'lib',
48
+ 'lib/tasks',
49
+ 'log',
50
+ 'vendor'
51
+ ]
52
+
53
+ directory_structure.each do |directory|
54
+ empty_directory directory
55
+ end
56
+ end
57
+
35
58
  def create_bin_files
36
- empty_directory 'bin'
37
-
38
59
  inside 'bin' do
39
60
  copy_file 'main_executable', "#{name}"
40
61
  chmod "#{name}", 0755
@@ -45,8 +66,6 @@ class Rugui < Thor::Group
45
66
  end
46
67
 
47
68
  def create_app_files
48
- empty_directory 'app'
49
-
50
69
  inside 'app' do
51
70
  copy_file 'main.rb'
52
71
  end
@@ -56,22 +75,11 @@ class Rugui < Thor::Group
56
75
  directory 'config'
57
76
  end
58
77
 
59
- def create_lib_files
60
- directory 'lib'
61
- end
62
-
63
- def create_log_files
64
- directory 'log'
65
- end
66
-
67
- def create_vendor_files
68
- directory 'vendor'
69
- end
70
-
71
78
  def create_framework_specific_files
72
79
  directory framework_specific_file('app/controllers'), 'app/controllers'
73
80
  directory framework_specific_file('app/views'), 'app/views'
74
81
  directory framework_specific_file('app/resources'), 'app/resources'
82
+ directory framework_specific_file('config'), 'config'
75
83
  end
76
84
 
77
85
  def create_test_files
@@ -0,0 +1,39 @@
1
+ # Uncomment below to force the RuGUI application into production mode
2
+ # ENV['RUGUI_ENV'] ||= 'production'
3
+
4
+ # Bootstrap the RuGUI environment, and default configuration
5
+ require File.join(File.dirname(__FILE__), 'boot')
6
+
7
+ RuGUI::Initializer.run do |config|
8
+ # Settings in config/environments/* take precedence over those specified here.
9
+ # Application configuration should go into files in config/initializers
10
+ # -- all .rb files in that directory are automatically loaded.
11
+ # See RuGUI::Configuration for more options.
12
+
13
+ # Changes the framework adapter. Currently the only implemented framework
14
+ # adapters are GTK and Qt4. Defaults to GTK.
15
+ # config.framework_adapter = 'Qt4'
16
+
17
+ # Add additional load paths for your own custom dirs
18
+ # config.load_paths += %W( #{APPLICATION_ROOT}/extras )
19
+
20
+ # The log output, by default it is :stdout, but can be :stderr or any valid
21
+ # filename. Defaults to :stdout.
22
+ #config.logger[:output] = :stdout
23
+
24
+ # The level for logging. You can use :debug, :info, :warn, :error or :fatal
25
+ # That is the sequence of severity. Defaults to :info.
26
+ #config.logger[:level] = :info
27
+
28
+ # The format of timestamp. See the formatting for Time.strftime
29
+ #
30
+ # See with more details here:
31
+ # http://www.rubybrain.com/api/ruby-1.8.7/doc/index.html?a=M000253&name=strftime
32
+ #config.logger[:format] = "%Y-%m-%d %H:%M:%S"
33
+
34
+ # Specify gems that this application depends on.
35
+ # They can then be installed with "rake gems:install" on new installations.
36
+ # config.gem "bj"
37
+ # config.gem "hapricot", :version => '>0.8', :source => "http://code.whytheluckystiff.net"
38
+ # config.gem "aws-s3", :lib => "aws/s3"
39
+ end
@@ -0,0 +1,39 @@
1
+ # Uncomment below to force the RuGUI application into production mode
2
+ # ENV['RUGUI_ENV'] ||= 'production'
3
+
4
+ # Bootstrap the RuGUI environment, and default configuration
5
+ require File.join(File.dirname(__FILE__), 'boot')
6
+
7
+ RuGUI::Initializer.run do |config|
8
+ # Settings in config/environments/* take precedence over those specified here.
9
+ # Application configuration should go into files in config/initializers
10
+ # -- all .rb files in that directory are automatically loaded.
11
+ # See RuGUI::Configuration for more options.
12
+
13
+ # Changes the framework adapter. Currently the only implemented framework
14
+ # adapters are GTK and Qt4. Defaults to GTK.
15
+ config.framework_adapter = 'Qt4'
16
+
17
+ # Add additional load paths for your own custom dirs
18
+ # config.load_paths += %W( #{APPLICATION_ROOT}/extras )
19
+
20
+ # The log output, by default it is :stdout, but can be :stderr or any valid
21
+ # filename. Defaults to :stdout.
22
+ #config.logger[:output] = :stdout
23
+
24
+ # The level for logging. You can use :debug, :info, :warn, :error or :fatal
25
+ # That is the sequence of severity. Defaults to :info.
26
+ #config.logger[:level] = :info
27
+
28
+ # The format of timestamp. See the formatting for Time.strftime
29
+ #
30
+ # See with more details here:
31
+ # http://www.rubybrain.com/api/ruby-1.8.7/doc/index.html?a=M000253&name=strftime
32
+ #config.logger[:format] = "%Y-%m-%d %H:%M:%S"
33
+
34
+ # Specify gems that this application depends on.
35
+ # They can then be installed with "rake gems:install" on new installations.
36
+ # config.gem "bj"
37
+ # config.gem "hapricot", :version => '>0.8', :source => "http://code.whytheluckystiff.net"
38
+ # config.gem "aws-s3", :lib => "aws/s3"
39
+ end
@@ -1 +1 @@
1
- require File.join(File.dirname(__FILE__), 'generators', 'rugui', 'rugui')
1
+ Dir[File.expand_path('generators/**/*_generator.rb', File.dirname(__FILE__))].each { |f| load f }
data/lib/rugui/version.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  module RuGUI
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
- MINOR = 3
5
- TINY = 3
4
+ MINOR = 4
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,44 +1,59 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rugui
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 4
8
+ - 2
9
+ version: 1.4.2
5
10
  platform: ruby
6
11
  authors:
7
12
  - Vicente Mundim
8
13
  - Felipe Mesquita
9
14
  - Claudio Escudero
15
+ - Cole Teeter
10
16
  autorequire:
11
17
  bindir: bin
12
18
  cert_chain: []
13
19
 
14
- date: 2010-02-19 00:00:00 -02:00
20
+ date: 2010-04-04 00:00:00 -03:00
15
21
  default_executable: rugui
16
22
  dependencies:
17
23
  - !ruby/object:Gem::Dependency
18
24
  name: activesupport
19
- type: :runtime
20
- version_requirement:
21
- version_requirements: !ruby/object:Gem::Requirement
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
22
27
  requirements:
23
28
  - - ">="
24
29
  - !ruby/object:Gem::Version
30
+ segments:
31
+ - 2
32
+ - 1
33
+ - 1
25
34
  version: 2.1.1
26
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
27
37
  - !ruby/object:Gem::Dependency
28
38
  name: thor
29
- type: :runtime
30
- version_requirement:
31
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
32
41
  requirements:
33
42
  - - ">="
34
43
  - !ruby/object:Gem::Version
44
+ segments:
45
+ - 0
46
+ - 13
47
+ - 3
35
48
  version: 0.13.3
36
- version:
49
+ type: :runtime
50
+ version_requirements: *id002
37
51
  description: A simple MVC framework for RubyGTK.
38
52
  email:
39
53
  - vicente.mundim@gmail.com
40
54
  - fmesquitacunha@gmail.com
41
55
  - claudioe@gmail.com
56
+ - thecatwasnot@gmail.com
42
57
  executables:
43
58
  - rugui
44
59
  extensions: []
@@ -67,16 +82,16 @@ files:
67
82
  - lib/rugui/gem_builder.rb
68
83
  - lib/rugui/gem_dependency.rb
69
84
  - lib/rugui/generators.rb
70
- - lib/rugui/generators/rugui/rugui.rb
85
+ - lib/rugui/generators/rugui/rugui_generator.rb
71
86
  - lib/rugui/generators/rugui/templates/README
72
87
  - lib/rugui/generators/rugui/templates/Rakefile
73
88
  - lib/rugui/generators/rugui/templates/app/main.rb
74
89
  - lib/rugui/generators/rugui/templates/bin/main_executable
75
90
  - lib/rugui/generators/rugui/templates/bin/main_executable.bat
76
91
  - lib/rugui/generators/rugui/templates/config/boot.rb
77
- - lib/rugui/generators/rugui/templates/config/environments/development.rb.sample
78
- - lib/rugui/generators/rugui/templates/config/environments/production.rb.sample
79
- - lib/rugui/generators/rugui/templates/config/environments/test.rb.sample
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
80
95
  - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/application_controller.rb
81
96
  - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/main_controller.rb
82
97
  - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/resources/glade/main_view.glade
@@ -85,6 +100,7 @@ files:
85
100
  - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/main_view.rb
86
101
  - lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/view_helpers/application_view_helper.rb
87
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
88
104
  - lib/rugui/generators/rugui/templates/framework_specific/qt/app/controllers/application_controller.rb
89
105
  - lib/rugui/generators/rugui/templates/framework_specific/qt/app/controllers/main_controller.rb
90
106
  - lib/rugui/generators/rugui/templates/framework_specific/qt/app/resources/ui/main_view.ui
@@ -92,6 +108,7 @@ files:
92
108
  - lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/main_view.rb
93
109
  - lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/view_helpers/application_view_helper.rb
94
110
  - lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/view_helpers/main_view_helper.rb
111
+ - lib/rugui/generators/rugui/templates/framework_specific/qt/config/environment.rb
95
112
  - lib/rugui/generators/rugui/templates/spec/rcov.opts
96
113
  - lib/rugui/generators/rugui/templates/spec/spec.opts
97
114
  - lib/rugui/generators/rugui/templates/spec/spec_helper.rb
@@ -133,18 +150,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
150
  requirements:
134
151
  - - ">="
135
152
  - !ruby/object:Gem::Version
153
+ segments:
154
+ - 0
136
155
  version: "0"
137
- version:
138
156
  required_rubygems_version: !ruby/object:Gem::Requirement
139
157
  requirements:
140
158
  - - ">="
141
159
  - !ruby/object:Gem::Version
160
+ segments:
161
+ - 0
142
162
  version: "0"
143
- version:
144
163
  requirements: []
145
164
 
146
165
  rubyforge_project: rugui
147
- rubygems_version: 1.3.5
166
+ rubygems_version: 1.3.6
148
167
  signing_key:
149
168
  specification_version: 3
150
169
  summary: A simple MVC framework for RubyGTK.