isomorfeus-iodine 0.7.45 → 0.7.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/bug_report.md +40 -40
- data/.github/workflows/ruby.yml +2 -2
- data/ext/iodine/fio_tmpfile.h +50 -50
- data/ext/iodine/fiobj_hash.c +409 -409
- data/ext/iodine/fiobj_numbers.c +344 -344
- data/ext/iodine/fiobj_str.c +433 -433
- data/ext/iodine/iodine_caller.c +4 -6
- data/ext/iodine/iodine_caller.h +26 -27
- data/ext/iodine/iodine_connection.c +1 -1
- data/ext/iodine/iodine_http.c +2 -1
- data/ext/iodine/iodine_mustache.c +1 -1
- data/ext/iodine/iodine_rack_io.c +281 -281
- data/ext/iodine/iodine_store.c +142 -142
- data/ext/iodine/iodine_tls.c +1 -1
- data/isomorfeus-iodine.gemspec +1 -0
- data/lib/iodine/version.rb +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c337af508230df51518a03d1e31cb89be788bebaafdedb46de6bc4e2b3f947b6
|
4
|
+
data.tar.gz: b481e007b094e90548e14f285f9ecfa52483fc362e8a5b9d59e22e91ef0dc28e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ca3e7fcd9f6fb4061b631187917a5d936a995a357ca6b3dfd6b41a46c16e11d159353b043f621e4a5599ea4021871dc66b0d20a264c91cb30bdfdd40d2c5fe5
|
7
|
+
data.tar.gz: 2e3e14177ba93b473e5827c00ed1512a2c5b743e06f15c6cb11d4eb1817767cc264265715a75c1bad648533cc7e1532fc95badec1dd34bdbdd400c5a01306395
|
@@ -1,40 +1,40 @@
|
|
1
|
-
---
|
2
|
-
name: Bug report
|
3
|
-
about: Create a report to help us improve
|
4
|
-
title: ''
|
5
|
-
labels: ''
|
6
|
-
assignees: ''
|
7
|
-
|
8
|
-
---
|
9
|
-
|
10
|
-
### System Information
|
11
|
-
|
12
|
-
- **OS**: [e.g. macOS 10.15.4]
|
13
|
-
- **Ruby**: [e.g. 2.7.0]
|
14
|
-
- **Version**: [e.g. 0.7.38]
|
15
|
-
- **OpenSSL**: [OpenSSL 1.1.1f 20 Mar 2020]
|
16
|
-
|
17
|
-
### Description
|
18
|
-
|
19
|
-
A clear and concise description of what the bug is.
|
20
|
-
|
21
|
-
### Rack App to Reproduce
|
22
|
-
|
23
|
-
```ruby
|
24
|
-
APP = {|env| [200, {}, "Hello World"] }
|
25
|
-
run APP
|
26
|
-
```
|
27
|
-
|
28
|
-
### Testing code
|
29
|
-
|
30
|
-
```sh
|
31
|
-
curl http://localhost:3000/
|
32
|
-
```
|
33
|
-
|
34
|
-
### Expected behavior
|
35
|
-
|
36
|
-
A clear and concise description of what you expected to happen.
|
37
|
-
|
38
|
-
### Actual behavior
|
39
|
-
|
40
|
-
A clear and concise description of what actually happened.
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Create a report to help us improve
|
4
|
+
title: ''
|
5
|
+
labels: ''
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
### System Information
|
11
|
+
|
12
|
+
- **OS**: [e.g. macOS 10.15.4]
|
13
|
+
- **Ruby**: [e.g. 2.7.0]
|
14
|
+
- **Version**: [e.g. 0.7.38]
|
15
|
+
- **OpenSSL**: [OpenSSL 1.1.1f 20 Mar 2020]
|
16
|
+
|
17
|
+
### Description
|
18
|
+
|
19
|
+
A clear and concise description of what the bug is.
|
20
|
+
|
21
|
+
### Rack App to Reproduce
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
APP = {|env| [200, {}, "Hello World"] }
|
25
|
+
run APP
|
26
|
+
```
|
27
|
+
|
28
|
+
### Testing code
|
29
|
+
|
30
|
+
```sh
|
31
|
+
curl http://localhost:3000/
|
32
|
+
```
|
33
|
+
|
34
|
+
### Expected behavior
|
35
|
+
|
36
|
+
A clear and concise description of what you expected to happen.
|
37
|
+
|
38
|
+
### Actual behavior
|
39
|
+
|
40
|
+
A clear and concise description of what actually happened.
|
data/.github/workflows/ruby.yml
CHANGED
@@ -14,10 +14,10 @@ jobs:
|
|
14
14
|
runs-on: ${{ matrix.os }}
|
15
15
|
steps:
|
16
16
|
- uses: actions/checkout@v2
|
17
|
-
- name: Set up Ruby 3.
|
17
|
+
- name: Set up Ruby 3.1
|
18
18
|
uses: ruby/setup-ruby@v1
|
19
19
|
with:
|
20
|
-
ruby-version: 3.
|
20
|
+
ruby-version: 3.1
|
21
21
|
bundler-cache: true
|
22
22
|
- name: Build and test with Rake
|
23
23
|
run: |
|
data/ext/iodine/fio_tmpfile.h
CHANGED
@@ -1,50 +1,50 @@
|
|
1
|
-
/*
|
2
|
-
Copyright: Boaz Segev, 2018-2019
|
3
|
-
License: MIT
|
4
|
-
*/
|
5
|
-
#ifndef H_FIO_TMPFILE_H
|
6
|
-
/** a simple helper to create temporary files and file names */
|
7
|
-
#define H_FIO_TMPFILE_H
|
8
|
-
|
9
|
-
#ifndef _GNU_SOURCE
|
10
|
-
#define _GNU_SOURCE
|
11
|
-
#endif
|
12
|
-
|
13
|
-
#include <stdio.h>
|
14
|
-
#include <stdlib.h>
|
15
|
-
|
16
|
-
#include <fcntl.h>
|
17
|
-
#include <sys/stat.h>
|
18
|
-
#include <sys/types.h>
|
19
|
-
#include <unistd.h>
|
20
|
-
|
21
|
-
#ifdef __MINGW32__
|
22
|
-
#include <fileapi.h>
|
23
|
-
#endif
|
24
|
-
|
25
|
-
static inline int fio_tmpfile(void) {
|
26
|
-
// create a temporary file to contain the data.
|
27
|
-
int fd = 0;
|
28
|
-
#ifdef __MINGW32__
|
29
|
-
char name_template[] = "fio";
|
30
|
-
TCHAR temp_path[(MAX_PATH-14)];
|
31
|
-
TCHAR temp_filename[MAX_PATH];
|
32
|
-
GetTempPath(MAX_PATH - 14, temp_path);
|
33
|
-
GetTempFileNameA(temp_path, name_template, 0, temp_filename);
|
34
|
-
fd = _open(temp_filename, _O_CREAT | _O_RDWR);
|
35
|
-
_chmod(temp_filename, _S_IREAD | _S_IWRITE);
|
36
|
-
#elif defined(P_tmpdir)
|
37
|
-
if (P_tmpdir[sizeof(P_tmpdir) - 1] == '/') {
|
38
|
-
char name_template[] = P_tmpdir "facil_io_tmpfile_XXXXXXXX";
|
39
|
-
fd = mkstemp(name_template);
|
40
|
-
} else {
|
41
|
-
char name_template[] = P_tmpdir "/facil_io_tmpfile_XXXXXXXX";
|
42
|
-
fd = mkstemp(name_template);
|
43
|
-
}
|
44
|
-
#else
|
45
|
-
char name_template[] = "/tmp/facil_io_tmpfile_XXXXXXXX";
|
46
|
-
fd = mkstemp(name_template);
|
47
|
-
#endif
|
48
|
-
return fd;
|
49
|
-
}
|
50
|
-
#endif
|
1
|
+
/*
|
2
|
+
Copyright: Boaz Segev, 2018-2019
|
3
|
+
License: MIT
|
4
|
+
*/
|
5
|
+
#ifndef H_FIO_TMPFILE_H
|
6
|
+
/** a simple helper to create temporary files and file names */
|
7
|
+
#define H_FIO_TMPFILE_H
|
8
|
+
|
9
|
+
#ifndef _GNU_SOURCE
|
10
|
+
#define _GNU_SOURCE
|
11
|
+
#endif
|
12
|
+
|
13
|
+
#include <stdio.h>
|
14
|
+
#include <stdlib.h>
|
15
|
+
|
16
|
+
#include <fcntl.h>
|
17
|
+
#include <sys/stat.h>
|
18
|
+
#include <sys/types.h>
|
19
|
+
#include <unistd.h>
|
20
|
+
|
21
|
+
#ifdef __MINGW32__
|
22
|
+
#include <fileapi.h>
|
23
|
+
#endif
|
24
|
+
|
25
|
+
static inline int fio_tmpfile(void) {
|
26
|
+
// create a temporary file to contain the data.
|
27
|
+
int fd = 0;
|
28
|
+
#ifdef __MINGW32__
|
29
|
+
char name_template[] = "fio";
|
30
|
+
TCHAR temp_path[(MAX_PATH-14)];
|
31
|
+
TCHAR temp_filename[MAX_PATH];
|
32
|
+
GetTempPath(MAX_PATH - 14, temp_path);
|
33
|
+
GetTempFileNameA(temp_path, name_template, 0, temp_filename);
|
34
|
+
fd = _open(temp_filename, _O_CREAT | _O_RDWR);
|
35
|
+
_chmod(temp_filename, _S_IREAD | _S_IWRITE);
|
36
|
+
#elif defined(P_tmpdir)
|
37
|
+
if (P_tmpdir[sizeof(P_tmpdir) - 1] == '/') {
|
38
|
+
char name_template[] = P_tmpdir "facil_io_tmpfile_XXXXXXXX";
|
39
|
+
fd = mkstemp(name_template);
|
40
|
+
} else {
|
41
|
+
char name_template[] = P_tmpdir "/facil_io_tmpfile_XXXXXXXX";
|
42
|
+
fd = mkstemp(name_template);
|
43
|
+
}
|
44
|
+
#else
|
45
|
+
char name_template[] = "/tmp/facil_io_tmpfile_XXXXXXXX";
|
46
|
+
fd = mkstemp(name_template);
|
47
|
+
#endif
|
48
|
+
return fd;
|
49
|
+
}
|
50
|
+
#endif
|