lattice 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +20 -0
- data/README.md +34 -0
- data/Rakefile +2 -0
- data/lattice.gemspec +26 -0
- data/lib/lattice.rb +5 -0
- data/lib/lattice/version.rb +3 -0
- data/spec/fixtures/application/Appfile +2 -0
- data/spec/fixtures/application/README.md +4 -0
- metadata +136 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 Tony Arcieri
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
Lattice
|
2
|
+
=======
|
3
|
+
|
4
|
+
Lattice is a pervasively multithreaded web framework for Ruby which makes
|
5
|
+
building realtime web applications with WebSockets simple and fun. It's
|
6
|
+
built on the following primitives:
|
7
|
+
|
8
|
+
* Resources: the main glue type between Lattice and the web, resources provide
|
9
|
+
an HTTP endpoint for interacting with entities in the system. Resources are
|
10
|
+
in fact a special type of component, one which forms an entry point into the
|
11
|
+
system.
|
12
|
+
|
13
|
+
* Components: data dependencies of resources (or resources themselves).
|
14
|
+
Components are inherently multithreaded and computed in parallel. Somewhat
|
15
|
+
analogous to "models" in frameworks like Rails, components are the natural
|
16
|
+
abstraction Lattice provides for subdividing the work needed to compute a
|
17
|
+
representation of a particular resource, and are where things like database
|
18
|
+
interactions and additional queries to external services should take place.
|
19
|
+
Components map data dependencies into "slots" which can be used by renderers
|
20
|
+
to compute representations of data within the system.
|
21
|
+
|
22
|
+
* Renderers: translate data within the system, as fetched by components, into
|
23
|
+
a requested representation. Renderers handle the specifics of dynamically
|
24
|
+
constructing output documents from components. Lattice comes with renderers
|
25
|
+
that understand various template languages.
|
26
|
+
|
27
|
+
* Sockets: WebSocket connections back to individual clients. Lattice makes it
|
28
|
+
simple to send and receive messages from any part of a distributed system,
|
29
|
+
including background jobs.
|
30
|
+
|
31
|
+
Copyright
|
32
|
+
---------
|
33
|
+
|
34
|
+
Copyright © 2011 Tony Arcieri. See LICENSE.txt for further details.
|
data/Rakefile
ADDED
data/lattice.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/lattice/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Tony Arcieri"]
|
6
|
+
gem.email = ["tony.arcieri@gmail.com"]
|
7
|
+
gem.description = "A concurrent realtime web framework for Ruby"
|
8
|
+
gem.summary = "Lattice is a pervasively multithreaded web framework for Ruby which makes building realtime web applications with WebSockets simple and fun"
|
9
|
+
gem.homepage = "https://github.com/tarcieri/lattice"
|
10
|
+
|
11
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
|
+
gem.files = `git ls-files`.split("\n")
|
13
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
|
+
gem.name = 'lattice'
|
15
|
+
gem.require_paths = ['lib']
|
16
|
+
gem.version = Lattice::VERSION
|
17
|
+
|
18
|
+
gem.add_dependency 'celluloid'
|
19
|
+
gem.add_dependency 'dcell'
|
20
|
+
gem.add_dependency 'cramp'
|
21
|
+
gem.add_dependency 'webmachine'
|
22
|
+
gem.add_dependency 'activesupport'
|
23
|
+
|
24
|
+
gem.add_development_dependency 'rake'
|
25
|
+
gem.add_development_dependency "rspec", ">= 2.7.0"
|
26
|
+
end
|
data/lib/lattice.rb
ADDED
metadata
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lattice
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Tony Arcieri
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-12-11 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: celluloid
|
16
|
+
requirement: &70140403517900 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70140403517900
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: dcell
|
27
|
+
requirement: &70140403517400 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70140403517400
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: cramp
|
38
|
+
requirement: &70140403516800 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70140403516800
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: webmachine
|
49
|
+
requirement: &70140403515820 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70140403515820
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: activesupport
|
60
|
+
requirement: &70140403515400 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70140403515400
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: &70140403514980 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *70140403514980
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: rspec
|
82
|
+
requirement: &70140403514280 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 2.7.0
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *70140403514280
|
91
|
+
description: A concurrent realtime web framework for Ruby
|
92
|
+
email:
|
93
|
+
- tony.arcieri@gmail.com
|
94
|
+
executables: []
|
95
|
+
extensions: []
|
96
|
+
extra_rdoc_files: []
|
97
|
+
files:
|
98
|
+
- .gitignore
|
99
|
+
- Gemfile
|
100
|
+
- LICENSE.txt
|
101
|
+
- README.md
|
102
|
+
- Rakefile
|
103
|
+
- lattice.gemspec
|
104
|
+
- lib/lattice.rb
|
105
|
+
- lib/lattice/version.rb
|
106
|
+
- spec/fixtures/application/Appfile
|
107
|
+
- spec/fixtures/application/README.md
|
108
|
+
homepage: https://github.com/tarcieri/lattice
|
109
|
+
licenses: []
|
110
|
+
post_install_message:
|
111
|
+
rdoc_options: []
|
112
|
+
require_paths:
|
113
|
+
- lib
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ! '>='
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
requirements: []
|
127
|
+
rubyforge_project:
|
128
|
+
rubygems_version: 1.8.10
|
129
|
+
signing_key:
|
130
|
+
specification_version: 3
|
131
|
+
summary: Lattice is a pervasively multithreaded web framework for Ruby which makes
|
132
|
+
building realtime web applications with WebSockets simple and fun
|
133
|
+
test_files:
|
134
|
+
- spec/fixtures/application/Appfile
|
135
|
+
- spec/fixtures/application/README.md
|
136
|
+
has_rdoc:
|