Skip to content

Commit

Permalink
Initial commit of code auto-generated by Lanes
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanstitt committed Jan 21, 2015
0 parents commit a0909c5
Show file tree
Hide file tree
Showing 31 changed files with 359 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
public/assets
tmp/cache
log/*log
9 changes: 9 additions & 0 deletions Gemfile
@@ -0,0 +1,9 @@
source 'https://rubygems.org'

gem "lanes", github: "argosity/lanes", branch: 'master'

# Uncomment to enable access control and user administration
# gem "lanes-access", github: "argosity/lanes-access", branch: 'master'

gem "rake"
gem 'puma'
184 changes: 184 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,184 @@
GIT
remote: git://github.com/argosity/lanes.git
revision: 9587ea08af35895ce86ffd5d984d5931b835b0d8
branch: master
specs:
lanes (0.1.3)
activerecord (~> 4.2)
bcrypt (~> 3.1)
closure-compiler (~> 1.1)
coffee-script (~> 2.3)
compass-import-once (~> 1.0)
execjs (~> 2.2)
guard (~> 2.0)
guard-jasmine (~> 2.0)
guard-minitest (~> 2.3)
hashie (~> 3.3)
jasmine-core (~> 2.0)
message_bus (~> 1.0)
minitest-around (~> 0.2)
mocha (~> 1.1)
oj (~> 2.1)
pg (~> 0.17)
rack-test (~> 0.6)
rack_csrf (~> 2.5)
rake (~> 10.0)
require_all (~> 1.3)
sanitize (~> 3.0)
sass (~> 3.4)
sinatra (~> 1.4)
sprockets (~> 2.0)
sprockets-helpers (~> 1.1)
thor (~> 0.19)
yui-compressor (~> 0.12)

GEM
remote: https://rubygems.org/
specs:
activemodel (4.2.0)
activesupport (= 4.2.0)
builder (~> 3.1)
activerecord (4.2.0)
activemodel (= 4.2.0)
activesupport (= 4.2.0)
arel (~> 6.0)
activesupport (4.2.0)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
arel (6.0.0)
bcrypt (3.1.9)
builder (3.2.2)
celluloid (0.16.0)
timers (~> 4.0.0)
childprocess (0.5.5)
ffi (~> 1.0, >= 1.0.11)
closure-compiler (1.1.11)
coderay (1.1.0)
coffee-script (2.3.0)
coffee-script-source
execjs
coffee-script-source (1.8.0)
compass-import-once (1.0.5)
sass (>= 3.2, < 3.5)
crass (1.0.1)
eventmachine (1.0.4)
execjs (2.2.2)
ffi (1.9.6)
formatador (0.2.5)
guard (2.11.1)
formatador (>= 0.2.4)
listen (~> 2.7)
lumberjack (~> 1.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.9.12)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-compat (1.2.1)
guard-jasmine (2.0.2)
childprocess (~> 0.5)
guard (~> 2.8)
guard-compat (~> 1.2)
jasmine (~> 2.1)
multi_json (~> 1.10)
thor (~> 0.19)
tilt
guard-minitest (2.4.2)
guard-compat (~> 1.2)
minitest (>= 3.0)
hashie (3.3.2)
hike (1.2.3)
hitimes (1.2.2)
i18n (0.7.0)
jasmine (2.1.0)
jasmine-core (~> 2.1.0)
phantomjs
rack (>= 1.2.1)
rake
jasmine-core (2.1.3)
json (1.8.2)
listen (2.8.5)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
lumberjack (1.0.9)
message_bus (1.0.5)
eventmachine
rack (>= 1.1.3)
redis
metaclass (0.0.4)
method_source (0.8.2)
mini_portile (0.6.2)
minitest (5.5.1)
minitest-around (0.3.0)
minitest (~> 5.0)
mocha (1.1.0)
metaclass (~> 0.0.1)
multi_json (1.10.1)
nenv (0.2.0)
nokogiri (1.6.5)
mini_portile (~> 0.6.0)
nokogumbo (1.2.0)
nokogiri
notiffany (0.0.3)
nenv (~> 0.1)
shellany (~> 0.0)
oj (2.11.4)
pg (0.18.1)
phantomjs (1.9.8.0)
pry (0.10.1)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
puma (2.11.0)
rack (>= 1.1, < 2.0)
rack (1.6.0)
rack-protection (1.5.3)
rack
rack-test (0.6.3)
rack (>= 1.0)
rack_csrf (2.5.0)
rack (>= 1.1.0)
rake (10.4.2)
rb-fsevent (0.9.4)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
redis (3.2.0)
require_all (1.3.2)
sanitize (3.1.0)
crass (~> 1.0.1)
nokogiri (>= 1.4.4)
nokogumbo (= 1.2.0)
sass (3.4.10)
shellany (0.0.1)
sinatra (1.4.5)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4)
slop (3.6.0)
sprockets (2.12.3)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-helpers (1.1.0)
sprockets (~> 2.0)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
timers (4.0.1)
hitimes
tzinfo (1.2.2)
thread_safe (~> 0.1)
yui-compressor (0.12.0)

PLATFORMS
ruby

DEPENDENCIES
lanes!
puma
rake
13 changes: 13 additions & 0 deletions Guardfile
@@ -0,0 +1,13 @@
require "lanes/guard_tasks"

Lanes::GuardTasks.run(self, name: "todo") do | tests |

tests.client do

end

tests.server do

end

end
2 changes: 2 additions & 0 deletions Rakefile
@@ -0,0 +1,2 @@
require_relative 'lib/todo'
require 'lanes/rake_tasks'
7 changes: 7 additions & 0 deletions client/todo/Extension.coffee
@@ -0,0 +1,7 @@
class Todo.Extension extends Lanes.Extensions.Base

FILE: FILE

identifier: "todo"

setBootstrapData: (data)->
4 changes: 4 additions & 0 deletions client/todo/Router.coffee
@@ -0,0 +1,4 @@
class Todo.Router extends Lanes.Screens.Router

routes:
{}
Empty file added client/todo/components/.gitkeep
Empty file.
21 changes: 21 additions & 0 deletions client/todo/index.js
@@ -0,0 +1,21 @@
//=require ./models/Base
//=require ./views/Base
//=require_tree ./models
//=require_tree ./views
//=require_tree ./components
//=require ./screens/Base
//=require ./Router
//=require ./Extension

/*
Files located in the above directories are part of the default
Javascript build and are downloaded to the client on the initial
request.
Accordingly, only essential files should be included here. Code that
relates to a screen should be placed in the "screens" directory,
where it will be loaded dynamically when the screen is displayed.
Alternatively, feel free to modify the require statements above to
only include the paths you need.
*/
Empty file added client/todo/models/.gitkeep
Empty file.
5 changes: 5 additions & 0 deletions client/todo/models/Base.coffee
@@ -0,0 +1,5 @@
# All models in Todo will inherit from
# this common base class.
class Todo.Models.Base extends Lanes.Models.Base

