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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2da95874c0107f0397c18eeda3dfcce0a84182e
4
- data.tar.gz: cff71ab8585c67de982cd17acd287fc0a1440125
3
+ metadata.gz: 3e2efeb1383ac6f0068f671c973fda5818ab9c1b
4
+ data.tar.gz: 902fe349db099b8f8c9e951d9d5a32ccfa0bb361
5
5
  SHA512:
6
- metadata.gz: 71ace95d5e671f4ba190cdcdd81a30962fa522a038a516190283b36b41b99eeff95cfa047f6d7d2bcba5df0e2baf863f32bcb60c79b9ef1e1082a742d24cff1c
7
- data.tar.gz: 254a778b00f7a2b98303eb6fe753d5e90a2fa7d8c46bcf2500aa412d6971ac392bd5a3ad0ed38768507728d99ee21df074089f5651228b699a5d43a7b110c57c
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, SOUP_MESSAGE_IDEMPOTENT)
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
@@ -1,5 +1,5 @@
1
1
  module Soup
2
- BINDINGS_VERSION= [0,0,4]
2
+ BINDINGS_VERSION= [0,0,5]
3
3
  def BINDINGS_VERSION.to_s
4
4
  join('.')
5
5
  end
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
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-03 00:00:00.000000000 Z
11
+ date: 2013-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubber-generate