Skip to content

learningtapestry/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lt-core

lt-core - LearningTapestry core modules and classes.

Codeship Status for learningtapestry/core

Installation

Add this line to your application's Gemfile:

gem 'lt-core', :git => 'git://github.com/learningtapestry/core'

And then execute:

$ bundle install

Usage

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 tests

# 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]

Contributing

  1. Fork it ( https://github.com/learningtapestry/core/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages