otto 1.1.0.pre.alpha1 → 1.1.0.pre.alpha3

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: 28a8992b56a1b88f3202f7e3561bda9ba0f3816c26fbdd3775b3cdded2d8382c
4
- data.tar.gz: 781639dfd7a1fa9a3d7e7e4693eb74a485c6cdddbdf8e8b7fe64596d1322701b
3
+ metadata.gz: 997700f94e7e19bd44e84fac3c0be5a5f365d65a4ddabe10562a1eda6ff71126
4
+ data.tar.gz: d145bb6c45e446749085a0ee19db585a0ecbf34fc1db4210cc9ec3fd20f99791
5
5
  SHA512:
6
- metadata.gz: d25fed4875a89b4ea4f2d26552bdea920b2324401bd354fabaa4b62d640e6a2da6eb38575499018020887eeee5db68b67995f7670b7c69d4eb1ca9f0e6cd48ff
7
- data.tar.gz: d07d2a99df509515630600d3c22f508e0f1018ce641aea1f52bd917b9ae5868bd63ab0466d5ee0be326942becc29ac1b1f29c15f1f202310858f7290f20384e4
6
+ metadata.gz: e4f16779b2524caca798ce35b4de0acaaa7977669b7841371a7a7a5cc9cf6e35ab078693a2fd32dcf3a3da929de7767d7f04f3636146870480f71dd388278cb1
7
+ data.tar.gz: 7594592074c105359de7cd4672b64e0ce09dac836036725bed35ea29e3ff6f941caf32cad05d3731485c56c62a0fc291214a36903fe2a9f9b03fc96d19ebbb1e
data/VERSION.yml CHANGED
@@ -1,3 +1,4 @@
1
1
  :MAJOR: 1
2
2
  :MINOR: 1
3
3
  :PATCH: 0
4
+ :PRE: alpha3
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.to_s
7
+ def self.to_a
8
8
  load_config
9
- version = self.version
10
- [version[:MAJOR], version[:MINOR], version[:PATCH]].join('.')
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
- self.version ||= YAML.load_file(File.join(LIB_HOME, '..', 'VERSION.yml'))
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, ex.backtrace
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 = "1.1.0-alpha1"
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.2.22" # Update to the latest version
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.add_dependency 'addressable', '>= 2.2.6'
21
- spec.add_dependency 'rack', '>= 1.2.1'
22
+ spec.add_runtime_dependency 'addressable', '~> 2.2', '< 3'
23
+ spec.add_runtime_dependency 'rack', '~> 2.2', '< 3.0'
22
24
  end
metadata CHANGED
@@ -1,43 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: otto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.pre.alpha1
4
+ version: 1.1.0.pre.alpha3
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-07-25 00:00:00.000000000 Z
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
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.6
19
+ version: '2.2'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ">="
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '2.2'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: 2.2.6
32
+ version: '3'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rack
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - ">="
37
+ - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: 1.2.1
39
+ version: '2.2'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '3.0'
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
- - - ">="
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '2.2'
50
+ - - "<"
39
51
  - !ruby/object:Gem::Version
40
- version: 1.2.1
52
+ version: '3.0'
41
53
  description: 'Otto: Auto-define your rack-apps in plaintext.'
42
54
  email: gems@solutious.com
43
55
  executables: []