-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: Rakefile bin/gem_template features/step_definitions/when.rb require.rb
- Loading branch information
Showing
11 changed files
with
254 additions
and
15 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,52 @@ | ||
source "http://rubygems.org" | ||
|
||
v = { | ||
:active_wrapper => '=0.2.7', | ||
:bundler => '=1.0.0.beta.2', | ||
:cucumber => '=0.6.2', | ||
:haml => '=2.2.17', | ||
:lilypad => '=0.3.0', | ||
:rack_flash => '=0.1.1', | ||
:rack_test => '=0.5.3', | ||
:rake => '=0.8.7', | ||
:rspec => '=1.3.0', | ||
:sinatra => '=1.0' | ||
} | ||
|
||
group :console do | ||
gem 'active_wrapper', v[:active_wrapper], :require => %w(active_wrapper) | ||
gem 'sinatra', v[:sinatra], :require => %w(sinatra/base) | ||
end | ||
|
||
group :gemspec do | ||
gem 'active_wrapper', v[:active_wrapper], :require => %w(active_wrapper) | ||
gem 'bundler', v[:bundler] | ||
gem 'haml', v[:haml] | ||
gem 'lilypad', v[:lilypad] | ||
gem 'rack-flash', v[:rack_flash] | ||
gem 'sinatra', v[:sinatra] | ||
end | ||
|
||
group :gemspec_dev do | ||
gem 'cucumber', v[:cucumber] | ||
gem 'rspec', v[:rspec] | ||
gem 'rack-test', v[:rack_test] | ||
end | ||
|
||
group :lib do | ||
gem 'active_wrapper', v[:active_wrapper], :require => %w(active_wrapper) | ||
gem 'haml', v[:haml], :require => %w(haml sass) | ||
gem 'lilypad', v[:lilypad], :require => %w(lilypad) | ||
gem 'rack-flash', v[:rack_flash], :require => %w(rack-flash) | ||
gem 'sinatra', v[:sinatra], :require => %w(sinatra/base) | ||
end | ||
|
||
group :rake do | ||
gem 'active_wrapper', v[:active_wrapper], :require => %w(active_wrapper/tasks) | ||
gem 'rake', v[:rake], :require => %w(rake rake/gempackagetask) | ||
gem 'rspec', v[:rspec], :require => %w(spec/rake/spectask) | ||
end | ||
|
||
group :spec do | ||
gem 'rack-test', v[:rack_test], :require => %w(rack/test) | ||
end |
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,102 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
actionmailer (2.3.5) | ||
actionpack (= 2.3.5) | ||
actionmailer (2.3.5) | ||
actionpack (= 2.3.5) | ||
actionpack (2.3.5) | ||
activesupport (= 2.3.5) | ||
rack (~> 1.0.0) | ||
actionpack (2.3.5) | ||
activesupport (= 2.3.5) | ||
rack (~> 1.0.0) | ||
active_wrapper (0.2.7) | ||
actionmailer (= 2.3.5) | ||
activerecord (= 2.3.5) | ||
active_wrapper (0.2.7) | ||
actionmailer (= 2.3.5) | ||
activerecord (= 2.3.5) | ||
activerecord (2.3.5) | ||
activesupport (= 2.3.5) | ||
activerecord (2.3.5) | ||
activesupport (= 2.3.5) | ||
activesupport (2.3.5) | ||
activesupport (2.3.5) | ||
builder (2.1.2) | ||
builder (2.1.2) | ||
cucumber (0.6.2) | ||
builder (>= 2.1.2) | ||
diff-lcs (>= 1.1.2) | ||
json_pure (>= 1.2.0) | ||
polyglot (>= 0.2.9) | ||
term-ansicolor (>= 1.0.4) | ||
treetop (>= 1.4.2) | ||
cucumber (0.6.2) | ||
builder (>= 2.1.2) | ||
diff-lcs (>= 1.1.2) | ||
json_pure (>= 1.2.0) | ||
polyglot (>= 0.2.9) | ||
term-ansicolor (>= 1.0.4) | ||
treetop (>= 1.4.2) | ||
diff-lcs (1.1.2) | ||
diff-lcs (1.1.2) | ||
haml (2.2.17) | ||
haml (2.2.17) | ||
json_pure (1.2.0) | ||
json_pure (1.2.0) | ||
lilypad (0.3.0) | ||
builder (>= 2.1.2) | ||
lilypad (0.3.0) | ||
builder (>= 2.1.2) | ||
polyglot (0.2.9) | ||
polyglot (0.2.9) | ||
rack (1.0.1) | ||
rack (1.0.1) | ||
rack-flash (0.1.1) | ||
rack | ||
rack-flash (0.1.1) | ||
rack | ||
rack-test (0.5.3) | ||
rack (>= 1.0) | ||
rack-test (0.5.3) | ||
rack (>= 1.0) | ||
rake (0.8.7) | ||
rake (0.8.7) | ||
rspec (1.3.0) | ||
rspec (1.3.0) | ||
sinatra (1.0) | ||
rack (>= 1.0) | ||
sinatra (1.0) | ||
rack (>= 1.0) | ||
term-ansicolor (1.0.4) | ||
term-ansicolor (1.0.4) | ||
treetop (1.4.3) | ||
polyglot (>= 0.2.5) | ||
treetop (1.4.3) | ||
polyglot (>= 0.2.5) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
active_wrapper (= 0.2.7) | ||
active_wrapper (= 0.2.7) | ||
active_wrapper (= 0.2.7) | ||
active_wrapper (= 0.2.7) | ||
bundler (= 1.0.0.beta.2) | ||
cucumber (= 0.6.2) | ||
haml (= 2.2.17) | ||
haml (= 2.2.17) | ||
lilypad (= 0.3.0) | ||
lilypad (= 0.3.0) | ||
rack-flash (= 0.1.1) | ||
rack-flash (= 0.1.1) | ||
rack-test (= 0.5.3) | ||
rack-test (= 0.5.3) | ||
rake (= 0.8.7) | ||
rspec (= 1.3.0) | ||
rspec (= 1.3.0) | ||
sinatra (= 1.0) | ||
sinatra (= 1.0) | ||
sinatra (= 1.0) |
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
File renamed without changes.
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 |
---|---|---|
@@ -1,2 +1,17 @@ | ||
require File.expand_path("#{File.dirname(__FILE__)}/../require") | ||
Require.lib! | ||
require 'rubygems' | ||
require 'bundler' | ||
|
||
Bundler.require(:lib) | ||
|
||
$:.unshift File.dirname(__FILE__) + '/gem_template' | ||
|
||
require 'version' | ||
require 'boot/application' | ||
require 'boot/sinatra' | ||
require 'boot/session' | ||
require 'boot/flash' | ||
require 'boot/active_wrapper' | ||
require 'boot/lilypad' | ||
require 'boot/controller' | ||
require 'boot/helper' | ||
require 'boot/model' |
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,2 +1,9 @@ | ||
require File.expand_path("#{File.dirname(__FILE__)}/../../../require") | ||
Require.console! | ||
require 'rubygems' | ||
require 'bundler' | ||
|
||
Bundler.require(:console) | ||
|
||
require File.dirname(__FILE__) + '/application' | ||
require File.dirname(__FILE__) + '/sinatra' | ||
require File.dirname(__FILE__) + '/active_wrapper' | ||
require File.dirname(__FILE__) + '/model' |
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,5 +1,3 @@ | ||
Require.lilypad! | ||
|
||
Application.class_eval do | ||
|
||
if File.exists?(lilypad = "#{root}/config/lilypad.txt") | ||
|
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,3 @@ | ||
module GemTemplate | ||
VERSION = "0.1.0" unless defined?(::GemTemplate::VERSION) | ||
end |
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,3 +1,7 @@ | ||
#!/usr/bin/env ruby | ||
|
||
exec "irb -r #{File.expand_path("#{File.dirname(__FILE__)}/../lib/gem_template/boot/console")}" | ||
require 'rubygems' | ||
require 'bundler' | ||
|
||
lib = File.expand_path(File.dirname(__FILE__) + "/../lib/gem_template") | ||
exec "irb -r #{lib}/boot/console" |
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,5 +1,20 @@ | ||
require File.expand_path("#{File.dirname(__FILE__)}/../require") | ||
Require.spec_helper! | ||
require 'rubygems' | ||
require 'bundler' | ||
|
||
Bundler.require(:spec) | ||
|
||
require 'lib/gem_template' | ||
require 'pp' | ||
|
||
Spec::Runner.configure do |config| | ||
end | ||
end | ||
|
||
SPEC = File.expand_path("#{Bundler.root}/spec") | ||
$:.unshift File.expand_path("#{Bundler.root}/lib") | ||
|
||
# For use with rspec textmate bundle | ||
def debug(object) | ||
puts "<pre>" | ||
puts object.pretty_inspect.gsub('<', '<').gsub('>', '>') | ||
puts "</pre>" | ||
end |