lanes 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/appy-app/.gitignore +3 -0
  3. data/appy-app/Gemfile +6 -0
  4. data/appy-app/Guardfile +13 -0
  5. data/appy-app/Rakefile +2 -0
  6. data/appy-app/client/appy-app/Extension.coffee +7 -0
  7. data/appy-app/client/appy-app/Router.coffee +4 -0
  8. data/appy-app/client/appy-app/components/.gitkeep +0 -0
  9. data/appy-app/client/appy-app/controllers/.gitkeep +0 -0
  10. data/appy-app/client/appy-app/index.js +21 -0
  11. data/appy-app/client/appy-app/models/.gitkeep +0 -0
  12. data/appy-app/client/appy-app/models/Base.coffee +5 -0
  13. data/appy-app/client/appy-app/screens/.gitkeep +0 -0
  14. data/appy-app/client/appy-app/screens/Base.coffee +10 -0
  15. data/appy-app/client/appy-app/styles.scss +1 -0
  16. data/appy-app/client/appy-app/views/.gitkeep +0 -0
  17. data/appy-app/client/appy-app/views/Base.coffee +5 -0
  18. data/appy-app/config/database.yml +9 -0
  19. data/appy-app/config/lanes.rb +7 -0
  20. data/appy-app/config/routes.rb +2 -0
  21. data/appy-app/config/screens.rb +8 -0
  22. data/appy-app/config.ru +5 -0
  23. data/appy-app/db/.gitkeep +0 -0
  24. data/appy-app/lib/appy-app/extension.rb +13 -0
  25. data/appy-app/lib/appy-app/model.rb +11 -0
  26. data/appy-app/lib/appy-app/models/empty.rb +0 -0
  27. data/appy-app/lib/appy-app/version.rb +3 -0
  28. data/appy-app/lib/appy-app.rb +14 -0
  29. data/appy-app/spec/appy-app/helpers/AppyAppHelpers.coffee +5 -0
  30. data/appy-app/spec/appy-app/screens/Base.coffee +5 -0
  31. data/appy-app/spec/server/spec_helpers.rb +16 -0
  32. data/client/{lanes/styles/fonts → fonts/lanes}/icomoon.eot +0 -0
  33. data/client/{lanes/styles/fonts → fonts/lanes}/icomoon.svg +0 -0
  34. data/client/{lanes/styles/fonts → fonts/lanes}/icomoon.ttf +0 -0
  35. data/client/{lanes/styles/fonts → fonts/lanes}/icomoon.woff +0 -0
  36. data/client/{lanes/styles/fonts → fonts/lanes}/selection.json +0 -0
  37. data/client/images/{ajax-loader.gif → lanes/ajax-loader.gif} +0 -0
  38. data/client/images/{dataTables → lanes/dataTables}/Sorting icons.psd +0 -0
  39. data/client/images/{dataTables → lanes/dataTables}/back_disabled.png +0 -0
  40. data/client/images/{dataTables → lanes/dataTables}/back_enabled.png +0 -0
  41. data/client/images/{dataTables → lanes/dataTables}/back_enabled_hover.png +0 -0
  42. data/client/images/{dataTables → lanes/dataTables}/favicon.ico +0 -0
  43. data/client/images/{dataTables → lanes/dataTables}/forward_disabled.png +0 -0
  44. data/client/images/{dataTables → lanes/dataTables}/forward_enabled.png +0 -0
  45. data/client/images/{dataTables → lanes/dataTables}/forward_enabled_hover.png +0 -0
  46. data/client/images/{dataTables → lanes/dataTables}/loading-background.png +0 -0
  47. data/client/images/{dataTables → lanes/dataTables}/sort_asc.png +0 -0
  48. data/client/images/{dataTables → lanes/dataTables}/sort_asc_disabled.png +0 -0
  49. data/client/images/{dataTables → lanes/dataTables}/sort_both.png +0 -0
  50. data/client/images/{dataTables → lanes/dataTables}/sort_desc.png +0 -0
  51. data/client/images/{dataTables → lanes/dataTables}/sort_desc_disabled.png +0 -0
  52. data/client/images/lanes/logo-sm.png +0 -0
  53. data/client/lanes/Config.coffee +19 -0
  54. data/client/lanes/components/grid/styles.scss +6 -6
  55. data/client/lanes/index.js +1 -0
  56. data/client/lanes/index.scss.erb +5 -5
  57. data/client/lanes/models/Base.coffee +11 -11
  58. data/client/lanes/models/Bootstrap.coffee +0 -2
  59. data/client/lanes/models/ChangeMonitor.coffee +16 -13
  60. data/client/lanes/models/Collection.coffee +2 -4
  61. data/client/lanes/models/ModelAssociations.coffee +13 -28
  62. data/client/lanes/models/Sync.coffee +1 -1
  63. data/client/lanes/screens/Instance.coffee +1 -0
  64. data/client/lanes/styles/{fonts/style.scss → font-definitions.scss} +0 -0
  65. data/client/lanes/styles/fonts.scss +1 -1
  66. data/client/lanes/styles/plugins/overlay.scss +1 -1
  67. data/client/lanes/testing/ModelSaver.coffee +23 -0
  68. data/client/lanes/testing/index.js +4 -0
  69. data/client/lanes/workspace/ActiveScreensSwitcher.coffee +2 -3
  70. data/client/lanes/workspace/Pages.coffee +6 -11
  71. data/client/lanes/workspace/styles/header.scss +1 -1
  72. data/lanes.gemspec +1 -1
  73. data/lib/lanes/access/authentication_provider.rb +2 -2
  74. data/lib/lanes/access/config/routes.rb +1 -1
  75. data/lib/lanes/access/role.rb +5 -0
  76. data/lib/lanes/access/role_collection.rb +9 -6
  77. data/lib/lanes/access/roles/administrator.rb +3 -10
  78. data/lib/lanes/api/request_wrapper.rb +21 -8
  79. data/lib/lanes/api/root.rb +2 -4
  80. data/lib/lanes/api/sprockets_extension.rb +8 -6
  81. data/lib/lanes/api/test_specs.rb +1 -0
  82. data/lib/lanes/capistrano.rb +18 -0
  83. data/lib/lanes/command/app.rb +2 -6
  84. data/lib/lanes/command/generate_model.rb +11 -11
  85. data/lib/lanes/command/generate_view.rb +1 -1
  86. data/lib/lanes/command/named_command.rb +7 -4
  87. data/lib/lanes/concerns/set_attribute_data.rb +1 -1
  88. data/lib/lanes/configuration.rb +1 -0
  89. data/lib/lanes/db.rb +1 -0
  90. data/lib/lanes/extension/definition.rb +16 -4
  91. data/lib/lanes/extension.rb +1 -4
  92. data/lib/lanes/version.rb +1 -1
  93. data/spec/server/command-reference-files/initial/.gitignore +3 -0
  94. data/spec/server/command-reference-files/initial/Gemfile +6 -0
  95. data/spec/server/command-reference-files/initial/Guardfile +13 -0
  96. data/spec/server/command-reference-files/initial/Rakefile +2 -0
  97. data/spec/server/command-reference-files/initial/client/appy-app/Extension.coffee +7 -0
  98. data/spec/server/command-reference-files/initial/client/appy-app/Router.coffee +4 -0
  99. data/spec/server/command-reference-files/initial/client/appy-app/components/.gitkeep +0 -0
  100. data/spec/server/command-reference-files/initial/client/appy-app/controllers/.gitkeep +0 -0
  101. data/spec/server/command-reference-files/initial/client/appy-app/index.js +21 -0
  102. data/spec/server/command-reference-files/initial/client/appy-app/models/.gitkeep +0 -0
  103. data/spec/server/command-reference-files/initial/client/appy-app/models/Base.coffee +5 -0
  104. data/spec/server/command-reference-files/initial/client/appy-app/screens/.gitkeep +0 -0
  105. data/spec/server/command-reference-files/initial/client/appy-app/screens/Base.coffee +3 -0
  106. data/spec/server/command-reference-files/initial/client/appy-app/styles.scss +1 -0
  107. data/spec/server/command-reference-files/initial/client/appy-app/views/.gitkeep +0 -0
  108. data/spec/server/command-reference-files/initial/client/appy-app/views/Base.coffee +5 -0
  109. data/spec/server/command-reference-files/initial/config/database.yml +9 -0
  110. data/spec/server/command-reference-files/initial/config/lanes.rb +7 -0
  111. data/spec/server/command-reference-files/initial/config/routes.rb +2 -0
  112. data/spec/server/command-reference-files/initial/config/screens.rb +0 -0
  113. data/spec/server/command-reference-files/initial/config.ru +5 -0
  114. data/spec/server/command-reference-files/initial/db/.gitkeep +0 -0
  115. data/spec/server/command-reference-files/initial/lib/appy-app/extension.rb +13 -0
  116. data/spec/server/command-reference-files/initial/lib/appy-app/model.rb +11 -0
  117. data/spec/server/command-reference-files/initial/lib/appy-app/models/empty.rb +0 -0
  118. data/spec/server/command-reference-files/initial/lib/appy-app/version.rb +3 -0
  119. data/spec/server/command-reference-files/initial/lib/appy-app.rb +12 -0
  120. data/spec/server/command-reference-files/initial/spec/appy-app/helpers/AppyAppHelpers.coffee +5 -0
  121. data/spec/server/command-reference-files/initial/spec/appy-app/screens/Base.coffee +5 -0
  122. data/spec/server/command-reference-files/initial/spec/server/spec_helpers.rb +16 -0
  123. data/spec/server/command-reference-files/model/client/appy-app/models/TestTest.coffee +9 -0
  124. data/spec/server/command-reference-files/model/config/routes.rb +3 -0
  125. data/spec/server/command-reference-files/model/db/migrate/20150218032025_create_test_tests.rb +10 -0
  126. data/spec/server/command-reference-files/model/lib/appy-app/models/test_test.rb +7 -0
  127. data/spec/server/command-reference-files/model/spec/appy-app/models/TestTestSpec.coffee +5 -0
  128. data/spec/server/command-reference-files/model/spec/fixtures/appy-app/test_test.yml +11 -0
  129. data/spec/server/command-reference-files/model/spec/server/test_test_spec.rb +10 -0
  130. data/spec/server/command-reference-files/screen/client/appy-app/screens/ready-set-go/ReadySetGo.coffee +7 -0
  131. data/spec/server/command-reference-files/screen/client/appy-app/screens/ready-set-go/index.js +5 -0
  132. data/spec/server/command-reference-files/screen/client/appy-app/screens/ready-set-go/index.scss +8 -0
  133. data/spec/server/command-reference-files/screen/client/appy-app/screens/ready-set-go/layout.html +3 -0
  134. data/spec/server/command-reference-files/screen/config/screens.rb +9 -0
  135. data/spec/server/command-reference-files/screen/spec/appy-app/screens/ready-set-go/ReadySetGoSpec.coffee +5 -0
  136. data/spec/server/command-reference-files/view/client/appy-app/views/BigView.coffee +10 -0
  137. data/spec/server/command-reference-files/view/spec/appy-app/views/BigViewSpec.coffee +5 -0
  138. data/spec/server/command_spec.rb +40 -15
  139. data/templates/client/screens/Base.coffee +3 -0
  140. data/templates/client/screens/Screen.coffee +1 -1
  141. data/templates/config/screen.rb +0 -1
  142. data/templates/db/create_table_migration.rb +1 -1
  143. data/templates/lib/namespace.rb +2 -4
  144. metadata +118 -25
  145. data/client/images/logo-sm.png +0 -0
  146. data/client/lanes/models/Config.coffee +0 -10
