isomorfeus-iodine 0.7.49 → 0.7.50
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +1 -1
- data/CHANGELOG.md +17 -3
- data/Rakefile +1 -9
- data/examples/etag.ru +16 -0
- data/ext/{iodine → iodine_ext}/extconf.rb +1 -1
- data/ext/{iodine → iodine_ext}/fio.c +0 -0
- data/ext/{iodine → iodine_ext}/fio.h +0 -0
- data/ext/{iodine → iodine_ext}/fio_cli.c +0 -0
- data/ext/{iodine → iodine_ext}/fio_cli.h +189 -189
- data/ext/{iodine → iodine_ext}/fio_json_parser.h +687 -687
- data/ext/{iodine → iodine_ext}/fio_siphash.c +157 -157
- data/ext/{iodine → iodine_ext}/fio_siphash.h +37 -37
- data/ext/{iodine → iodine_ext}/fio_tls.h +129 -129
- data/ext/{iodine → iodine_ext}/fio_tls_missing.c +0 -0
- data/ext/{iodine → iodine_ext}/fio_tls_openssl.c +0 -0
- data/ext/{iodine → iodine_ext}/fio_tmpfile.h +0 -0
- data/ext/{iodine → iodine_ext}/fiobj.h +44 -44
- data/ext/{iodine → iodine_ext}/fiobj4fio.h +21 -21
- data/ext/{iodine → iodine_ext}/fiobj_ary.c +333 -333
- data/ext/{iodine → iodine_ext}/fiobj_ary.h +139 -139
- data/ext/{iodine → iodine_ext}/fiobj_data.c +0 -0
- data/ext/{iodine → iodine_ext}/fiobj_data.h +0 -0
- data/ext/{iodine → iodine_ext}/fiobj_hash.c +0 -0
- data/ext/{iodine → iodine_ext}/fiobj_hash.h +176 -176
- data/ext/{iodine → iodine_ext}/fiobj_json.c +622 -622
- data/ext/{iodine → iodine_ext}/fiobj_json.h +68 -68
- data/ext/{iodine → iodine_ext}/fiobj_mem.h +71 -71
- data/ext/{iodine → iodine_ext}/fiobj_mustache.c +0 -0
- data/ext/{iodine → iodine_ext}/fiobj_mustache.h +62 -62
- data/ext/{iodine → iodine_ext}/fiobj_numbers.c +0 -0
- data/ext/{iodine → iodine_ext}/fiobj_numbers.h +127 -127
- data/ext/{iodine → iodine_ext}/fiobj_str.c +0 -0
- data/ext/{iodine → iodine_ext}/fiobj_str.h +172 -172
- data/ext/{iodine → iodine_ext}/fiobject.c +0 -0
- data/ext/{iodine → iodine_ext}/fiobject.h +0 -0
- data/ext/{iodine → iodine_ext}/hpack.h +1923 -1923
- data/ext/{iodine → iodine_ext}/http.c +14 -27
- data/ext/{iodine → iodine_ext}/http.h +1002 -1002
- data/ext/{iodine → iodine_ext}/http1.c +0 -0
- data/ext/{iodine → iodine_ext}/http1.h +29 -29
- data/ext/{iodine → iodine_ext}/http1_parser.h +0 -0
- data/ext/{iodine → iodine_ext}/http_internal.c +0 -0
- data/ext/{iodine → iodine_ext}/http_internal.h +0 -0
- data/ext/{iodine → iodine_ext}/http_mime_parser.h +350 -350
- data/ext/{iodine → iodine_ext}/iodine.c +1 -1
- data/ext/{iodine → iodine_ext}/iodine.h +0 -0
- data/ext/{iodine → iodine_ext}/iodine_caller.c +0 -0
- data/ext/{iodine → iodine_ext}/iodine_caller.h +0 -0
- data/ext/{iodine → iodine_ext}/iodine_connection.c +0 -0
- data/ext/{iodine → iodine_ext}/iodine_connection.h +55 -55
- data/ext/{iodine → iodine_ext}/iodine_defer.c +0 -0
- data/ext/{iodine → iodine_ext}/iodine_defer.h +6 -6
- data/ext/{iodine → iodine_ext}/iodine_fiobj2rb.h +120 -120
- data/ext/{iodine → iodine_ext}/iodine_helpers.c +0 -0
- data/ext/{iodine → iodine_ext}/iodine_helpers.h +12 -12
- data/ext/{iodine → iodine_ext}/iodine_http.c +0 -2
- data/ext/{iodine → iodine_ext}/iodine_http.h +23 -23
- data/ext/{iodine → iodine_ext}/iodine_json.c +302 -302
- data/ext/{iodine → iodine_ext}/iodine_json.h +6 -6
- data/ext/{iodine → iodine_ext}/iodine_mustache.c +0 -0
- data/ext/{iodine → iodine_ext}/iodine_mustache.h +6 -6
- data/ext/{iodine → iodine_ext}/iodine_pubsub.c +0 -0
- data/ext/{iodine → iodine_ext}/iodine_pubsub.h +26 -26
- data/ext/{iodine → iodine_ext}/iodine_rack_io.c +0 -0
- data/ext/{iodine → iodine_ext}/iodine_rack_io.h +20 -20
- data/ext/{iodine → iodine_ext}/iodine_store.c +0 -0
- data/ext/{iodine → iodine_ext}/iodine_store.h +20 -20
- data/ext/{iodine → iodine_ext}/iodine_tcp.c +0 -0
- data/ext/{iodine → iodine_ext}/iodine_tcp.h +0 -0
- data/ext/{iodine → iodine_ext}/iodine_tls.c +0 -0
- data/ext/{iodine → iodine_ext}/iodine_tls.h +13 -13
- data/ext/{iodine → iodine_ext}/mustache_parser.h +0 -0
- data/ext/{iodine → iodine_ext}/redis_engine.c +0 -0
- data/ext/{iodine → iodine_ext}/redis_engine.h +0 -0
- data/ext/{iodine → iodine_ext}/resp_parser.h +0 -0
- data/ext/{iodine → iodine_ext}/websocket_parser.h +505 -505
- data/ext/{iodine → iodine_ext}/websockets.c +0 -0
- data/ext/{iodine → iodine_ext}/websockets.h +185 -185
- data/isomorfeus-iodine.gemspec +1 -2
- data/lib/iodine/version.rb +1 -1
- data/lib/iodine.rb +1 -1
- metadata +79 -78
@@ -1,26 +1,26 @@
|
|
1
|
-
#ifndef H_IODINE_PUBSUB_H
|
2
|
-
#define H_IODINE_PUBSUB_H
|
3
|
-
|
4
|
-
#include "iodine.h"
|
5
|
-
|
6
|
-
#include "fio.h"
|
7
|
-
|
8
|
-
/** Initializes the PubSub::Engine Ruby class. */
|
9
|
-
void iodine_pubsub_init(void);
|
10
|
-
|
11
|
-
extern const rb_data_type_t iodine_pubsub_data_type;
|
12
|
-
|
13
|
-
typedef struct {
|
14
|
-
fio_pubsub_engine_s do_not_touch;
|
15
|
-
VALUE handler;
|
16
|
-
fio_pubsub_engine_s *engine;
|
17
|
-
void (*dealloc)(fio_pubsub_engine_s *engine);
|
18
|
-
} iodine_pubsub_s;
|
19
|
-
|
20
|
-
static inline iodine_pubsub_s *iodine_pubsub_CData(VALUE obj) {
|
21
|
-
iodine_pubsub_s *c = NULL;
|
22
|
-
TypedData_Get_Struct(obj, iodine_pubsub_s, &iodine_pubsub_data_type, c);
|
23
|
-
return c;
|
24
|
-
}
|
25
|
-
|
26
|
-
#endif
|
1
|
+
#ifndef H_IODINE_PUBSUB_H
|
2
|
+
#define H_IODINE_PUBSUB_H
|
3
|
+
|
4
|
+
#include "iodine.h"
|
5
|
+
|
6
|
+
#include "fio.h"
|
7
|
+
|
8
|
+
/** Initializes the PubSub::Engine Ruby class. */
|
9
|
+
void iodine_pubsub_init(void);
|
10
|
+
|
11
|
+
extern const rb_data_type_t iodine_pubsub_data_type;
|
12
|
+
|
13
|
+
typedef struct {
|
14
|
+
fio_pubsub_engine_s do_not_touch;
|
15
|
+
VALUE handler;
|
16
|
+
fio_pubsub_engine_s *engine;
|
17
|
+
void (*dealloc)(fio_pubsub_engine_s *engine);
|
18
|
+
} iodine_pubsub_s;
|
19
|
+
|
20
|
+
static inline iodine_pubsub_s *iodine_pubsub_CData(VALUE obj) {
|
21
|
+
iodine_pubsub_s *c = NULL;
|
22
|
+
TypedData_Get_Struct(obj, iodine_pubsub_s, &iodine_pubsub_data_type, c);
|
23
|
+
return c;
|
24
|
+
}
|
25
|
+
|
26
|
+
#endif
|
File without changes
|
@@ -1,20 +1,20 @@
|
|
1
|
-
/*
|
2
|
-
Copyright: Boaz segev, 2016-2017
|
3
|
-
License: MIT
|
4
|
-
|
5
|
-
Feel free to copy, use and enjoy according to the license provided.
|
6
|
-
*/
|
7
|
-
#ifndef RUBY_RACK_IO_H
|
8
|
-
#define RUBY_RACK_IO_H
|
9
|
-
|
10
|
-
#include <ruby.h>
|
11
|
-
|
12
|
-
#include "http.h"
|
13
|
-
|
14
|
-
extern struct IodineRackIO {
|
15
|
-
VALUE (*create)(http_s *h, VALUE env);
|
16
|
-
void (*close)(VALUE rack_io);
|
17
|
-
void (*init)(void);
|
18
|
-
} IodineRackIO;
|
19
|
-
|
20
|
-
#endif /* RUBY_RACK_IO_H */
|
1
|
+
/*
|
2
|
+
Copyright: Boaz segev, 2016-2017
|
3
|
+
License: MIT
|
4
|
+
|
5
|
+
Feel free to copy, use and enjoy according to the license provided.
|
6
|
+
*/
|
7
|
+
#ifndef RUBY_RACK_IO_H
|
8
|
+
#define RUBY_RACK_IO_H
|
9
|
+
|
10
|
+
#include <ruby.h>
|
11
|
+
|
12
|
+
#include "http.h"
|
13
|
+
|
14
|
+
extern struct IodineRackIO {
|
15
|
+
VALUE (*create)(http_s *h, VALUE env);
|
16
|
+
void (*close)(VALUE rack_io);
|
17
|
+
void (*init)(void);
|
18
|
+
} IodineRackIO;
|
19
|
+
|
20
|
+
#endif /* RUBY_RACK_IO_H */
|
File without changes
|
@@ -1,20 +1,20 @@
|
|
1
|
-
#ifndef H_IODINE_STORAGE_H
|
2
|
-
#define H_IODINE_STORAGE_H
|
3
|
-
|
4
|
-
#include "ruby.h"
|
5
|
-
|
6
|
-
extern struct IodineStorage_s {
|
7
|
-
/** Adds an object to the storage (or increases it's reference count). */
|
8
|
-
VALUE (*add)(VALUE);
|
9
|
-
/** Removes an object from the storage (or decreases it's reference count). */
|
10
|
-
VALUE (*remove)(VALUE);
|
11
|
-
/** Should be called after forking to reset locks */
|
12
|
-
void (*after_fork)(void);
|
13
|
-
/** Prints debugging information to the console. */
|
14
|
-
void (*print)(void);
|
15
|
-
} IodineStore;
|
16
|
-
|
17
|
-
/** Initializes the storage unit for first use. */
|
18
|
-
void iodine_storage_init(void);
|
19
|
-
|
20
|
-
#endif
|
1
|
+
#ifndef H_IODINE_STORAGE_H
|
2
|
+
#define H_IODINE_STORAGE_H
|
3
|
+
|
4
|
+
#include "ruby.h"
|
5
|
+
|
6
|
+
extern struct IodineStorage_s {
|
7
|
+
/** Adds an object to the storage (or increases it's reference count). */
|
8
|
+
VALUE (*add)(VALUE);
|
9
|
+
/** Removes an object from the storage (or decreases it's reference count). */
|
10
|
+
VALUE (*remove)(VALUE);
|
11
|
+
/** Should be called after forking to reset locks */
|
12
|
+
void (*after_fork)(void);
|
13
|
+
/** Prints debugging information to the console. */
|
14
|
+
void (*print)(void);
|
15
|
+
} IodineStore;
|
16
|
+
|
17
|
+
/** Initializes the storage unit for first use. */
|
18
|
+
void iodine_storage_init(void);
|
19
|
+
|
20
|
+
#endif
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,13 +1,13 @@
|
|
1
|
-
#ifndef H_IODINE_TLS_H
|
2
|
-
#define H_IODINE_TLS_H
|
3
|
-
|
4
|
-
#include "iodine.h"
|
5
|
-
|
6
|
-
#include "fio_tls.h"
|
7
|
-
|
8
|
-
void iodine_init_tls(void);
|
9
|
-
fio_tls_s *iodine_tls2c(VALUE self);
|
10
|
-
|
11
|
-
extern VALUE IodineTLSClass;
|
12
|
-
|
13
|
-
#endif
|
1
|
+
#ifndef H_IODINE_TLS_H
|
2
|
+
#define H_IODINE_TLS_H
|
3
|
+
|
4
|
+
#include "iodine.h"
|
5
|
+
|
6
|
+
#include "fio_tls.h"
|
7
|
+
|
8
|
+
void iodine_init_tls(void);
|
9
|
+
fio_tls_s *iodine_tls2c(VALUE self);
|
10
|
+
|
11
|
+
extern VALUE IodineTLSClass;
|
12
|
+
|
13
|
+
#endif
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|