lt-core - LearningTapestry core modules and classes.
Add this line to your application's Gemfile:
gem 'lt-core', :git => 'git://github.com/learningtapestry/core'
And then execute:
$ bundle install
lib/webapp.rb
:
require 'lt/webapp'
class SampleWebApp < LT::WebApp::Base
get vroute(:home, '/') do
'Hello world'
end
end
config.ru
:
require 'lt/core'
path = File::expand_path(File::dirname(__FILE__))
LT::Environment.boot_all(path)
require File::join(path, 'lib', 'webapp.rb')
SampleWebApp.boot
run SampleWebApp
# running a specific test file
rake lt:test:run_test[specific_test_name]
# running all tests (with full reset)
rake full_tests
# running tests with profiler
TESTOPTS='--profile' rake full_tests
TESTOPTS='--profile' rake lt:test:run_test[any_test_filename]
- Fork it ( https://github.com/learningtapestry/core/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request