lamby 0.3.2 → 0.4.0

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: 836c45e05d0095fdbd0665b2252543601e40d4a4c2e0047e05c9b36c334952fb
4
- data.tar.gz: 7a98d50351cb6be994c7ff5f5d3c5c1afbdc4296f235ea4fe37d840a70ac375c
3
+ metadata.gz: 4327446677f04fd00f4454f0a9fe8040a4787ee1ac08b5fa10a70b59936caffa
4
+ data.tar.gz: 124d1a0707da1f693c551e4a7d5cdf90992659a010adb7c45d9fedfcdfd15877
5
5
  SHA512:
6
- metadata.gz: b4f674a95692a7cd0fd6b810db3b1ca1e74f6c26bf74522cb0b912970a03e1ef56ec4858af2370f324b87c93789076cd6e663ecfc5fc176056e7579c72156ae2
7
- data.tar.gz: 074d1145e72ba11c7fd867a49397632fcf82591d12e73e7b8f27728d216db3be454509654c136b795c2b35999dd11aff68e46bd8336a8f3c18393a416b55f28c
6
+ metadata.gz: 04c1053e4094dcc89400420d2f1904eba1e1ed27a600e4f8351e15b2f2387393c430f0cbef79ec3eca2bf31c3ef7a1ab5e89699104fdb3ad251ad7c7bdb1e040
7
+ data.tar.gz: fa764371709754f96e5646263fc2f4e36a1a83713c9dd353a35501a43bd2dfa62f77bb49357f0f260bd248c77dfdb5a3ecee0d5672417eaf7d43d15bfee1db5d
@@ -1,5 +1,12 @@
1
1
  # Keep A Changelog!
2
2
 
3
+ ## v0.4.0
4
+
5
+ #### Fixed
6
+
7
+ * File uploads in #33 using `CONTENT_TYPE` and `CONTENT_LENGTH`.
8
+
9
+
3
10
  See this http://keepachangelog.com link for information on how we want this documented formatted.
4
11
 
5
12
  ## v0.3.2
data/README.md CHANGED
@@ -111,4 +111,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/custom
111
111
 
112
112
  ## Code of Conduct
113
113
 
114
- Everyone interacting in the Lamby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/metaskills/lamby/blob/master/CODE_OF_CONDUCT.md).
114
+ Everyone interacting in the Lamby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/customink/lamby/blob/master/CODE_OF_CONDUCT.md).
@@ -40,8 +40,8 @@ module Lamby
40
40
  }.tap do |env|
41
41
  ct = content_type
42
42
  cl = content_length
43
- env[::Rack::CONTENT_TYPE] = ct if ct
44
- env[::Rack::CONTENT_LENGTH] = cl if cl
43
+ env['CONTENT_TYPE'] = ct if ct
44
+ env['CONTENT_LENGTH'] = cl if cl
45
45
  end
46
46
  end
47
47
 
@@ -54,12 +54,12 @@ module Lamby
54
54
  end
55
55
 
56
56
  def content_type
57
- headers.delete('Content-Type') || headers.delete('content-type')
57
+ headers.delete('Content-Type') || headers.delete('content-type') || headers.get_header('CONTENT_TYPE')
58
58
  end
59
59
 
60
60
  def content_length
61
61
  bytesize = body.bytesize.to_s if body
62
- headers.delete('Content-Length') || headers.delete('content-length') || bytesize
62
+ headers.delete('Content-Length') || headers.delete('content-length') || headers.delete('CONTENT_LENGTH') || bytesize
63
63
  end
64
64
 
65
65
  def body
@@ -1,3 +1,3 @@
1
1
  module Lamby
2
- VERSION = '0.3.2'
2
+ VERSION = '0.4.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lamby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-09 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack