-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gemified. Added README and gemspec/hoe
- Loading branch information
Showing
10 changed files
with
193 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
== 0.0.1 2009-04-13 | ||
|
||
* 1 major enhancement: | ||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(The MIT License) | ||
|
||
Copyright (c) 2009 Aaron Quint, Quirkey NYC, LLC. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
'Software'), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
History.txt | ||
LICENSE | ||
Manifest.txt | ||
README.rdoc | ||
Rakefile | ||
lib/vegas.rb | ||
lib/vegas/runner.rb | ||
test/test_apps.rb | ||
test/test_helper.rb | ||
test/test_vegas_runner.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
= vegas | ||
|
||
http://code.quirkey.com/vegas | ||
|
||
== DESCRIPTION: | ||
|
||
Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps. | ||
|
||
== FEATURES/PROBLEMS: | ||
|
||
Currently, Vegas just includes a single class Vegas::Runner which wraps your Sinatra app to give it command line options, daemonization, PID/URL tracking, and browser launching (using Launchy). | ||
|
||
Lets say you have a gem with a sinatra application. With Vegas you can create a bin that looks like | ||
|
||
#!/usr/bin/env ruby | ||
# ./bin/myapp | ||
|
||
require File.expand_path(File.dirname(__FILE__) + "/../lib/myapp") | ||
require 'vegas' | ||
|
||
Vegas::Runner.new(Sinatra::Application, 'myapp') | ||
|
||
|
||
See the website: http://code.quirkey.com/vegas for full usage/options. | ||
|
||
== INSTALL: | ||
|
||
sudo gem install vegas | ||
|
||
== LICENSE: | ||
|
||
MIT LICENSE, see /LICENSE for details |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,31 @@ | ||
namespace :vegas do | ||
|
||
|
||
end | ||
%w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f } | ||
require File.dirname(__FILE__) + '/lib/vegas' | ||
|
||
# Generate all the Rake tasks | ||
# Run 'rake -T' to see list of generated tasks (from gem root directory) | ||
$hoe = Hoe.new('vegas', Vegas::VERSION) do |p| | ||
p.developer('Aaron Quint', '[email protected]') | ||
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n") | ||
p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required | ||
p.rubyforge_name = 'quirkey' | ||
p.extra_deps = [ | ||
['sinatra','>= 0.9.1'], | ||
['launchy','>= 0.3.3'] | ||
] | ||
p.extra_dev_deps = [ | ||
['newgem', ">= #{::Newgem::VERSION}"], | ||
['nokogiri', ">= 1.0.6"], | ||
['bacon', ">= 1.1.0"] | ||
] | ||
|
||
p.clean_globs |= %w[**/.DS_Store tmp *.log] | ||
path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}" | ||
p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc') | ||
p.rsync_args = '-av --delete --ignore-errors' | ||
end | ||
|
||
require 'newgem/tasks' # load /tasks/*.rake | ||
Dir['tasks/**/*.rake'].each { |t| load t } | ||
|
||
# TODO - want other tests/tasks run by default? Add them to the list | ||
# task :default => [:spec, :features] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env ruby | ||
# File: script/console | ||
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb' | ||
|
||
libs = " -r irb/completion" | ||
# Perhaps use a console_lib to store any extra methods I may want available in the cosole | ||
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}" | ||
libs << " -r #{File.dirname(__FILE__) + '/../lib/vegas.rb'}" | ||
puts "Loading vegas gem" | ||
exec "#{irb} #{libs} --simple-prompt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env ruby | ||
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) | ||
|
||
begin | ||
require 'rubigen' | ||
rescue LoadError | ||
require 'rubygems' | ||
require 'rubigen' | ||
end | ||
require 'rubigen/scripts/destroy' | ||
|
||
ARGV.shift if ['--help', '-h'].include?(ARGV[0]) | ||
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit] | ||
RubiGen::Scripts::Destroy.new.run(ARGV) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env ruby | ||
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) | ||
|
||
begin | ||
require 'rubigen' | ||
rescue LoadError | ||
require 'rubygems' | ||
require 'rubigen' | ||
end | ||
require 'rubigen/scripts/generate' | ||
|
||
ARGV.shift if ['--help', '-h'].include?(ARGV[0]) | ||
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit] | ||
RubiGen::Scripts::Generate.new.run(ARGV) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{vegas} | ||
s.version = "0.0.1" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Aaron Quint"] | ||
s.date = %q{2009-04-13} | ||
s.description = %q{Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps.} | ||
s.email = ["[email protected]"] | ||
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.rdoc"] | ||
s.files = ["History.txt", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "lib/vegas.rb", "lib/vegas/runner.rb", "test/test_apps.rb", "test/test_helper.rb", "test/test_vegas_runner.rb"] | ||
s.has_rdoc = true | ||
s.homepage = %q{http://code.quirkey.com/vegas} | ||
s.post_install_message = %q{PostInstall.txt} | ||
s.rdoc_options = ["--main", "README.rdoc"] | ||
s.require_paths = ["lib"] | ||
s.rubyforge_project = %q{quirkey} | ||
s.rubygems_version = %q{1.3.1} | ||
s.summary = %q{Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps.} | ||
s.test_files = ["test/test_apps.rb", "test/test_helper.rb", "test/test_vegas_runner.rb"] | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 2 | ||
|
||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | ||
s.add_runtime_dependency(%q<sinatra>, [">= 0.9.1"]) | ||
s.add_runtime_dependency(%q<launchy>, [">= 0.3.3"]) | ||
s.add_development_dependency(%q<newgem>, [">= 1.2.3"]) | ||
s.add_development_dependency(%q<nokogiri>, [">= 1.0.6"]) | ||
s.add_development_dependency(%q<bacon>, [">= 1.1.0"]) | ||
s.add_development_dependency(%q<hoe>, [">= 1.8.0"]) | ||
else | ||
s.add_dependency(%q<sinatra>, [">= 0.9.1"]) | ||
s.add_dependency(%q<launchy>, [">= 0.3.3"]) | ||
s.add_dependency(%q<newgem>, [">= 1.2.3"]) | ||
s.add_dependency(%q<nokogiri>, [">= 1.0.6"]) | ||
s.add_dependency(%q<bacon>, [">= 1.1.0"]) | ||
s.add_dependency(%q<hoe>, [">= 1.8.0"]) | ||
end | ||
else | ||
s.add_dependency(%q<sinatra>, [">= 0.9.1"]) | ||
s.add_dependency(%q<launchy>, [">= 0.3.3"]) | ||
s.add_dependency(%q<newgem>, [">= 1.2.3"]) | ||
s.add_dependency(%q<nokogiri>, [">= 1.0.6"]) | ||
s.add_dependency(%q<bacon>, [">= 1.1.0"]) | ||
s.add_dependency(%q<hoe>, [">= 1.8.0"]) | ||
end | ||
end |