@@ -0,0 +1,9 @@
1
+ development:
2
+ adapter: postgresql
3
+ database: appy-app_dev
4
+ host: /tmp
5
+
6
+ test:
7
+ adapter: postgresql
8
+ database: appy-app_test
9
+ host: /tmp
@@ -0,0 +1,7 @@
1
+ # This file will be loaded if the current extension is the
2
+ # one controlling Lanes.
3
+ #
4
+ # It will not be evaluated if another extension is loading this one
5
+ Lanes.configure do | config |
6
+ config.root_view = "AppyApp.Screens.Base"
7
+ end
@@ -0,0 +1,2 @@
1
+ Lanes::API.routes.draw do
2
+ end
@@ -0,0 +1,5 @@
1
+ require 'bundler'
2
+ Bundler.require
3
+ require_relative 'lib/appy-app'
4
+ require 'lanes/api'
5
+ run Lanes::API::Root
@@ -0,0 +1,13 @@
1
+ require_relative '../appy-app'
2
+
3
+ module AppyApp
4
+
5
+ class Extension < Lanes::Extensions::Definition
6
+
7
+ identifier "appy-app"
8
+
9
+ root_path Pathname.new(__FILE__).dirname.join("..","..").expand_path
10
+
11
+ end
12
+
13
+ end
@@ -0,0 +1,11 @@
1
+ module AppyApp
2
+
3
+ # All models in AppyApp will inherit from
4
+ # this common base class.
5
+ class Model < Lanes::Model
6
+
7
+ self.abstract_class = true
8
+
9
+ end
10
+
11
+ end
@@ -0,0 +1,3 @@
1
+ module AppyApp
2
+ VERSION=0.1
3
+ end
@@ -0,0 +1,12 @@
1
+ require "lanes"
2
+ require 'require_all'
3
+ require_relative "appy-app/version.rb"
4
+ require_relative "appy-app/extension.rb"
5
+
6
+ # The main namespace for AppyApp
7
+ module AppyApp
8
+
9
+ end
10
+
11
+ require_relative "appy-app/model"
12
+ require_rel "appy-app/models"
@@ -0,0 +1,5 @@
1
+ ##
2
+ # Uncomment the below beforeEach method to execute code or set instance variables
3
+ # that will be available to all Specs
4
+
5
+ # beforeEach ->
@@ -0,0 +1,5 @@
1
+ describe "AppyApp.Screens.Base", ->
2
+
3
+ it "can be instantiated", ->
4
+ view = new AppyApp.Screens.Base()
5
+ expect(view).toEqual(jasmine.any(AppyApp.Screens.Base));
@@ -0,0 +1,16 @@
1
+ require_relative '../../lib/AppyApp'
2
+ require 'lanes/spec_helper'
3
+
4
+ module AppyApp
5
+
6
+ # Add more helper methods to be used by all tests here...
7
+
8
+ class TestCase < Lanes::TestCase
9
+ include AppyApp
10
+ end
11
+
12
+ class ApiTestCase < Lanes::ApiTestCase
13
+ include AppyApp
14
+ end
15
+
16
+ end
@@ -0,0 +1,9 @@
1
+ class AppyApp.Models.TestTest extends AppyApp.Models.Base
2
+
3
+ FILE: FILE
4
+
5
+ props:
6
+ id : "integer"
7
+ name : "string"
8
+ email: "string"
9
+
@@ -0,0 +1,3 @@
1
+ Lanes::API.routes.draw do
2
+ resources AppyApp::TestTest
3
+ end
@@ -0,0 +1,10 @@
1
+ class CreateTestTests < ActiveRecord::Migration
2
+ def change
3
+ create_table :test_tests do |t|
4
+ t.string :name
5
+ t.string :email
6
+
7
+ t.timestamps null: false
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ module AppyApp
2
+
3
+ class TestTest < Model
4
+
5
+ end
6
+
7
+ end
@@ -0,0 +1,5 @@
1
+ describe "AppyApp.Models.TestTest", ->
2
+
3
+ it "can be instantiated", ->
4
+ model = new AppyApp.Models.TestTest()
5
+ expect(model).toEqual(jasmine.any(AppyApp.Models.TestTest))
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ first:
4
+ name: MyString
5
+ email: MyString
6
+
7
+ second:
8
+ name: MyString
9
+ email: MyString
10
+
11
+
@@ -0,0 +1,10 @@
1
+ require_relative 'spec_helpers'
2
+
3
+ class TestTestSpec < AppyApp::TestCase
4
+
5
+ it "can be instantiated" do
6
+ model = TestTest.new
7
+ model.must_be_instance_of(TestTest)
8
+ end
9
+
10
+ end
@@ -0,0 +1,7 @@
1
+ class AppyApp.Screens.ReadySetGo extends AppyApp.Screens.Base
2
+
3
+ FILE: FILE
4
+
5
+ subviews: {}
6
+
7
+ events: {}
@@ -0,0 +1,5 @@
1
+ //= require_tree .
2
+
3
+ /*
4
+ Add additional requirement statements for other files that the screen uses
5
+ */
@@ -0,0 +1,8 @@
1
+ /*
2
+ If your screen does not use any custom styles
3
+
4
+ You should remove this file and it's reference from config/screens.rb
5
+
6
+ Otherwise Lanes will continue to fetch an empty file whenever
7
+ the screen is displayed
8
+ */
@@ -0,0 +1,9 @@
1
+ Lanes::Screen.define "ready-set-go" do | screen |
2
+ screen.description = ""
3
+ screen.icon = ""
4
+ screen.group_id = ""
5
+ screen.model_class = ""
6
+ screen.view_class = "AppyApp.Screens.ReadySetGo"
7
+ screen.js = "appy-app/screens/ready-set-go.js"
8
+ screen.css = "appy-app/screens/ready-set-go.css"
9
+ end
@@ -0,0 +1,5 @@
1
+ describe "AppyApp.Screens.ReadySetGo", ->
2
+
3
+ it "can be instantiated", ->
4
+ view = new AppyApp.Screens.ReadySetGo()
5
+ expect(view).toEqual(jasmine.any(AppyApp.Screens.ReadySetGo));
@@ -0,0 +1,10 @@
1
+ class AppyApp.Views.BigView extends AppyApp.Views.Base
2
+
3
+ FILE: FILE
4
+
5
+ ## These are listed only as examples.
6
+ # If unused they can be safely removed.
7
+ subviews: {}
8
+ domEvents: {}
9
+ modelEvents: {}
10
+ collectionEvents: {}
@@ -0,0 +1,5 @@
1
+ describe "AppyApp.Views.BigView", ->
2
+
3
+ it "can be instantiated", ->
4
+ view = new AppyApp.Views.BigView()
5
+ expect(view).toEqual(jasmine.any(AppyApp.Views.BigView));
@@ -1,39 +1,64 @@
1
1
  require_relative "spec_helper"
