manveru-ramaze 0.3.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/ramaze +60 -0
  2. metadata +79 -0
data/bin/ramaze ADDED
@@ -0,0 +1,60 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ begin
4
+ $:.unshift File.join(File.dirname(__FILE__), '../lib')
5
+ require 'ramaze'
6
+ rescue LoadError
7
+ $:.shift
8
+
9
+ begin
10
+ require 'rubygems'
11
+ rescue LoadError
12
+ end
13
+ require 'ramaze'
14
+ end
15
+
16
+ additions = lambda do |op|
17
+ op.separator ''
18
+ op.separator 'Specialized options:'
19
+
20
+ op.on('--create PROJECT', 'New application from proto') do |project_name|
21
+ require 'ramaze/tool/create'
22
+ Ramaze::Tool::Create.create(project_name)
23
+ exit
24
+ end
25
+
26
+ op.on('-i', '--instant', "Start up with bare-bones Controller") do |instant|
27
+ require 'ramaze/controller/main'
28
+ end
29
+
30
+ op.on('-e', '--execute STRING', String, "Execute string instead of a start.rb.") do |execute|
31
+ eval execute
32
+ end
33
+ end
34
+
35
+ runner = ARGV.reverse.find{|arg| File.file?(arg) }
36
+ runner ||= 'start.rb' if File.file?('start.rb')
37
+
38
+ if runner
39
+ overlay = {
40
+ :root => File.dirname(runner),
41
+ :runner => runner, :origin => :console,
42
+ }
43
+
44
+ [overlay, ENV, ARGV].each do |opt|
45
+ Ramaze::Global.merge!(opt, &additions)
46
+ end
47
+
48
+ runner = File.expand_path(runner)
49
+ daemonize = Ramaze::Global.daemonize
50
+
51
+ unless daemonize.empty?
52
+ Ramaze::daemonize(runner, daemonize)
53
+ else
54
+ require runner
55
+ Ramaze.start :force => true
56
+ end
57
+ else
58
+ Ramaze::Global.merge!(ARGV, &additions)
59
+ puts Ramaze::Global.option_parser(&additions)
60
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: manveru-ramaze
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.9.5
5
+ platform: ruby
6
+ authors:
7
+ - manveru
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-05-03 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rake
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.7.3
23
+ version:
24
+ - !ruby/object:Gem::Dependency
25
+ name: rack
26
+ version_requirement:
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 0.3.0
32
+ version:
33
+ description: Ramaze is a simple and modular web framework
34
+ email: m.fellinger@gmail.com
35
+ executables:
36
+ - ramaze
37
+ extensions: []
38
+
39
+ extra_rdoc_files: []
40
+
41
+ files: []
42
+
43
+ has_rdoc: true
44
+ homepage: http://ramaze.rubyforge.org
45
+ post_install_message: |-
46
+ ============================================================
47
+
48
+ Thank you for installing Ramaze!
49
+ You can now do following:
50
+
51
+ * Create a new project using the `ramaze' command:
52
+ ramaze --create yourproject
53
+
54
+ ============================================================
55
+ rdoc_options: []
56
+
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: "0"
70
+ version:
71
+ requirements: []
72
+
73
+ rubyforge_project:
74
+ rubygems_version: 1.0.1
75
+ signing_key:
76
+ specification_version: 2
77
+ summary: Ramaze is a simple and modular web framework
78
+ test_files: []
79
+