abstractClass: true
Empty file added client/todo/screens/.gitkeep
Empty file.
10 changes: 10 additions & 0 deletions client/todo/screens/Base.coffee
@@ -0,0 +1,10 @@
class Todo.Screens.Base extends Lanes.Screens.Base

FILE: FILE
template: '''
<div><h1>Base Screen</h1></div>
'''

subviews: {}

events: {}
1 change: 1 addition & 0 deletions client/todo/styles.scss
@@ -0,0 +1 @@
/* Enter styles for your application in scss format here */
Empty file added client/todo/views/.gitkeep
Empty file.
5 changes: 5 additions & 0 deletions client/todo/views/Base.coffee
@@ -0,0 +1,5 @@
# All views in Todo will inherit from
# this common base class.
class Todo.Views.Base extends Lanes.Views.Base

abstractClass: true
5 changes: 5 additions & 0 deletions config.ru
@@ -0,0 +1,5 @@
require 'bundler'
Bundler.require
require_relative 'lib/todo'
require 'lanes/api'
run Lanes::API::Root
9 changes: 9 additions & 0 deletions config/database.yml
@@ -0,0 +1,9 @@
development:
adapter: postgresql
database: todo_dev
host: /tmp

test:
adapter: postgresql
database: todo_test
host: /tmp
7 changes: 7 additions & 0 deletions config/lanes.rb
@@ -0,0 +1,7 @@
# This file will be loaded if the current extension is the
# one controlling Lanes.
#
# It will not be evaluated if another extension is loading this one
Lanes.configure do | config |
config.root_view = "Todo.Screens.Base"
end
2 changes: 2 additions & 0 deletions config/routes.rb
@@ -0,0 +1,2 @@
Lanes::API.routes.draw do
end
7 changes: 7 additions & 0 deletions config/screens.rb
@@ -0,0 +1,7 @@
Lanes::Screen.define "todo" do | screen |
screen.description = "Base Screen for Todo"
screen.icon = ""
screen.group_id = ""
screen.model_class = ""
screen.view_class = "Todo.Screens.Base"
end
Empty file added db/.gitkeep
Empty file.
12 changes: 12 additions & 0 deletions lib/todo.rb
@@ -0,0 +1,12 @@
require "lanes"
require 'require_all'
require_relative "todo/version.rb"
require_relative "todo/extension.rb"
require_rel 'todo'

# The main namespace for Todo
module Todo
def self.table_name_prefix
"todo_"
end
end
13 changes: 13 additions & 0 deletions lib/todo/extension.rb
@@ -0,0 +1,13 @@
require_relative '../todo'

module Todo

class Extension < Lanes::Extensions::Definition

identifier "todo"

root_path Pathname.new(__FILE__).dirname.join("..","..").expand_path

end

end
11 changes: 11 additions & 0 deletions lib/todo/model.rb
@@ -0,0 +1,11 @@
module Todo

# All models in Todo will inherit from
# this common base class.
class Model < Lanes::Model

self.abstract_class = true

end

end
3 changes: 3 additions & 0 deletions lib/todo/version.rb
@@ -0,0 +1,3 @@
module Todo
VERSION=0.1
end
Empty file added log/.gitkeep
Empty file.
16 changes: 16 additions & 0 deletions spec/server/spec_helpers.rb
@@ -0,0 +1,16 @@
require_relative '../../lib/todo'
require 'lanes/spec_helper'

module Todo

# Add more helper methods to be used by all tests here...

class TestCase < Lanes::TestCase
include Todo
end

class ApiTestCase < Lanes::ApiTestCase
include Todo
end

end
5 changes: 5 additions & 0 deletions spec/todo/helpers/TodoHelpers.coffee
@@ -0,0 +1,5 @@
##
# Uncomment the below beforeEach method to execute code or set instance variables
# that will be available to all Specs

# beforeEach ->
5 changes: 5 additions & 0 deletions spec/todo/screens/BaseSpec.coffee
@@ -0,0 +1,5 @@
describe "Todo.Screens.Base", ->

it "can be instantiated", ->
view = new Todo.Screens.Base(tasks: @summary)
expect(view).toEqual(jasmine.any(Todo.Screens.Base));
Empty file added tmp/.gitkeep
Empty file.

0 comments on commit a0909c5

Please sign in to comment.