2
2
  require "lanes/cli"
3
-
3
+ require "diffy"
4
4
  require "find"
5
5
 
6
6
  describe Lanes::Command do
7
- let(:lanes) { Pathname.new(__FILE__).dirname.join('..','..','bin','lanes') }
7
+ let(:app_name) { "appy-app" }
8
+ let(:lanes) { Pathname.new(__FILE__).dirname.join('..','..','bin','lanes') }
9
+ let(:generated_path) { Pathname.pwd }
10
+ let(:reference_path) { Pathname(__FILE__).dirname.join("command-reference-files") }
8
11
 
9
12
  around do |test|
10
13
  Dir.mktmpdir do |dir|
11
14
  @dir = dir
12
15
  Dir.chdir(dir) do
13
- `#{lanes} new test`
14
- Dir.chdir("test") do
16
+ assert_executes "#{lanes} new #{app_name}"
17
+ Dir.chdir(app_name) do
15
18
  test.call
16
19
  end
17
20
  end
18
21
  end
19
22
  end
20
23
 
21
- FILES = [".", ".gitignore", "Gemfile", "Guardfile", "Rakefile", "client", "client/test", "client/test/Extension.coffee", "client/test/Router.coffee", "client/test/components", "client/test/components/.gitkeep", "client/test/controllers", "client/test/controllers/.gitkeep", "client/test/index.js", "client/test/models", "client/test/models/.gitkeep", "client/test/models/Base.coffee", "client/test/screens", "client/test/screens/.gitkeep", "client/test/screens/Base.coffee", "client/test/styles.scss", "client/test/views", "client/test/views/.gitkeep", "client/test/views/Base.coffee", "config", "config.ru", "config/database.yml", "config/lanes.rb", "config/routes.rb", "config/screens.rb", "db", "db/.gitkeep", "lib", "lib/test", "lib/test.rb", "lib/test/extension.rb", "lib/test/model.rb", "lib/test/models", "lib/test/models/empty.rb", "lib/test/version.rb", "log", "log/.gitkeep", "spec", "spec/server", "spec/server/spec_helpers.rb", "spec/test", "spec/test/helpers", "spec/test/helpers/TestHelpers.coffee", "spec/test/screens", "spec/test/screens/Base.coffee", "tmp", "tmp/.gitkeep"]
24
+ def compare_generated(reference)
25
+ reference.find.each do | path |
26
+ relative = path.relative_path_from(reference)
27
+ generated = generated_path.join(relative)
28
+ assert generated.exist?, "File was not created: #{relative}"
29
+ next unless path.file?
30
+ diff = Diffy::Diff.new(generated.to_s, path.to_s, source: 'files', context: 1)
31
+ assert diff.to_s.empty?, "#{relative}\n #{diff}"
32
+ end
33
+ end
22
34
 
23
35
  it "generates an application" do
24
- files = Find.find(".").to_a.map{|f| f.gsub(/^\.\//,'') }.sort
25
- files.sort.must_equal FILES.sort
36
+ reference = reference_path.join('initial')
37
+ compare_generated(reference)
38
+ generated_path.find.each do | path |
39
+ relative = path.relative_path_from(generated_path)
40
+ reference_copy = reference.join(relative)
41
+ assert reference_copy.exist?, "Created file that should not exist: #{relative}"
42
+ end
26
43
  end
27
44
 
28
- it "creates a view" do
29
- assert_executes "#{lanes} generate view Test"
30
- assert_match( /client\/test\/views\/Test.coffee/, last_cmd_execution_output )
31
- assert_executes "#{lanes} generate view Testing --screen Base"
32
- assert_match( /client\/test\/screens\/base\/Testing.coffee/, last_cmd_execution_output )
45
+ it "generates a screen" do
46
+ assert_executes "#{lanes} g screen ready-set-go"
47
+ reference = reference_path.join('screen')
48
+ compare_generated(reference)
33
49
  end
34
50
 
35
- it "creates a model" do
36
- assert_executes "#{lanes} generate model Test"
37
- assert_match( /client\/test\/models\/Test.coffee/, last_cmd_execution_output )
51
+ it "generates a model" do
52
+ ENV['MIGRATION_TIMESTAMP']='20150218032025'
53
+ assert_executes "#{lanes} g model test-test name:string email:string"
54
+ reference = reference_path.join('model')
55
+ compare_generated(reference)
38
56
  end
57
+
58
+ it "generates a view" do
59
+ assert_executes "#{lanes} g view big-view"
60
+ reference = reference_path.join('view')
61
+ compare_generated(reference)
62
+ end
63
+
39
64
  end
@@ -0,0 +1,3 @@
1
+ class <%= namespace.camelize %>.Screens.Base extends Lanes.Screens.Base
2
+
3
+ abstractClass: true
@@ -1,4 +1,4 @@
1
- class <%= namespace.camelize %>.Screens.<%= class_name %> extends Lanes.Screens.Base
1
+ class <%= namespace.camelize %>.Screens.<%= class_name %> extends <%= namespace.camelize %>.Screens.Base
2
2
 
3
3
  FILE: FILE
4
4
  <% if @template -%>
@@ -1,4 +1,3 @@
1
-
2
1
  Lanes::Screen.define "<%= screen_id %>" do | screen |
3
2
  screen.description = "<%= options[:description] %>"
4
3
  screen.icon = "<%= options[:icon] %>"
@@ -1,4 +1,4 @@
1
- class Create<%= namespace %><%= class_name.pluralize %> < ActiveRecord::Migration
1
+ class Create<%= class_name.pluralize %> < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :<%= table_name %> do |t|
4
4
  <% fields.each do |attribute| -%>
@@ -3,11 +3,9 @@ require 'require_all'
3
3
  require_relative "<%= identifier %>/version.rb"
4
4
  require_relative "<%= identifier %>/extension.rb"
5
5
 
6
- # The main namespace for <%= name.camelize %>
6
+ # The main namespace for <%= namespace %>
7
7
  module <%= namespace %>
8
- def self.table_name_prefix
9
- "<%= name %>_"
10
- end
8
+
11
9
  end
12
10
 
13
11
  require_relative "<%= identifier %>/model"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lanes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Stitt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-13 00:00:00.000000000 Z
11
+ date: 2015-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -430,6 +430,20 @@ dependencies:
430
430
  - - "~>"
431
431
  - !ruby/object:Gem::Version
432
432
  version: '2.0'
433
+ - !ruby/object:Gem::Dependency
434
+ name: diffy
435
+ requirement: !ruby/object:Gem::Requirement
436
+ requirements:
437
+ - - "~>"
438
+ - !ruby/object:Gem::Version
439
+ version: '3.0'
440
+ type: :development
441
+ prerelease: false
442
+ version_requirements: !ruby/object:Gem::Requirement
443
+ requirements:
444
+ - - "~>"
445
+ - !ruby/object:Gem::Version
446
+ version: '3.0'
433
447
  description: Lanes is a framework for writing single page web applications. It's
434
448
  a full stack framework that contains both server and client.
435
449
  email:
@@ -447,23 +461,59 @@ files:
447
461
  - LICENSE-MIT.txt
448
462
  - README.md
449
463
  - Rakefile
464
+ - appy-app/.gitignore
465
+ - appy-app/Gemfile
466
+ - appy-app/Guardfile
467
+ - appy-app/Rakefile
468
+ - appy-app/client/appy-app/Extension.coffee
469
+ - appy-app/client/appy-app/Router.coffee
470
+ - appy-app/client/appy-app/components/.gitkeep
471
+ - appy-app/client/appy-app/controllers/.gitkeep
472
+ - appy-app/client/appy-app/index.js
473
+ - appy-app/client/appy-app/models/.gitkeep
474
+ - appy-app/client/appy-app/models/Base.coffee
475
+ - appy-app/client/appy-app/screens/.gitkeep
476
+ - appy-app/client/appy-app/screens/Base.coffee
477
+ - appy-app/client/appy-app/styles.scss
478
+ - appy-app/client/appy-app/views/.gitkeep
479
+ - appy-app/client/appy-app/views/Base.coffee
480
+ - appy-app/config.ru
481
+ - appy-app/config/database.yml
482
+ - appy-app/config/lanes.rb
483
+ - appy-app/config/routes.rb
484
+ - appy-app/config/screens.rb
485
+ - appy-app/db/.gitkeep
486
+ - appy-app/lib/appy-app.rb
487
+ - appy-app/lib/appy-app/extension.rb
488
+ - appy-app/lib/appy-app/model.rb
489
+ - appy-app/lib/appy-app/models/empty.rb
490
+ - appy-app/lib/appy-app/version.rb
491
+ - appy-app/spec/appy-app/helpers/AppyAppHelpers.coffee
492
+ - appy-app/spec/appy-app/screens/Base.coffee
493
+ - appy-app/spec/server/spec_helpers.rb
450
494
  - bin/lanes
451
- - client/images/ajax-loader.gif
452
- - client/images/dataTables/Sorting icons.psd
453
- - client/images/dataTables/back_disabled.png
454
- - client/images/dataTables/back_enabled.png
455
- - client/images/dataTables/back_enabled_hover.png
456
- - client/images/dataTables/favicon.ico
457
- - client/images/dataTables/forward_disabled.png
458
- - client/images/dataTables/forward_enabled.png
459
- - client/images/dataTables/forward_enabled_hover.png
460
- - client/images/dataTables/loading-background.png
461
- - client/images/dataTables/sort_asc.png
462
- - client/images/dataTables/sort_asc_disabled.png
463
- - client/images/dataTables/sort_both.png
464
- - client/images/dataTables/sort_desc.png
465
- - client/images/dataTables/sort_desc_disabled.png
466
- - client/images/logo-sm.png
495
+ - client/fonts/lanes/icomoon.eot
496
+ - client/fonts/lanes/icomoon.svg
497
+ - client/fonts/lanes/icomoon.ttf
498
+ - client/fonts/lanes/icomoon.woff
499
+ - client/fonts/lanes/selection.json
500
+ - client/images/lanes/ajax-loader.gif
501
+ - client/images/lanes/dataTables/Sorting icons.psd
502
+ - client/images/lanes/dataTables/back_disabled.png
503
+ - client/images/lanes/dataTables/back_enabled.png
504
+ - client/images/lanes/dataTables/back_enabled_hover.png
505
+ - client/images/lanes/dataTables/favicon.ico
506
+ - client/images/lanes/dataTables/forward_disabled.png
507
+ - client/images/lanes/dataTables/forward_enabled.png
508
+ - client/images/lanes/dataTables/forward_enabled_hover.png
509
+ - client/images/lanes/dataTables/loading-background.png
510
+ - client/images/lanes/dataTables/sort_asc.png
511
+ - client/images/lanes/dataTables/sort_asc_disabled.png
512
+ - client/images/lanes/dataTables/sort_both.png
513
+ - client/images/lanes/dataTables/sort_desc.png
514
+ - client/images/lanes/dataTables/sort_desc_disabled.png
515
+ - client/images/lanes/logo-sm.png
516
+ - client/lanes/Config.coffee
467
517
  - client/lanes/access/Extension.coffee
468
518
  - client/lanes/access/LoginDialog.coffee
469
519
  - client/lanes/access/Roles.coffee
@@ -547,7 +597,6 @@ files:
547
597
  - client/lanes/models/ChangeMonitor.coffee
548
598
  - client/lanes/models/ChangeSet.coffee
549
599
  - client/lanes/models/Collection.coffee
550
- - client/lanes/models/Config.coffee
551
600
  - client/lanes/models/ModelAssociations.coffee
552
601
  - client/lanes/models/PubSub.coffee
553
602
  - client/lanes/models/Query.coffee
@@ -709,16 +758,13 @@ files:
709
758
  - client/lanes/styles/bootstrap/old/mixins/_text-overflow.scss
710
759
  - client/lanes/styles/bootstrap/old/mixins/_vendor-prefixes.scss
711
760
  - client/lanes/styles/dataTables.scss
761
+ - client/lanes/styles/font-definitions.scss
712
762
  - client/lanes/styles/fonts.scss
713
- - client/lanes/styles/fonts/icomoon.eot
714
- - client/lanes/styles/fonts/icomoon.svg
715
- - client/lanes/styles/fonts/icomoon.ttf
716
- - client/lanes/styles/fonts/icomoon.woff
717
- - client/lanes/styles/fonts/selection.json
718
- - client/lanes/styles/fonts/style.scss
719
763
  - client/lanes/styles/plugins/all.scss
720
764
  - client/lanes/styles/plugins/overlay.scss
721
765
  - client/lanes/styles/plugins/resize-sensor.scss
766
+ - client/lanes/testing/ModelSaver.coffee
767
+ - client/lanes/testing/index.js
722
768
  - client/lanes/vendor/bootstrap/affix.js
723
769
  - client/lanes/vendor/bootstrap/alert.js
724
770
  - client/lanes/vendor/bootstrap/button.js
@@ -821,6 +867,7 @@ files:
821
867
  - lib/lanes/api/sprockets_extension.rb
822
868
  - lib/lanes/api/test_specs.rb
823
869
  - lib/lanes/api/updates.rb
870
+ - lib/lanes/capistrano.rb
824
871
  - lib/lanes/cli.rb
825
872
  - lib/lanes/command.rb
826
873
  - lib/lanes/command/app.rb
@@ -894,6 +941,51 @@ files:
894
941
  - spec/lanes/models/PubSubSpec.coffee
895
942
  - spec/lanes/views/BaseSpec.coffee
896
943
  - spec/lanes/views/FormBindingsSpec.coffee
944
+ - spec/server/command-reference-files/initial/.gitignore
945
+ - spec/server/command-reference-files/initial/Gemfile
946
+ - spec/server/command-reference-files/initial/Guardfile
947
+ - spec/server/command-reference-files/initial/Rakefile
948
+ - spec/server/command-reference-files/initial/client/appy-app/Extension.coffee
949
+ - spec/server/command-reference-files/initial/client/appy-app/Router.coffee
950
+ - spec/server/command-reference-files/initial/client/appy-app/components/.gitkeep
951
+ - spec/server/command-reference-files/initial/client/appy-app/controllers/.gitkeep
952
+ - spec/server/command-reference-files/initial/client/appy-app/index.js
953
+ - spec/server/command-reference-files/initial/client/appy-app/models/.gitkeep
954
+ - spec/server/command-reference-files/initial/client/appy-app/models/Base.coffee
955
+ - spec/server/command-reference-files/initial/client/appy-app/screens/.gitkeep
956
+ - spec/server/command-reference-files/initial/client/appy-app/screens/Base.coffee
957
+ - spec/server/command-reference-files/initial/client/appy-app/styles.scss
958
+ - spec/server/command-reference-files/initial/client/appy-app/views/.gitkeep
959
+ - spec/server/command-reference-files/initial/client/appy-app/views/Base.coffee
960
+ - spec/server/command-reference-files/initial/config.ru
961
+ - spec/server/command-reference-files/initial/config/database.yml
962
+ - spec/server/command-reference-files/initial/config/lanes.rb
963
+ - spec/server/command-reference-files/initial/config/routes.rb
964
+ - spec/server/command-reference-files/initial/config/screens.rb
965
+ - spec/server/command-reference-files/initial/db/.gitkeep
966
+ - spec/server/command-reference-files/initial/lib/appy-app.rb
967
+ - spec/server/command-reference-files/initial/lib/appy-app/extension.rb
968
+ - spec/server/command-reference-files/initial/lib/appy-app/model.rb
969
+ - spec/server/command-reference-files/initial/lib/appy-app/models/empty.rb
970
+ - spec/server/command-reference-files/initial/lib/appy-app/version.rb
971
+ - spec/server/command-reference-files/initial/spec/appy-app/helpers/AppyAppHelpers.coffee
972
+ - spec/server/command-reference-files/initial/spec/appy-app/screens/Base.coffee
973
+ - spec/server/command-reference-files/initial/spec/server/spec_helpers.rb
974
+ - spec/server/command-reference-files/model/client/appy-app/models/TestTest.coffee
975
+ - spec/server/command-reference-files/model/config/routes.rb
976
+ - spec/server/command-reference-files/model/db/migrate/20150218032025_create_test_tests.rb
977
+ - spec/server/command-reference-files/model/lib/appy-app/models/test_test.rb
978
+ - spec/server/command-reference-files/model/spec/appy-app/models/TestTestSpec.coffee
979
+ - spec/server/command-reference-files/model/spec/fixtures/appy-app/test_test.yml
980
+ - spec/server/command-reference-files/model/spec/server/test_test_spec.rb
981
+ - spec/server/command-reference-files/screen/client/appy-app/screens/ready-set-go/ReadySetGo.coffee
982
+ - spec/server/command-reference-files/screen/client/appy-app/screens/ready-set-go/index.js
983
+ - spec/server/command-reference-files/screen/client/appy-app/screens/ready-set-go/index.scss
984
+ - spec/server/command-reference-files/screen/client/appy-app/screens/ready-set-go/layout.html
985
+ - spec/server/command-reference-files/screen/config/screens.rb
986
+ - spec/server/command-reference-files/screen/spec/appy-app/screens/ready-set-go/ReadySetGoSpec.coffee
987
+ - spec/server/command-reference-files/view/client/appy-app/views/BigView.coffee
988
+ - spec/server/command-reference-files/view/spec/appy-app/views/BigViewSpec.coffee
897
989
  - spec/server/command_spec.rb
898
990
  - spec/server/concerns/api_path_spec.rb
899
991
  - spec/server/concerns/association_extensions_spec.rb
@@ -921,6 +1013,7 @@ files:
921
1013
  - templates/client/index.js
922
1014
  - templates/client/models/BaseModel.coffee
923
1015
  - templates/client/models/Model.coffee
1016
+ - templates/client/screens/Base.coffee
924
1017
  - templates/client/screens/Screen.coffee
925
1018
  - templates/client/screens/index.js
926
1019
  - templates/client/screens/layout.html
Binary file
@@ -1,10 +0,0 @@
1
- class Config
2
- constructor: -> super
3
-
4
- session:
5
- csrf_token: { type: 'string', setOnce: false }
6
- api_path: { type: 'string', setOnce: false }
7
-
8
- Lanes.Models.State.extend(Config)
9
-
10
- Lanes.Models.Config = new Config