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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0aff56c808d6ccf2134d43160ff2fe6f5abcdf6de5df3dc6e85a071ea71d669
4
- data.tar.gz: 42f6affa8d992337cfef50cd92beb3326cbd223b1ec68b1a29b82e2004e2a4c9
3
+ metadata.gz: 43fdc1c70b1c4b077e39a9b22bfd604d75ada74cedf90f56b549d0d5ab5ab377
4
+ data.tar.gz: 5cda94137aa1c6387ea401f3a5a463bd9bc510d747e536bc0ab39035de3d4fdc
5
5
  SHA512:
6
- metadata.gz: 32c679ad07a09d9dbb3ad6a1253342ccbb5d63d12b4b6e3cb3f79590b4b3f6d0d62e990f8648e567a6cef5f503249bbf958a81eca85e6a22a34e4495842037dc
7
- data.tar.gz: a926f3e6a08ab3580c5cd68b65fdde491d67474e697cc1ef17e82755c3635786206eba6b644d1ccf71651da98a03d8f9dc06778ed4533ed745a532588fe1df1a
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.0)
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
@@ -1,3 +1,3 @@
1
1
  module Simp
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
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..0])]
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
- if File.exists?(file_name)
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.0
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