freightrain 0.5.12 → 0.5.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,24 @@
1
- ==== freightrain - full speed ahead!
1
+ = freightrain - full speed ahead!
2
2
 
3
3
  == WHAT IS IT?
4
4
  Freightrain is a MVVM (model/view/viewmodel) framework for developing desktop applications in ruby
5
5
 
6
6
  == HOW DO I GET IT?
7
- gem install freightrain
7
+ gem install freightrain
8
+
8
9
  (also make sure you have the latest ruby/gnome2 bindings installed (=> 0.19.3) )
9
10
 
10
11
  == HOW DO I USE IT?
11
- For now, you should take a look at http://github.com/bolthar/rubydraulica .
12
+ For now, you should take a look at http://github.com/bolthar/rubydraulica
13
+
14
+ To get a working stub, install the gem and then:
15
+ ftrain app my_app
16
+ this will create a new directory
17
+ my_app
18
+ containing the application stub. To run it, cd into the directory and:
19
+ ruby my_app.rb
20
+
21
+
12
22
  Documentation coming soon.
13
23
 
14
24
  == WHERE DO I REPORT BUGS/FEATURE REQUESTS?
data/Rakefile CHANGED
@@ -9,15 +9,17 @@ require 'rake/testtask'
9
9
 
10
10
  spec = Gem::Specification.new do |s|
11
11
  s.name = 'freightrain'
12
- s.version = '0.5.12'
12
+ s.version = '0.5.13'
13
13
  s.add_dependency('require_all', '>= 1.1.0')
14
14
  s.add_dependency('needle', '>= 1.3.0')
15
15
  s.has_rdoc = false
16
+ s.homepage = "http://github.com/bolthar/freightrain"
17
+ s.executables = ['ftrain']
16
18
  s.summary = 'ruby desktop development made easy'
17
19
  s.description = s.summary
18
20
  s.author = 'Andrea Dallera'
19
21
  s.email = 'andrea@andreadallera.com'
20
- s.files = %w(README Rakefile) + Dir.glob("{bin,lib}/**/*")
22
+ s.files = %w(README.rdoc Rakefile) + Dir.glob("{bin,lib}/**/*")
21
23
  s.require_path = "lib"
22
24
  end
23
25
 
data/bin/ftrain ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/ruby
2
+
3
+ require "rubygems"
4
+ require File.join(File.dirname(__FILE__),
5
+ "..", "lib", "scaffolding", "scaffolding.rb")
@@ -6,7 +6,10 @@ class String
6
6
  clone = self.clone
7
7
  first_letter = clone.slice!(0)
8
8
  result = first_letter.chr.downcase
9
- clone.each_char do |letter|
9
+ #fix, each_char seems not to be implemented
10
+ #before 1.8.7
11
+ (0...clone.length).each do |index|
12
+ letter = clone[index].chr
10
13
  if letter =~ /^[A-Z]/
11
14
  result += "_"
12
15
  result += letter.downcase
@@ -0,0 +1,21 @@
1
+
2
+ require "rubygems"
3
+ require "require_all"
4
+
5
+ require_all File.join(File.dirname(__FILE__), "commands")
6
+
7
+ require File.join(File.dirname(__FILE__), "generator.rb")
8
+
9
+ begin
10
+ klass = eval("#{ARGV[0].capitalize}Command")
11
+ rescue
12
+ print "No command '#{ARGV[0]}'\n"
13
+ end
14
+
15
+ begin
16
+ command = klass.new(*ARGV[1...ARGV.length])
17
+ command.check
18
+ command.execute
19
+ rescue Exception => ex
20
+ print ex.message + "\n"
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freightrain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.12
4
+ version: 0.5.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrea Dallera
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-16 00:00:00 +01:00
12
+ date: 2010-03-18 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -34,16 +34,18 @@ dependencies:
34
34
  version:
35
35
  description: ruby desktop development made easy
36
36
  email: andrea@andreadallera.com
37
- executables: []
38
-
37
+ executables:
38
+ - ftrain
39
39
  extensions: []
40
40
 
41
41
  extra_rdoc_files: []
42
42
 
43
43
  files:
44
- - README
44
+ - README.rdoc
45
45
  - Rakefile
46
+ - bin/ftrain
46
47
  - lib/scaffolding/generator.rb
48
+ - lib/scaffolding/scaffolding.rb
47
49
  - lib/scaffolding/commands/app.rb
48
50
  - lib/scaffolding/commands/triad.rb
49
51
  - lib/scaffolding/ftrain.rb
@@ -96,7 +98,7 @@ files:
96
98
  - lib/freightrain/signals/freight_signal.rb
97
99
  - lib/freightrain/signals/signal_host.rb
98
100
  has_rdoc: true
99
- homepage:
101
+ homepage: http://github.com/bolthar/freightrain
100
102
  licenses: []
101
103
 
102
104
  post_install_message: