soup-ruby 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/soup/soup.c +0 -11
- data/ext/soup/soup.cr +1 -1
- data/lib/soup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e2efeb1383ac6f0068f671c973fda5818ab9c1b
|
4
|
+
data.tar.gz: 902fe349db099b8f8c9e951d9d5a32ccfa0bb361
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6800bc6ff9703efefb4a62a0700cb2f6c0690ff47b3df302252013614bfbf5cf51b05e6e1ea18754ffde8da959e73d3b5b1fe03799dae1fa46c17bb3e3c9dc32
|
7
|
+
data.tar.gz: 5ac8e7fc6487e3e201063eb40c1ef3eb4f311cc5f56f2a1db463babc975f33625ea3e07cc072af15f545d637add8c01ff1d9caf73f47c9e5e036e8c67ca75205
|
data/ext/soup/soup.c
CHANGED
@@ -211,7 +211,6 @@ static VALUE flagsMessageFlags_SOUP_MESSAGE_CAN_REBUILD = Qnil;
|
|
211
211
|
static VALUE flagsMessageFlags_SOUP_MESSAGE_CONTENT_DECODED = Qnil;
|
212
212
|
static VALUE flagsMessageFlags_SOUP_MESSAGE_CERTIFICATE_TRUSTED = Qnil;
|
213
213
|
static VALUE flagsMessageFlags_SOUP_MESSAGE_NEW_CONNECTION = Qnil;
|
214
|
-
static VALUE flagsMessageFlags_SOUP_MESSAGE_IDEMPOTENT = Qnil;
|
215
214
|
static VALUE rubber_flagsMessageFlags_flags_inspect(VALUE value)
|
216
215
|
{
|
217
216
|
FlagsData *data = NULL;
|
@@ -253,12 +252,6 @@ static VALUE flagsMessageFlags_SOUP_MESSAGE_IDEMPOTENT = Qnil;
|
|
253
252
|
rb_str_cat2(str, "new-connection");
|
254
253
|
c ++;
|
255
254
|
}
|
256
|
-
if ((data->value & SOUP_MESSAGE_IDEMPOTENT)==SOUP_MESSAGE_IDEMPOTENT) {
|
257
|
-
if (c>0)
|
258
|
-
rb_str_cat2(str, ", ");
|
259
|
-
rb_str_cat2(str, "idempotent");
|
260
|
-
c ++;
|
261
|
-
}
|
262
255
|
rb_str_cat2(str, " (");
|
263
256
|
sprintf(number, "%i", data->value);
|
264
257
|
rb_str_cat2(str, number);
|
@@ -284,7 +277,6 @@ static VALUE flags_MessageFlags_to_ruby(int value) { switch(value) {
|
|
284
277
|
case SOUP_MESSAGE_CONTENT_DECODED: return flagsMessageFlags_SOUP_MESSAGE_CONTENT_DECODED;
|
285
278
|
case SOUP_MESSAGE_CERTIFICATE_TRUSTED: return flagsMessageFlags_SOUP_MESSAGE_CERTIFICATE_TRUSTED;
|
286
279
|
case SOUP_MESSAGE_NEW_CONNECTION: return flagsMessageFlags_SOUP_MESSAGE_NEW_CONNECTION;
|
287
|
-
case SOUP_MESSAGE_IDEMPOTENT: return flagsMessageFlags_SOUP_MESSAGE_IDEMPOTENT;
|
288
280
|
}; return make_flags_value(flagsMessageFlags, value, "various", "Various"); }
|
289
281
|
static int flags_ruby_to_MessageFlags(VALUE val) { return flags_value_to_int(val, flagsMessageFlags); }
|
290
282
|
static VALUE cMessage;
|
@@ -741,9 +733,6 @@ Init_soup(void)
|
|
741
733
|
flagsMessageFlags_SOUP_MESSAGE_NEW_CONNECTION = make_flags_value(flagsMessageFlags, SOUP_MESSAGE_NEW_CONNECTION, "new-connection", "SOUP_MESSAGE_NEW_CONNECTION");
|
742
734
|
rb_obj_freeze(flagsMessageFlags_SOUP_MESSAGE_NEW_CONNECTION);
|
743
735
|
rb_define_const(flagsMessageFlags, "NEW_CONNECTION", flagsMessageFlags_SOUP_MESSAGE_NEW_CONNECTION);
|
744
|
-
flagsMessageFlags_SOUP_MESSAGE_IDEMPOTENT = make_flags_value(flagsMessageFlags, SOUP_MESSAGE_IDEMPOTENT, "idempotent", "SOUP_MESSAGE_IDEMPOTENT");
|
745
|
-
rb_obj_freeze(flagsMessageFlags_SOUP_MESSAGE_IDEMPOTENT);
|
746
|
-
rb_define_const(flagsMessageFlags, "IDEMPOTENT", flagsMessageFlags_SOUP_MESSAGE_IDEMPOTENT);
|
747
736
|
cMessage = G_DEF_CLASS(SOUP_TYPE_MESSAGE, "Message", mSoup);
|
748
737
|
rb_define_method(cMessage, "initialize", Message_initialize, 2);
|
749
738
|
rb_define_method(cMessage, "set_request_header", Message_set_request_header, 2);
|
data/ext/soup/soup.cr
CHANGED
@@ -93,7 +93,7 @@ module Soup
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
-
flags MessageFlags (SOUP_MESSAGE_NO_REDIRECT, SOUP_MESSAGE_CAN_REBUILD, SOUP_MESSAGE_CONTENT_DECODED, SOUP_MESSAGE_CERTIFICATE_TRUSTED, SOUP_MESSAGE_NEW_CONNECTION
|
96
|
+
flags MessageFlags (SOUP_MESSAGE_NO_REDIRECT, SOUP_MESSAGE_CAN_REBUILD, SOUP_MESSAGE_CONTENT_DECODED, SOUP_MESSAGE_CERTIFICATE_TRUSTED, SOUP_MESSAGE_NEW_CONNECTION)
|
97
97
|
|
98
98
|
gobject Message < SOUP_TYPE_MESSAGE
|
99
99
|
@type SoupMessage
|
data/lib/soup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soup-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoff Youngs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubber-generate
|