otto 1.1.0.pre.alpha1 → 1.1.0.pre.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION.yml +1 -0
- data/lib/otto/version.rb +9 -4
- data/lib/otto.rb +2 -1
- data/otto.gemspec +6 -4
- metadata +14 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23a54df729acf5a96e337f0d096aee18376e579771e85e0f3f02d9355b049baf
|
4
|
+
data.tar.gz: 871c1bebc912b19fda8f3730f905d29077f6aa5e88ab9a087a95be3ccf29d312
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 903a3264f15fdcf38b523c7c380dc3b6897f9670a1573c9a9a22edfc1e8e6d61f3f30f89fbb0e78b3db11dee2e824d423444d98d3010f03530e577410bade70c
|
7
|
+
data.tar.gz: c096b04cf99f7bf7d18c6441c625f4a304b1b98d8c04d83ee58f2a71f047196ea2dacae75abcfe04ad97324b40d169a952a1c1f4555e388c9c426e2d628e53a9
|
data/VERSION.yml
CHANGED
data/lib/otto/version.rb
CHANGED
@@ -4,10 +4,14 @@ class Otto
|
|
4
4
|
# Otto::VERSION
|
5
5
|
#
|
6
6
|
module VERSION
|
7
|
-
def self.
|
7
|
+
def self.to_a
|
8
8
|
load_config
|
9
|
-
version
|
10
|
-
|
9
|
+
[@version[:MAJOR], @version[:MINOR], @version[:PATCH]]
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.to_s
|
13
|
+
version = to_a.join('.')
|
14
|
+
"#{version}-#{@version[:PRE]}" if @version[:PRE]
|
11
15
|
end
|
12
16
|
|
13
17
|
def self.inspect
|
@@ -15,8 +19,9 @@ class Otto
|
|
15
19
|
end
|
16
20
|
|
17
21
|
def self.load_config
|
22
|
+
return if @version
|
18
23
|
require 'yaml'
|
19
|
-
|
24
|
+
@version = YAML.load_file(File.join(__dir__, '..', '..', 'VERSION.yml'))
|
20
25
|
end
|
21
26
|
end
|
22
27
|
end
|
data/lib/otto.rb
CHANGED
@@ -151,7 +151,8 @@ class Otto
|
|
151
151
|
end
|
152
152
|
end
|
153
153
|
rescue => ex
|
154
|
-
Otto.logger.error ex.message
|
154
|
+
Otto.logger.error "#{ex.class}: #{ex.message} #{ex.backtrace.join("\n")}"
|
155
|
+
|
155
156
|
if found_route = literal_routes['/500']
|
156
157
|
found_route.call env
|
157
158
|
else
|
data/otto.gemspec
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
|
+
require_relative 'lib/otto/version'
|
4
|
+
|
3
5
|
Gem::Specification.new do |spec|
|
4
6
|
spec.name = "otto"
|
5
|
-
spec.version =
|
7
|
+
spec.version = Otto::VERSION.to_s
|
6
8
|
spec.summary = "Auto-define your rack-apps in plaintext."
|
7
9
|
spec.description = "Otto: #{spec.summary}"
|
8
10
|
spec.email = "gems@solutious.com"
|
@@ -13,10 +15,10 @@ Gem::Specification.new do |spec|
|
|
13
15
|
end
|
14
16
|
spec.homepage = "https://github.com/delano/otto"
|
15
17
|
spec.require_paths = ["lib"]
|
16
|
-
spec.rubygems_version = "3.
|
18
|
+
spec.rubygems_version = "3.5.15" # Update to the latest version
|
17
19
|
|
18
20
|
spec.required_ruby_version = ['>= 2.6.8', '< 4.0']
|
19
21
|
|
20
|
-
spec.
|
21
|
-
spec.
|
22
|
+
spec.add_runtime_dependency 'addressable', '~> 2.2', '>= 2.2.6'
|
23
|
+
spec.add_runtime_dependency 'rack', '~> 1.2', '>= 1.2.1'
|
22
24
|
end
|
metadata
CHANGED
@@ -1,19 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: otto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.pre.
|
4
|
+
version: 1.1.0.pre.alpha2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delano Mandelbaum
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.2'
|
17
20
|
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 2.2.6
|
@@ -21,6 +24,9 @@ dependencies:
|
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.2'
|
24
30
|
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 2.2.6
|
@@ -28,6 +34,9 @@ dependencies:
|
|
28
34
|
name: rack
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.2'
|
31
40
|
- - ">="
|
32
41
|
- !ruby/object:Gem::Version
|
33
42
|
version: 1.2.1
|
@@ -35,6 +44,9 @@ dependencies:
|
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.2'
|
38
50
|
- - ">="
|
39
51
|
- !ruby/object:Gem::Version
|
40
52
|
version: 1.2.1
|