nekonote-framework 1.0.0.pre.beta5 → 1.0.0.pre.beta6

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: 83af083867f706bf41adc30483d1b8aebe9bccaa3eae0c90e149cfb885c17492
4
- data.tar.gz: 7e11322289731393588db00badbc16377f3bd59d0218f7df252479188cb8eab1
3
+ metadata.gz: 7e8590189de70e359db4f9bfa8a491bbafc1becc543460ffef6f3424c4d5a355
4
+ data.tar.gz: 5c126bb0ea314fbd8393a76088f3b9abcc49b37f3db21780bba6c0998a8edf0e
5
5
  SHA512:
6
- metadata.gz: 88634ed58c3b941da9d21405569d379a72b7e08988bbb504806f49f06b50b54f7da842427c0cd7fb2b1303e2d23c321915b4f162e81f15310252cd838d8ce5c1
7
- data.tar.gz: c07cbd985ad0f6319f4f21c78cb230cee1563fda2abd5cc2ddbc05c31c6a355962ee5f2d214b6f6626d74201b093dbc8ce1690a208dc143b7f23a44ef6329560
6
+ metadata.gz: a6af6b480387f047aaf6b0b951bee0d2b71bb5f6abe2aa36d33bb7acbd7ba851bca52c6f49fe0b438e41222093de9721d56adb346b70c090f480457bf0681bc1
7
+ data.tar.gz: 8a14b10a3187236f5924c10c6c2c3dc2cfe5d8c3f774e5c8296f265d0124c5f821ed78e420ca0413e4750a7c72d3aa83ecaad97720e544bafbdafc5e9df095eb
@@ -136,7 +136,12 @@ module Nekonote
136
136
  return false
137
137
  end
138
138
 
139
- return @parsed_route_error_yml.is_a?(Hash) && @parsed_route_error_yml[field][FIELD_ROUTE_HANDLER].is_a?(String)
139
+ # check if the field exists
140
+ if !@parsed_route_error_yml.is_a?(Hash) || !@parsed_route_error_yml[field].is_a?(Hash)
141
+ return false
142
+ end
143
+
144
+ return @parsed_route_error_yml[field][FIELD_ROUTE_HANDLER].is_a?(String)
140
145
  end
141
146
 
142
147
  # @return bool
@@ -107,7 +107,7 @@ module Nekonote
107
107
  end
108
108
 
109
109
  unless location[0] == ?/
110
- raise ArgumentError, "paths need to start with /"
110
+ raise ArgumentError, %(Values for 'path' directive need to be started from /)
111
111
  end
112
112
 
113
113
  location = location.chomp('/')
@@ -1,6 +1,6 @@
1
1
  module Nekonote
2
2
  LIBS_NAME = %(nekonote-framework).freeze
3
- VERSION = %(1.0.0-beta5).freeze
3
+ VERSION = %(1.0.0-beta6).freeze
4
4
  HOMEPAGE = %(https://nekonote-framework.github.io).freeze
5
5
  SUMMARY = %(Simple and Lightweight Ruby Framework for Web Development).freeze
6
6
  DESCRIPTION = %(Nekonote Framework is a small web application framework that helps your web development.).freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nekonote-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta5
4
+ version: 1.0.0.pre.beta6
5
5
  platform: ruby
6
6
  authors:
7
7
  - khotta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-29 00:00:00.000000000 Z
11
+ date: 2018-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: color_echo