soup-ruby 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ext/soup/extconf.rb +22 -5
- data/ext/soup/soup.c +4 -0
- data/lib/soup/version.rb +1 -1
- metadata +36 -57
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f526b6c899ca628dda5e25f36266f1f06c4f26b0
|
4
|
+
data.tar.gz: c69559462a1c6daaa86633746ffba5039ccf4e97
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 918ada22e0106a9ea3929b4973880748b05924d2814f4800131a31f722f2e267ceae1c0e8bee822131cc359b9d36f44b9cf03c886cd2ef954e2003da80b75d68
|
7
|
+
data.tar.gz: 6d6b922a4ac1543ad65accb48815a6c5385ed0d627b634ea1c5c994c476cf9966715ce4f5c6f20d1b32849b3917eccdec91fe7f0ec0119a681ae2c2b57ff3f7f
|
data/ext/soup/extconf.rb
CHANGED
@@ -19,20 +19,37 @@ end
|
|
19
19
|
# Look for headers in {gem_root}/ext/{package}
|
20
20
|
if use_gems
|
21
21
|
%w[
|
22
|
-
glib2 gdk_pixbuf2 atk gtk2
|
23
|
-
|
24
|
-
|
22
|
+
glib2 gdk_pixbuf2 atk gtk2].each do |package|
|
23
|
+
require package
|
24
|
+
if Gem.loaded_specs[package]
|
25
|
+
$CFLAGS += " -I" + Gem.loaded_specs[package].full_gem_path + "/ext/" + package
|
26
|
+
else
|
27
|
+
if fn = $".find { |n| n.sub(/[.](so|rb)$/,'') == package }
|
28
|
+
dr = $:.find { |d| File.exist?(File.join(d, fn)) }
|
29
|
+
pt = File.join(dr,fn) if dr && fn
|
30
|
+
else
|
31
|
+
pt = "??"
|
32
|
+
end
|
33
|
+
STDERR.puts "require '" + package + "' loaded '"+pt+"' instead of the gem - trying to continue, but build may fail"
|
34
|
+
end
|
25
35
|
end
|
26
36
|
end
|
27
37
|
if RbConfig::CONFIG.has_key?('rubyhdrdir')
|
28
|
-
$CFLAGS += " -I" + RbConfig::CONFIG['rubyhdrdir']+'/ruby'
|
38
|
+
$CFLAGS += " -I" + RbConfig::CONFIG['rubyhdrdir']+'/ruby'
|
29
39
|
end
|
30
40
|
|
31
41
|
$CFLAGS += " -I."
|
32
42
|
have_func("rb_errinfo")
|
33
43
|
PKGConfig.have_package("gtk+-2.0") or exit(-1)
|
34
44
|
PKGConfig.have_package("libsoup-2.4") or exit(-1)
|
35
|
-
|
45
|
+
|
46
|
+
unless have_header("libsoup/soup.h")
|
47
|
+
paths = Gem.find_files("libsoup/soup.h")
|
48
|
+
paths.each do |path|
|
49
|
+
$CFLAGS += " '-I#{File.dirname(path)}'"
|
50
|
+
end
|
51
|
+
have_header("libsoup/soup.h") or exit -1
|
52
|
+
end
|
36
53
|
|
37
54
|
STDOUT.print("checking for new allocation framework... ") # for ruby-1.7
|
38
55
|
if Object.respond_to? :allocate
|
data/ext/soup/soup.c
CHANGED
@@ -139,7 +139,11 @@ static VALUE rubber_flags_cmp(VALUE value, VALUE other)
|
|
139
139
|
VALUE a,b;
|
140
140
|
a = rb_funcall(value, rb_intern("to_i"), 0);
|
141
141
|
b = rb_funcall(other, rb_intern("to_i"), 0);
|
142
|
+
#ifdef RB_NUM_COERCE_FUNCS_NEED_OPID
|
143
|
+
return rb_num_coerce_cmp(a, b, rb_intern("=="));
|
144
|
+
#else
|
142
145
|
return rb_num_coerce_cmp(a, b);
|
146
|
+
#endif
|
143
147
|
}
|
144
148
|
|
145
149
|
static VALUE rubber_flags_to_i(VALUE value)
|
data/lib/soup/version.rb
CHANGED
metadata
CHANGED
@@ -1,53 +1,42 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: soup-ruby
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 6
|
10
|
-
version: 0.0.6
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.7
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Geoff Youngs
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2013-09-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: rubber-generate
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 61
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
- 0
|
32
|
-
- 17
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
33
19
|
version: 0.0.17
|
34
20
|
type: :runtime
|
35
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.0.17
|
36
27
|
description: |+
|
37
28
|
Libsoup bindings for ruby. Partial coverage sufficient to allow HTTP requests to be handled without blocking the mainloop.
|
38
|
-
|
29
|
+
|
39
30
|
e.g
|
40
31
|
require 'gtk2'
|
41
32
|
require 'soup'
|
42
|
-
|
33
|
+
|
43
34
|
email: git@intersect-uk.co.uk
|
44
35
|
executables: []
|
45
|
-
|
46
|
-
extensions:
|
36
|
+
extensions:
|
47
37
|
- ext/soup/extconf.rb
|
48
38
|
extra_rdoc_files: []
|
49
|
-
|
50
|
-
files:
|
39
|
+
files:
|
51
40
|
- ext/soup/extconf.rb
|
52
41
|
- ext/soup/soup.c
|
53
42
|
- ext/soup/soup.cr
|
@@ -56,37 +45,27 @@ files:
|
|
56
45
|
- README.md
|
57
46
|
- lib/soup/version.rb
|
58
47
|
homepage: http://github.com/geoffyoungs/soup-ruby
|
59
|
-
licenses:
|
48
|
+
licenses:
|
60
49
|
- The Ruby License
|
50
|
+
metadata: {}
|
61
51
|
post_install_message:
|
62
52
|
rdoc_options: []
|
63
|
-
|
64
|
-
require_paths:
|
53
|
+
require_paths:
|
65
54
|
- lib
|
66
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
none: false
|
77
|
-
requirements:
|
78
|
-
- - ">="
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
hash: 3
|
81
|
-
segments:
|
82
|
-
- 0
|
83
|
-
version: "0"
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - '>='
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - '>='
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
84
65
|
requirements: []
|
85
|
-
|
86
66
|
rubyforge_project:
|
87
|
-
rubygems_version:
|
67
|
+
rubygems_version: 2.0.3
|
88
68
|
signing_key:
|
89
|
-
specification_version:
|
69
|
+
specification_version: 4
|
90
70
|
summary: Soup bindings using rubber-generate
|
91
71
|
test_files: []
|
92
|
-
|