vegas 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/History.txt +4 -0
- data/Rakefile +32 -0
- data/lib/vegas.rb +1 -1
- data/test/{test_apps.rb → apps.rb} +0 -0
- data/test/test_app/bin/test_app +9 -0
- data/test/test_app/bin/test_rack_app +12 -0
- data/test/test_helper.rb +1 -1
- data/vegas.gemspec +67 -0
- metadata +20 -21
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
.DS_Store
|
data/History.txt
CHANGED
data/Rakefile
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
%w[rubygems rake rake/clean rake/testtask fileutils].each { |f| require f }
|
2
|
+
require File.dirname(__FILE__) + '/lib/vegas'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |s|
|
7
|
+
s.name = %q{vegas}
|
8
|
+
s.version = Vegas::VERSION
|
9
|
+
s.authors = ["Aaron Quint"]
|
10
|
+
s.date = %q{2009-08-30}
|
11
|
+
s.summary = "Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps."
|
12
|
+
s.description = %{Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps. It includes a class Vegas::Runner that wraps Rack/Sinatra applications and provides a simple command line interface and launching mechanism.}
|
13
|
+
s.email = ["aaron@quirkey.com"]
|
14
|
+
s.homepage = %q{http://code.quirkey.com/vegas}
|
15
|
+
s.rubyforge_project = %q{quirkey}
|
16
|
+
s.add_runtime_dependency(%q<rack>, [">= 1.0.0"])
|
17
|
+
s.add_development_dependency(%q<bacon>, [">= 1.1.0"])
|
18
|
+
s.add_development_dependency(%q<sinatra>, [">= 0.9.4"])
|
19
|
+
|
20
|
+
end
|
21
|
+
Jeweler::GemcutterTasks.new
|
22
|
+
rescue LoadError
|
23
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
24
|
+
end
|
25
|
+
|
26
|
+
Rake::TestTask.new do |t|
|
27
|
+
t.libs << "test"
|
28
|
+
t.test_files = FileList['test/test*.rb']
|
29
|
+
t.verbose = true
|
30
|
+
end
|
31
|
+
|
32
|
+
Dir['tasks/**/*.rake'].each { |t| load t }
|
data/lib/vegas.rb
CHANGED
File without changes
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# Created on 2009-2-27.
|
4
|
+
# Copyright (c) 2009. All rights reserved.
|
5
|
+
|
6
|
+
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_app.rb'))
|
7
|
+
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'lib','vegas.rb'))
|
8
|
+
|
9
|
+
vegas = Vegas::Runner.new(TestApp, 'test_app', :launch_path => lambda {|r| "/#{r.args.first}" })
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# Created on 2009-2-27.
|
4
|
+
# Copyright (c) 2009. All rights reserved.
|
5
|
+
|
6
|
+
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'lib','vegas.rb'))
|
7
|
+
|
8
|
+
app = Proc.new {|env|
|
9
|
+
[200, {'Content-Type' => 'text/plain'}, ["This is an app. #{env.inspect}"]]
|
10
|
+
}
|
11
|
+
|
12
|
+
vegas = Vegas::Runner.new(app, 'test_rack_app')
|
data/test/test_helper.rb
CHANGED
data/vegas.gemspec
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{vegas}
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Aaron Quint"]
|
12
|
+
s.date = %q{2009-11-18}
|
13
|
+
s.description = %q{Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps. It includes a class Vegas::Runner that wraps Rack/Sinatra applications and provides a simple command line interface and launching mechanism.}
|
14
|
+
s.email = ["aaron@quirkey.com"]
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".gitignore",
|
21
|
+
"History.txt",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"lib/vegas.rb",
|
26
|
+
"lib/vegas/runner.rb",
|
27
|
+
"test/apps.rb",
|
28
|
+
"test/test_app/bin/test_app",
|
29
|
+
"test/test_app/bin/test_rack_app",
|
30
|
+
"test/test_app/test_app.rb",
|
31
|
+
"test/test_helper.rb",
|
32
|
+
"test/test_vegas_runner.rb",
|
33
|
+
"vegas.gemspec"
|
34
|
+
]
|
35
|
+
s.homepage = %q{http://code.quirkey.com/vegas}
|
36
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
s.rubyforge_project = %q{quirkey}
|
39
|
+
s.rubygems_version = %q{1.3.5}
|
40
|
+
s.summary = %q{Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps.}
|
41
|
+
s.test_files = [
|
42
|
+
"test/apps.rb",
|
43
|
+
"test/test_app/test_app.rb",
|
44
|
+
"test/test_helper.rb",
|
45
|
+
"test/test_vegas_runner.rb"
|
46
|
+
]
|
47
|
+
|
48
|
+
if s.respond_to? :specification_version then
|
49
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
50
|
+
s.specification_version = 3
|
51
|
+
|
52
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
53
|
+
s.add_runtime_dependency(%q<rack>, [">= 1.0.0"])
|
54
|
+
s.add_development_dependency(%q<bacon>, [">= 1.1.0"])
|
55
|
+
s.add_development_dependency(%q<sinatra>, [">= 0.9.4"])
|
56
|
+
else
|
57
|
+
s.add_dependency(%q<rack>, [">= 1.0.0"])
|
58
|
+
s.add_dependency(%q<bacon>, [">= 1.1.0"])
|
59
|
+
s.add_dependency(%q<sinatra>, [">= 0.9.4"])
|
60
|
+
end
|
61
|
+
else
|
62
|
+
s.add_dependency(%q<rack>, [">= 1.0.0"])
|
63
|
+
s.add_dependency(%q<bacon>, [">= 1.1.0"])
|
64
|
+
s.add_dependency(%q<sinatra>, [">= 0.9.4"])
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vegas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Quint
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-11-18 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -18,9 +18,9 @@ dependencies:
|
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
|
-
- - "
|
21
|
+
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 1.0.0
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bacon
|
@@ -33,24 +33,14 @@ dependencies:
|
|
33
33
|
version: 1.1.0
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: sinatra
|
37
37
|
type: :development
|
38
38
|
version_requirement:
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.9.
|
44
|
-
version:
|
45
|
-
- !ruby/object:Gem::Dependency
|
46
|
-
name: hoe
|
47
|
-
type: :development
|
48
|
-
version_requirement:
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 2.3.3
|
43
|
+
version: 0.9.4
|
54
44
|
version:
|
55
45
|
description: Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps. It includes a class Vegas::Runner that wraps Rack/Sinatra applications and provides a simple command line interface and launching mechanism.
|
56
46
|
email:
|
@@ -60,21 +50,30 @@ executables: []
|
|
60
50
|
extensions: []
|
61
51
|
|
62
52
|
extra_rdoc_files:
|
63
|
-
-
|
53
|
+
- LICENSE
|
54
|
+
- README.rdoc
|
64
55
|
files:
|
56
|
+
- .gitignore
|
65
57
|
- History.txt
|
66
58
|
- LICENSE
|
67
59
|
- README.rdoc
|
60
|
+
- Rakefile
|
68
61
|
- lib/vegas.rb
|
69
62
|
- lib/vegas/runner.rb
|
63
|
+
- test/apps.rb
|
64
|
+
- test/test_app/bin/test_app
|
65
|
+
- test/test_app/bin/test_rack_app
|
66
|
+
- test/test_app/test_app.rb
|
67
|
+
- test/test_helper.rb
|
68
|
+
- test/test_vegas_runner.rb
|
69
|
+
- vegas.gemspec
|
70
70
|
has_rdoc: true
|
71
|
-
homepage:
|
71
|
+
homepage: http://code.quirkey.com/vegas
|
72
72
|
licenses: []
|
73
73
|
|
74
74
|
post_install_message:
|
75
75
|
rdoc_options:
|
76
|
-
- --
|
77
|
-
- README.txt
|
76
|
+
- --charset=UTF-8
|
78
77
|
require_paths:
|
79
78
|
- lib
|
80
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -97,7 +96,7 @@ signing_key:
|
|
97
96
|
specification_version: 3
|
98
97
|
summary: Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps.
|
99
98
|
test_files:
|
99
|
+
- test/apps.rb
|
100
100
|
- test/test_app/test_app.rb
|
101
|
-
- test/test_apps.rb
|
102
101
|
- test/test_helper.rb
|
103
102
|
- test/test_vegas_runner.rb
|