rack-app 7.6.0 → 7.6.5

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: 57ddda38e57ac78712e8664c0d8e2af239da7b5d136b2a935acd6eee770f57d1
4
- data.tar.gz: f8bfb68ad081a9aee317c21d279f61cf79dbf94732c421b37ace1930975feb74
3
+ metadata.gz: f181500774143b5c53a11d4dd9f06a4f3782808226b2ad840fd5af9fe3dcff96
4
+ data.tar.gz: 4059d1bd01e8f36ec6a0d46b41bdfd524e002789125e0e51b3d4a716bd5c35aa
5
5
  SHA512:
6
- metadata.gz: 2c77f424fc488bf6bd7291416ff45424aa0f6be582d51fc53c1fa0f9a743af66febc2af311dfb9d964723fdec70d910c9d198706ffc88726926f7fc389937309
7
- data.tar.gz: 2d0a3d19c0a05471efc16ba29f9cfffa2df228cfb5a333905c258347bbd119650162115b9dc2db873ff771eb6a17a37a323843852bb138271a4b1a6169e23ce4
6
+ metadata.gz: 7a209cb4d5cfb40f161a15bcce3f049b16558f71aef1597d8a02a721f410774ea6b3e6752ba73cb3f8711fd59163fa904fd5fbde635b5b6ff7b949abf6ad7843
7
+ data.tar.gz: 590c2a8ec95a1a6f1d8b9610f76d87d197cfa449efe97ca2a5c3a3a4bc13f383ad0620ca82891058e20c0b6e90ec99812d58a6c81f163bec960e61964aa26442
data/README.md CHANGED
@@ -33,9 +33,8 @@ when rack provides a finalized support for http2.
33
33
  If you have an issue, I weekly check the issues tab,
34
34
  answer and reply, or implement a fix for it.
35
35
 
36
- Since the framework, the only dependency is the `rack` gem,
37
- I don't have to update the code base,
38
- because there are no integration problems.
36
+ Since the framework's only dependency is the `rack` gem,
37
+ I don't have to update the code base to often.
39
38
 
40
39
  Cheers and Happy Coding!
41
40
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.6.0
1
+ 7.6.5
@@ -1,10 +1,10 @@
1
1
  module Rack::App::InstanceMethods::ServeFile
2
2
 
3
3
  def serve_file(file_path)
4
- raw_rack_resp = Rack::App::FileServer.serve_file(request.env, file_path)
5
- response.status = raw_rack_resp[0]
6
- response.headers.merge!(raw_rack_resp[1])
7
- response.body = raw_rack_resp[2]
4
+ rack_resp = Rack::App::FileServer.serve_file(request.env, file_path)
5
+ response.status = rack_resp[0]
6
+ response.headers.merge!(rack_resp[1])
7
+ response.body = rack_resp[2]
8
8
  finish!
9
9
  end
10
10
 
@@ -2,11 +2,11 @@ module Rack::App::Payload::Parser::Builder::Formats
2
2
  extend(self)
3
3
 
4
4
  JSON_CONTENT_TYPES = [
5
- 'application/json',
6
- 'application/x-javascript',
7
- 'text/javascript',
8
- 'text/x-javascript',
9
- 'text/x-json'
5
+ 'application/json',
6
+ 'application/x-javascript',
7
+ 'text/javascript',
8
+ 'text/x-javascript',
9
+ 'text/x-json'
10
10
  ].freeze
11
11
 
12
12
  JSON_PARSER = proc do |io|
@@ -28,9 +28,9 @@ module Rack::App::Payload::Parser::Builder::Formats
28
28
  end
29
29
 
30
30
  JSON_STREAM_CONTENT_TYPES = [
31
- 'application/jsonstream',
32
- 'application/stream+json',
33
- 'application/x-json-stream'
31
+ 'application/jsonstream',
32
+ 'application/stream+json',
33
+ 'application/x-json-stream'
34
34
  ].freeze
35
35
 
36
36
  JSON_STREAM_PARSER = proc do |io|
@@ -62,8 +62,8 @@ module Rack::App::Payload::Parser::Builder::Formats
62
62
  # end
63
63
 
64
64
  FORM_CONTENT_TYPES = [
65
- 'application/x-www-form-urlencoded',
66
- # 'multipart/form-data'
65
+ 'application/x-www-form-urlencoded',
66
+ # 'multipart/form-data'
67
67
  ].freeze
68
68
 
69
69
  FORM_SEP_CHAR = '&'.freeze
@@ -76,7 +76,7 @@ module Rack::App::Payload::Parser::Builder::Formats
76
76
  lambda do |form|
77
77
  ::Rack::Utils.parse_nested_query(form, FORM_SEP_CHAR)
78
78
  end
79
- end
79
+ end
80
80
 
81
81
  NULL_END_CHAR = /#{"\u0000"}$/
82
82
 
@@ -102,7 +102,7 @@ module Rack::App::Payload::Parser::Builder::Formats
102
102
  last_name = form_name
103
103
  unless respond_to?(form_name)
104
104
  raise(NotImplementedError, "unknown formatter: #{last_name}")
105
- end
105
+ end
106
106
  __send__ form_name, builder
107
107
  end
108
108
  end
@@ -3,8 +3,8 @@ module Rack::App::Streamer::Scheduler::Null
3
3
  extend(self)
4
4
 
5
5
  def schedule(*)
6
- yield
7
- end
6
+ yield
7
+ end
8
8
 
9
9
  def defer(*)
10
10
  yield
@@ -1,28 +1,27 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
 
4
- spec.name = "rack-app"
5
- spec.version = File.read(File.join(File.dirname(__FILE__), 'VERSION')).strip
6
- spec.authors = ["Adam Luzsi"]
7
- spec.email = ["adamluzsi@gmail.com"]
4
+ spec.name = 'rack-app'
5
+ spec.version = File.read(File.join(File.dirname(__FILE__), 'VERSION')).strip
6
+ spec.authors = ['Adam Luzsi']
7
+ spec.email = ['adamluzsi@gmail.com']
8
8
 
9
- spec.summary = %q{Your next favourite, performance designed micro framework!}
10
- spec.description = %q{Your next favourite rack based micro framework that is totally addition free! Have a cup of awesomeness with your to performance designed framework!}
9
+ summary = 'Minimalist rack application interface building framework.'
10
+ spec.summary = summary
11
+ spec.description = summary
11
12
 
12
- spec.homepage = 'http://www.rack-app.com/'
13
+ spec.homepage = 'http://www.rack-app.com/'
13
14
 
14
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
15
- spec.require_paths = ["lib"]
15
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
+ spec.require_paths = ['lib']
16
17
 
17
- spec.bindir = "bin"
18
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.bindir = 'bin'
19
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
20
 
20
- spec.license = 'Apache License 2.0'
21
+ spec.license = 'Apache License 2.0'
21
22
 
22
- spec.add_development_dependency "bundler"
23
- spec.add_development_dependency "rake", '10.4.2'
24
- spec.add_development_dependency "rspec"
25
-
26
- spec.add_dependency "rack"
23
+ spec.add_development_dependency 'bundler'
24
+ spec.add_development_dependency 'rspec'
25
+ spec.add_dependency 'rack'
27
26
 
28
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.6.0
4
+ version: 7.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-21 00:00:00.000000000 Z
11
+ date: 2020-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '='
32
- - !ruby/object:Gem::Version
33
- version: 10.4.2
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '='
39
- - !ruby/object:Gem::Version
40
- version: 10.4.2
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rspec
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,8 +52,7 @@ dependencies:
66
52
  - - ">="
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0'
69
- description: Your next favourite rack based micro framework that is totally addition
70
- free! Have a cup of awesomeness with your to performance designed framework!
55
+ description: Minimalist rack application interface building framework.
71
56
  email:
72
57
  - adamluzsi@gmail.com
73
58
  executables:
@@ -212,7 +197,7 @@ homepage: http://www.rack-app.com/
212
197
  licenses:
213
198
  - Apache License 2.0
214
199
  metadata: {}
215
- post_install_message:
200
+ post_install_message:
216
201
  rdoc_options: []
217
202
  require_paths:
218
203
  - lib
@@ -228,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
213
  version: '0'
229
214
  requirements: []
230
215
  rubygems_version: 3.0.3
231
- signing_key:
216
+ signing_key:
232
217
  specification_version: 4
233
- summary: Your next favourite, performance designed micro framework!
218
+ summary: Minimalist rack application interface building framework.
234
219
  test_files: []