simp 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -1
- data/lib/simp/version.rb +1 -1
- data/lib/simp.rb +3 -2
- data/simp.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43fdc1c70b1c4b077e39a9b22bfd604d75ada74cedf90f56b549d0d5ab5ab377
|
4
|
+
data.tar.gz: 5cda94137aa1c6387ea401f3a5a463bd9bc510d747e536bc0ab39035de3d4fdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd35e770d7fdacd69f7cd6fceb42de72e325ceed5187c666e506aa924f4a74c18440863231eb103c0b96bb385e3822b19c62527959dfc4be060b5e7b25d233b9
|
7
|
+
data.tar.gz: 32a578fe1bca1324d37f87041acbaf66bf09836ac2e514f0d8041e44912f517991541765b5694217e5327dc106f8ba3857bda178997c76d222059572b830285d
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
simp (0.1.
|
4
|
+
simp (0.1.1)
|
5
5
|
erubi
|
6
6
|
rack
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
+
byebug (10.0.1)
|
11
12
|
erubi (1.7.1)
|
12
13
|
minitest (5.11.3)
|
13
14
|
rack (2.0.4)
|
@@ -18,6 +19,7 @@ PLATFORMS
|
|
18
19
|
|
19
20
|
DEPENDENCIES
|
20
21
|
bundler (~> 1.16)
|
22
|
+
byebug
|
21
23
|
minitest (~> 5.0)
|
22
24
|
rake (~> 10.0)
|
23
25
|
simp!
|
data/lib/simp/version.rb
CHANGED
data/lib/simp.rb
CHANGED
@@ -5,7 +5,7 @@ module Simp
|
|
5
5
|
class Application
|
6
6
|
def call(env)
|
7
7
|
[200, {"Content-Type" => "html"},
|
8
|
-
[html(env["REQUEST_PATH"][1
|
8
|
+
[html(env["REQUEST_PATH"][1..-1])]
|
9
9
|
]
|
10
10
|
end
|
11
11
|
|
@@ -18,7 +18,8 @@ module Simp
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def html(file_name)
|
21
|
-
|
21
|
+
puts file_name
|
22
|
+
if File.exist?("#{file_name}.html.erb")
|
22
23
|
render file_name
|
23
24
|
else
|
24
25
|
render_400
|
data/simp.gemspec
CHANGED
@@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_development_dependency "bundler", "~> 1.16"
|
33
33
|
spec.add_development_dependency "rake", "~> 10.0"
|
34
34
|
spec.add_development_dependency "minitest", "~> 5.0"
|
35
|
+
spec.add_development_dependency "byebug"
|
35
36
|
|
36
37
|
spec.add_runtime_dependency "rack"
|
37
38
|
spec.add_runtime_dependency "erubi"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rocLv
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: byebug
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rack
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|