trialday 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/trialday.rb +17 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: d77199f6b23c06e721942c3cb229a7793d2f0669
|
|
4
|
+
data.tar.gz: 071aff33072a0c73b7a26e316ada99e418fd69a8
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 8be9e4a744caa8fc82d00cd60efae91b13d3af3d8e6be56ed80a7f342031b09adfd084f1f8726d2ffa64986232e005535c04fed471bb1596e5945df4801364aa
|
|
7
|
+
data.tar.gz: 2bc88122cf0ab0d914881fafaa60282917b0f0a2fb93acc154ea92715245d495731284186adc5442002e2031111dd70b432ab7abcbe251fce9594c86ae2def18
|
data/lib/trialday.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
app_files = File.expand_path('../app/**/*.rb', __FILE__)
|
|
2
|
+
Dir.glob(app_files).each { |file| require(file) }
|
|
3
|
+
|
|
4
|
+
class Trialday
|
|
5
|
+
def call(env)
|
|
6
|
+
request = Rack::Request.new(env)
|
|
7
|
+
serve_request(request)
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def serve_request(request)
|
|
11
|
+
Router.new(request).route!
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def get x, &block
|
|
16
|
+
Rack::Handler::WEBrick.run Trialday.new
|
|
17
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: trialday
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Anderson Leite
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2017-05-04 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: A simple web framework gem
|
|
14
|
+
email: andersonlfl@gmail.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/trialday.rb
|
|
20
|
+
homepage: http://rubygems.org/gems/trialday
|
|
21
|
+
licenses:
|
|
22
|
+
- MIT
|
|
23
|
+
metadata: {}
|
|
24
|
+
post_install_message:
|
|
25
|
+
rdoc_options: []
|
|
26
|
+
require_paths:
|
|
27
|
+
- lib
|
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ">="
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
requirements: []
|
|
39
|
+
rubyforge_project:
|
|
40
|
+
rubygems_version: 2.5.1
|
|
41
|
+
signing_key:
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: Trialday Web Framework!
|
|
44
|
+
test_files: []
|